

		
<div class="row">
	<div class="col-md-12">
		<div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" >
            		<i class="entypo-plus-circled"></i>
				Add new Users
            	</div>
            </div>
			<div class="panel-body">





				<?PHP
				echo $this->session->flashdata('msg'); 
		
                 echo form_open('admin/adduser' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
					
  <div class="form-group">

    <label for="inputfirstname" class="col-sm-2 control-label">First Name</label>
    <div class="col-sm-7">
		  		<input type="text" name="firstname" value="<?php echo set_value('firstname'); ?>"id="firstname" class="form-control" required placeholder="Enter firstname">
     <span class="text-danger"><?php echo form_error('firstname'); ?></span>
   </div>
  </div>
    <div class="form-group">
    <label for="inputlastname" class="col-sm-2 control-label">Last Name</label>
    <div class="col-sm-7">
		<input type="text" name="lastname" value="<?php echo set_value('lastname') ;?>" id="lastname" class="form-control" required placeholder="Enter lastname">
       <span class="text-danger"><?php echo form_error('lastname'); ?></span>
   </div>
  </div>
    <div class="form-group">
    <label for="inputusername" class="col-sm-2 control-label">Username</label>
    <div class="col-sm-7">
				<input type="text" name="username" value="<?php echo set_value('username') ;?>" id="exampleInputusername" class="form-control" required placeholder="Enter Your username">
    <span class="text-danger"><?php echo form_error('username'); ?></span>
	</div>
  </div>
  <div class="form-group">
    <label for="inputpassword" class="col-sm-2 control-label">Password</label>
    <div class="col-sm-7">
				<input type="password" name="password" value="<?php echo set_value('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">
    <label for="inputphone" class="col-sm-2 control-label">Phone Number</label>
    <div class="col-sm-7">
				<input type="text" name="phone" value="<?php echo set_value('phone'); ?>" id="phone" class="form-control" required placeholder="Enter Your phone">
        <span class="text-danger"><?php echo form_error('phone'); ?></span>
	</div>
  </div>
   <div class="form-group">
    <label for="inputEmail" class="col-sm-2 control-label">Email</label>
    <div class="col-sm-7">
				<input type="email" name="email" value="<?php echo set_value('email') ;?>" id="exampleInputEmail" 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="inputphone3" class="col-sm-2 control-label">Id Number </label>
    <div class="col-sm-7">
				<input type="phone" name="idno" value="<?php echo set_value('idno'); ?>" id="idno" class="form-control" required placeholder="Enter ID NO">
    <span class="text-danger"><?php echo form_error('idno'); ?></span>
   </div>
  </div>
  <div class="form-group">
						<label for="field-2" class="col-sm-2 control-label">Country</label>
		                    <div class="col-sm-7">
		                        <select name="country" class="form-control" id="section_selector_holder">
		                            <option value="">--Select Country--</option>
			                         <option value="KENYA">KENYA</option>
									   <option value="TANZANIA">TANZANIA</option>
			                    </select>
								     <span class="text-danger"><?php echo form_error('country'); ?></span>
			                </div>
	</div>
		  <div class="form-group">
						<label for="field-2" class="col-sm-2 control-label">Gender</label>
		                    <div class="col-sm-7">
		                        <select name="gender" class="form-control" id="section_selector_holder">
		                            <option value="">--Select Gender--</option>
			                         <option value="Male">Male</option>
									   <option value="Female">Female</option>
			                    </select>
							 <span class="text-danger"><?php echo form_error('gender'); ?></span>

			                </div>
	</div>			
  
  
  <div class="form-group">
						<label for="field-2" class="col-sm-2 control-label">User Type</label>
		                    <div class="col-sm-7">
		                        <select name="usertype" class="form-control" id="section_selector_holder">
		                            <option value="">--Select User Type--</option>
			                         <option value="admin">admin</option>
									   <option value="tenant">tenant</option>
									    <option value="agent">agent</option>
			                    </select>
							 <span class="text-danger"><?php echo form_error('usertype'); ?></span>

			                </div>
	</div>
    
  
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-7">
     
	       <button type="submit" name="btn_user"value="user" class="btn btn-primary">Add User</button>

    </div>
  </div>
                    
                <?php echo form_close();?>
            </div>
        </div>
    </div>
</div>