Viewing file: RepStdYear_bkp.php (62.43 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (session_is_registered("valid_user") && session_is_registered("Priority") )
{
include("../include/FunctionDB.php");
include("admin_menu.php");
ConnectDB();
$Username = $valid_user;
$sql = "SELECT * FROM user_tb WHERE Username='$Username'";
$result = mysql_query($sql) ;
$rs1 = mysql_fetch_array($result);
$row = mysql_num_rows($result);
$sql1 = "SELECT * FROM project_tb WHERE Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) ;
$rs = mysql_fetch_array($result1);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style17 {font-size: 14px}
.style18 {color: #003399; font-size: 14px; }
.style21 {
font-family: Tahoma;
font-size: 14px;
color: #0000FF;
}
.style22 {
font-family: Tahoma;
font-size: 14px;
}
-->
</style>
<table width="839" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="839"><br>
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_report.php?Budget_Year=<? echo $rs[Budget_Year] ?>" >หน้าหลัก</a></font><font><span class="style17"><a href="EditPlaningList.php?Budget_Year=<? echo $rs[Budget_Year] ?>&Faculty_code=<? echo $rs[Faculty_code] ?>&Project_code=<? echo $rs[Project_code]?>"></a></span></font><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style17"><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="RepPlanSum.php?Budget_Year=<? echo $rs[Budget_Year] ?>">รายงานการใช้เงินตามแผนดำเนินการ</a></span></font></legend>
<label><div align="center"><br />
<form id="form1" name="form1" method="post" action="">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray"size="12">
<tr>
<td width="70%" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></td>
<td width="7%" bgcolor="#FFFFFF"> </td>
<td width="14%" bgcolor="#FFFFFF"> </td>
<td width="9%" bgcolor="#FFFFFF"><div align="right"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style17">ส่งออก <a href="ExcelRepStdSum.php?Budget_Year=<? echo $rs[Budget_Year] ?>"><img src="../picture/excel.gif" width="18" height="18" border="0" align="absmiddle" /></a></span></font></div></td>
</tr>
<tr>
<td colspan="4" bgcolor="#FFFFFF"><div align="center"><span class="style22">ตารางสรุปจำนวนเงินตามแผนงาน ปีงบประมาณ</span>
<?=$rs["Budget_Year"]?>
</div></td>
</tr>
<tr>
<td colspan="4" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td colspan="4" bgcolor="#FFFFFF"><div align="center"></div></td>
</tr>
<tr>
<td colspan="4" bgcolor="#FFFFFF"><div align="center"></td>
</tr>
<tr>
<td height="43" colspan="4" bgcolor="#D1E1F0" ><div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF" style="border:0px solid gray">
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td height="24" bgcolor="#eeeeee" style="border:1px solid gray"><div align="center"><span class="style21">ภาค/ฝ่าย</span></div></td>
<td bgcolor="#eeeeee" style="border:1px solid gray"><div align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
$MoneyId = $rs["MoneyId"];
$sql = "Select * From money_source_tb Where MoneyS_C='1' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></div></td>
<td bgcolor="#eeeeee" style="border:1px solid gray"><div align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
$MoneyId = $rs["MoneyId"];
$sql = "Select * From money_source_tb Where MoneyS_C='2' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></div></td>
<td bgcolor="#eeeeee" style="border:1px solid gray"><div align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
$MoneyId = $rs["MoneyId"];
$sql = "Select * From money_source_tb Where MoneyS_C='3' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></div></td>
<td bgcolor="#eeeeee" style="border:1px solid gray"><div align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
$MoneyId = $rs["MoneyId"];
$sql = "Select * From money_source_tb Where MoneyS_C='4' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></div></td>
<td bgcolor="#eeeeee"style="border:1px solid gray"><div align="center"><font color="#0033CC" size="2" face="Tahoma">
<?php
$MoneyId = $rs["MoneyId"];
$sql = "Select * From money_source_tb Where MoneyS_C='5' ";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[MoneyS_M]";
?>
</font></div></td>
<td bgcolor="#eeeeee" style="border:1px solid gray"><div align="center" class="style22">รวมจำนวนเงิน</div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td width="24%" bgcolor="#ECF5FF"><font color="#0033CC" size="2" face="Tahoma"> <a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=01"title="Click to see Detail" class="d"> <div align="left">
<?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]";
?>
</div></td>
<td width="10%" bgcolor="#ECF5FF" class="style18"><div align="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 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,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td width="12%" bgcolor="#ECF5FF" class="style18"><div align="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 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></div></td>
<td width="12%" bgcolor="#ECF5FF" class="style18"><div align="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 MoneyS_C ='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></div></td>
<td width="16%" bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td width="14%" bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td width="12%" bgcolor="#ECF5FF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=02"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#ECF5FF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=03"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="right"><font face="Tahoma"><a href="ResultList.php" class="style17"><font color="#993333" size="2" face="Tahoma">
<?php
// $Faculty_code = $rs["Faculty_code"];
$sql1 = "Select Sum(Budget_use) as SumB1 From project_tb Where MoneyS_C ='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></a></font></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=04"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#FFFFFF" class="d style17"><div align="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 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></div></td>
<td bgcolor="#FFFFFF" class="d style17"><div align="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 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></div></td>
<td bgcolor="#FFFFFF" class="d style17"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#ECF5FF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=06"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=07"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#ECF5FF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=08"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=09"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#ECF5FF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=10"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=12"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#ECF5FF"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=15"title="Click to see Detail" class="d">
<div align="left">
<?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]";
?>
</div></a></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"><a href="PlanStdList.php?Budget_Year=<?=$rs["Budget_Year"] ?>&Faculty_code=16"title="Click to see Detail" class="d">
<?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 bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 MoneyS_C ='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></div></td>
<td bgcolor="#FFFFFF"><div align="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 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></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td height="24" bgcolor="#ECF5FF"><div align="right" class="style22">
<div align="center">รวม</div>
</div></td>
<td bgcolor="#ECF5FF"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_tb 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></div></td>
<td bgcolor="#ECF5FF"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_tb 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></div></td>
<td bgcolor="#ECF5FF"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_tb Where MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_tb Where MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_tb Where MoneyS_C ='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></div></td>
<td bgcolor="#ECF5FF"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_tb 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]";
?>
</font></div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td colspan="7" bgcolor="#FFFFFF"><div align="right"></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br>
</form>
</div>
</label>
</fieldset><br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
</font></td>
</tr>
</table>
<?php
}
else
{
echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
echo"Please Login ";
}
?>
|