<div class="well">

      <ul class="tabs"> 
        <li><a href="#view1">Users</a></li> 
        
      </ul> 
      <div class="tabcontents"> 
        <div id="view1" class="row">
        
        
        	<div class="col-lg-12">
            
            	<div class="col-lg-6">
            
             
             	
             			<fieldset> 
                            <legend>Add User <span class="ast">*</span> indicate required fields </legend>
      

        
        					<!-- form cut to the toolbar add user-->
               	    	<input type="hidden" name="MAX_FILE_SIZE" value="MAX_FILE_SIZE" />	
                        
                       
                                                  
                        <div class="form-group">
                              <label for="first_name" class="col-sm-2 control-label">First Name </label>
                              <div class="col-sm-10">
                              	<div class="input-group">
                                <input  id="first_name" class="form-control input-sm" type="text" placeholder="First Name"  name="first_name" 
                                value="<?php if(isset($_SESSION['fn'])) echo $_SESSION['fn']; ?>" required></input>
                                <div class="input-group-addon"> <span class="ast">*</span></div>
                                </div>
                                 
                              </div>
                           </div>
                           
                           
                            <div class="form-group">
                              <label for="other_names" class="col-sm-2 control-label">Other Names </label>
                              <div class="col-sm-10">
                              	<div class="input-group">
                                <input id="other_names" class="form-control input-sm" type="text" placeholder="Other Names" name="other_names" 
                                value="<?php if(isset($_SESSION['on'])) echo $_SESSION['on']; ?>" required></input>
                                  <div class="input-group-addon"> <span class="ast">*</span></div>
                                 </div>
                              </div>
                           </div>
                          
                           
                           	
                           
                         <div class="form-group">
                          <label class="col-sm-2 control-label" for="gender">Gender</label>
                          <div class="col-sm-10">
                          <div class="input-group">
                            <select id="gender" class="form-control input-sm" name="gender" required>
                              
                                
                               
                               <?php  if($_SESSION['g'] == 'M'){ ?>
                               
                               
                                <option value="M" selected>Male</option>
                                <option value="F">Female</option>
                                
                                <?php }else if($_SESSION['g'] == 'F'){?>
                                
                                <option value="M">Male</option>
                                <option value="F" selected>Female</option>
                                <?php }else{?>
                                <option value="M">Male</option>
                                <option value="F">Female</option>
                                <?php }?>
    
                              
                             </select>
                             <div class="input-group-addon"> <span class="ast">*</span></div>
                             </div>
                          </div>
                          
                        </div>	
                        
                         <div class="form-group">
                          <label for="email" class="col-sm-2 control-label"> Email </label>
                          <div class="col-sm-10"> 
                          <div class="input-group">
                            <input id="email" class="form-control input-sm" type="text" placeholder="Email" name="email" required
                            
                             value="<?php if(isset($_SESSION['e'])) echo $_SESSION['e']; ?>"></input>
                              
                             <div class="input-group-addon"> <span class="ast">*</span></div><span id="email_msg_box" style="display:none"></span>
                           </div>
                           
                          </div>
                       </div>	
                       
                       
                       
                         <div class="form-group">
                        
                          <label for="username" class="col-sm-2 control-label"> Username </label>
                          <div class="col-sm-10">
                          
                          <div class="input-group">
                           <span class="input-group-addon"> @</span>
                             <input id="username" class="form-control input-sm" type="text" placeholder="Username" name="username" required
                            
                             value="<?php if(isset($_SESSION['un'])) echo $_SESSION['un']; ?>"></input>
                             
                             <div class="input-group-addon"> <span class="ast">*</span></div> <span id="user_msg_box" style="display:none"></span>
                          
                            </div>
                          </div>
                       </div>	
                       	
                       
                       
                        <div class="form-group">
                          <label for="password" class="col-sm-2 control-label">Password</label>
                          <div class="col-sm-10">
                           <div class="input-group">
                            <input id="password" class="form-control input-sm" type="text" placeholder="Password" name="password" required
                            
                             value=""></input>
                             <div class="input-group-addon"> <span class="ast">*</span></div>
                          
                            </div>
                          </div>
                       </div>	
                       	
                       
                       
                       
                       <div class="form-group">
                          <label class="col-sm-2 control-label" for="group">Group</label>
                          <div class="col-sm-10">
                           <div class="input-group">
                            <select  class="form-control input-sm"  name="group"  id="group" required>
                              <option value="0">none</option><?php select_group($_SESSION['group']); ?>
                            </select>     
                           <div class="input-group-addon"> <span class="ast">*</span></div>
                          
                            </div>
                          </div>
                          
                        
                        </div>
                        
                        
                        
                        
                       
                </div><!-- /col-lg-6 --> 

				<div class="col-lg-6">
                	<br/>
                	<div class="form-group">
                          <label for="birthdate" class="col-sm-2 control-label">Birth-Date[YYYY-MM-DD] </label>
                          <div class="col-sm-10">
                           <div class="input-group">
                            <input id="datepicker4" class="form-control input-sm" type="text" placeholder="Birth date" name="birthdate" required
                            
                           value="<?php if(isset($_SESSION['birthdate'])) echo $_SESSION['birthdate'];?>"></input>
                            <div class="input-group-addon"> <span class="ast">*</span></div>
                          
                            </div>
                            
                          </div>
                       </div>
                       
                       
                          
                          
                          
                        
                        <div class="form-group">
                        <label class="col-sm-2 control-label" for="image"> Image</label>
                        <div class="col-sm-10">
                         <div class="input-group">
                        <input    name="image" class="form-control input-sm"  type="file" required></input>
                         <div class="input-group-addon"> <span class="ast">*</span></div>
                        </div>
                        <span class="help-block"> Upload  Image less than 50kb. 	
                        <span class="ast"><?php echo $errors['image_result_message']; ?></span></span>
					
                        
                        </div>
                      </div>
                        
                         
                        <div class="form-group">
                        <label class="col-sm-2 control-label" for="textarea">Address </label>
                          <div class="col-sm-10">
                          
                            <textarea class="form-control input-sm" id="" rows="3" class="rte1" name="address"action="#" >
                            <?php if(isset($_SESSION['address'])){echo $_SESSION['address'];} ?>
                            </textarea>
                          </div>
                        </div>
                        
                          
                       <div class="form-group">
                          <label for="phone_number" class="col-sm-2 control-label">Phone Number</label>
                          <div class="col-sm-10">
                          <div class="input-group">
                            <input id="phone_number" class="form-control input-sm" type="telephone" placeholder="Phone Number" name="phone_number"
                           value="<?php if(isset($_SESSION['phone_number'])) echo $_SESSION['phone_number'];?>" required
                            ></input>
                             <div class="input-group-addon"> <span class="ast">*</span></div>
                        </div>
                          </div>
                       </div>
                       
                         
                         <div class="form-group">
                              <label class="col-sm-2 control-label" for="user_status">User Status</label>
                              <div class="col-sm-10">
                              	<div class="input-group">
                                	<select  class="form-control input-sm" name="user_status"  id="user_status" required>
                                  	 <option value="1"  selected> Unblock </option>
                                  	 <option value="0" <?php if($_SESSION['user_status']=='0') echo "selected";?>> Block </option>
                               	    </select>
                                    <div class="input-group-addon"> <span class="ast">*</span></div>
                          		</div>
                         	  </div>
                         </div>
                         
                         
                         <div class="form-group">
                          <label class="col-sm-2 control-label" for="gender">Status</label>
                          <div class="col-sm-10">
                          
                            <select id="status" class="form-control input-sm" name="status" required>
                              
                            <?php  echo select_status($_SESSION['status']); ?>
                              
                             </select>
                          
                             
                          </div>
                          
                        </div>	
                         
                          <input type="hidden" value="save_users" name="act" />
                  		  <input type="hidden" value="TRUE" name="upload" />
             
                  </div><!-- /col-lg- 6 -->
                  </fieldset>
              
                   </form>
                
                
               
			</div><!-- / col-lg -12 -->
        
        </div> <!-- #view1 --> 
      </div> <!-- /tabcontent -->
</div> <!-- / well -->
