

 
 <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">Update USER</h4>
      </div>
      <div class="modal-body">
      
	  <?PHP
	



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

		 if(validation_errors()):?>

<?php endif;?>



  <div class="form-group">
		  		<input type="hidden" name="myid" value="<?php echo $itemid; ?>"id="myid" class="form-control" required placeholder="Enter  myid">

    <label for="inputsurname" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label">Surname</label>
    <div class="col-sm-10">
		  		<input type="text" name="surname" value="<?php echo set_value('surname',$member[0]['surname']); ?>"id="surname" class="form-control" required placeholder="Enter your surname">
     <span class="text-danger"><?php echo form_error('surname'); ?></span>
   </div>
  </div>
    <div class="form-group">
    <label for="inputfirstname" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label">First Name</label>
    <div class="col-sm-10">
		<input type="text" name="firstname" value="<?php echo set_value('firstname',$member[0]['firstname']) ;?>" id="firstname" class="form-control"  placeholder="Enter your Other Names">
       <span class="text-danger"><?php echo form_error('firstname'); ?></span>
   </div>
  </div>
    <div class="form-group">
    <label for="inputemail" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label">Email</label>
    <div class="col-sm-10">
				<input type="email"  name="email" value="<?php echo set_value('email',$member[0]['email']) ;?>" id="email" class="form-control" required placeholder="Enter Your email">
    <span class="text-danger"><?php echo form_error('email'); ?></span>
	</div>
  </div>


  
 
   <div class="form-group">
    <label for="inputphone" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Phone </label>
    <div class="col-sm-10">
				<input type="text" name="phone" value="<?php echo set_value('phone',$member[0]['phone']); ?>"id="phone" class="form-control"  placeholder="Create your own phone">
    <span class="text-danger"><?php echo form_error('phone'); ?></span>
   </div>
  </div>
  
    <div class="form-group">
    <label for="inputidno" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Id Number </label>
    <div class="col-sm-10">
				<input type="text" name="idno" value="<?php echo set_value('idno',$member[0]['idno']); ?>"id="idno" class="form-control"  placeholder=" Enter ID no">
    <span class="text-danger"><?php echo form_error('idno'); ?></span>
   </div>
  </div>
  
  
  <div class="form-group">
    <label for="inputtotalsms" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Total SMS</label>
    <div class="col-sm-10">
				<input type="text" name="totalsms" value="<?php echo set_value('totalsms',$member[0]['totalsms']); ?>"id="totalsms" class="form-control" required placeholder="Total sms recharged">
    <span class="text-danger"><?php echo form_error('totalsms'); ?></span>
   </div>
  </div>
  
  
  
  
   
  <div class="form-group">
    <label for="inputcompanyid" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Companyid ID</label>
    <div class="col-sm-10">
				<input type="text" name="companyid" value="<?php echo set_value('companyid',$member[0]['companyid']); ?>"id="totalsms" class="form-control" required placeholder="company id">
    <span class="text-danger"><?php echo form_error('companyid'); ?></span>
   </div>
  </div>
 <div class="form-group">
    <label for="inputsmstype" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> SMS type</label>
    <div class="col-sm-10">
				<input type="text" name="smstype" value="<?php echo set_value('smstype',$member[0]['smstype']); ?>"id="totalsms" class="form-control" required placeholder="sms type e.g 1,2,3">
    <span class="text-danger"><?php echo form_error('smstype'); ?></span>
   </div>
  </div>
 
			  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">	Status	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="status" required>
		<option selected="selectted" value="<?php echo $member[0]['status']?>"  ><?php $mymember=$member[0]['status']; if($mymember=="1"){echo "active";}else if($mymember=="0"){ echo "inactive";} ?></option>
	<option value=""  >---Select status---</option>
	<option value="1"  >active</option>
		<option value="0"  >inactive</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</span>
	</div>
  </div>				
			
	  <div class="form-group">
    <label for="inputusertype" class="col-sm-2 control-label">	User type	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="usertype" required>
		<option value="" selected="selected" >---Select User type---</option>

			<option selected="selectted" value="<?php echo $member[0]['usertype']?>"  ><?php echo $member[0]['usertype']?></option>

		<option  value="user">user</option>
		<option value="admin"  >admin</option>
				<option value="superadmin"  >superadmin</option>

	</select>		 
				
		<span class="text-danger"> <?php echo form_error('usertype'); ?>
		
		</span>
	</div>
  </div>
     <div class="form-group">
    <label for="inputpassword" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label">Password</label>
    <div class="col-sm-10">
				<input type="password"  name="password" value="<?php echo set_value('password',$member[0]['password']) ;?>" id="password" class="form-control" required placeholder="Enter Your password">
    <span class="text-danger"><?php echo form_error('password'); ?></span>
	</div>
  </div>
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="user" name="btn_updateuser" class="btn btn-primary"> Update User   </button>

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

    

				</div>

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

			
			</div>



















