Viewing file: ExcelRepStdSum.php (86.45 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_type_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="921" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="921"><fieldset>
<legend></legend>
<label><div align="center"><br />
<form id="form1" name="form1" method="post" action="">
<table width="98%" 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"><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:0px solid gray"><div align="center"><span class="style21">ภาค/ฝ่าย</span></div></td>
<td bgcolor="#eeeeee" style="border:0px 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:0px 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:0px 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:0px 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:0px 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:0px 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='6' ";
$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:0px 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='7' ";
$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:0px solid gray"><div align="center" class="style22">รวมจำนวนเงิน</div></td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td width="18%" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"> <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="7%" 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_type_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="9%" 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_type_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="9%" 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_type_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="10%" 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_type_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="10%" 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_type_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="10%"><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_type_tb Where MoneyS_C ='6' and Faculty_code='01' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td width="11%"><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_type_tb Where MoneyS_C ='7' 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_type_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">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='02' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='03' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='04' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='06' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='07' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='08' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='09' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='10' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='12' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='15' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' and Faculty_code='16' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumB1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' 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><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_type_tb Where MoneyS_C ='7' 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_type_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"><font color="#0033CC" size="2" face="Tahoma">
<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_type_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_type_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_type_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_type_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_type_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><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_type_tb Where MoneyS_C ='6' 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><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_type_tb Where MoneyS_C ='7' 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_type_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="#eeeeee"><div align="right" class="style22">
<div align="center">รวม</div>
</div></td>
<td bgcolor="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_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="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_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="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_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="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_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="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_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="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_tb Where MoneyS_C ='6' and Budget_Year='$Budget_Year' ";
$result1 = mysql_query($sql1) or die("Erro".mysql_error());
$rss1 = mysql_fetch_array($result1);
echo number_format($rss1[SumC1],2,'.',',');
//echo"$rss1[SumC1]";
?>
</font></div></td>
<td bgcolor="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_tb Where MoneyS_C ='7' 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="#eeeeee"><div align="right"><font color="#993333" size="2" face="Tahoma">
<?php
$sql1 = "Select Sum(Budget_use) as SumC1 From project_type_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>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<tr onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td colspan="9" 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"><br>
</font></td>
</tr>
</table>
|