?
Path : /home/admin/public_html/old/promice/ |
Current File : /home/admin/public_html/old/promice/Reply.php |
<? include("header.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>ชื่อสมาชิก :</td> <td width=68%><input name=usermem type=text size=15></td> </tr> <tr> <td align=right>รหัสผ่าน :</td> <td><input name=passmem type=password size=15></td> </tr> <tr> <td> </td> <td><input name=submit type=submit class=submit value=เข้าสู่ระบบ!></td> </tr> <tr> <td> </td> <td>! <a href=ForgetPass.php>ลืมรหัสผ่าน</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>"; } if($_FILES["productsphoto"]["name"] != "") { $name=$_FILES['productsphoto']['name']; $tmp=$_FILES['productsphoto']["tmp_name"]; $date_time=date("Y-m-d H:i:s"); $oldname=explode(".",$name); $ext = ""; $ext = ".".$oldname[count($oldname)-1]; $photo_1 =date('YmdHis').$ext; copy($tmp,"IMG/".$photo_1); }else{ $photo_1 = ""; } mysql_query("INSERT INTO webboard_ans (id, idwb,message,name,email,photo1,phone,dateregist,timeregist) values('','$_POST[id_wb]','$_POST[message]','$_POST[name]','$_POST[email]','$photo_1','$_POST[phone]','$e_date', '$etime')") or die ("Cannot Add Database"); ?> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- fwtable fwsrc="Untitled" fwbase="home.jpg" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" --> <tr> <td><img src="images/spacer.gif" width="423" height="1" border="0" alt=""></td> <td><img src="images/spacer.gif" width="16" height="1" border="0" alt=""></td> <td><img src="images/spacer.gif" width="225" height="1" border="0" alt=""></td> <td><img src="images/spacer.gif" width="315" height="1" border="0" alt=""></td> <td><img src="images/spacer.gif" width="21" height="1" border="0" alt=""></td> <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td> </tr> <tr> <td colspan="5" bgcolor="#FFFFFF"><div align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="190"> </td> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td> </td> </tr> <tr> <td><table width="99%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><table width="100%" border="0" cellspacing="4" cellpadding="4"> <tr> <td><table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td><table width="17%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="38%" background="images/bg.jpg"><div align="center"><a href="Webboard.php"><img src="alltopic.jpg" alt="" width="49" height="31" border="0" /></a></div></td> <td width="62%" background="images/bg.jpg"><div align="center"><a href="NewTopic.php"><img src="newstopic.jpg" alt="" width="78" height="31" border="0" /></a></div></td> </tr> </table></td> </tr> <tr> <td><div align="center"><img src="images/ajax-loader.gif" width="66" height="66"> <br> <strong>Comment <? echo "<u>$_POST[id_wb]</u>"; ?> had save on system</strong><br> Please wait a minute .</div></td> </tr> </table></td> </tr> </table> <strong></strong></td> </tr> </table></td> </tr> </table></td> </tr> </table> </div></td> <td><img src="images/spacer.gif" width="1" height="25" border="0" alt=""></td> </tr> </table><? include("footer.php");?> </body> </html>