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

include "header.php"; 
$objIms->itemmaster_alter();
?>
<script type="text/javascript">
	$(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
					
                   item_name:"required",
				  hsn_code:"required",
					},
		messages: {
			
					 item_name: "",
					 hsn_code: "",
								
				},
		  });                
            });
//---auto search-----
</script>
<script type="text/javascript"> 
 
		jQuery(document).ready(function(){
			$('#emp_name').autocomplete({source:'../ProgramFile/auto/TMS_suggest_EmpName.php', minLength:1,
			select: function (event, ui) {
        	$("#trn_atndnt_mas_id").val(ui.item.trn_atndnt_mas_id);
			$("#emp_name").val(ui.item.value); // display the selected text.
						
    }
			});
			
			
		}); 
	</script> 
<div class="content">
<div class="content-header">
<h3 class="head-dashboard">Item Master </h3>
</div>
<div class="content-container">
<div class="entry-head">
<h4><strong> Add Item </strong>
  <div style="color:#FFFFFF; float:right"><a href="itemmaster_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">Item Name </td>
			<td width="1%"><strong>:</strong></td>
		  <td width="88%"><input name="item_name" type ="text" id="item_name" value="<?php echo $objIms->item_name?>" required="required" <?php echo $objIms->disableit;?>/></td>
		</tr>
		<tr>
		  <td height="39">HSN/SAC Code </td>
		  <td>:</td>
		  <td><input name="hsn_code" type ="text" id="hsn_code" value="<?php echo $objIms->hsn_code?>" required="required" <?php echo $objIms->disableit;?>/></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"?>
