?
Path : /home/admin/domains/happytokorea.com/public_html_bk/gall/template1/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/gall/template1/header.php |
<? session_start();?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <? include("include/db.class.php");?> <? include("include/module.php");?> <head> <? $url = $_SERVER['PHP_SELF']; $url = explode("/",$url); $page = $url[count($url)-1]; $page = explode(".",$page ); $page = $page[0]; if($page=="read"){ $page="article"; } $seo = $db->queryUniqueObject("select seo_data from seo where seo_page = '".$page."'"); $tag = explode(",",$seo->seo_data); if(isset($_GET[p_id])){ $seo = $db->queryUniqueObject("select * from product where p_id = ".$_GET[p_id].""); $tag[0]=$seo->f1288868373; $tag[1]=$seo->f1290417918; $tag[2]=$seo->f1288868477; } if($tag[0]==""){ $seo = $db->queryUniqueObject("select seo_data from seo where seo_page = 'main'"); $tag = explode(",",$seo->seo_data); } ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title><? echo $tag[0]?></title> <meta name="keywords" content="<? echo $tag[1]?>" /> <meta name="description" content="<? echo $tag[2]?>" /> <!--<base href="http://www.downloads-templates.com/OS/300110329/">--> <link rel="stylesheet" type="text/css" href="css/stylesheet.css"> <? if(isset($_GET[logoff])){ session_destroy(); echo "<script>window.location.href='main.php';</script>"; } ?> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <div style="background-image:url( images/f/x.jpg); background-repeat:repeat-x;"> <center> <table cellpadding="0" cellspacing="0" border="0" width="" id="head" > <tr height="75"><td valign="top" align="left" style=""><table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" align="left" style="width:333px;"><a href="index.html"><img src="images/logo.gif" border="0" /></a></td> <td valign="top" align="right" style="padding:25px 0px 0px 0px;width:187px;"> </td> <td valign="top" align="center" style="padding:25px 0px 0px 0px;width:202px;"> </td> <td valign="top" align="left" style="padding:20px 0px 0px 66px;width:165px;"><table cellpadding="0" cellspacing="0" border="0" > <tr> <td valign="top" align="left" style="padding:0px 0px 0px 0px;" class="currenc"><!-- shopping_cart //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="left" class="boxText"> <a href="cart.php" class="ShoppingCart">Shopping cart<!--:--></a> <div style="line-height:1px"> </div> <a href="account.php" class="null" style=" ">My account</a><!--<span class="null"> - </span> <span class="null">$0.00</span>--></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> <!-- shopping_cart_eof //--> </td> </tr> </table></td> </tr> </table></td> </tr> <tr height="60"><td valign="top" align="left" style=""> <table cellpadding="0" cellspacing="0" border="0" > <tr> <td valign="middle" align="center" style="width:191px;height:60px;"><a class="menu" href="main.php">หน้าหลัก</a></td> <td valign="middle" align="center" style="width:191px;height:60px;"><a class="menu" href="article.php">บทความ</a></td> <td valign="middle" align="center" style="width:191px;height:60px;"><a class="menu" href="account.php">สมาชิก</a></td> <td valign="middle" align="center" style="width:191px;height:60px;"><a class="menu" href="cart.php">ตระกร้าสินค้า</a></td> <td valign="middle" align="center" style="width:191px;height:60px;"><a class="menu" href="aboutus.php">About Us</a></td> </tr> </table> </td></tr> <tr height="30"><td valign="top" align="left" style="padding:2px 0px 0px 13px;"><!--<span style="padding:0px 0px 0px 0px;"><a href="index.php" class="headerNavigation">Top</a> <img src="images/f/bread.gif" alt="" style="margin:0px 7px 1px 0px;" /><a href="main.php" class="headerNavigation">Catalog</a></span>--></td> </tr> <tr height="274"><td valign="top" align="left" > <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" align="left" style="padding:0px 0px 0px 7px;width:195px;"> <div style="height:116px;"> <div style="line-height:10px"> </div> <table cellpadding="0" cellspacing="0" border="0" > <tr> <td valign="top" align="left" style="padding:0px 0px 0px 0px;" ><img alt="" src="images/f/m_top.gif" style="margin:0px 10px 2px 6px;"/><a href="article.php" class="HASC_top" >บทความ</a> </td> </tr> <tr><td><img src="images/spacer.gif" alt="" width="1" height="8" border="0px" style="display:block" /></td></tr> <tr> <td valign="top" align="left" class="HASC_top"><img alt="" src="images/f/m_top.gif" style="margin:0px 10px 2px 6px;"/><a href="contact.php" class="HASC_top" style="margin-right:8px;">ติดต่อเรา</a> </td> </tr> <tr><td><img src="images/spacer.gif" alt="" width="1" height="8" border="0px" style="display:block" /></td></tr> <tr> <td valign="top" align="left" class="HASC_top"><img alt="" src="images/f/m_top.gif" style="margin:0px 10px 2px 6px;"/><a href="create_ac.php" class="HASC_top" style="margin-right:8px;">สมัครสมาชิก</a> </td> </tr> <tr><td><img src="images/spacer.gif" alt="" width="1" height="8" border="0px" style="display:block" /></td></tr> <tr> <td valign="top" align="left" class="HASC_top"><img alt="" src="images/f/m_top.gif" style="margin:0px 10px 2px 6px;"/><a href="login.php" class="HASC_top" style="margin-right:8px;">เข้าสู่ระบบ</a> </td> </tr> </table> </div> <div style="margin-left:7px;"> <div class="search">ค้นหา</div> <div style="line-height:7px"> </div> <div><!-- search //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="left" class="boxText"><form name="quick_find" action="main.php" method="post"><table cellpadding="0" cellspacing="0" border="0" > <tr><td colspan="2" valign="middle"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="middle" align="left" style="padding:0px 0px 0px 0px;"> <div style="background-image:url(images/f/left.gif); width:185px;height:23px; background-repeat:no-repeat"> <div style="margin-left:10px;padding-top:2px;"><input type="text" autocomplete="off" name="keywords" size="22" maxlength="30" value="Enter keyword" onFocus="this.value=' '" style="padding:2px 0px 0px 5px;width:165px;height:18px;background-color:#ffffff; background-color:#FFFFFF; border-style:solid; border-width:0px; border-color:#fff; color:#303030; font:11px/11px Arial; "></div> </div> </td> </tr> <tr><td><img src="images/spacer.gif" alt="" width="1" height="10" border="0px" style="display:block" /></td></tr> <tr><td valign="top" align="left" style=""> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td style="width:119px;" valign="top" align="left" class="adv"><!--<a style="" class="adv" href="">Advanced search</a>--></td> <td valign="middle" align="left" style="padding:0px 0px 0px 7px;"><!--<input type="hidden" name="osCsid" value="352cbc5d91ba51d20b5941b39006fcf0">--><input type="image" src="images/find.gif" border="0" alt="Search" title=" Search " style="margin-top:0px"></td> </tr> </table> </td></tr> </table></td> </tr> </table></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> <!-- search_eof //--> </div> <div style="line-height:21px"> </div> <div class="search">เลือกรายการสินค้า</div> <div style="line-height:7px"> </div> <div><!-- manufacturers //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><form name="manufacturers" action="main.php" method="get"> <select name="c_id2" onChange="this.form.submit();" size="1"style="width:184px; background-color:#fff; border-style:solid; border-width:1px; border-color:#D4D0C8; color:#000; height:17px; font-family:Tahoma "> <option value="" SELECTED>Please Select</option> <? $res = $db->query("select * from catalog where c_under = 0"); while($line=mysql_fetch_array($res )){ ?> <OPTGROUP LABEL="<? echo $line[c_name];?>" style="font-style:normal"> <? $resx = $db->query("select * from catalog where c_under = $line[c_id]"); while($linex = mysql_fetch_array($resx)){ ?> <OPTION value="<? echo $linex[c_id];?>" ><? echo $linex[c_name];?></OPTION> <? } ?> <? } ?> </select> </form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> <!-- manufacturers_eof //--> </div> </div> </td> <td style="padding:0px 0px 0px 15px;width:376px;" height="276" align="left" valign="middle"> <!-- <a href="http://www.downloads-templates.com/OS/300110329/specials.php?osCsid=352cbc5d91ba51d20b5941b39006fcf0"><img src="images/f/banner.jpg" height="276" width="736" alt="" border="0" /></a> --> <!-- <div style="background:url(images/f/banner.jpg);width:736; height:276; vertical-align:middle">--> <table border="0" style="background:url(images/f/banner.png);width:736; height:276; vertical-align:middle"> <tr> <td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="730"> <param name="movie" value="images/banner.swf"> <param name="quality" value="best"> <param name="play" value="true"> <param name="wmode" value="transparent"> <embed src="images/banner.swf" width="730" height="230" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" quality="best" play="true" wmode="transparent"> </embed> </object> </td> </tr> </table> <!-- </div>--> </td> </tr> </table> </td></tr> <tr><td valign="top" align="left" style=""></td></tr> </table> </center> <!-- header_eof //--> <!-- body //--> <center> <table border="0" cellspacing="0" cellpadding="0" class="mdl_index"> <tr><td valign="top" align="left" class="btm"> <table border="0" class="big_table" cellspacing="0" cellpadding="0"> <tr> <td class="BOX_WIDTH1" valign="top"> <table border="0" class="BOX_WIDTH1" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <tr><td valign="top" align="left" style=""> <div style="line-height:8px"> </div> <div style="margin-left:32px;" class="NazwaBloky"><a href="main.php">รายการสินค้า</a></div> <div style="line-height:15px"> </div> <div style="margin-left:8px;width:193px;"> <!-- categories //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td> <table width="100%" border="0" class="productListing" style="margin-top:3px; padding:5px" > <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents" > <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"> <? $res = $db->query("select * from catalog where c_under = 0"); while($line=mysql_fetch_array($res )){ ?> <tr> <td height="24" class="categor" valign="middle" style="background-image: url(images/f/line.gif);background-position:left bottom; background-repeat:repeat-x;"><img src="images/f/m.gif" border="0" alt="" width="9" height="9" style="margin:3px 16px 0px 0px"> <a class="categor" href="main.php?c_id=<? echo $line[c_id];?>"><? echo $line[c_name];?> <? $resx = $db->query("select * from product where p_under in (select c_id from catalog where c_under = $line[c_id])"); $num = mysql_num_rows($resx); if($num>0){echo "(".$num.")";}else{echo "(#)";} ?></a> <tr> <? $resxx = $db->query("select * from catalog where c_under = $line[c_id]"); while($linexx=mysql_fetch_array($resxx)){ ?> <tr> <td height="24" class="categor" valign="middle" style="background-image: url(images/f/line.gif);background-position:left bottom; background-repeat:repeat-x;"> <img src="images/f/m.gif" border="0" alt="" width="9" height="9" style="margin:3px 16px 0px 0px"> <a class="categor" href="main.php?c_id2=<? echo $linexx[c_id];?>"><? echo $linexx[c_name];?> </a> <tr> <? } ?> <? } ?> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <!-- categories_eof //--> </div> <div style="line-height:14px"> </div> <div style="background-image:url(images/f/block.gif); width:213px;height:30px; background-repeat:no-repeat;"> <div style="margin-left:33px; padding-top:5px;" class="NazwaBloky">สินค้าใหม่</div> </div> <div style="line-height:6px"> </div> <!-- whats_new //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="left" class="boxText"> <? $res = $db->query("select * from product order by p_date limit 1"); while($line = mysql_fetch_array($res)){ ?> <table cellpadding="0" cellspacing="0" border="0" > <tr ><td valign="top" align="left" style="padding:0px 0px 0px 3px;"><a class="NameProd" href=""><? echo $line[p_name];?></a></td></tr> <tr ><td ><img src="images/spacer.gif" alt="" width="1" height="13" border="0px" style="display:block" /></td></tr> <tr bgcolor="#FFFFFF" ><td valign="top" align="center" style="background-image:url(images/f/ramka.jpg);width:214px;height:134px; background-repeat:no-repeat"> <table cellpadding="0" cellspacing="0" border="0" > <tr><td><img src="images/spacer.gif" alt="" width="1" height="5" border="0px" style="display:block" /></td></tr> <tr > <td style="padding:0px 0px 0px 0px;" valign="top" align="center" > <? list($width, $height, $type, $attr) = @getimagesize("upload/".$line[p_img]); ?> <table border="0" cellpadding="0" cellspacing="0"> <tr height="12"> <td width="11" height="12"> <img src="images/table_brillance_01.jpg" width="11" height="12" alt=""></td> <td height="12" background="images/table_brillance_02.jpg"> </td> <td width="13" height="12"> <img src="images/table_brillance_03.jpg" width="13" height="12" alt=""></td> </tr> <tr> <td width="11" background="images/table_brillance_04.jpg"> </td> <td bgcolor="#322a28"> <a href="product.php?p_id=<? echo $line[p_id];?>"><img src="upload/<? echo $line[p_img];?>" border="0" <? if($width>$height){?> width="114" <? }else{?> height="86" <? } ?> ></a> </td> <td width="13" background="images/table_brillance_06.jpg"> </td> </tr> <tr height="12"> <td width="11" height="12"> <img src="images/table_brillance_07.jpg" width="11" height="12" alt=""></td> <td height="12" background="images/table_brillance_08.jpg"> </td> <td width="13" height="12"> <img src="images/table_brillance_09.jpg" width="13" height="12" alt=""></td> </tr> </table> </td> </tr> <tr ><td><img src="images/spacer.gif" alt="" width="1" height="6" border="0px" style="display:block" /></td></tr> <tr ><td valign="top" align="left" style="" > <table cellpadding="0" cellspacing="0" border="0" > <tr > <td style="" valign="top" align="left"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td style="" valign="middle" align="left"><img src="images/f/price_left.gif" alt="" /></td> <td valign="top" align="left" style="padding:5px 0px 0px 0px;background-image:url(images/f/price_mdl.gif); background-repeat:repeat-x"> </td> <td style="" valign="middle" align="left"><img src="images/f/price_right.gif" alt="" /></td> </tr> </table> </td> <td valign="top" align="left" style="width:26px;"></td> <td style="" valign="top" align="left"><a href="product.php?p_id=<? echo $line[p_id];?>"><img src="images/more.gif" border="0" alt="" width="69" height="23"></a></td> </tr> </table> </td></tr> </table> </td></tr> </table> <? } ?> </td> </tr> <tr> <td ><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> <!-- whats_new_eof //--> </td></tr><!-- left_navigation_eof //--> </table> </td> <!-- body_text //--> <td width="100%" valign="top">