<?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="outlet/<?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:</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; }?>" required></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; }?>" required></td>
         </tr>

         <tr>
          <td width="20%"><label>Discount Type:</label></td>
          <td width="10%">
			<?php 
		  $selectedRT = $info4edit->fld_discounttype;
		  ?>
             <select name="discounttype" id="discounttype" required aria-controls="sample_3" class="form-control input-sm input-xsmall input-inline" onchange="calculateInvAmount();">
			 <option value="percent" <?php if($selectedRT=="percent"){?> selected="selected"<?php }?>>Percent</option>
			 <option value="flat" <?php if($selectedRT=="flat"){?> selected="selected"<?php }?>>Flat</option>
			  </select>
		  </td>
         </tr>
         <tr>
          <td width="20%"><label>Special Discount :</label></td>
          <td width="80%">
		  <input type="text" class="form-control ui-autocomplete-input calcInvAmnt" name="discount"  id="discount" value="<?php if($info4edit) { echo $info4edit->fld_discount; }?>" placeholder="Discount" />
		  </td>
         </tr>         
         <tr>
          <td width="20%"><label> Given Name:</label></td>
          <td width="80%"><input type="text" name="givenname" id="givenname" value="<?php if($info4edit) { echo $info4edit->fld_givenname; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label> Given Email:</label></td>
          <td width="80%"><input type="text" name="givenemail" id="givenemail" value="<?php if($info4edit) { echo $info4edit->fld_givenemail; }?>" ></td>
         </tr>
         <tr>
          <td width="20%"><label>  Given Mobile:</label></td>
          <td width="80%"><input type="text" name="givenmobile" id="givenmobile" value="<?php if($info4edit) { echo $info4edit->fld_givenmobile; }?>" ></td>
         </tr>

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