| 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/admissions3/regis4/ |
Upload File : |
<?php include("config/configuser.inc.php");?>
<?
require_once "head.php";
require_once "config/connectdb.php";
$dd= $_SESSION['id'];
?>
<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="#5A697E" 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 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["name"];?> <?=$objResult["surname"];?>
<font color="#666666">เข้าสู่ระบบค่ะ </font></font></font></div></td>
</tr>
<tr>
<td><div align="right"><font color="#666666" size="2"><a href="user_page.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">
</table>
<table width="76%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
<font size="+1"><strong><font color="#003366" size="2">
<?php
$sql_1="select * from member where id ='$_GET[id]' and idtest<1";
$db_query=mysql_db_query($db,$sql_1);
$result1=mysql_fetch_array($db_query);
$idmember =$result1['id'];
$prefix =$result1['prefix'];
$name =$result1['name'];
$surname =$result1['surname'];
$pin =$result1['pin'];
$sex =$result1['sex'];
$phone =$result1['phone'];
$distric =$result1['distric'];
$schoolout =$result1['schoolout'];
$wegh =$result1['wegh'];
$tall =$result1['tall'];
$brood =$result1['brood'];
$father =$result1['father'];
$fatherwm =$result1['fatherwm'];
$mather =$result1['mather'];
$fatherw =$result1['fatherw'];
$matherw =$result1['matherw'];
$matherwm =$result1['matherwm'];
$homeid =$result1['homeid'];
$muid =$result1['muid'];
$tumbol =$result1['tumbol'];
$ampher =$result1['ampher'];
$districs =$result1['districs'];
$bird =$result1['bird'];
$boodda =$result1['boodda'];
$namee =$result1['namee'];
$surnamee =$result1['surnamee'];
$idstudent =$result1['idstudent'];
$pan =$result1['pan'];
$pan2 =$result1['pan2'];
$pan3 =$result1['pan3'];
$crsql="SELECT (idtpy_name) FROM tpyad where idtpy_id='$idstudent' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$nametpy=$dcrd[0];
$crsql="SELECT (tpy_report) FROM tpyroom where tpy_room='$pan' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namepan=$dcrd[0];
$crsql="SELECT (tpy_report) FROM tpyroom where tpy_room='$pan2' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namepan2=$dcrd[0];
$crsql="SELECT (tpy_report) FROM tpyroom where tpy_room='$pan3' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$namepan3=$dcrd[0];
?>
</font></strong></font> </div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="editsaveregis.php" name ="checkForm" onSubmit="return check()">
<tr>
<td width="140"><div align="right"><font color="red" size="+2">ประเภทที่สมัคร
:</font></div></td>
<td align="left">
<select name="idstudent">
<option value="<? echo $idstudent; ?>"><? echo $idstudent; ?> <? echo $nametpy; ?></option>
<?php
$strSQL = "SELECT * FROM tpyad where idtpy_status=1";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["idtpy"];?>"><?php echo $objResuut["idtpy_name"]." ".$objResuut["idtpy_id"];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="red" size="+2">ห้องที่ประสงค์เข้าเรียน 1
:</font></div></td>
<td align="left">
<select name="pan">
<option value="<? echo $pan; ?>"><? echo $pan; ?> <? echo $namepan; ?></option>
<?php
$strSQL = "SELECT * FROM tpyroom where tpy_open<3 and tpy_room != '$pan'";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["tpy_room"];?>"><?php echo $objResuut["tpy_report"]." ค่าเทอม".$objResuut["tpy_money"];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="red" size="+2">ห้องที่ประสงค์เข้าเรียน 2
:</font></div></td>
<td align="left">
<select name="pan2">
<option value="<? echo $pan2; ?>"><? echo $pan2; ?> <? echo $namepan2; ?></option>
<?php
$strSQL = "SELECT * FROM tpyroom where tpy_open<3 and tpy_room != '$pan2'";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["tpy_room"];?>"><?php echo $objResuut["tpy_report"]." ค่าเทอม".$objResuut["tpy_money"];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="red" size="+2">ห้องที่ประสงค์เข้าเรียน 3
:</font></div></td>
<td align="left">
<select name="pan3">
<option value="<? echo $pan3; ?>"><? echo $pan3; ?> <? echo $namepan3; ?></option>
<?php
$strSQL = "SELECT * FROM tpyroom where tpy_open<3 and tpy_room != '$pan3'";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["tpy_room"];?>"><?php echo $objResuut["tpy_report"]." ค่าเทอม".$objResuut["tpy_money"];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td width="300"><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 value='<? echo $name; ?>'>
<input type="hidden" name="idmember" value=<? echo "$idmember"; ?>>
</font></td>
:</font></div></td>
<td><font size="3">
</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 value='<? echo $surname; ?>'>
</font></td>
</tr>
<tr>
<td> </td>
<td><font size="3">
<input name="submit" type="submit" class="submit" value="บันทึก!">
<script language="javascript">
function check() {
if(document.checkForm.pan.value=="") {
alert("ห้องที่ประสงค์เรียนลำดับที่ 1") ;
document.checkForm.pan.focus() ;
return false ;
}
else
return true ;
}
</script>
</font></td>
</tr>
</form>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td> การจัดห้องเรียนจะยึดห้องที่ประสงค์เข้าเรียน ลำดับที่ 1 เป็นหลัก ถ้าผลการตัดสินลำดับที่ 1 ไม่ผ่านการคัดเลือก จะนำลำดับที่ประสงค์เข้าเรียนลำดับที่ 2 และ 3 ตามลำดับ </td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"><? echo "<font size=2 color=#ffffff>$footerweb</font>"; ?></div></td>
</tr>
</table>
</body>
</html>