<!-- Main content -->
                <section class="content">

                    <!-- Small boxes (Stat box) -->
                    <div class="row">
                       <div class="col-md-8">
                            <!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title">Create admin</h3>
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                 <?php 
	 if($this->session->flashdata('success_msg')){?>
		 <div style="color:green"><?php echo $this->session->flashdata('success_msg');?></div>		
		<?php  } ?>
                                <form role="form" action="<?php echo site_url('aqadmin/create_admin');?>" method="post">
                                    <div class="box-body">
									
                                    <div class="form-group">
                                            <label for="exampleInputEmail1">Admin Name</label>
                                            <input type="text" name="adname" class="form-control"  placeholder="Enter name" value="<?php echo set_value('adname'); ?>">
                                            <?php if(form_error('adname') != ""){?>     
     <div style="color:red"><?php echo "Enter name.";?></div>
       <?php } ?> 
                                        </div>
                                    
 <div class="form-group">
                                            <label for="exampleInputEmail1">Email</label>
                                            <input type="text" name="email" class="form-control"  placeholder="Enter email" value="<?php echo set_value('email'); ?>">
                                            <?php if(form_error('email') != ""){?>     
     <div style="color:red"><?php echo "Enter valid unique email.";?></div>
       <?php } ?> 
                                        </div>
                     
                                      <div class="form-group">
                                            <label for="exampleInputEmail1">Password</label>
                                            <input type="text" name="pswd" class="form-control"  placeholder="Enter password">
                                            <?php if(form_error('pswd') != ""){?>     
     <div style="color:red"><?php echo "Enter password.";?></div>
       <?php } ?> 
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Role</label>
                                            <select name="rol" class="form-control">
												<option value="">select</option>
                                                <option value="sub">Sub</option>
											    <option value="main">Main</option>												
                                            </select>
                                            <?php if(form_error('rol') != ""){?>     
                               <div style="color:red"><?php echo "Select admin role.";?></div>
                                  <?php } ?> 
                                        </div>
                                        <div class="form-group">
                                            <label for="exampleInputEmail1">Links</label><br>
                                            <?php foreach($lin ->result() as $raw){?>
                                            <input type="checkbox" name="link[]" value="<?php echo $raw->lk_id;?>"><?php echo $raw->links;?>&nbsp;&nbsp;&nbsp;&nbsp;
                                           <?php } ?>
                                            <?php if(form_error('link') != ""){?>     
                               <div style="color:red"><?php echo "Select links.";?></div>
                                  <?php } ?>
                                        </div>
                                        
                                    </div><!-- /.box-body -->

                                    <div class="box-footer">
                                        <button type="submit" class="btn btn-primary">Submit</button>
                                    </div>
                                </form>
                            </div><!-- /.box -->

                            

                        </div>
                    
                        </div>
                    </div><!-- /.row -->

                    <!-- top row -->
                    
                    

                    
                    
