<?PHP 
include("header.php");
//session_start();
//error_reporting(0);
include "checksession.php";
include "include/db-connect.php";

if(isset($_REQUEST['submit']))
 {
	$start_date=$_REQUEST['from_date'];
	 $end_date=$_REQUEST['to_date']; 
	  ?>
     <script>
	 window.location='search_bank_view.php?sdate=<? echo $start_date ?>&&edate=<? echo $end_date ?>';
	 </script><? } ?>
     
<!----------------Start Date Picker Code-------->
<script type="text/javascript" src="JavaScript/calendar.js"></script>
<script type="text/javascript" src="JavaScript/calendar-en.js"></script>
<script type="text/javascript" src="JavaScript/calendar-setup.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="JavaScript/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<!----------------End Date Picker Code-------->

  <div id="content">
  <div class="breadcrumb">
      </div>
              <div class="box">
    <div class="heading">
      <h1><img src="view/image/home.png" alt="" /> Bank Balance</h1>
    </div>
    <div class="content">
      <div class="overview" style="width:50%; height:250px; margin-left:200px;">
      <div style="margin-bottom:10px; margin-top:10px; margin-left:20px;"><!--<a href="javascript: history.go(-1)"><img src="images/bac.jpg"></a>--></div>
</article>

 <form method="post" id="client" enctype="multipart/form-data">
                <div class="mainrow" style="margin-left:100px;">
                <div class="maintext">Start Date<font color="#FF0000"><b> *</b></font> </div>
                <div class="maintextbox">
                <input type="text" required class="TextBox" value="<? echo date("Y-m-d"); ?>" name="from_date" id="f_date_b1">
				<img src="images/cal.gif" id="f_trigger_b1" >
				<script type="text/javascript">
				Calendar.setup({inputField :"f_date_b1",ifFormat:"%Y-%m-%d",showsTime:true,button:"f_trigger_b1",singleClick:true});
				</script>
                </div>
                </div>
                <br />
                <div class="mainrow" style="margin-left:100px;">
                <div class="maintext">End Date<font color="#FF0000"><b> * </b></font> </div>
                <div class="maintextbox">
                <input type="text" required class="TextBox" value="<? echo date("Y-m-d"); ?>" name="to_date" id="f_date_b2">
				<img src="images/cal.gif" id="f_trigger_b2" >
				<script type="text/javascript">
				Calendar.setup({inputField :"f_date_b2",ifFormat:"%Y-%m-%d",showsTime:true,button:"f_trigger_b2",singleClick:true});
				</script>
                </div>                 
                </div>
                <br />
                <div class="mainrow" style="margin-left:100px;">
    			<div class="maintext"><font color="#FF0000"><b></b></font> </div>
                <div class="maintextbox"><input type="submit" name="submit" value="Search" style="background:#090;color:#FFF;width:80px;height:30px;border:0px;border-radius:10px 6px;cursor:pointer;"></div>
                </div>
 				</form>
                  </div>
                </div>
                </div></div>
      </div></div></div>
    </div>
  </div>
</div>
</div>
<?  include("footer.php"); ?>