<? 
include_once('top.php'); 
include_once ("../opendb.php");
//include_once('../includes/top.php')
$trd=mysqli_query($db,"select sum(dramt)-sum(cramt) from journal2 where brcode='$brcode'");
$trdrow=mysqli_fetch_row($trd);
if($trdrow[0]!='0')
   print "<script> alert('TB mismatch  Pls chk mismatch entries \\nDr: '+$trdrow[0]); </script>";


?>
<style>
 td{font-family:arial;font-size:14;color:black;}
 th{font-family:arial;font-size:14;color:black;}
 
 input
  {border-style:ridge;
   border-color:#22437f;
   
   height:25px;
   border-size=1;
   font-family:sans-serif;
   color:BLACK;
  }
</style>
<title>AMPL</title>  
    <script type="text/javascript" src="../scripts/jquery-latest.js"></script>
	<link type="text/css" href="../includes/style1.css" rel="stylesheet" />
	<link type="text/css" href="../css/form.css" rel="stylesheet" />
    <script type="text/javascript">
        $(function() {
          if ($.browser.msie && $.browser.version.substr(0,1)<7)
          {
			$('li').has('ul').mouseover(function(){
				$(this).children('ul').show();
				}).mouseout(function(){
				$(this).children('ul').hide();
				})
          }
        });        
    </script>
<body background="../back_ground.jpg">
<br><br>
<table class="container"><tr><td>
<center>
<form action='db2.php'>
<table border=1 width=250 >
<tr bgcolor='green'><td colspan=2 align=center> <font color='white'>SELECT DATE FOR THE DAY BOOK</font></td></tr>
<tr><td>From</td><td>
<input type=text name=d value='<?print date("d",time());?>' size=1>
<input type=text name=m value='<?print date("m",time());?>' size=1>
<input type=text name=y value='<?print date("Y",time());?>' size=3>
</td></tr>
<tr><td>To</td><td>
<input type=text name=d1 value='<?print date("d",time());?>' size=1>
<input type=text name=m1 value='<?print date("m",time());?>' size=1>
<input type=text name=y1 value='<?print date("Y",time());?>' size=3>
</td></tr>
<tr><td colspan=2 align=center><input type=submit value="Show"></td></tr>
</table>
</form>
</td></tr></table>
