403Webshell
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/Secure/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/Secure/edit1teach.php
<?php include("../config/configuser.inc.php");?>
<?
require_once "../config/connectdb.php";
require_once "../head.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>
<html>

<body>

<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">ระบบงานวิชาการ</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["Username"];?><?=$objResult["Name"];?> <?=$objResult["lastname"];?>
			  <?
			  $cllass=$objResult["cllass"];
			  $room=$objResult["room"];
			  $idu=$objResult["Username"];
			  $signup =(date("Y")+543).date("/n/j") ;
			  $time = date("H:i:s");
			  ?>
              <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">
              </td>
			   </tr>
              </table>
              <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                <tr> 
                  <td>&nbsp;***ตรวจสอบความถูกต้อง...ก่อนยืนยันข้อมูล</td>
                </tr>
                <tr>
                  <td><div align="center"> 
                      
                      <font size="+1"><strong><font color="#003366" size="2">
                      <?php
						  $sql_1="select * from  teacher where teachcode = '$_GET[id]'";
						  $db_query=mysql_db_query($db,$sql_1);
						  $result1=mysql_fetch_array($db_query);
						  $idmember  =$result1['idregist'];
						  $registeach  =$result1['teachcode'];
						  $codeteach  =$result1['teachcode'];
						  $name  =$result1['name'];
						  $lastname  =$result1['lastname'];
							
						


						?>
                      </font></strong></font> </div>
                    <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
                      <form name ="checkForm" action="addsave1teach.php" method="post" onSubmit="return check()">
                        
						
						<tr>
<td><div align="right">เลือกคาบเรียน</div></td>
    
    <td align="left">
	<select name="kab">
			<option value=""><--คาบ--></option>
			<option value="1"><--1--></option>
			<option value="2"><--2--></option>
			<option value="3"><--3--></option>
			<option value="4"><--4--></option>
			<option value="5"><--5--></option>
			<option value="6"><--6--></option>
			<option value="7"><--7--></option>
			<option value="8"><--8--></option>
			
		  </select>
		</td>
		
	
  </tr>
						
						
						<tr> 
                          <td width="140"><div align="right"><font color="#333333" size="2">รหัสครู
                              :</font></div></td>
                          <td><font size="3">
                            <input name=lteach  id=lteach  type=text class="input" size=35 maxlength ="50" value='<? echo "$codeteach"; ?>' readonly='readonly'>
                            </font><? echo "$name"; ?>&nbsp;&nbsp;<? echo "$lastname"; ?></td>
                        </tr>
						 
						<tr> 
                          <td><div align="right"><font color="#333333" size="2">รหัสวิชาที่สอน
                              :</font></div></td>
                          <td><font size="3">
                            <input name=lcode  id=lcode  type=text class="input" size=35 maxlength ="8" >
                            </font></td>
                        </tr>
						<tr> 
                          <td width="300"><div align="right"><font color="#333333" size="2">สถานะ
                              :</font></div></td>
                          
    
    <td align="left">
	<select name="statusl">
			<option value="">สถานะเข้าสอน</option>
			<option value="1">เข้าสอน</option>
			<option value="2">ไม่เข้าสอน</option>
			<option value="3">สอนแทน</option>
			
		  </select>
		</td>

                        </tr>
					<tr>
<td align="right">กรณีเข้าสอนแทน</td>
    
    <td align="left">
	<select name="codet">
			<option value=""><-- เลือกครู --></option>
			<?php
			$strSQL = "SELECT * FROM teacher where status2=1 order by teachcode asc";
			$objQuery = mysql_query($strSQL);
			while($objResuut = mysql_fetch_array($objQuery))
			{
				
			?>
			<option value="<?php echo $objResuut["teachcode"];?>">
			<?php echo $objResuut["teachcode"]." ".$objResuut["name"]." ".$objResuut["lastname"];?></option>
			<?php
			
			}
			?>
		  </select>
		</td>
		
	
  </tr>	

						<tr> 
                          <td><div align="right"><font color="#333333" size="2">หมายเหตุ
                              :</font></div></td>
                          <td><font size="1">
                           <input name=bb   id=bb   type=text class="input" size=50 maxlength ="50">
                            </font></td>
                        </tr>
						<tr> 
                          <td><div align="right"><font color="#333333" size="2">วันที่
                              :</font></div></td>
                          <td><font size="1">
                           <input name=lday   id=lday   type=text class="input" size=20 maxlength ="20" value='<? echo "$signup"; ?>' readonly='readonly'>
                            </font></td>
                        </tr>
						<tr> 
                          <td><div align="right"><font color="#333333" size="2">เวลา
                              :</font></div></td>
                          <td><font size="1">
                           <input name=time1   id=time1   type=text class="input" size=20 maxlength ="20" value='<? echo "$time"; ?>'>
                            </font></td>
                        </tr>
						<tr> 
                          <td><div align="right"><font color="#333333" size="2">ชัน
                              :</font></div></td>
                          <td><font size="1">
                           <input name=lclass   id=lclass   type=text class="input" size=20 maxlength ="20" value='<? echo "$cllass"; ?>' readonly='readonly'>
                            </font></td>
                        </tr>
						<tr> 
                          <td><div align="right"><font color="#333333" size="2">ห้อง
                              :</font></div></td>
                          <td><font size="1">
                           <input name=llroom   id=llroom   type=text class="input" size=20 maxlength ="20" value='<? echo "$room"; ?>' readonly='readonly'>
                            </font></td>
                        </tr>
						<tr> 
                          <td><div align="right"><font color="#333333" size="2">นักเรียนผู้รายงาน
                              :</font></div></td>
                          <td><font size="3">
                         <input name=stul id=stul type=text class="input" size=50 value='<? echo "$idu"; ?>' readonly='readonly' >
                            </font></td>
                        </tr>
						
						

                        <tr>
                          <td><font color='red' size='3'></td>
                          <td>
				


			
						  

<input type="submit" name="btnSave" value="ลงทะเบียน">
<script language="javascript">

function check() {
if(document.checkForm.kab.value=="") {
alert("กรุณาเลือกคาบเรียน") ;
document.checkForm.kab.focus() ;
return false ;
}
else if(document.checkForm.lcode.value=="") {
alert("รหัสวิชาที่สอน") ;
document.checkForm.lcode.focus() ;
return false ;
}
else if(document.checkForm.statusl.value=="") {
alert("เลือกสถานะการสอน") ;
document.checkForm.statusl.focus() ;
return false ;
}
else 
return true ;
}

</script>





						  </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>

Youez - 2016 - github.com/yon3zu
LinuXploit