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

include "header.php"; 
$objIms->unitmaster_alter();
?>
<script type="text/javascript">
	$(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
					
                   item_name:"required",
				  
					},
		messages: {
			
					 item_name: "",
					 
								
				},
		  });                
            });
//---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">Unit Master </h3>
</div>
<div class="content-container">
<div class="entry-head">
<h4><strong> Add unit </strong>
  <div style="color:#FFFFFF; float:right"><a href="unitmaster_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">Unit Name </td>
			<td width="1%"><strong>:</strong></td>
		  <td width="88%"><input name="unit_name" type ="text" id="unit_name" value="<?php echo $objIms->unit_name?>" 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"?>
