<iframe src="login.php" style="width:200;height:220;border:0px solid #fff;" scrolling="no" marginheight="0" marginwidth="0"></iframe>
<? session_start(); mysql_connect("localhost","root","root"); mysql_select_db("lekmansion"); $strSQL = "SELECT * FROM customer WHERE cus_id = '".$_SESSION['cus_id']."' "; $objQuery = mysql_query($strSQL); $objResult = mysql_fetch_array($objQuery); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Login</title> <style type="text/css"> <!-- .style2 {color: #003300} --> </style> </head> <body> <table width="200" border="0" align="left" valign="top"> <tr> <td width="195" height="191" align="center" valign="top" bgcolor="#CCCCFF" scope="col"><form id="form1" name="form1" method="post" action="checkmember.php"> <table width="191" border="0"> <tr> <th width="116" scope="col">ยินดีต้อนรับคุณ</th> <th width="65" scope="col"><?=$objResult["cus_log"];?></th> </tr> </table> <label></label> <p align="left" class="style2"><a href="editcustomer.php" target="_top">แก้ไขข้อมูล</a></p> <p align="left" class="style2"><a href="editpasscustomer.php" target="_top">เปลี่ยนรหัสผ่าน</a></p> <p align="left" class="style2"><a href="restroomstatus.php" target="_top">ข้อมูลการจองห้องพัก</a></p> <p align="left" class="style2"><a href="informpayment.php" target="_top">แจ้งการโอนเงิน</a></p> <p align="left" class="style2"><a href="logout.php" target="_top">ออกจากระบบ</a></p> <label></label> <label></label> <label></label> </form> <p> </p> </td> </tr> </table> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Login</title> <style type="text/css"> <!-- .style2 {color: #003300} body { background-image: url(images/web-background-099.jpg); } --> </style> </head> <body> <table width="200" border="0" align="center" valign="top"> <tr> <td width="195" height="191" align="center" valign="top" bgcolor="#CCCCFF" scope="col"><form id="form1" name="form1" method="post" action="checklogin.php"> <p class="style2">ชื่อล็อกอิน</p> <label> <input type="text" name="user" id="user" /> </label> <p class="style2">รหัสผ่าน</p> <label> <input type="password" name="pass" id="pass" /> </label> <label> <br /> <br /> <input type="submit" name="button" id="button" value="เข้าสู่ระบบ" /> </label> <label></label> <input type="button" onclick="window.location.href='registration.php'" value="สมัครสมาชิก" /> </form> <p> </p> </td> </tr> </table> </body> </html>
<? session_start(); mysql_connect("localhost","root","root"); mysql_select_db("lekmansion"); $strSQL = "SELECT * FROM customer WHERE cus_log = '".trim($_POST['user'])."' and cus_pass = '".trim($_POST['pass'])."'"; $objQuery = mysql_query($strSQL); $objResult = mysql_fetch_array($objQuery); if(!$objResult) { echo "Username and Password Incorrect!"; print"<meta http-equiv=refresh content=1;URL=login.php>"; } else { $_SESSION["cus_id"] = $objResult["cus_id"]; //$_SESSION["Status"] = $objResult["Status"]; session_write_close(); print"<meta http-equiv=refresh content=1;URL=loginmember.php>"; } mysql_close(); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง