<?php
@session_start();
@ob_start();

include "header.php"; 
$objIms->bank_alter();
?>
<script type="text/javascript">
	$(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
					
                   expense_type:"required",
				  amount:"required",
				  accno:"required number",
					},
		messages: {
			
					 expense_type: "",
					 amount: "",
						accno:"",		
				},
		  });                
            });
//---auto search-----
</script>
<div class="content">
<div class="content-header">
<h3 class="head-dashboard">Bank A/C </h3>
</div>
<div class="content-container">
<div class="entry-head">
<h4><strong> Add Banking </strong>
  <div style="color:#FFFFFF; float:right"><a href="Bank_list.php"><img src="<?php echo IMAGE_PATH?>back.png" title="Go Back"   /></a></div> </h4>

</div>

<div class="entry-content">
    <form method="post" id="FORMNAME1">
	<?php  echo $objIms->error;?>
<table width="100%">
		<tr>
          <td height="39">Head</td>
		  <td><strong>:</strong></td>
		  <td><label>
            <input name="acchead" type="text" id="acchead" style="width:200px;" value="<?php echo $objIms->head?>"/>
          </label></td>
    </tr>
		<tr>
			<td width="11%" height="39">Account No.</td>
			<td width="1%"><strong>:</strong></td>
		  <td width="88%"><label>
		  <select name="acc_no" id="acc_no" style="width:175px;"  >
              <option value="">Please Select</option>
              <?php 
							$sqlc="select * from tbl_bank_det";
							//echo $sqlc;
							$c=mysql_query($sqlc);
							if(mysql_num_rows($c)>0){
							while($cs=mysql_fetch_array($c))
							{?>
              <option value="<?=$cs["id"];?>" <?php if($cs["id"]==$objIms->acc_no){?> selected="selected"<?php }?> >
              <?=$cs["acc_no"].'/'.$cs["bank_name"];?>
              </option>
              <?php }}?>
            </select>
		  </label></td>
		</tr>
		<tr>
		  <td height="39">Amount Debit </td>
		  <td><strong>:</strong></td>
		  <td><input name="debit" type="text" id="debit" style="width:200px;" value="<?php echo $objIms->debit?>"/></td>
    </tr>
		<tr>
		  <td height="39">Amount Credit </td>
		  <td><strong>:</strong></td>
		  <td><label>
		    <input name="credit" type="text" style="width:200px;" id="credit" value="<?php echo $objIms->credit?>"/>
		  </label></td>
    </tr>
		<tr>
			<td></td>
			<td></td>
			<td><input type ="submit" name="Save" value="<?php echo $objIms->Save?>" class="btn btn-info"/></td>
		</tr>
</table>
</form>
<?php include "footer.php"?>
