| 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/ |
Upload File : |
<?
require_once "connectdb.php";
require_once "head.php";
$crsql="SELECT (idtpy_name) FROM tpyad where idtpy_id='$_GET[idr]' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$ty=$dcrd[0];
$crsql="SELECT (idtpy_status) FROM tpyad where idtpy_id='$_GET[idr]' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$idtpy_status=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent<5";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$countdat=$dcrd[0];
?>
<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
<?
function ThDate()
{
//วันภาษาไทย
$ThDay = array ( "อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัส", "ศุกร์", "เสาร์" );
//เดือนภาษาไทย
$ThMonth = array ( "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน","พฤษภาคม", "มิถุนายน", "กรกฏาคม", "สิงหาคม","กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม" );
//กำหนดคุณสมบัติ
$week = date( "w" ); // ค่าวันในสัปดาห์ (0-6)
$months = date( "m" )-1; // ค่าเดือน (1-12)
$day = date( "d" ); // ค่าวันที่(1-31)
$years = date( "Y" )+543; // ค่า ค.ศ.บวก 543 ทำให้เป็น ค.ศ.
return "วัน$ThDay[$week]
ที่ $day
เดือน $ThMonth[$months]
พ.ศ. $years";
}
echo ThDate(); // แสดงวันที่
$signup = date("j/n/").(date("Y")+543) ;
?>
<font color="#FFFF00"></font></strong></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">
<td><div align="center">
</div>
<table width="100%" border="0" align="left" cellpadding="1" cellspacing="1">
<form method="post" action="addsaves.php" name ="checkForm" onSubmit="return check()">
<tr>
<td width="140"><div align="right"><font color="red" size="+2">วันที่
:</font></div></td>
<td width="355"><font size="+3" color=red>
<input name=datin id=datin type=text class="input" readonly='readonly' size=20 value='
<? if($countdat <= 180)
{
echo "20/03/2568";
}
else if($countdat <= 330)
{
echo "21/03/2568";
}
else if($countdat <= 480)
{
echo "22/03/2568";
}
else if($countdat <= 630)
{
echo "24/03/2568";
}
else
{
echo "24/03/2568";
}
?>
'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="red" size="+2">ประเภทที่สมัคร
:</font></div></td>
<td align="left">
<select name="idstudent">
<option value="">ประเภทที่สมัคร</option>
<?php
$strSQL = "SELECT * FROM tpyad where idtpy_status=1 and idtpy_id < 5 order by idtpy_id asc";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["idtpy"];?>"><?php echo $objResuut["idtpy_name"];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="red" size="+2">แผนการเรียน
:</font></div></td>
<td align="left">
<select name="pan">
<option value="">แผนการเรียน</option>
<?php
$strSQL = "SELECT * FROM tpyroom where tpy_open=5 order by tpy_room asc";
$objQuery = mysql_query($strSQL);
while($objResuut = mysql_fetch_array($objQuery))
{
?>
<option value="<?php echo $objResuut["tpy_id"];?>"><?php echo $objResuut["tpy_report"];?></option>
<?php
}
?>
</select>
</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</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=13 maxlength="13" value='<? echo $_POST[idcard]?>' readonly=readonly>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">เพศ
:</font></div></td>
<td>
<select name="sex">
<option value="" >เพศ</option>
<option value="1">ชาย</option>
<option value="2">หญิง</option>
</select>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</td>
</tr>
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">คำนำหน้า
:</font></div></td>
<td>
<select name="prefix">
<option value="" >เลือก</option>
<option value="เด็กชาย">เด็กชาย</option>
<option value="เด็กหญิง">เด็กหญิง</option>
</select>
</font></td>
</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">
</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">
</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">วัน/เดือน/ปีเกิด
:</font></div></td>
<td><font size="3">
<input name=bird id=bird type=text class="input" size=13 maxlength="13">ตัวอย่าง 01/02/2554
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">น้ำหนัก
:</font></div></td>
<td><font size="3">
<input name=wegh id=wegh type=text class="input" size=3>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">ส่วนสูง
:</font></div></td>
<td><font size="3">
<input name=tall id=tall type=text class="input" size=3>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">gpa
:</font></div></td>
<td><font size="3">
<input name=gpa id=gpa type=text class="input" size=3>
</font> สะสม</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เกรดเฉลี่ย คณิต
:</font></div></td>
<td><font size="3">
<input name=gpam id=gpam type=text class="input" size=3>
</font> สะสม</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เกรดเฉลี่ย วิทย์
:</font></div></td>
<td><font size="3">
<input name=gpasi id=gpasi type=text class="input" size=3>
</font> สะสม</td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เฉลี่ย ภาษาอังกฤษ
:</font></div></td>
<td><font size="3">
<input name=gpae id=gpae type=text class="input" size=3>
</font> สะสม</td>
</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 placeholder="ไม่ต้องมีคำว่าโรงเรียนนำหน้า">
</font></td>
<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><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=father id=father type=text class="input" size=35>
</font></td>
<td><div align="right"><font color="#333333" size="2">อาชีพ
:</font></div></td>
<td><font size="3">
<input name=fatherw id=fatherw 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">
</font></td>
<td><div align="right"><font color="#333333" size="2">
:</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=mather id=mather type=text class="input" size=35>
</font></td>
<td><div align="right"><font color="#333333" size="2">อาชีพ
:</font></div></td>
<td><font size="3">
<input name=matherw id=matherw 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">
</font></td>
<td><div align="right"><font color="#333333" size="2">
:</font></div></td>
<td><font size="3">
</font></td>
</tr>
<tr>
<td></td>
<td><font size="3">
</td>
<td></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=homeid id=homeid type=text class="input" size=35>
</font></td>
<td><div align="right"><font color="#333333" size="2">หมู่ที่
:</font></div></td>
<td><font size="3">
<input name=muid id=muid 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">
</font></td>
<td><div align="right"><font color="#333333" size="2">
:</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=tumbol id=tumbol type=text class="input" size=35>
</font></td>
<td><div align="right"><font color="#333333" size="2">อำเภอ
:</font></div></td>
<td><font size="3">
<input name=ampher id=ampher 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=districs id=districs type=text class="input" size=35>
</font></td>
<td><div align="right"><font color="#333333" size="2">รหัสไปรษณี
:</font></div></td>
<td><font size="3">
<input name=number id=number 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>
<select name="statuss">
<option value="" >ที่อยู่ตั้งอยู่</option>
<option value="1">ในเขตบริการโรงเรียน</option>
<option value="2">นอกเขตบริการโรงเรียน</option>
</select>
</font></td>
</tr>
<tr>
<td>เขตบริการ</td>
<td>
ต.หนองหญ้าลาด หมู่ที่ 1, 2, 3, 4, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17
<br>ต.น้ำอ้อม หมู่ที่ 1, 2, 3, 5, 7, 8, 10, 11, 13, 14, 15
</td>
<td>
</td>
<tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เบอร์โทรศัพท1์
:</font></div></td>
<td><font size="3">
<input name=phone id=phone type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">เบอร์โทรศัพท2์
:</font></div></td>
<td><font size="3">
<input name=phone2 id=phone2 type=text class="input" size=35>
</font></td>
</tr>
<tr>
<td> </td>
<td><input name=submit type=submit class=submit value=บันทึก >
<script language="javascript">
function check() {
if(document.checkForm.sex.value=="") {
alert("กรุณาระบุเพศ") ;
document.checkForm.sex.focus() ;
return false ;
}
else if(document.checkForm.name.value=="") {
alert("กรุณาระบุชื่อ") ;
document.checkForm.name.focus() ;
return false ;
}
else if(document.checkForm.surname.value=="") {
alert("กรุณาระบุ gpa") ;
document.checkForm.surname.focus() ;
return false ;
}
else if(document.checkForm.schoolout.value=="") {
alert("ระบุโรงเรียนที่จบ") ;
document.checkForm.schoolout.focus() ;
return false ;
}
else if(document.checkForm.idstudent.value=="") {
alert("เลือกประเภทที่สมัคร") ;
document.checkForm.idstudent.focus() ;
return false ;
}
else if(document.checkForm.statuss.value=="") {
alert("ที่อยู่ตั้งอยู่ในหรือนอกเขตบริการโรงเรียน") ;
document.checkForm.statuss.focus() ;
return false ;
}
else if(document.checkForm.phone2.value=="") {
alert("เบอร์โทรศัพท์ที่ติดต่อได้") ;
document.checkForm.phone2.focus() ;
return false ;
}
else if(document.checkForm.pan.value=="") {
alert("เลือกแผนการเรียน") ;
document.checkForm.pan.focus() ;
return false ;
}
else
return true ;
}
</script>
<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>