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

include "header.php"; 
$objIms->expense_alter();
?>
<script type="text/javascript">
	$(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
					
                   expense_type:"required",
				  amount:"required",
					},
		messages: {
			
					 expense_type: "",
					 amount: "",
								
				},
		  });                
            });
//---auto search-----
</script>
<div class="content">
<div class="content-header">
<h3 class="head-dashboard">Expense</h3>
</div>
<div class="content-container">
<div class="entry-head">
<h4><strong> Add Expense </strong>
  <div style="color:#FFFFFF; float:right"><a href="expance_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 width="11%" height="39">Expense Type </td>
			<td width="1%"><strong>:</strong></td>
		  <td width="88%"><label>
		    <select name="expense_type" id="expense_type">
		      <option>--Please Select</option>
		      <option value="Transport"<?php if($objIms->expense_type=='Transport'){?> selected="selected"<?php }?>>Transport</option>
		      <option value="Miscellaneous"<?php if($objIms->expense_type=='Miscellaneous'){?> selected="selected"<?php }?>>Miscellaneous</option>
			  <option value="Salary"<?php if($objIms->expense_type=='Salary'){?> selected="selected"<?php }?>>Salary</option>
                </select>
	      </label></td>
		</tr>
		<tr>
		  <td height="39">Amount</td>
		  <td><strong>:</strong></td>
		  <td><input name="amount" type="text" id="amount" value="<?php echo $objIms->amount?>"/></td>
    </tr>
		<tr>
		  <td height="39">Remarks</td>
		  <td><strong>:</strong></td>
		  <td><label>
		    <input name="Remarks" type="text" style="width:200px;" id="Remarks" value="<?php echo $objIms->remarks?>"/>
		  </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"?>
