PageRenderTime 42ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/new/PHPSource/timkiem.php

http://clover-mana.googlecode.com/
PHP | 302 lines | 261 code | 33 blank | 8 comment | 16 complexity | 80fcb0ff13e4f7de25746a7c4bf607d9 MD5 | raw file
  1. <html>
  2. <script language="JavaScript">
  3. function setCookie(c_name,value,expiredays)
  4. {
  5. //var exdate=new Date();
  6. //exdate.setDate(exdate.getDate()+expiredays);
  7. var today = new Date();
  8. today.setTime( today.getTime() );
  9. if ( expiredays ) {
  10. expiredays = expiredays * 60 * 60 * 1000;
  11. }
  12. var expires_date = new Date( today.getTime() + (expiredays) );
  13. document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+expires_date.toGMTString());
  14. }
  15. /////////////////////////////////////////////////////////
  16. function getCookie(c_name)
  17. {
  18. if (document.cookie.length>0)
  19. {
  20. c_start=document.cookie.indexOf(c_name + "=");
  21. if (c_start!=-1)
  22. {
  23. c_start=c_start + c_name.length+1 ;
  24. c_end=document.cookie.indexOf(";",c_start);
  25. if (c_end==-1) c_end=document.cookie.length
  26. return unescape(document.cookie.substring(c_start,c_end));
  27. }
  28. }
  29. return ""
  30. }
  31. ////////////////////////////////////////////
  32. function style_change(i)
  33. {
  34. var a = i;
  35. var style = "style"+i;
  36. document.getElementById("body1").className=style;
  37. saveSelections(i);
  38. //alert(document.getElementById("body1").className);
  39. }
  40. function saveSelections(styleid) {
  41. var style = styleid;
  42. var string = "style"+style;
  43. setCookie('username', string,1);
  44. }
  45. //////////////////////////////////////
  46. function loadSelections()
  47. {
  48. var fieldValues = getCookie('username');
  49. document.getElementById("body1").className=fieldValues;
  50. }
  51. /////////////////////////////////////////////////////
  52. function setstyle()
  53. {
  54. var style=getCookie('username');
  55. if (style!=null && style!="")
  56. {
  57. document.getElementById("body1").className=style;
  58. }
  59. else
  60. {
  61. document.getElementById("body1").className='style8';
  62. }
  63. }
  64. //////////////////////////////
  65. </script>
  66. <head>
  67. <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
  68. <title>Trang ch? vua manga</title>
  69. <meta http-equiv="Content-Language" content="en-us" />
  70. <meta http-equiv="imagetoolbar" content="no" />
  71. <meta name="MSSmartTagsPreventParsing" content="true" />
  72. <meta name="description" content="Description" />
  73. <meta name="keywords" content="Keywords" />
  74. <meta name="author" content="Enlighten Designs" />
  75. <style type="text/css" media="all">@import "CSS/master.css";</style>
  76. </head>
  77. <body onLoad="setstyle()" id="body1">
  78. <embed type="application/x-mplayer2" Autostart="1" Src="My-Heart-Will-Go-On-Remix.mp3" volume="100" width="0" height="0">
  79. <div id="page">
  80. <div id="page-container">
  81. <div id="colorselector" class="left">
  82. <img src="images/color_swatch.png" alt="style selector" class="tp" width="16" height="16">
  83. <a id="style1" href="javascript:style_change(1);">
  84. <img style="background: transparent url(images/5.1.m.gif) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="White Girl" src="images/px.gif" width="12" height="12"></a>
  85. <a id="style2" href="javascript:style_change(2);">
  86. <img style="background: transparent url(images/5.2.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Deep Green" src="images/px.gif" width="12" height="12"></a>
  87. <a id="style3" href="javascript:style_change(3);">
  88. <img style="background: transparent url(images/5.3.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Pink Date" src="images/px.gif" width="12" height="12"></a>
  89. <a id="style4" href="javascript:style_change(4);">
  90. <img style="background: transparent url(images/5.4.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Green Leaf" src="images/px.gif" width="12" height="12"></a>
  91. <a id="style5" href="javascript:style_change(5);">
  92. <img style="background: transparent url(images/5.5.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Blue White" src="images/px.gif" width="12" height="12"></a>
  93. <a id="style6" href="javascript:style_change(6);">
  94. <img style="background: transparent url(images/5.6.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Ocean" src="images/px.gif" width="12" height="12"></a>
  95. <a id="style7" href="javascript:style_change(7);">
  96. <img style="background: transparent url(images/5.7.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Naruto" src="images/px.gif" width="12" height="12"></a>
  97. <a id="style8" href="javascript:style_change(8);">
  98. <img style="background: transparent url(images/5.8.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Snow" src="images/px.gif" width="12" height="12"></a>
  99. <br>
  100. <img src="images/px.gif" alt="style selector" class="tp" width="16" height="16">
  101. <a id="style9" href="javascript:style_change(9);">
  102. <img style="background: transparent url(images/5.9.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Magic Night" src="images/px.gif" width="12" height="12"></a>
  103. <a id="style10" href="javascript:style_change(10);">
  104. <img style="background: transparent url(images/5.10.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Pink Flower" src="images/px.gif" width="12" height="12"></a>
  105. <a id="style11" href="javascript:style_change(11);">
  106. <img style="background: transparent url(images/5.11.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Black Flower" src="images/px.gif" width="12" height="12"></a>
  107. <a id="style12" href="javascript:style_change(12);">
  108. <img style="background: transparent url(images/5.12.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  109. <a id="style13" href="javascript:style_change(13);">
  110. <img style="background: transparent url(images/5.13.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  111. <a id="style14" href="javascript:style_change(14);">
  112. <img style="background: transparent url(images/5.14.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  113. <a id="style15" href="javascript:style_change(15);">
  114. <img style="background: transparent url(images/5.15.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  115. <a id="style16" href="javascript:style_change(16);">
  116. <img style="background: transparent url(images/5.16.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Dream" src="images/px.gif" width="12" height="12"></a>
  117. <br>
  118. <img src="images/px.gif" alt="style selector" class="tp" width="16" height="16">
  119. <a id="style17" href="javascript:style_change(17);">
  120. <img style="background: transparent url(images/5.17.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Magic Night" src="images/px.gif" width="12" height="12"></a>
  121. <a id="style18" href="javascript:style_change(18);">
  122. <img style="background: transparent url(images/5.18.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Pink Flower" src="images/px.gif" width="12" height="12"></a>
  123. <a id="style19" href="javascript:style_change(19);">
  124. <img style="background: transparent url(images/5.19.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Black Flower" src="images/px.gif" width="12" height="12"></a>
  125. <a id="style20" href="javascript:style_change(20);">
  126. <img style="background: transparent url(images/5.20.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  127. <a id="style21" href="javascript:style_change(21);">
  128. <img style="background: transparent url(images/5.21.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  129. <a id="style22" href="javascript:style_change(22);">
  130. <img style="background: transparent url(images/5.22.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  131. <a id="style23" href="javascript:style_change(23);">
  132. <img style="background: transparent url(images/5.23.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Lovely" src="images/px.gif" width="12" height="12"></a>
  133. <a id="style24" href="javascript:style_change(24);">
  134. <img style="background: transparent url(images/5.24.m.jpg) repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" class="color" alt="Dream" src="images/px.gif" width="12" height="12"></a>
  135. </div>
  136. <i>
  137. <div id="search"><input name="search" type="text" class="text"><input name="" type="button" value="Těm ki?m" class="button" onClick='keu()'></div>
  138. </i>
  139. </div>
  140. <div id="mainnav4" class="clearfix">
  141. <ul>
  142. <li class="left"><a href="bai2c.html" class="selected" title="Trang ch?">Trang ch?</a></li>
  143. <li><a href="#" title="Gi?i thi?u">Danh sách manga</a></li>
  144. <li><a href="#" title="S?n ph?m">Yęu c?u manga</a></li>
  145. <li><a href="timkiem.php" title="Lięn h?">Těm ki?m</a></li>
  146. <li><a href="#" title="Tin t?c">??ng </a></li>
  147. <li class="right"><a href="dangnhap.php" title="H?i ?áp">??ng nh?p</a></li>
  148. </ul>
  149. </div>
  150. <div id="sidebar-a">
  151. <h1>asasasasa</h1>
  152. Maecenas in lectus.Donec in sapien in nibh rutrum gravida.
  153. Sed ut mauris. Fusce malesuada enim vitae lacus
  154. euismod vulputate. Nullam rhoncus mauris ac metus.
  155. Maecenas vulputate aliquam odio.
  156. Duis scelerisque justo a pede. Nam augue lorem, semper at,
  157. porta eget, placerat eget,
  158. purus. Suspendisse mattis nunc vestibulum ligula. In hac
  159. habitasse platea dictumst.
  160. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  161. Nullam gravida enim ut risus.
  162. </div>
  163. <div id="sidebar-b">
  164. <?php include("top10view.php");?>
  165. </div>
  166. <div id="content" ><div class="padding">
  167. <h1>Content</h1>
  168. <form action="ketquatimkiem.php" method="post" name="timkiem">
  169. <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  170. <tr>
  171. <td >Tęn tác gi?</td>
  172. <td><label>
  173. <select name="lbtentacgia" size="1" id="lbtentacgia">
  174. <?php
  175. $connection = mysql_connect ("localhost","root","");
  176. if (!$connection)
  177. {
  178. die('Not connected : ' .mysql_error());
  179. }
  180. $issuccess = mysql_select_db("db_manga",$connection);
  181. if(!$issuccess)
  182. {
  183. die('Can not selected database :' .mysql_error());
  184. }
  185. $strSQL1 = "Select * from Manga";
  186. $result1 = mysql_query ($strSQL1,$connection);
  187. printf ('<option value=""> None </option> ');
  188. while ($row = mysql_fetch_array($result1))
  189. {
  190. printf ('<option value="%s"> %s </option> ', $row[7],$row[7]);
  191. }
  192. ?>
  193. </select>
  194. </label></td>
  195. </tr>
  196. <tr>
  197. <td >Tęn manga</td>
  198. <td><label>
  199. <select name="lbtenmanga" size="1" id="lbtenmanga">
  200. <?php
  201. $connection = mysql_connect ("localhost","root","");
  202. if (!$connection)
  203. {
  204. die('Not connected : ' .mysql_error());
  205. }
  206. $issuccess = mysql_select_db("db_manga",$connection);
  207. if(!$issuccess)
  208. {
  209. die('Can not selected database :' .mysql_error());
  210. }
  211. $strSQL1 = "Select MangaName from Manga";
  212. $result1 = mysql_query ($strSQL1,$connection);
  213. printf ('<option value=""> None </option> ');
  214. while ($row = mysql_fetch_array($result1))
  215. {
  216. printf ('<option value="%s"> %s </option> ', $row['MangaName'],$row['MangaName']);
  217. }
  218. ?>
  219. </select>
  220. </label></td>
  221. </tr>
  222. <tr>
  223. <td width = 400px>Ch? show nh?ng manga ?ă hoŕn thŕnh??</td>
  224. <td><input name="checkboxht" type='checkbox' value="1" /></td>
  225. </tr>
  226. <?php
  227. $connection = mysql_connect ("localhost","root","");
  228. if (!$connection)
  229. {
  230. die('Not connected : ' .mysql_error());
  231. }
  232. $issuccess = mysql_select_db("db_manga",$connection);
  233. if(!$issuccess)
  234. {
  235. die('Can not selected database :' .mysql_error());
  236. }
  237. $strSQL2 = "Select * from Category";
  238. $result2 = mysql_query ($strSQL2,$connection);
  239. $i = 0;
  240. while ($row = mysql_fetch_array($result2))
  241. {
  242. echo "<tr>";
  243. echo "<td align='left'> <input name='checkid[]' type='checkbox' value='$row[0]' /></td>";
  244. echo "<td>" . $row['CategogyName'] . "</td>";
  245. echo "</tr>";
  246. $i++;
  247. }
  248. ?>
  249. <tr>
  250. <td align="center"colspan="2"><label>
  251. <input type="submit" name="Search" id="search" value="Search" />
  252. </label></td>
  253. </tr>
  254. </table>
  255. </form>
  256. </div>
  257. </div>
  258. <div id="content" ><div class="padding">
  259. <h1>Content</h1>
  260. </div>
  261. </div>
  262. </div>
  263. <div id="footer">
  264. <p>Copyright Š Levanlap<p>
  265. <p>Powered by :<a href="#"> final_snow_xiii@yahoo.com.vn</a></p>
  266. </div>
  267. </div>
  268. </body>
  269. </html>