

 
 <div class="row">
  
   	

   	<div class="col-md-12">

  
		

			
	<div class="widget-content nopadding table_holder table-responsive" >				
			
		

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Recharge Account</h4>
      </div>
      <div class="modal-body">
      
	  <?PHP
	

$userid=$recharge[0]["id"];
$companyid=$recharge[0]["companyid"];
$balance=$recharge[0]["totalsms"];

 echo $this->session->flashdata('msg'); 
                  echo form_open('admin/postpayment' , array('class' => 'form-horizontal form-groups-bordered validate',  'id' => 'signup','enctype' => 'multipart/form-data'));

		 if(validation_errors()):?>

<?php endif;?>

				<input type="hidden" name="userid" value="<?php echo $userid; ?>"id="code" class="form-control" required placeholder="userid">

				<input type="hidden" name="companyid" value="<?php echo $companyid; ?>"id="code" class="form-control" required placeholder="userid">

 <div class="form-group">
    <label for="inputamount" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Amount </label>
    <div class="col-sm-10">
				<input type="number" name="amount" value="<?php if(isset($_GET['amount'])) {echo $_GET['amount']; }?>"id="amount" class="form-control" required placeholder="Enter amount to recharge">
    <span class="text-danger"><?php echo form_error('amount'); ?></span>
   </div>
  </div>
  	 
    <div class="form-group">
    <label for="inputrate" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Rate</label>
    <div class="col-sm-10">
				<input type="text" name="rate" value="<?php if(isset($_GET['rate'])) {echo $_GET['rate']; }?>"  id="rate" class="form-control" required placeholder="Enter rate e.g 1.00">
    <span class="text-danger"><?php echo form_error('rate'); ?></span>
   </div>
  </div>
  
  	   	 
    <div class="form-group">
    <label for="inputunits" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> SMS Unit</label>
    <div class="col-sm-10">
				<input type="number" readonly name="units" value="<?php if(isset($_GET['finalvolume'])) {echo $_GET['finalvolume']; }?>"id="units" class="form-control" required placeholder="Volume equivalent with the money e.g 200 for Ksh.200(Automatic)">
    <span class="text-danger"><?php echo form_error('units'); ?></span>
   </div>
  </div>
    <div class="form-group">
    <label for="inpubalance" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Current Balance </label>
    <div class="col-sm-10">
				<input type="text" readonly name="balance" value="<?php echo $balance; ?>"id="balance" class="form-control" required placeholder="Enter balance">
    <span class="text-danger"><?php echo form_error('balance'); ?></span>
   </div>
  </div>
 
 <div class="form-group">
    <label for="inputcode" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Transdaction Code</label>
    <div class="col-sm-10">
				<input type="text" name="code" value="<?php if(isset($_GET['code'])) {echo $_GET['code']; }?>"id="code" class="form-control" required placeholder="Enter Mpesa Transdaction Code">
    <span class="text-danger"><?php echo form_error('code'); ?></span>
   </div>
  </div>
  
  
	<div class="form-group" id="mycontact">
    <label for="inputdescription" class="col-sm-2 control-label">	Description </label>
    <div class="col-sm-10">
					<textarea name="description" value="<?php if(isset($_GET['description'])) {echo $_GET['description']; }?>"  id="contact" class="form-control"  placeholder="Enter description / message"><?php if(isset($_GET['description'])) {echo $_GET['description']; }?></textarea>

	

	
				
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
 
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     	         <button type="submit"  value="volume" name="btn_postpayment" class="btn btn-info"> Calculate the sms Volume  </button>

	         <button type="submit"  value="payment" name="btn_postpayment" class="btn btn-primary"> Post Payment   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	  						
				
			
			</div>
		</div>
								
									
									
									
							</div>
						</div>
				

			
			</div>



















