<?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;?>">                
        <table class="webforms mt-0 table-responsive-sm">

        
         <tr>
          <td width="20%"><label>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>Address<span class="text-danger">*</span>:</label></td>
          <td width="80%"><input type="text" name="address" id="address" value="<?php if($info4edit) { echo $info4edit->fld_address; }?>" required></td>
         </tr> 
		<tr>
          <td width="20%"><label>Invoice Prefix<span class="text-danger">*</span>:</label></td>
          <td width="80%"><input type="text" name="invoiceprefix" id="invoiceprefix" value="<?php if($info4edit) { echo $info4edit->fld_invoiceprefix; }?>" required></td>
         </tr>
         <tr>
          <td width="20%"><label>Zone<span class="text-danger">*</span>:</label></td>
          <td width="80%">
<select  id="zoneid" name="zoneid" required  >
<option value="">--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>Manager Name<span class="text-danger">*</span>:</label></td>
          <td width="80%"><input type="text" name="managername" id="managername" value="<?php if($info4edit) { echo $info4edit->fld_managername; }?>" required></td>
         </tr>		

         <tr>
          <td width="20%"><label>Manager Email:</label></td>
          <td width="80%"><input type="email" name="manageremail" id="manageremail" value="<?php if($info4edit) { echo $info4edit->fld_manageremail; }?>" ></td>
         </tr>		
         <tr>
          <td width="20%"><label>Manager Mobile:</label></td>
          <td width="80%"><input type="text" name="managermobile" id="managermobile" value="<?php if($info4edit) { echo $info4edit->fld_managermobile; }?>" 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>Show Outlet:</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></td>
             <td><button class="btn btn-danger">Submit</button></td>
         </tr>
         </table>
         </form> 
	         <div class="clearfix"></div>          
        </div>
       </div>
