Viewing file: RepStd_bk.php (71.26 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
/** Define Validate Access */
define( '_VALID_ACCESS', 1 );
/** 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";
$myTable2 = "money_source_tb";
$myTablePK2 = "MoneyS_C";
$myTable3 = "faculty_tb";
$myTablePK3 = "Faculty_code";
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
/** Parameters */
$params = "Budget_Year=$Budget_Year";
} # 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);
$numrows = $dbObj->_numrows;
/** Paging */
$display = ( !isset ($_GET['page']) ) ? 1 : $_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);
$MoneyId = $rs['MoneyId'];
$Faculty_code = $rs['Faculty_code'];
?>
<fieldset>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?Budget_Year=<?=$Budget_Year;?>&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>» <a href="Menu_Report.php">รายงานประเภทต่างๆ</a> » <a href="RepByYear.php">ข้อมูลแผนดำเนินการ รายปีงบประมาณ</a></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>‹ ย้อนกลับ</strong></a></td>
</tr>
</table>
<table width="97%" 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 > 0 ) { ?>
<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"><?=$rs['Budget_Year'];?></span> ไตรมาสที่ <span class="TEXT-RED10">4</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 $myTable2 WHERE MoneyS_C='1' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></td>
<td align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
//$MoneyId = $rs["MoneyId"];
$sql = " SELECT * FROM $myTable2 WHERE MoneyS_C='2' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></td>
<td align="center" class="BORDER-LEFT-RIGHT"><font color="#0033CC" size="2" face="Tahoma">
<?php
//$MoneyId = $rs["MoneyId"];
$sql = " SELECT * FROM $myTable2 WHERE MoneyS_C='3' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></td>
<td align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
//$MoneyId = $rs["MoneyId"];
$sql = " SELECT * FROM $myTable2 WHERE MoneyS_C='4' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></td>
<td align="center" class="BORDER-LEFT-RIGHT"><font color="#0033CC" size="2" face="Tahoma">
<?php
//$MoneyId = $rs["MoneyId"];
$sql = " SELECT * FROM $myTable2 WHERE MoneyS_C='5' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></td>
<td align="center"><strong><font color="#0033CC" face="Tahoma">รวมจำนวนเงิน</font></strong></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
<td width="27%" height="22" align="left" class="PADDING-LEFT-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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,'.',',');
?>
</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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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="11%" 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(July+Augus+September) AS SumB1 FROM $myTable 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="11%" align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
<?php
// $Faculty_code = $rs["Faculty_code"];
$sql1 = " SELECT SUM(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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="14%" align="right" class="PADDING-RIGHT-5 BORDER-TOP"><font color="#993333" size="2" face="Tahoma">
<?php
// $Faculty_code = $rs["Faculty_code"];
$sql1 = " SELECT SUM(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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-3 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 $myTable3 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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumB1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable 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(July+Augus+September) AS SumB1 FROM $myTable WHERE 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(July+Augus+September) AS SumC1 FROM $myTable WHERE MoneyS_C ='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(July+Augus+September) AS SumC1 FROM $myTable WHERE MoneyS_C='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(July+Augus+September) AS SumC1 FROM $myTable 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(July+Augus+September) AS SumC1 FROM $myTable 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(July+Augus+September) AS SumC1 FROM $myTable 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">
<strong><?php
$sql1 = " SELECT SUM(July+Augus+September) AS SumC1 FROM $myTable WHERE 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]";
?></strong></font></td>
</tr>
</table>
<?php } #if ?></td>
</tr>
<tr>
<td colspan="2"> </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);
?>
|