| 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/ |
Upload File : |
<?
require_once "head.php";
require_once "config/connectdb.php";
?>
<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></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="teach.php">หน้าหลักระบบ</a>
| <a href="logout.php">ออกจากระบบ</a></font></div></td>
</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.name.value;
var v2 = document.webForm.surname.value;
var v3 = document.webForm.room.value;
if( v1.length==0)
{
alert("กรุณาใส่ชื่อคุณด้วยค่ะ");
document.webForm.name.focus();
return false;
}
else if( v2.length==0)
{
alert("กรุณาใส่ นามสกุล คุณด้วยค่ะ");
document.webForm.surname.focus();
return false;
}
else if( v3.length==0)
{
alert("กรุณาใส่ ห้อง คุณด้วยค่ะ");
document.webForm.room.focus();
return false;
}
else
return true;
}
</script>
<font size="+1"><strong><font color="#003366" size="2">
<?php
$sql_1="select * from teacher where idt = '$_GET[id]'";
$db_query=mysql_db_query($db,$sql_1);
$result1=mysql_fetch_array($db_query);
$idmember =$result1['idt'];
$Prefix =$result1['Prefix'];
$Name =$result1['name'];
$surname =$result1['lastname'];
$birthday =$result1['birthday'];
$Status =$result1['Status'];
$grupsara =$result1['grupsara'];
$Password =$result1['password'];
$sex =$result1['sext'];
$status2 =$result1['status2'];
$header =$result1['header'];
?>
</font></strong></font> </div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="editteachsave.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=name id=name style="border: 1px #0000FF solid" type=text class="input" size=35 value='<? echo $Name; ?>'>
<input type="hidden" name="idmember" value=<? echo "$idmember"; ?>>
</font></td>
</font></div></td>
<td><font size="3">
<input name=lastname id=lastname style="border: 1px #0000FF solid" type=text class="input" size=35 value='<? echo $surname; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เลขประชาชน
:</font></div></td>
<td><font size="3">
<input name=password id=password type=text class="input" size=35 value='<? echo $Password ; ?>'>
<td><font size="3">
<input name=engname id=engname type=text class="input" size=35 value='<? echo $engname; ?>'>
</font></td>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">วว/ดด/ปปปป
:</font></div></td>
<td><font size="3">
<input name=birthday id=birthday type=text class="input" size=35 value='<? echo $birthday; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">คำนำหน้า
:</font></div></td>
<td><font size="3">
<input name=Prefix id=Prefix type=text class="input" size=35 value='<? echo $Prefix; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">กลุ่มสาระ
:</font></div></td>
<td><font size="3">
<input name=grupsara id=grupsara type=text class="input" size=35 value='<? echo $grupsara ; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">ผู้ใช้
:</font></div></td>
<td><font size="3">
<label>
<input type="radio" name="Status" value="1" <? if($Status=="ADMIN"){ echo "checked"; }?>>
ADMIN</label>
<input type="radio" name="Status" value="2"<? if($Status=="USER"){ echo "checked"; }?>>
<label>USER</label>
</font></td>
</tr>
<br/>
<br/>
<tr> <td><div align="right">เพศ</td>
<td><p>
<label>
<input type="radio" name="sext" value="1" <? if($sex=="1"){ echo "checked"; }?>>
</label>
<input type="radio" name="sext" value="2"<? if($sex=="2"){ echo "checked"; }?>>
<label>หญิง</label>
<br/>
<br/>
</p></td>
</tr>
<tr> <td><div align="right">สถานะ</td>
<td><p>
<label>
<input type="radio" name="status2" value="0" <? if($status2=="1"){ echo "checked"; }?>>
เปิด</label>
<input type="radio" name="status2" value=""<? if($status2!="1"){ echo "checked"; }?>>
<label>ปิด</label>
<br/>
<br/>
</p></td>
</tr>
<tr> <td><div align="right">ตำแหน่ง</td>
<td><p>
<label>
<input type="radio" name="header" value="1" <? if($header=="1"){ echo "checked"; }?>>
หัวหน้ากลุ่ม</label>
<input type="radio" name="header" value=""<? if($header==""){ echo "checked"; }?>>
<label>ครู</label>
<br/>
<br/>
</p></td>
</tr>
<tr>
<td> </td>
<td><font size="3">
<input name="submit" type="submit" class="submit" value="แก้ไขรายการ!">
</font></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>
</body>
</html>