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

<title>Fish landing data management system</title>
<script type="text/javascript" src="calendarDateInput.js">

/***********************************************
* Jason's Date Input Calendar- By Jason Moon http://calendar.moonscript.com/dateinput.cfm
* Script featured on and available at http://www.dynamicdrive.com
* Keep this notice intact for use.
***********************************************/

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="autocomplete.css" type="text/css" media="screen">
<script src="jquery.js" type="text/javascript"></script>
<script src="dimensions.js" type="text/javascript"></script>
<script src="autocomplete.js" type="text/javascript"></script>

<script type="text/javascript">
	$(function(){
	    setAutoComplete("searchField", "results", "autocomplete.php?part=");
	});
</script>
<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}
.styletextbox {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color:#000000; }
.style3 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #000000; font-style: italic; }
-->
</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>	    <? 
	  
	  if($_POST[submit])
	  {
	  ?>	  <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="stylewhite">
        <tr bordercolor="#FFFFFF">
          <td bgcolor="#006666" class="stylewhite">Fish Species : <span class="style3">Ilisha melastoma </span></td>
        </tr>
        <tr bordercolor="#FFFFFF">
          <td bgcolor="#006666" class="stylewhite">Year From 2010 To 2020 </td>
        </tr>
        </table>	    
	    <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
          <tr bgcolor="#000000" class="styleblack">
            <td width="16%" class="stylewhitesmall"><div align="center"></div></td>
            <td width="6%" class="stylewhitesmall"><div align="center">Jan<br>
        </div></td>
            <td width="5%" class="stylewhitesmall"><div align="center">Feb<br>
        </div></td>
            <td width="8%" class="stylewhitesmall"><div align="center">Mar<br>
        </div></td>
            <td width="5%" class="stylewhitesmall"><div align="center">Apr<br>
        </div></td>
            <td width="7%" class="stylewhitesmall"><div align="center">May<br>
        </div></td>
            <td width="6%" class="stylewhitesmall"><div align="center">Jun<br>
        </div></td>
            <td width="6%" class="stylewhitesmall"><div align="center">July<br>
        </div></td>
            <td width="7%" class="stylewhitesmall"><div align="center">Aug<br>
        </div></td>
            <td width="7%" class="stylewhitesmall"><div align="center">Sep<br>
        </div></td>
            <td width="6%" class="stylewhitesmall"><div align="center">Oct<br>
        </div></td>
            <td width="7%" class="stylewhitesmall"><div align="center">Nov<br>
        </div></td>
            <td width="5%" class="stylewhitesmall"><div align="center">Dec<br>
        </div></td>
            <td width="9%" class="stylewhitesmall"><div align="center">Total</div></td>
          </tr>
         
          <tr class="styleblack">
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C">&nbsp;</td>
            <td bgcolor="#ADCE4C" class="styleblack">&nbsp;</td>
          </tr>
          
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#ADCE4C" class="styleblack">
            <td height="17" class="styleblack">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
          <tr bgcolor="#6B716F" class="styleblack">
            <td height="17" class="stylewhitesmall">Total</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
            <td height="17" class="stylewhitesmall">&nbsp;</td>
          </tr>
        </table>
        <?
		} 
		
		?>
<form name="form1" method="post" action="">
<table width="50%" height="85" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="19" colspan="4" background="images/index_01.gif"><div align="center" class="stylewhite">Search</div>
                  <div align="right"></div></td>
            </tr>
            <tr>
              <td width="27%" height="6" valign="top" bgcolor="#ADCE4C" class="style1"><div align="right"><span class="stylegreen">Species</span>&nbsp; </div></td>
              <td height="6" colspan="3" bgcolor="#ADCE4C"><label>
              <input name="searchField" type="text" class="styleblack" id="searchField" />
              </label></td>
            </tr>
            <tr>
              <td width="27%" height="6" valign="top" bgcolor="#ADCE4C" class="style1"><div align="right" class="stylegreen">Year </div></td>
              <td height="0" bgcolor="#ADCE4C" class="styleblack"><span class="styletextbox">&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="checkbox" value="checkbox">
              </span>2001 </td>
              <td height="0" bgcolor="#ADCE4C" class="styleblack"><span class="styletextbox">&nbsp;&nbsp;&nbsp;
                    <input type="checkbox" name="checkbox2" value="checkbox">
              </span>2002</td>
              <td height="0" bgcolor="#ADCE4C" class="styleblack"><span class="stylegreen"> <span class="styletextbox">
                <input type="checkbox" name="checkbox3" value="checkbox">
              </span></span>2003</td>
            </tr>
            <tr>
              <td height="1" valign="top" bgcolor="#ADCE4C" class="stylegreen"><div align="right">Fishing gear </div></td>
              <td height="1" colspan="3" bgcolor="#ADCE4C"><span class="styletextbox">
                <select name="lstfg" class="styleblack" id="select3">
                  <?php
		 $sqlgetgear = "select fgid,fishinggear,fishmethod from gearandmethod order by fgid";
	  
	  $qrygetgear = mysql_query($sqlgetgear);
	  $numgetgear = mysql_num_rows($qrygetgear);
	   for($i=1;$i<=$numgetgear;$i++)
		{
			$resgetgear = mysql_fetch_array($qrygetgear);
			$dbfgid = $resgetgear["fgid"];
			$dbgear = $resgetgear["fishinggear"];
			$dbmethod = $resgetgear["fishmethod"];
			
				if($dbmethod != "")
				{
					$gear =  $dbgear."(".$dbmethod.")"; 
				}
				else
				{
					$gear = $dbgear;
				}
				echo "<option value='$dbfgid'>$gear</option>";
			  }
			  ?>
                </select>
              </span></td>
            </tr>
            <tr class="stylegreen">
              <td height="34" colspan="4" bgcolor="#ADCE4C"><div align="right">
                  <label> </label>
                  <div align="center">
                    <input name="submit" type="submit" class="styleblack" id="submit2" value="Search" />
                  </div>
              </div></td>
            </tr>
            <tr>
              <td height="19" colspan="4" bgcolor="#6B716F"><div align="right"></div></td>
            </tr>
          </table>
        </form>       <p>&nbsp;</p>
        <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
	<tr>
	  <td bgcolor="#006666"><div align="right"><span class="styleblack">@SEAFDEC 2012</span></div></td>
  </tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>