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

include "header.php"; 
$objIms->tax_alter();
?>
<script type="text/javascript">
	$(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
					taxpercent:"required number",
                   tax_name:"required",
				   tax_for:"required email",
					},
		messages: {
			
					 tax_name: "",
					 taxpercent: "",
					 tax_for:"",
					 
								
				},
		  });                
            });
//---auto search-----
</script>

<div class="content">
<div class="content-header">
<h3 class="head-dashboard">Tax Master </h3>
</div>
<div class="content-container">
<div class="entry-head">
<h4><strong> Add Tax </strong>
  <div style="color:#FFFFFF; float:right"><a href="taxmstr_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">Tax Name </td>
			<td width="1%"><strong>:</strong></td>
		  <td width="88%"><input name="tax_name" type ="text" id="tax_name" value="<?php echo $objIms->tax_name?>" required="required" <?php echo $objIms->disableit;?>/></td>
		</tr>
		
		
		<tr>
			<td width="11%" height="39">Tax(in %) </td>
			<td width="1%"><strong>:</strong></td>
	        <td width="88%"><input name="taxpercent" type ="text" id="taxpercent" value="<?php echo $objIms->taxpercent?>" required="number required" <?php echo $objIms->disableit;?>/></td>
		</tr>
		<tr>
		  <td height="39">Tax For </td>
		  <td><strong>:</strong></td>
		  <td><select name="tax_for" id="tax_for">
		  <option value="">Please Select</option>
		  <option value="Purchase"<?php if($objIms->tax_for=='Purchase'){?> selected="selected" <?php }?>>Purchase</option>
		  <option value="Sale"<?php if($objIms->tax_for=='Sale'){?> selected="selected" <?php }?>>Sale</option>
		  </select></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"?>
