| 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/students1/ |
Upload File : |
<?php include("../config/configuser.inc.php");?>
<?
require_once "../config/connectdb.php";
$user=$objResult[Username];
$cllass=$objResult[cllass];
?>
<?
require_once "head.php";
?>
<?
$sql2="SELECT namesc,years,termx FROM config";
$result2 = mysql_query($sql2);
while (list($namesc,$years,$termx) = mysql_fetch_row($result2)) {
$xsc_Name = $namesc;
$years1 = $years;
$termx1=$termx;
}
?>
<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">
<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 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"> <?=$objResult["teachcode"];?> <?=$objResult["name"];?> <?=$objResult["lastname"];?>
<font color="#666666">เข้าสู่ระบบค่ะ </font></font></font></div></td>
</tr>
<tr>
<td><div align="right"><font color="#666666" size="2"><a href="../main.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 type="text/javascript">
function checkNationalID(webForm) {
if(webForm.length != 13) return false;
for(i=0, sum=0; i < 12; i++) sum +=parseFloat(webForm.pin(i))*(13-i);
if((11-sum%11)%10!=parseFloat(webForm.pin(12))) return false;
return true;
}
</script>
</div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="addsaveregis.php" name="webForm" onSubmit="checkNationalID(webForm)">
<tr> กรณีลงไม่ครบจำนวนขอเพิ่ม
<td width="140"><div align="right"><font color="#333333" size="2">รหัสวิชา : Code
:</font></div></td>
<td width="6"><font size="3">
<select name="code">
<option value=""><-- วิชา --></option>
<?php
$strSQL = "SELECT distinct codeteach,roomteach,registeach,name FROM registeacher join teacher on teacher.teachcode=registeacher.registeach where statusteach=1 and roomteach='$cllass' and yearsxx='$years1' and termxx='$termx1'";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["codeteach"];?>"><?php echo $objResuut["codeteach"]." - ชั้น ม. ".$objResuut["roomteach"]."-ครู-".$objResuut["name"]."-ครู-".$objResuut["registeach"];?></option>
<?php
}
?>
</select>
</font></td>
</tr>
<tr>
<td> <font color='red' size='3'></font></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>
</body>
</html>