<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>

      <div class="main my-0">
        <div class="row mt-3 mx-0">
          <div class="col-md-6">
            <h3><?php echo $pgheading;?></h3>
          </div>
          <div class="col-md-5 text-right">
            &nbsp;
          </div>
        </div>
        
        <div class="container_fluid mt-2 px-3">
		<form name="frmgeneral" method="post" action="warehouse/<?php echo $mgmtname;?>/managedata" enctype="multipart/form-data">
		<input type="hidden" name="rsrcid" value="<?php echo $rsrcid;?>">                
        <table class="webforms mt-0 table-responsive-sm">
             
         <tr>
          <td width="20%"><label>Vendor Name<span class="text-danger">*</span>:</label></td>
          <td width="80%"><input type="text" name="name" id="name" value="<?php if($info4edit) { echo $info4edit->fld_name; }?>" required></td>
         </tr> 
	         <tr>
          <td width="20%"><label>Vendor Address:</label></td>
          <td width="80%"><input type="text" name="address" id="address" value="<?php if($info4edit) { echo $info4edit->fld_address; }?>" ></td>
         </tr> 	

         <tr>
          <td width="20%"><label> Email Address :</label></td>
          <td width="80%"><input type="email" name="email" id="email" value="<?php if($info4edit) { echo $info4edit->fld_email; }?>" ></td>
         </tr>		
         <tr>
          <td width="20%"><label> Mobile :</label></td>
          <td width="80%"><input type="text" name="mobile" id="mobile" value="<?php if($info4edit) { echo $info4edit->fld_mobile; }?>"  pattern="[0-9]{1}[0-9]{9}" 
       title="Please enter valid phone number with 0-9 digits" maxlength="10" ></td>
         </tr>


         <tr>
          <td width="20%"><label> contact Person:</label></td>
          <td width="80%"><input type="text" name="cpname" id="cpname" value="<?php if($info4edit) { echo $info4edit->fld_cpname; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label>  Contact Email:</label></td>
          <td width="80%"><input type="text" name="cpemail" id="cpemail" value="<?php if($info4edit) { echo $info4edit->fld_cpemail; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label>   Contact Mobile:</label></td>
          <td width="80%"><input type="text" name="cpmobile" id="cpmobile" value="<?php if($info4edit) { echo $info4edit->fld_cpmobile; }?>" pattern="[0-9]{1}[0-9]{9}" 
       title="Please enter valid phone number with 0-9 digits" maxlength="10"></td>
         </tr>
	 
			<tr>
			<td>Remarks:</td>
			<td>
			  <textarea name="remarks" id="remarks" rows="4" cols="50"><?php if($info4edit) { echo $info4edit->fld_remarks; }?></textarea>			  
			</td>
			</tr>           
		 

		 <tr>
             <td></td>
             <td><button class="btn btn-danger">Submit</button></td>
         </tr>
         </table>
         </form> 
	         <div class="clearfix"></div>          
        </div>
       </div>
