!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/Plan_new/   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:     RepStdSum.php (74.3 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  */
        
$myTable "project_type_tb";
        
$myTablePK "ProjectId";

        
        
/**  Paging */
        
$page $_GET['page'];
        if( 
$page == "" ) { $page 1; }
        
        
/**  จำนวนข้อมูล ต่อ 1 หน้า  */
        
$perpage $_REQUEST['perpage'];
        if( 
$perpage == "" ) { $perpage 10; }

        
    } 
# 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="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" align="center" valign="top" style="padding:10px 0px 5px 10px">
    <?php
        
/**  Config Paging  */
        
if( $perpage == "" ) { $limit $_Config_limit; }
        else { 
$limit $perpage; }
        
        
$scroll $_Config_scroll
        
        
/**  ตั้งค่า Default สำหรับการทำ Order By  */
        
if( $OrderBy == "" ) { $OrderBy $myTablePK; }
                        
        if( !isset(
$_GET['ASCDESC']) ) { $ASCDESC "ASC"; }
                        
        if( 
$_GET['ASCDESC'] == "ASC" ) { $ASCDESC "DESC"; } 
        elseif( 
$_GET['ASCDESC'] == "DESC" ) { $ASCDESC "ASC"; }
        
        
/**  Query เพื่อหา Numrows ก่อน  */
        
$query " SELECT *  FROM $myTable  WHERE Budget_Year='$Budget_Year' ";
        
$result $dbObj->execQuery($query);
        
$rss $dbObj->fetchArray($result);
        
$numrows $dbObj->_numrows;
        
        
/**  Paging  */
        
$display = ( !isset ($_GET['page']) ) ? $_GET['page'];
        
$start = ( ($display $limit) - $limit );
        
/**  Paging  */
        
        
if( isset($_GET['OrderBy']) ) {
            
$query " SELECT *  FROM $myTable  WHERE Budget_Year='$Budget_Year'  ORDER BY  $OrderBy  $ASCDESC ";
        } 
        elseif( !isset(
$_GET['OrderBy']) ) {
            
$query " SELECT *  FROM $myTable  WHERE Budget_Year='$Budget_Year'  ORDER BY  $myTablePK  ASC ";
        }
        
        
$query .= " LIMIT $start, $limit ";
        
$result $dbObj->execQuery($query);
        
$rs $dbObj->fetchArray($result);
    
