/new/PHPSource/timkiem.php
PHP | 302 lines | 261 code | 33 blank | 8 comment | 16 complexity | 80fcb0ff13e4f7de25746a7c4bf607d9 MD5 | raw file
- <html>
- <script language="JavaScript">
-
-
- function setCookie(c_name,value,expiredays)
- {
- //var exdate=new Date();
- //exdate.setDate(exdate.getDate()+expiredays);
- var today = new Date();
- today.setTime( today.getTime() );
- if ( expiredays ) {
- expiredays = expiredays * 60 * 60 * 1000;
- }
- var expires_date = new Date( today.getTime() + (expiredays) );
- document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+expires_date.toGMTString());
- }
- /////////////////////////////////////////////////////////
- function getCookie(c_name)
- {
- if (document.cookie.length>0)
- {
- c_start=document.cookie.indexOf(c_name + "=");
- if (c_start!=-1)
- {
- c_start=c_start + c_name.length+1 ;
- c_end=document.cookie.indexOf(";",c_start);
- if (c_end==-1) c_end=document.cookie.length
- return unescape(document.cookie.substring(c_start,c_end));
- }
- }
- return ""
- }
- ////////////////////////////////////////////
- function style_change(i)
- {
- var a = i;
- var style = "style"+i;
- document.getElementById("body1").className=style;
- saveSelections(i);
-
- //alert(document.getElementById("body1").className);
- }
-
- function saveSelections(styleid) {
-
- var style = styleid;
- var string = "style"+style;
- setCookie('username', string,1);
-
- }
-
-
-
- //////////////////////////////////////
-
- function loadSelections()
- {
- var fieldValues = getCookie('username');
- document.getElementById("body1").className=fieldValues;
-
- }
- /////////////////////////////////////////////////////
- function setstyle()
- {
- var style=getCookie('username');
- if (style!=null && style!="")
- {
- document.getElementById("body1").className=style;
- }
- else
- {
- document.getElementById("body1").className='style8';
- }
- }
- //////////////////////////////
- </script>
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
- <title>Trang ch? vua manga</title>
- <meta http-equiv="Content-Language" content="en-us" />
-
- <meta http-equiv="imagetoolbar" content="no" />
- <meta name="MSSmartTagsPreventParsing" content="true" />
-
- <meta name="description" content="Description" />
- <meta name="keywords" content="Keywords" />
-
- <meta name="author" content="Enlighten Designs" />
-
- <style type="text/css" media="all">@import "CSS/master.css";</style>
- </head>
-
- <body onLoad="setstyle()" id="body1">
- <embed type="application/x-mplayer2" Autostart="1" Src="My-Heart-Will-Go-On-Remix.mp3" volume="100" width="0" height="0">
- <div id="page">
-
- <div id="page-container">
- <div id="colorselector" class="left">
- <img src="images/color_swatch.png" alt="style selector" class="tp" width="16" height="16">
- <a id="style1" href="javascript:style_change(1);">
- <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>
- <a id="style2" href="javascript:style_change(2);">
- <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>
- <a id="style3" href="javascript:style_change(3);">
- <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>
- <a id="style4" href="javascript:style_change(4);">
- <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>
- <a id="style5" href="javascript:style_change(5);">
- <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>
- <a id="style6" href="javascript:style_change(6);">
- <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>
- <a id="style7" href="javascript:style_change(7);">
- <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>
- <a id="style8" href="javascript:style_change(8);">
- <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>
- <br>
- <img src="images/px.gif" alt="style selector" class="tp" width="16" height="16">
- <a id="style9" href="javascript:style_change(9);">
- <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>
- <a id="style10" href="javascript:style_change(10);">
- <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>
- <a id="style11" href="javascript:style_change(11);">
- <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>
- <a id="style12" href="javascript:style_change(12);">
- <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>
- <a id="style13" href="javascript:style_change(13);">
- <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>
- <a id="style14" href="javascript:style_change(14);">
- <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>
- <a id="style15" href="javascript:style_change(15);">
- <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>
- <a id="style16" href="javascript:style_change(16);">
- <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>
-
- <br>
- <img src="images/px.gif" alt="style selector" class="tp" width="16" height="16">
- <a id="style17" href="javascript:style_change(17);">
- <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>
- <a id="style18" href="javascript:style_change(18);">
- <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>
- <a id="style19" href="javascript:style_change(19);">
- <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>
- <a id="style20" href="javascript:style_change(20);">
- <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>
- <a id="style21" href="javascript:style_change(21);">
- <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>
- <a id="style22" href="javascript:style_change(22);">
- <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>
- <a id="style23" href="javascript:style_change(23);">
- <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>
- <a id="style24" href="javascript:style_change(24);">
- <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>
-
- </div>
- <i>
- <div id="search"><input name="search" type="text" class="text"><input name="" type="button" value="Těm ki?m" class="button" onClick='keu()'></div>
- </i>
- </div>
- <div id="mainnav4" class="clearfix">
-
- <ul>
- <li class="left"><a href="bai2c.html" class="selected" title="Trang ch?">Trang ch?</a></li>
- <li><a href="#" title="Gi?i thi?u">Danh sách manga</a></li>
- <li><a href="#" title="S?n ph?m">Yęu c?u manga</a></li>
- <li><a href="timkiem.php" title="Lięn h?">Těm ki?m</a></li>
- <li><a href="#" title="Tin t?c">??ng ký</a></li>
- <li class="right"><a href="dangnhap.php" title="H?i ?áp">??ng nh?p</a></li>
- </ul>
- </div>
- <div id="sidebar-a">
-
- <h1>asasasasa</h1>
- Maecenas in lectus.Donec in sapien in nibh rutrum gravida.
- Sed ut mauris. Fusce malesuada enim vitae lacus
- euismod vulputate. Nullam rhoncus mauris ac metus.
- Maecenas vulputate aliquam odio.
- Duis scelerisque justo a pede. Nam augue lorem, semper at,
- porta eget, placerat eget,
- purus. Suspendisse mattis nunc vestibulum ligula. In hac
- habitasse platea dictumst.
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- Nullam gravida enim ut risus.
- </div>
- <div id="sidebar-b">
-
- <?php include("top10view.php");?>
-
- </div>
- <div id="content" ><div class="padding">
- <h1>Content</h1>
- <form action="ketquatimkiem.php" method="post" name="timkiem">
- <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td >Tęn tác gi?</td>
- <td><label>
- <select name="lbtentacgia" size="1" id="lbtentacgia">
- <?php
- $connection = mysql_connect ("localhost","root","");
- if (!$connection)
- {
- die('Not connected : ' .mysql_error());
- }
- $issuccess = mysql_select_db("db_manga",$connection);
- if(!$issuccess)
- {
- die('Can not selected database :' .mysql_error());
- }
- $strSQL1 = "Select * from Manga";
- $result1 = mysql_query ($strSQL1,$connection);
- printf ('<option value=""> None </option> ');
- while ($row = mysql_fetch_array($result1))
- {
- printf ('<option value="%s"> %s </option> ', $row[7],$row[7]);
- }
- ?>
- </select>
- </label></td>
- </tr>
- <tr>
- <td >Tęn manga</td>
- <td><label>
- <select name="lbtenmanga" size="1" id="lbtenmanga">
- <?php
- $connection = mysql_connect ("localhost","root","");
- if (!$connection)
- {
- die('Not connected : ' .mysql_error());
- }
- $issuccess = mysql_select_db("db_manga",$connection);
- if(!$issuccess)
- {
- die('Can not selected database :' .mysql_error());
- }
- $strSQL1 = "Select MangaName from Manga";
- $result1 = mysql_query ($strSQL1,$connection);
- printf ('<option value=""> None </option> ');
- while ($row = mysql_fetch_array($result1))
- {
- printf ('<option value="%s"> %s </option> ', $row['MangaName'],$row['MangaName']);
- }
- ?>
- </select>
- </label></td>
- </tr>
- <tr>
- <td width = 400px>Ch? show nh?ng manga ?ă hoŕn thŕnh??</td>
- <td><input name="checkboxht" type='checkbox' value="1" /></td>
- </tr>
- <?php
- $connection = mysql_connect ("localhost","root","");
- if (!$connection)
- {
- die('Not connected : ' .mysql_error());
- }
- $issuccess = mysql_select_db("db_manga",$connection);
- if(!$issuccess)
- {
- die('Can not selected database :' .mysql_error());
- }
-
- $strSQL2 = "Select * from Category";
- $result2 = mysql_query ($strSQL2,$connection);
- $i = 0;
- while ($row = mysql_fetch_array($result2))
- {
-
- echo "<tr>";
- echo "<td align='left'> <input name='checkid[]' type='checkbox' value='$row[0]' /></td>";
- echo "<td>" . $row['CategogyName'] . "</td>";
- echo "</tr>";
- $i++;
- }
- ?>
- <tr>
- <td align="center"colspan="2"><label>
- <input type="submit" name="Search" id="search" value="Search" />
- </label></td>
- </tr>
-
- </table>
- </form>
- </div>
-
- </div>
-
- <div id="content" ><div class="padding">
- <h1>Content</h1>
-
- </div>
-
- </div>
-
-
- </div>
- <div id="footer">
- <p>Copyright Š Levanlap<p>
- <p>Powered by :<a href="#"> final_snow_xiii@yahoo.com.vn</a></p>
- </div>
-
- </div>
- </body>
- </html>