<?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 $outletinfo->fld_name;?> > <?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;?>/<?php echo encodeValue($outletid);?>/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> User Type:</label></td>
          <td width="80%"><select name="type" id="type" required="" >
						<option value="" > Select User Type</option>				  
						<option value="manager" <?php if($info4edit->fld_type=="manager") { echo 'selected="selected"'; }?>>  Manager </option>
						<option value="operator" <?php if($info4edit->fld_type=="operator") { echo 'selected="selected"'; }?>> Operator </option>
			  </select></td>
         </tr>  
         <tr>
          <td width="20%"><label>Name:</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>Email:</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; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label>OTP:</label></td>
          <td width="80%">
						<div class="col-md-3"><label class="container-checkbox horzbox">
						<input type="checkbox" name="otp" id="otp" value="yes"  <?php if($info4edit) { if($info4edit->fld_otp=='yes')
				{ echo 'checked';  } }?>/><?php echo $zonerow->fld_name ;?>
						<span class="checkmark leftchkbx"></span>
						</label>
						</div>
		  </td>
         </tr>		 
         <tr>
          <td width="20%"><label>Discount Allowed:</label></td>
          <td width="80%">
						<div class="col-md-3"><label class="container-checkbox horzbox">
						<input type="checkbox" name="discountallowed" id="discountallowed" value="yes"  <?php if($info4edit) { if($info4edit->fld_discount=='yes')
				{ echo 'checked';  } }?>/>
						<span class="checkmark leftchkbx"></span>
						</label>
						</div>
		  </td>
         </tr>		 
         <tr>
          <td width="20%"><label> Username:</label></td>
          <td width="80%"><input type="text" name="username" id="username" value="<?php if($info4edit) { echo $info4edit->fld_username; }?>" <?php if($info4edit) { echo 'readonly'; }?>></td>
         </tr>
         <tr>
          <td width="20%"><label> Password:</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>