?>
    <fieldset>
     <table width="780" border="0" cellspacing="0" cellpadding="0">
      <form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?Budget_Year=<?=$Budget_Year;?>&amp;page=<?=$page;?>">
      <tr>
        <td height="5" colspan="2"></td>
      </tr>
      <tr>
        <td width="570" height="30" background="../images/background/bg-head-topic.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>&raquo; <a href="Menu_Report.php?Budget_Year=<?php echo $rss['Budget_Year'];?>">รายงานประเภทต่างๆ</a> &raquo; <span class="NOTE">สรุปการใช้เงินตามแผนดำเนินการ</span></strong></td>
        <td width="210" align="right" style="padding-right:10px">จำนวนข้อมูลต่อหน้า
          <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></td>
      </tr>
      <tr>
        <td colspan="2"><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="PADDING-TOP-10 PADDING-BOTTOM-5"><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></td>
          </tr>
        </table>
        <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="10" colspan="2" align="right"></td>
            </tr>
          <tr>
            <td width="50%" align="left" style="padding-bottom:5px;">ทั้งหมด: <strong><?=number_format($numrows);?></strong> รายการ</td>
            <td width="50%" align="right" style="padding-bottom:5px;"><a href="ExcelRepStdSum.php?Budget_Year=<?php echo $rs['Budget_Year']; ?>"><strong>ส่งออกข้อมูล</strong></a> <img src="../images/icons/excel.png" width="16" height="16" border="0" align="absmiddle" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="355" colspan="2" align="center" valign="top">
          <?php if( $numrows ) { ?>
        <table width="760" border="0" cellspacing="0" cellpadding="0" style="border-top:1px solid #CCCCCC; border-right:1px solid #CCCCCC; border-left:1px solid #CCCCCC">
          <tr>
            <td height="25" align="center" bgcolor="#F0F0F0"><strong>ตารางสรุปจำนวน ตามหมวดค่าใช้จ่าย ปีงบประมาณ <span class="TEXT-RED10"><?=$Budget_Year;?></span></strong></td>
          </tr>
        </table>
        <table width="760" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="BORDER-GREY">
            <tr bgcolor="#F7F7F7" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
              <td height="23" align="center"><strong><font color="#0033CC" face="Tahoma">ภาค/ฝ่าย</font></strong></td>
              <td align="center" class="BORDER-LEFT-RIGHT"><font color="#0033CC" size="2" face="Tahoma">
                            <?php
                        $MoneyId 
=  $rs["MoneyId"];
                         
$sql " SELECT *  FROM money_tb   WHERE MoneyId='1' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[MoneyName]";
                         
?>
                            </font></td>
                            <td align="center"><font color="#0033CC" size="2" face="Tahoma">
                            <?php
                        $MoneyId 
=  $rs["MoneyId"];
                         
$sql " SELECT *  FROM money_tb   WHERE MoneyId='2' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[MoneyName]";
                         
?>
                            </font></td>
                            <td align="center" class="BORDER-LEFT-RIGHT"><font color="#0033CC" size="2" face="Tahoma">
                            <?php
                        $MoneyId 
=  $rs["MoneyId"];
                         
$sql " SELECT *  FROM money_tb   WHERE  MoneyId='3' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[MoneyName]";
                         
?>
                            </font></td>
                            <td align="center"><font color="#0033CC" size="2" face="Tahoma">
                            <?php
                        $MoneyId 
=  $rs["MoneyId"];
                         
$sql " SELECT *  FROM money_tb   WHERE MoneyId='4' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[MoneyName]";
                         
?>
                            </font></td>
                            <td align="center" class="BORDER-LEFT-RIGHT"><font color="#0033CC" size="2" face="Tahoma">
                            <?php
                        $MoneyId 
=  $rs["MoneyId"];
                         
$sql " SELECT *  FROM money_tb   WHERE MoneyId='5' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[MoneyName]";
                         
?>
                            </font></td>
                            <td align="center"><font color="#0033CC" size="2" face="Tahoma">
                            <?php
                            $MoneyId 
=  $rs["MoneyId"];
                             
$sql " SELECT *  FROM money_tb   WHERE MoneyId='6' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[MoneyName]";
                             
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td width="27%" height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=01" title="Click to see Detail"><?php
                         $Faculty_code 
=  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb  WHERE Faculty_code='01' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td width="13%" align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='01'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td width="12%" align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb   WHERE  MoneyId='2'  AND  Faculty_code='01'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td width="13%" align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='01'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td width="13%" align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='01'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td width="12%" align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='01' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td width="10%" align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='01'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                          </font></td>
                </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=02" title="Click to see Detail"><?php
                            
// $Faculty_code =  $rs["Faculty_code"];
                             
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='02' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                             
?></a></td>
                              <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                                <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='02'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                                </font></td>
                              <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                              <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='02'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                                </font></td>
                              <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                              <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='02'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                                </font></td>
                              <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                              <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='02' AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                                </font></td>
                              <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                              <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='02'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                                </font></td>
                              <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                              <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='02'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                          </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=03" title="Click to see Detail"><?php
                            
// $Faculty_code =  $rs["Faculty_code"];
                             
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='03' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                             
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='03'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='03' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='03'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='03'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='03'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='03'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                              <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=04" title="Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='04' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='04'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='04' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='04'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='04' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='04'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='04' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <!-- 
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=05" title="Click to see Detail"><?php
                            
// $Faculty_code =  $rs["Faculty_code"];
                             
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='05' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                             
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='05'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='05'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='05'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='05'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='05'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='05' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          -->
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                              <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=06" title="Click to see Detail"><?php
                            
// $Faculty_code =  $rs["Faculty_code"];
                             
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='06' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                             
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='06'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='06'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='06'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='06'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='06'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                             
// $Faculty_code =  $rs["Faculty_code"];
                              
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='06' AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumB1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                               
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=07" title="Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='07' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='07'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='07'AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='07' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='07' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='07' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='07'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                              <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=08" title="Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='08' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='08'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='08'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='08' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='08'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='08' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='08' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=09" title="Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='09' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='09'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='09'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='09' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='09'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='09'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='09' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                              <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=10"title=" Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='10' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='10' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='10'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='10' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='10'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='10'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='10' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <!-- 
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=11" title="Click to see Detail"><?php
                            
// $Faculty_code =  $rs["Faculty_code"];
                             
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='11' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                             
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='11'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='11'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='11' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='11' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='11'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='11'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          -->
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=12" title="Click to see Detail"><?php
                            
// $Faculty_code =  $rs["Faculty_code"];
                             
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='12' ";
                              
$result1 mysql_query($sql) or die("Error".mysql_error());
                              
$rss mysql_fetch_array($result1);
                              echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                             
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='12' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='12' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='12' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='12'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='12'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='12'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=15" title="Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='15' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='15'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='15'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='15' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='15' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='15' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                            <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='15' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                                  <td height="22" align="left" class="PADDING-LEFT-5 BORDER-TOP"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"?>&Faculty_code=16" title="Click to see Detail"><?php
                        
// $Faculty_code =  $rs["Faculty_code"];
                         
$sql " SELECT *  FROM faculty_tb WHERE Faculty_code='16' ";
                          
$result1 mysql_query($sql) or die("Error".mysql_error());
                          
$rss mysql_fetch_array($result1);
                          echo 
"$rss[Faculty_code]    $rss[Faculty_name]";
                         
?></a></td>
                        <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                         <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='1'  AND  Faculty_code='16'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                          </font></td>
                        <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                                <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='2'  AND  Faculty_code='16'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                        <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                                <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='3'  AND  Faculty_code='16' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                        <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                                <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='4'  AND  Faculty_code='16' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP-LEFT-RIGHT"><font color="#993333" size="2" face="Tahoma">
                                <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='5'  AND  Faculty_code='16' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
                                <?php         
                         
// $Faculty_code =  $rs["Faculty_code"];
                          
$sql1 " SELECT SUM(Budget_use) AS SumB1  FROM  project_tb  WHERE  MoneyId='6'  AND  Faculty_code='16' AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumB1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                           
?>
                            </font></td>
                          </tr>
                          <tr bgcolor="#F9F9F9" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
                            <td height="23" align="right" style="border-top:double 1px outset #EEFFFF" class="PADDING-RIGHT-10"><strong>รวม</strong></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-LEFT-RIGHT" style="border-top:double 1px outset #EEFFFF"><font color="#FF0000" size="2" face="Tahoma">
                            <?php
                              $sql1 
" SELECT SUM(Budget_use) AS SumC1  FROM  project_tb WHERE  MoneyId='1'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumC1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                            
?></font></td>
                            <td align="right" class="PADDING-RIGHT-5" style="border-top:double 1px outset #EEFFFF"><font color="#FF0000" size="2" face="Tahoma">
                            <?php
                              $sql1 
" SELECT SUM(Budget_use) AS SumC1  FROM  project_tb WHERE  MoneyId='2'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumC1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                          
?></font></td>
                            <td align="right" class="PADDING-RIGHT-5 BORDER-LEFT-RIGHT" style="border-top:double 1px outset #EEFFFF"><font color="#FF0000" size="2" face="Tahoma">
                            <?php
                              $sql1 
" SELECT SUM(Budget_use) AS SumC1  FROM  project_tb WHERE  MoneyId='3'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumC1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                          
?></font></td>
                          <td align="right" class="PADDING-RIGHT-5" style="border-top:double 1px outset #EEFFFF"><font color="#FF0000" size="2" face="Tahoma">
                          <?php
                              $sql1 
" SELECT SUM(Budget_use) AS SumC1  FROM  project_tb WHERE  MoneyId='4'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumC1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                          
?>
                          </font></td>
                          <td align="right" class="PADDING-RIGHT-5 BORDER-LEFT-RIGHT" style="border-top:double 1px outset #EEFFFF"><font color="#FF0000" size="2" face="Tahoma">
                          <?php
                              $sql1 
" SELECT SUM(Budget_use) AS SumC1  FROM  project_tb WHERE  MoneyId='5'  AND  Budget_Year='$Budget_Year' ";
                              
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                              
$rss1 mysql_fetch_array($result1);
                               echo 
number_format($rss1[SumC1],2,'.',',');
                               
//echo"$rss1[SumC1]";
                          
?></font></td>
                          <td align="right" class="PADDING-RIGHT-5" style="border-top:double 1px outset #EEFFFF"><font color="#FF0000" size="2" face="Tahoma">
                          <?php
                          $sql1 
" SELECT SUM(Budget_use) AS SumC1  FROM  project_tb WHERE  MoneyId='6'  AND  Budget_Year='$Budget_Year' ";
                          
$result1 mysql_query($sql1) or die("Erro".mysql_error());
                          
$rss1 mysql_fetch_array($result1);
                           echo 
number_format($rss1[SumC1],2,'.',',');
                           
//echo"$rss1[SumC1]";
                   
?></font></td>
                </tr>
              </table>
        <?php #if ?></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($result);
    
    
/**  Close the Database  */
    
$dbObj->disconn();
    
    
/**  Unset Class  */
    
unset($dbObj);
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.017 ]--