<?
session_start();
ob_start();
?>
<html>
<head>

<title>Fish landing data management system</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
#wrapper {
		border: 1px solid black;
		background-color: #E0E0EF;
		color:#FFFFFF;
		padding:10px;
        height:800px;
        width:1024px;
		text-align:center;
    }
.stylewhite {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #FFFFFF;
}
.stylewhitesmall {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
}
.stylegreen {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #00661F;
}
.styleblack {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #000000;
}
.styleblacklarge {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}
a:link {
	color: #FFFFFF;
	text-decoration: none;
}
a:visited {
	color: #FFFFFF;
	text-decoration: none;
}
a:hover {
	color: #FF0000;
	text-decoration: none;
}
a:active {
	color: #FFFFFF;
	text-decoration: none;
}
.style1 {color: #FF0000}
.style38 {	color: #CC0000;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: bold;
}
.style37 {color: #FFFFFF}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Untitled-1) -->
<table width="1024" height="799" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#F3F3F3" id="Table_01">
<tr>
		<td height="50" bgcolor="#ADCE4C" class="stylewhite">&nbsp;Fish Landing Data Management System</td>
  </tr>
	<tr class="stylewhitesmall">
	  <td height="20" bgcolor="#006666"><span class="styleblack">&nbsp;</span><a href="main.php">Home</a><span class="style1">&nbsp;</span> |&nbsp;<a href="usr.php">User</a> |<span class="style1"> <a href="fishingzone.php">Fishing Zone|</a> <a href="district.php">District</a> </span>|<a href="samplingport.php"> Sampling Port </a>| <a href="fgmethod.php">Fishing Gear and Method</a> | <a href="vessel.php">Fishing Vessel</a> | <a href="species.php">Fish Species</a> | <a href="fishoperation.php">Fishing Operation</a> | <a href="biology.php">Biology Data</a> | <a href="report.php">Report</a> |<span class="style1"> <a href="logout.php">Logout</a></span></td>
  </tr>
	<tr>
	  <td height="705" valign="top" bgcolor="#CCCCCC"><br>	    <table width="50%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="stylewhite">
        <tr bordercolor="#FFFFFF">
          <td bgcolor="#006666" class="stylewhite">Summary of Total catch and Values</td>
        </tr>
        </table>	    
	    <table width="50%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr bgcolor="#000000" class="styleblack">
          <td width="9%" class="stylewhitesmall"><div align="center">Year</div></td>
          <td width="20%" class="stylewhitesmall"><div align="center">Commercial<br>(kg.)</div></td>
          <td width="17%" class="stylewhitesmall"><div align="center">Small Scale<br>(kg.)</div></td>
          <td width="27%" class="stylewhitesmall"><div align="center">Total Catch<br>(kg.) </div>            <div align="center"></div></td>
          <td width="27%" class="stylewhitesmall"><div align="center">Values($)</div>            <div align="center"></div></td>
          </tr>
        <?
		$totalyear= 0;
		for($i=1;$i<=$numgetdistrict;$i++)
		{
			$resgetdistrict = mysql_fetch_array($qrygetdistrict);
			$dbdtname = $resgetdistrict["disname"];
			$dbdttid = $resgetdistrict["dtid"];
			require_once("totalcatch_report.inc.php");
			$ttcm1 = ttcatchdistrict($yy,1,$dbdttid);
			$sumjan = $sumjan+$ttcm1;
			require_once("totalcatch_report.inc.php");
			$ttcm2 = ttcatchdistrict($yy,2,$dbdttid);
			$sumfeb = $sumfeb+$ttcm2;
			require_once("totalcatch_report.inc.php");
			$ttcm3 = ttcatchdistrict($yy,3,$dbdttid);
			$summar = $summar+$ttcm3;
			require_once("totalcatch_report.inc.php");
			$ttcm4 = ttcatchdistrict($yy,4,$dbdttid);
			$sumapr = $sumapr+$ttcm4;
			require_once("totalcatch_report.inc.php");
			$ttcm5 = ttcatchdistrict($yy,5,$dbdttid);
			$summay  = $summay+$ttcm5;
			require_once("totalcatch_report.inc.php");
			$ttcm6 = ttcatchdistrict($yy,6,$dbdttid);
			$sumjun  = $sumjun+$ttcm6;
			require_once("totalcatch_report.inc.php");
			$ttcm7 = ttcatchdistrict($yy,7,$dbdttid);
			$sumjul  = $sumjul+$ttcm7;
			require_once("totalcatch_report.inc.php");
			$ttcm8 = ttcatchdistrict($yy,8,$dbdttid);
			$sumaug  = $sumaug+$ttcm8;
			require_once("totalcatch_report.inc.php");
			$ttcm9 = ttcatchdistrict($yy,9,$dbdttid);
			$sumsep  = $sumsep+$ttcm9;
			require_once("totalcatch_report.inc.php");
			$ttcm10 = ttcatchdistrict($yy,10,$dbdttid);
			$sumoct  = $sumoct+$ttcm10;
			require_once("totalcatch_report.inc.php");
			$ttcm11= ttcatchdistrict($yy,11,$dbdttid);
			$sumnov  = $sumnov+$ttcm11;
			require_once("totalcatch_report.inc.php");
			$ttcm12 = ttcatchdistrict($yy,12,$dbdttid);
			$sumdec  = $sumdec+$ttcm12;
			$totalyear =$ttcm1+$ttcm2+$ttcm3+$ttcm4+$ttcm5+$ttcm6+$ttcm7+$ttcm8+$ttcm9+$ttcm10+$ttcm11+$ttcm12;		
		?>
        <tr class="styleblack">
          <td height="22" bgcolor="#ADCE4C" class="styleblack">
		    <div align="center">2001          </div></td>
          <td bgcolor="#ADCE4C">&nbsp;</td>
          <td bgcolor="#ADCE4C">&nbsp;</td>
          <td bgcolor="#ADCE4C"><div align="center">&nbsp;</div>            <div align="center">&nbsp;</div>            <div align="center">&nbsp;</div></td>
          <td bgcolor="#ADCE4C"><div align="center">&nbsp;</div>            <div align="center"></div></td>
          </tr>
		<?
		  }
			
			  ?>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2002</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall"><div align="center">&nbsp;</div>            <div align="center">&nbsp;</div>            <div align="center">&nbsp;</div></td>
          <td height="47" class="stylewhitesmall"><div align="center">&nbsp;</div>            <div align="center"></div></td>
          </tr>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2003</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
        </tr>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2004</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
        </tr>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2005</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
        </tr>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2006</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
        </tr>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2007</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
        </tr>
        <tr bgcolor="#ADCE4C" class="styleblack">
          <td height="47" class="styleblack"><div align="center">2008</div></td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
          <td height="47" class="stylewhitesmall">&nbsp;</td>
        </tr>
        <tr class="styleblack">
          <td height="47" bgcolor="#6B716F" class="stylewhitesmall">&nbsp;</td>
          <td height="47" bgcolor="#6B716F" class="stylewhitesmall">&nbsp;</td>
          <td height="47" bgcolor="#6B716F" class="stylewhitesmall">&nbsp;</td>
          <td height="47" bgcolor="#6B716F" class="stylewhitesmall">&nbsp;</td>
          <td height="47" bgcolor="#6B716F" class="stylewhitesmall">&nbsp;</td>
        </tr>
        </table>        	 </td>
  </tr>
	<tr>
	  <td bgcolor="#006666"><div align="right"><span class="styleblack">@SEAFDEC 2012</span></div></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>