<?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="account/<?php echo $mgmtname;?>/managedata" enctype="multipart/form-data">
		<input type="hidden" name="rsrcid" value="<?php echo $rsrcid;?>">           
		<input type="hidden" name="userid" value="<?php echo $userid;?>">           
        <table class="webforms mt-0 table-responsive-sm">
      

   
         <tr>
          <td width="20%"><label>Warehouse 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> Manager Name::</label></td>
          <td width="80%"><input type="text" name="uname" id="uname" value="<?php if($info4edit2) { echo $info4edit2->fld_name; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label>  Manager Email:</label></td>
          <td width="80%"><input type="email" name="email" id="email" value="<?php if($info4edit2) { echo $info4edit2->fld_email; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label>   Manager Mobile:</label></td>
          <td width="80%"><input type="text" name="mobile" id="mobile" value="<?php if($info4edit2) { echo $info4edit2->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>   VAT (%):</label></td>
          <td width="80%"><input type="number" name="vatpercent" id="vatpercent" value="<?php if($info4edit) { echo $info4edit->fld_vat; }?>" ></td>
         </tr>  
         <tr>
          <td width="20%"><label>   TCS (%):</label></td>
          <td width="80%"><input type="number" name="tcspercent" id="tcspercent" value="<?php if($info4edit) { echo $info4edit->fld_tcs; }?>" ></td>
         </tr>  
         <tr>
          <td width="20%"><label>   Warehouse Type:</label></td>
          <td width="80%">
			<div class="col-md-3 float-left"><label class="container-radio horzbox"><input type="radio" name="warehousetype" id="warehousetype1" value="general"  <?php if($info4edit) { if($info4edit->fld_type=='general') { echo 'checked';  } }?> required>General<span class="checkmark leftchkbx"></span></label></div>
			<div class="col-md-3 float-left"><label class="container-radio horzbox"><input type="radio" name="warehousetype" id="warehousetype2" value="l1bf"  <?php if($info4edit) { if($info4edit->fld_type=='l1bf') { echo 'checked';  } }?>/>L1 BF<span class="checkmark leftchkbx"></span></label></div>
          
          </td>
         </tr> 
         <!--<tr>
          <td width="20%"><label>Show Warehouse:</label></td>
          <td width="80%">
			<div class="col-md-3 float-left"><label class="container-radio horzbox"><input type="radio" name="showstatus" id="showstatus1" value="yes"  <?php if($info4edit) { if($info4edit->fld_show=='yes') { echo 'checked';  } }?> required>YES<span class="checkmark leftchkbx"></span></label></div>
			<div class="col-md-3 float-left"><label class="container-radio horzbox"><input type="radio" name="showstatus" id="showstatus2" value="no"  <?php if($info4edit) { if($info4edit->fld_show=='no') { echo 'checked';  } }?>/>NO<span class="checkmark leftchkbx"></span></label></div>
          
          </td>
         </tr> //-->
         <tr>
          <td width="20%"><label>Pricing Zone:</label></td>
          <td width="80%">
<select  id="zoneid" name="zoneid"  >
<option value="0">--Select Zone--</option>
<?php
if(is_array($zonelist) && count(array_filter($zonelist))>0)
{
	$instocktoshow = 0;
	foreach($zonelist as $itemrow)
	{
		$sel_item ="";
		if($info4edit->fld_zoneid==$itemrow->fld_id)
		{
			$sel_item = 'selected="selected"';
		}	
		
			?>
					<option value="<?php echo $itemrow->fld_id;?>"  <?php echo $sel_item;?>><?php echo $itemrow->fld_name;?></option>
			<?php
		
	}
}
?> 
</select>		  
		  </td>
         </tr>
            <tr>
          <td width="20%"><label> Username:<span class="text-danger">*</span>:</label></td>
          <td width="80%"><input type="text" name="username" id="username" value="<?php if($info4edit2) { echo $info4edit2->fld_username; }?>" <?php if($info4edit2->fld_username) { echo 'readonly'; }?> ></td>
         </tr>
         <tr>
          <td width="20%"><label> Password:<span class="text-danger">*</span>:</label></td>
          <td width="80%"><input type="password" name="upass" id="upass" value="" ></td>
         </tr>     		

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