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

include "header.php"; 
$objIms->supplier_alter();
?>
<script type="text/javascript">
	$(document).ready(function() {                
				$("#FORMNAME1").validate({
                    rules: {
					contact_no:"required number",
                   address:"required",
				  
					},
		messages: {
			
					 supplier_name: "",
					 address: "",
					 contact_no:"",
					 contact_person: "",
					
								
				},
		  });                
            });
//---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">Supplier Master </h3>
</div>
<div class="content-container">
<div class="entry-head">
<h4><strong> Add Supplier</strong>
  <div style="color:#FFFFFF; float:right"><a href="supplier_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">Supplier Name </td>
			<td width="1%"><strong>:</strong></td>
		  <td width="88%"><input name="supplier_name" type ="text" id="supplier_name" value="<?php echo $objIms->supplier_name?>" required="required" <?php echo $objIms->disableit;?>/></td>
		</tr>
		
		<tr>
			<td width="11%" height="39">Address</td>
			<td width="1%"><strong>:</strong></td>
		<td width="88%"><label>
		  <textarea name="address" id="address" <?php echo $objIms->disableit;?> ><?php echo $objIms->address;?></textarea>
		  </label></td>
		</tr>
		
		
		<tr>
			<td width="11%" height="39">Contact No </td>
			<td width="1%"><strong>:</strong></td>
	  <td width="88%"><input name="contact_no" type ="text" id="contact_no" value="<?php echo $objIms->contact_no?>" required <?php echo $objIms->disableit;?>/></td>
		</tr>
		
		
		<tr>
			<td width="11%" height="39">Contact Person Name </td>
			<td width="1%"><strong>:</strong></td>
	  <td width="88%"><input name="contact_person" type ="text" id="contact_person" value="<?php echo $objIms->contact_person?>" required <?php echo $objIms->disableit;?>/></td>
		</tr>
		<tr>
		  <td height="39">GSTIN </td>
		  <td><strong>:</strong></td>
		  <td><input name="gstin" type ="text" id="gstin" value="<?php echo $objIms->gstin?>" required="required" <?php echo $objIms->disableit;?>/></td>
    </tr>
		<tr>
		  <td height="39">Email</td>
		  <td><strong>:</strong></td>
		  <td><input name="email" type="text" id="email" value="<?php echo $objIms->email_id?>"  <?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"?>
