| 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/datastudent/ |
Upload File : |
<?
session_start();
if($_SESSION['idt'] == "")
{
echo "Please Login!";
exit();
}
if($_SESSION['Status'] != "USER")
{
echo "This page for User only!";
exit();
}
mysql_connect("localhost","root","klw3322");
mysql_select_db("ssk4");
mysql_query("SET character_set_results=tis620");//ตั้งค่าการดึงข้อมูลออกมาให้เป็น tis620
mysql_query("SET character_set_client=tis620");//ตั้งค่าการส่งข้อมุลลงฐานข้อมูลออกมาให้ เป็น tis620
mysql_query("SET character_set_connection=tis620");//ตั้งค่าการติดต่อฐานข้อมูลให้เป็น tis6
$strSQL = "SELECT * FROM teacher WHERE idt = '".$_SESSION['idt']."' ";
$objQuery = mysql_query($strSQL);
$objResult = mysql_fetch_array($objQuery);
?>
<?
require_once "connectdb.php";
require_once "tdate.php";
?>
<html>
<head>
<title>ระบบงานวิชาการ</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<img src="../images/Untitled-1_031.gif" width="1010" height="101">
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#003399">
<div align="center"><font color="#FFFFFF" size="+1"><strong>ระบบสารสนเทศลูกเสือ-เนตรนารี<font color="#FFFF00">สำนักงานลูกเสือเขตพื้นที่.ศรีสะเกษ เขต4</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="home.php">หน้าหลักระบบ</a>
| <a href="logout.php">ออกจากระบบ</a></font></div></td>
</tr>
<tr>
<td><div align="center">
</td>
</tr>
</table>
<table width="100%" 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]'";
$db_query=mysql_db_query($db,$sql_1);
$result1=mysql_fetch_array($db_query);
$idmember =$result1['id'];
$name =$result1['name'];
$surname =$result1['surname'];
$email =$result1['email'];
$distric =$result1['distric'];
$idtest =$result1['idtest'];
$room =$result1['room'];
$schoolout =$result1['schoolout'];
$pin =$result1['pin'];
$sex =$result1['sex'];
/////////////////
$sambtc =$result1['sambtc'];
$samatc =$result1['samatc'];
$samalt =$result1['samalt'];
$samlt =$result1['samlt'];
//////////////////////////////////////////////////
$sabtc =$result1['sabtc'];
$saatc =$result1['saatc'];
$saalt =$result1['saalt'];
$salt =$result1['salt'];
$bsabtc =$result1['bsabtc'];
$bsaatc =$result1['bsaatc'];
$bsaalt =$result1['bsaalt'];
$bsalt =$result1['bsalt'];
$vsabtc =$result1['vsabtc'];
$vsaatc =$result1['vsaatc'];
$vsaalt =$result1['vsaalt'];
$vsalt =$result1['vsalt'];
//////////////////////////////////////////////////////////
/////////////////
$psambtc =$result1['psambtc'];
$psamatc =$result1['psamatc'];
$psamalt =$result1['psamalt'];
$psamlt =$result1['psamlt'];
//////////////////////////////////////////////////
$psabtc =$result1['psabtc'];
$psaatc =$result1['psaatc'];
$psaalt =$result1['psaalt'];
$psalt =$result1['psalt'];
$pbsabtc =$result1['pbsabtc'];
$pbsaatc =$result1['pbsaatc'];
$pbsaalt =$result1['pbsaalt'];
$pbsalt =$result1['pbsalt'];
$pvsabtc =$result1['pvsabtc'];
$pvsaatc =$result1['pvsaatc'];
$pvsaalt =$result1['pvsaalt'];
$pvsalt =$result1['pvsalt'];
$wonttiger =$result1['wonttiger'];
$wontlearn =$result1['wontlearn'];
?>
</font></strong></font> </div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="editsave.php" name="webForm" onSubmit="return checkpost()">
<tr>
<td width="100%"><div align="right"><font color="#333333" size="2">ชื่อ
:</font></div></td>
<td width="50"><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">
<input name=surname id=surname type=text class="input" size=35 value='<? echo $surname; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="2">เลขประชาชน
</font></div></td>
<td><font size="3">
<input name=pin id=pin type=text class="input" size=35 value='<? echo $pin; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="2">วุฒิทางลูกเสือก่อนปี 2553 ลูกเสือสำรอง</font></div></td>
<td><font size="2"> B.T.C.
<input name=sambtc id=sambtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ</font><font color='red'> <? echo $sambtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=samatc id=samatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ</font><font color='red'> <? echo $samatc; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=samalt id=samalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ</font><font color='red'> <? echo $samalt; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T. <input name=samlt id=samlt type="checkbox" class="input" size=35 value='L.T.' />สถานะ</font><font color='red'> <? echo $samlt; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="2">ลูกเสิอสามัญ</font></div></td>
<td><font size="2"> B.T.C.
<input name=sabtc id=sabtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ</font><font color='red'> <? echo $sabtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=saatc id=saatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ</font><font color='red'> <? echo $saatc; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=saalt id=saalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ</font><font color='red'> <? echo $saalt; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T.<input name=salt id=salt type="checkbox" class="input" size=35 value='L.T.' />สถานะ</font><font color='red'> <? echo $salt; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="2">ลูกเสิอสามัญรุ่นใหญ่</font></div></td>
<td><font size="2"> B.T.C.
<input name=bsabtc id=bsabtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ</font><font color='red'> <? echo $bsabtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=bsaatc id=bsaatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ</font><font color='red'> <? echo $bsaatc ; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=bsaalt id=bsaalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ</font><font color='red'> <? echo $bsaalt ; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T.<input name=bsalt id=bsalt type="checkbox" class="input" size=35 value='L.T.' />สถานะ</font><font color='red'> <? echo $bsalt ; ?></font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="2">ลูกเสิอวิสามัญ</font></div></td>
<td><font size="2"> B.T.C.
<input name=vsabtc id=vsabtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ</font><font color='red'> <? echo $vsabtc ; ?></font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=vsaatc id=vsaatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ</font><font color='red'> <? echo $vsaatc ; ?></font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=vsaalt id=vsaalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ</font><font color='red'> <? echo $vsaalt ; ?></font></td>
</tr>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T.<input name=vsalt id=vsalt type="checkbox" class="input" size=35 value='L.T.' />สถานะ</font><font color='red'> <? echo $vsalt ; ?></font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#999999"> <font color='#FFFFFF'size='3'>ตรวจสอบความถูกต้องก่อนบันทึก</font></td>
<td colspan="2" bgcolor="#999999"> </td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td><div align="right"><font color="#000099" size="2">วุฒิทางลูกเสือปี 2553 - ปัจจุบัน ลูกเสือสำรอง</font></div></td>
<td><font size="2"> B.T.C.
<input name=psambtc id=psambtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ </font><font color='red'><? echo $psambtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=psamatc id=psamatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ<? echo $psamatc; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=psamalt id=psamalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ<? echo $psamalt; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T. <input name=psamlt id=psamlt type="checkbox" class="input" size=35 value='L.T.' />สถานะ<? echo $psamlt; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#000099" size="2">ลูกเสิอสามัญ</font></div></td>
<td><font size="2"> B.T.C.
<input name=psabtc id=psabtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ<? echo $psabtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=psaatc id=psaatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ<? echo $psaatc; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=psaalt id=psaalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ<? echo $psaalt; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T.<input name=psalt id=psalt type="checkbox" class="input" size=35 value='L.T.' />สถานะ<? echo $psalt; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#000099" size="2">ลูกเสิอสามัญรุ่นใหญ่</font></div></td>
<td><font size="2"> B.T.C.
<input name=pbsabtc id=pbsabtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ<? echo $pbsabtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=pbsaatc id=pbsaatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ<? echo $pbsaatc; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=pbsaalt id=pbsaalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ<? echo $pbsaalt; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T.<input name=pbsalt id=pbsalt type="checkbox" class="input" size=35 value='L.T.' />สถานะ<? echo $pbsalt; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#000099" size="2">ลูกเสิอวิสามัญ</font></div></td>
<td><font size="2"> B.T.C.
<input name=pvsabtc id=pvsabtc type="checkbox" class="input" size=35 value='B.T.C.' />สถานะ<? echo $pvsabtc; ?>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">
</font></div></td>
<td><font size="2"> A.T.C.
<input name=pvsaatc id=pvsatc type="checkbox" class="input" size=35 value='A.T.C.' />สถานะ<? echo $pvsaatc; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> A.L.T.<input name=pvsaalt id=pvsaalt type="checkbox" class="input" size=35 value='A.L.T.' />สถานะ<? echo $pvsaalt; ?>
</font></td>
</tr>
<tr>
<td></td>
<td><font size="2"> L.T.<input name=pvsalt id=pvsalt type="checkbox" class="input" size=35 value='L.T.' />สถานะ <? echo $pvsalt; ?>
</font></td>
</tr>
<tr>
<td colspan="2" bgcolor="#999999"> <font color='#FFFFFF'size='3'>ความต้องการฝึกอบรม</font></td>
<td colspan="2" bgcolor="#999999"> </td>
</tr>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">ระบุ ลูกเสือ
:</font></div></td>
<td width="355"><font size="3">
<input name=wonttiger id=wonttiger type="radio" class="input" size=35 value="1">สำรอง
<input name=wonttiger id=wonttiger type="radio" class="input" size=35 value="2">สามัญ
<input name=wonttiger id=wonttiger type="radio" class="input" size=35 value="3">สามัญรุ่นใหญ่
<input name=wonttiger id=wonttiger type="radio" class="input" size=35 value="4">วิสามัญ
</font>สถานะ <font color='red'> <? echo $wonttiger; ?></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=wontlearn id=wontlearn type="radio" class="input" size=35 value="B.T.C.">B.T.C.
<input name=wontlearn id=wontlearn type="radio" class="input" size=35 value="A.T.C.">A.T.C.
<input name=wontlearn id=wontlearn type="radio" class="input" size=35 value="A.L.T.">A.L.T.
<input name=wontlearn id=wontlearn type="radio" class="input" size=35 value="L.T.">L.T.
</font>สถานะ <font color='red'><? echo $wontlearn; ?></font></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>