| Server IP : 61.19.30.66 / Your IP : 216.73.216.59 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/gpa/pk/ |
Upload File : |
<?
@session_start();
ob_start();
$useradmin = $_SESSION["useradmin"];
if(empty($useradmin))
{
echo "<script>alert('หน้านี้จำกัดเฉพาะ Admin เท่านั้น');history.back();</script>";
exit();
}
require_once "connectdb.php";
require_once "tdate.php";
$sql="select * from adminlogin where useradmin='$useradmin'";
$db_query=mysql_db_query($db,$sql);
$result=mysql_fetch_array($db_query);
$adminname=$result[adminname];
?>
<html>
<head>
<title>-:- ADMIN -:-</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" onLoad="javascript:document.getElementById('useradmin').focus();">
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#003399">
<div align="center"><font color="#FFFFFF" size="+1"><strong>ประเภท ม.1<font color="#FFFF00">ในเขตบริการ</font></strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><div align="right"><font color="#ff0000" size="2"><font color="#333333">ยินดีต้อนรับ
:</font> <font color="#ff0000"><? echo "<u>$adminname</u>"; ?>
<font color="#666666">เข้าสู่ระบบค่ะ </font></font></font></div></td>
</tr>
<tr>
<td><div align="right"><font color="#666666" size="2"><a href="home.php">หน้าหลักระบบ</a>
| <a href="logout.php">ออกจากระบบ</a></font></div></td>
</tr>
<tr>
<td><div align="center">
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table>
<table width="76%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
<script language="JavaScript">
function checkpost()
{
var v1 = document.webForm.idtest.value;
var v2 = document.webForm.name.value;
var v3 = document.webForm.surname.value;
var v4 = document.webForm.room.value;
var v5 = document.webForm.schoolout.value;
if( v1.length=='')
{
alert("กรุณาใส่เลขประจำตัวสอบ");
document.webForm.idtest.focus();
return false;
}
else if( v2.length=='')
{
alert("กรุณาระบุุชื่อ");
document.webForm.name.focus();
return false;
}
else if( v3.length=='')
{
alert("กรุณาระบุุนามสกุล");
document.webForm.surname.focus();
return false;
}
else if( v4.length=='')
{
alert("กรุณาระบุุห้องสอบ");
document.webForm.room.focus();
return false;
}
else if( v5.length=='')
{
alert("กรุณาระบุโรงเรียนที่จบ");
document.webForm.schoolout.focus();
return false;
}
else
return true;
}
</script>
</div>
<table width="62%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="addsaveadmin.php" name="webForm" onSubmit="return checkpost()">
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">เลขที่นั่งสอบ
:</font></div></td>
<td width="355"><font size="3">
<input name=idtest id=idtest type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">เพศ
:</font></div></td>
<td width="355"><font size="3">
<input name=sex id=sex type="radio" class="input" size=35 value="1">ชาย
<input name=sex id=sex type="radio" class="input" size=35 value="2">หญิง
</font></td>
</tr>
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">ชื่อ
:</font></div></td>
<td width="355"><font size="3">
<input name=name id=name type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">นามสกุล
:</font></div></td>
<td><font size="3">
<input name=surname id=surname type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เลขประชาชน
:</font></div></td>
<td><font size="3">
<input name=pin id=pin type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">ห้องสอบ
:</font></div></td>
<td><font size="3">
<input name=room id=room type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">โรงเรียนที่จบ
:</font></div></td>
<td><font size="3">
<input name=schoolout id=schoolout type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">จังหวัด
:</font></div></td>
<td><font size="3">
<input name=distric id=distric type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td> </td>
<td><input name=submit type=submit class=submit value=เพิ่มข้อมูล >
<input name=submit2 type=reset class=submit value=ยกเลิกข้อมูล ></td>
</tr>
</form>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"><? echo "<font size=2 color=#ffffff>$footerweb</font>"; ?></div></td>
</tr>
</table>
<?
require_once "homeadmin.php";
?>
</body>
</html>