|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_eoffice/application/CA/admin/ |
Upload File : |
<?
session_start() ;
if($_POST[user]){
if($_POST[user]=='admin'&&$_POST[password]=='admin'){
session_register('keylogin');
$_SESSION[keylogin]="1";
echo"<script>window.location='../'</script>";
} else{
$str=" username password ไม่ถูกต้อง !";
}
}
?>
<!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>
.preload{
border: 1px solid #999;
margin: 0px;
position:relative;
color: #000;
background-color: #EFECFF;
padding-right: 5px;
padding-left: 5px;
padding-top: 2px;
padding-bottom: 2px;
width:400px;
height:150px;
}
body {
background-color: #EFECFF;
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
body,td,th {
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
}
.com{
color:#F00;
}
</style>
</head>
<body >
<form id="form1" name="form1" method="post" action="?">
<center>
<div class="preload" >
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td colspan="2" style="color:#F00"><?=$str?></td>
</tr>
<tr>
<td width="30%" align="right"><strong>user name: </strong></td>
<td width="70%"><input type="text" name="user" id="user" /></td>
</tr>
<tr>
<td align="right"><strong>password: </strong></td>
<td><input type="password" name="password" id="password" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="button" id="button" value="ตกลง" style="font-size:12px"/>
<input type="submit" name="button2" id="button2" value="ยกเลิก" style="font-size:12px" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</div></center>
</form>
</body>
</html>