<?
include_once('includes/top.php');
include_once('opendb.php');
$brcode=$_SESSION['brcode'];
$user=$_SESSION['user'];
//$br=$_SESSION['branch'];
if(strlen($user)<=0)
{
  print "<script> alert('Invalid User'); document.location='inde.php' </script>";
  return;
}

?>
<link type="text/css" href="includes/style1.css" rel="stylesheet" />
<link type="text/css" href="css/form.css" rel="stylesheet" />
<style>
	//tr1{background-color:white}
	th{background-color:steelblue;color:white}
</style>
<body bgcolor="#0033FF">


<?php //include('includes/top.php'); ?>
<font style="font-family: 'Trebuchet MS',Verdana,Helvetica,sans-serif; font-size:15px; color:white;">  &nbsp;&nbsp;REPORTS >> STOCK REPORT</font>
<center>

<h3><font color='black'>FORM IV <br> MONTHLY STOCK FOR THE MONTH</font></H3>
<form action='monthstock_1.php' method='post'>
<table cellspacing=1 cellpadding=1 bgcolor='steelblue'>
<tr><td bgcolor='white' align=center>
<table class=noprint>
<tr><td>Date from </td><td>dd <input type=text name='d1' size=2 value='1'>
mm <input type=text name='m1' size=2 value='4'>
yy <input type=text name='y1' size=4 value='<?print date("Y")?>'></td></tr>

<tr><td align=right>to </td><td>dd <input type=text name='d2' size=2 value='<?print date("d")?>'>
mm <input type=text name='m2' size=2 value='<?print date("m")?>'>
yy <input type=text name='y2' size=4 value='<?print date("Y")?>'>
</td></tr>
<? $mgrp=mysqli_query($db,"select gname from groupmaster order by gname");
?>
<tr><td align='center'>Item Group :  </td><td>
<select name='type' >
<?while($grrow=mysqli_fetch_array($mgrp))
{?>
<option><?print $grrow[0]?></option>
<?}?>
<tr><td colspan=2 align=center bgcolor='lightsteelblue'><input type=submit value='Show' name='show'></td></tr>
</table>
</td></tr>
</table>
</form>

