Viewing file: ExcelRepStdyear.php (67.43 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
header('Content-type: application/xls');
header('Content-Disposition: attachment; filename="testing.xls"');
include("../include/FunctionDB.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">
<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">
<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></legend>
<label><div align="center">
<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="100%" 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"></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="#FFFFFF"><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="11%" bgcolor="#FFFFFF" 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="11%" bgcolor="#FFFFFF" 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="#FFFFFF" 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="#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='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="#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='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="#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='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">
<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="#FFFFFF">
<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="#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='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="#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='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="#FFFFFF"><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="#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='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="#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='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="#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='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">
<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="#FFFFFF">
<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="#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='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="#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='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="#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='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="#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='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="#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='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="#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='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">
<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="#FFFFFF">
<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="#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='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="#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='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="#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='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="#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='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="#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='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="#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='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">
<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="#FFFFFF">
<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="#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='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="#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='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="#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='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="#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='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="#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='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="#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='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">
<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="#FFFFFF">
<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></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='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="#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='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="#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='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="#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='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="#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='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="#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='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">
<div align="left">
<?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]";
?>
</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='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 bgcolor="#FFFFFF">
<div align="left">
<?php
// $Faculty_code = $rs["Faculty_code"];
$sql = "Select * From faculty_tb Where Faculty_code='17' ";
$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='17' 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='17' 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='17' 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='17' 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='17' 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='17' 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">
<div align="left">
<?php
// $Faculty_code = $rs["Faculty_code"];
$sql = "Select * From faculty_tb Where Faculty_code='18' ";
$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='18' 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='18' 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='18' 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='18' 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='18' 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='18' 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="#FFFFFF"><div align="right" class="style22">
<div align="center">รวม</div>
</div></td>
<td bgcolor="#FFFFFF"><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="#FFFFFF"><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="#FFFFFF"><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="#FFFFFF"><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="#FFFFFF"><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="#FFFFFF"><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">
</font></td>
</tr>
</table>
|