?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/header_en.php |
<? @session_start(); ob_start(); $usermem = $_SESSION["usermem"]; require_once "include/connectdb.php"; require_once "include/connect.php"; require_once "include/tdate.php"; if(empty($usermem)) { $showmember = " <table width=100% border=0 align=center cellpadding=1 cellspacing=1> <form method=post action=SignIn.php><tr> <td width=32% align=right>Username:</td> <td width=68%><input name=usermem type=text size=15></td> </tr> <tr> <td align=right>Password:</td> <td><input name=passmem type=password size=15></td> </tr> <tr> <td> </td> <td><input name=submit type=submit class=submit value=Login!></td> </tr> <tr> <td><a href=Member.php>Register</a></td> <td>! <a href=ForgetPass.php>Forgot Password</a></td> </tr></form> </table> "; }else{ $sql="select * from member where usermem='$usermem'"; $db_query=mysql_db_query($db,$sql); $result=mysql_fetch_array($db_query); $idxx=$result[id]; $usename=$result[name]; $user_mem=$result[usermem]; $pass_mem=$result[passmem]; $showmember = " <div align=center><img src=images/user.gif width=25 height=15>ยินดีต้อนรับ :$usename <br>[ <a href=CheckMyOrder.php>ประวัติสั่งซื้อสินค้า</a> ] <br>[ <a href=ChangePass.php>เปลี่ยนรหัสผ่าน</a> ] <br>[ <a href=Profiles.php>ข้อมูลส่วนตัว</a> ] <br>[<a href=Logout.php>ออกจากระบบ</a>] </div> "; $myorder = "<a href=CheckMyOrder.php><img src=images/myorder.gif border=0><a>"; } $sqlcc="update counter set count = count+1 where id=1"; $db_query=mysql_db_query($db,$sqlcc); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style type="text/css"> <!-- a:link { color: #000000; } a:visited { color: #000000; } a:hover { color: #000000; } a:active { color: #000000; } --> </style> <link rel="stylesheet" type="text/css" href="demo.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="html5lightbox.js"></script> <link type="text/css" href="menu.css" rel="stylesheet" /> <script type="text/javascript" src="menu.js"></script> <LINK href="css/contentslider2.css" type=text/css rel=stylesheet> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> <!-- body { background-image: url(bg-main.jpg); background-repeat: no-repeat; } --> </style></head> <body onLoad="MM_preloadImages('images/me2_01.jpg','images/me2_02.jpg','images/me2_03.jpg','images/me2_04.jpg','images/me2_05.jpg','images/me2_07.jpg','images/me2_06.jpg')"> <table width="1024" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="951" height="102" colspan="5" align="right" valign="top" bgcolor="#FFFFFF"><table width="100" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="47"><a href="index.php"><img src="images/flag_th.jpg" width="31" height="21" border="0"></a></td> <td width="53"><a href="index_en.php"><img src="images/flag_en.jpg" width="31" height="21" border="0"></a></td> </tr> </table> <div align="center"><img src="images/logo.jpg" width="311" height="95"></div></td> </tr> </table> <div align="center"> <table id="Table_01" width="1024" height="50" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="120"><a href="index_en.php"><img src="images/me1_01.jpg" alt="" name="Image1" width="120" height="51" border="0" id="Image1" onMouseOver="MM_swapImage('Image1','','images/me2_01.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="128"><a href="contentlist_en.php"><img src="images/me1_02.jpg" alt="" width="128" height="51" border="0" id="Image2" onMouseOver="MM_swapImage('Image2','','images/me2_02.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="126"><a href="Services.php"><img src="images/me1_03.jpg" alt="" width="126" height="51" border="0" id="Image3" onMouseOver="MM_swapImage('Image3','','images/me2_03.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="128"><a href="port.php"><img src="images/me1_04.jpg" alt="" width="128" height="51" border="0" id="Image4" onMouseOver="MM_swapImage('Image4','','images/me2_04.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="126"><a href="aboutus.php"><img src="images/me1_05.jpg" alt="" width="126" height="51" border="0" id="Image5" onMouseOver="MM_swapImage('Image5','','images/me2_05.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="127"><a href="Contact.php"><img src="images/me1_07.jpg" alt="" width="127" height="51" border="0" id="Image6" onMouseOver="MM_swapImage('Image6','','images/me2_07.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="127"><a href="joinus_en.php"><img src="images/me1_06.jpg" alt="" width="127" height="51" border="0" id="Image7" onMouseOver="MM_swapImage('Image7','','images/me2_06.jpg',1)" onMouseOut="MM_swapImgRestore()"></a></td> <td width="126" background="images/me1_08.jpg"> </td> <td width="16" background="images/me1_08.jpg"> </td> </tr> </table></div>