<html>
<head>
<title>Member</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<style type="text/css">
<!--
.style3 {
    font-size: 18px;
    color: #FF0000;
}
-->
</style>
</head>

<link href="./style.css" rel="stylesheet" type="text/css">


<body bgcolor=#FFFFE0 background="pic/bg2.gif">
    <?
include("config.inc.php");
include(
"header.php");
include(
"function.php");

if(empty(
$Category)){
            echo 
"<center><br>";
            echo 
"<font color=red size=+1> กรุณาระบุ Category ให้ตรงกับที่ web เปิดใช้ด้วยครับ</font>";
            echo 
"<br><br>";
            echo 
"<font color=red size=+1><b>[</b> <a href='javascript:history.back(1)'>กลับไปแก้ไข</a> <b>]</b></font>";
            echo 
"</center>";
        exit();        
    }
    else {
        
$Category CheckCategory($Category);  // ตรวจสอบว่าเป็น Category ที่อนุญาตหรือเปล่า
    
}
?>
       <p>
         <script language="JavaScript">
        function forGot(filesname) {
            props=window.open( filesname, 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=400, height=400' );
        }
       </script>
         </p>
       <center>
    <span class="style3"><b>แก้ไขข้อมูลสมาชิกเว็บบอร์ด</b>
    </font>
    </span><br>

    <form method=post action="editprofile.php?action=login">
    <table border=1 width=230 bordercolor=#1E90FF bgcolor=E0FFFF cellpadding=2 cellspacing=0>
    <tr><td>Username</td><td><input type=text name="uid" size=20 maxlength=20></td></tr>
    <tr><td>Password</td><td><input type=password name="pwd" size=20 maxlength=20></td></tr>
    </table>
    <br>
    <input type="hidden" name="Category" value=<?echo $Category;?>>
    <input type="hidden" name="page" value=<?echo $page;?>>
    <input type=submit value="Log in"> 
    </form>
 <a href="javascript:forGot('forgot.php?Category=$Category')">ลืมรหัสผ่าน</a>
    <hr width="809" color=1E90FF>
    
    </center>
</body>
</html>