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

                    <!-- Small boxes (Stat box) -->
                    <div class="row">
                       <div class="col-md-6">
                            <!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title">Edit 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/edit_profile');?>" method="post">
                                <?php
                                $user= $this->session->userdata('user');
                                foreach($adm as $raw){?>
                                    <div class="box-body">
									
                                    <div class="form-group">
                                            <label for="exampleInputEmail1">Admin Name</label>
                                            <input type="text" name="adname" class="form-control"  value="<?php echo $raw->username;?>" <?php if($user!='admin') {echo "disabled"; } ?>>
                                       
                                        </div>
                                    
 <div class="form-group">
                                            <label for="exampleInputEmail1">Email</label>
                                            <input type="text" name="email" class="form-control"  value="<?php echo $raw->email;?>" <?php if($user!='admin') {echo "disabled"; } ?>>
                                   
                                        </div>
                     
                                      
                                       
                                     
                                        
                                    </div><!-- /.box-body -->

                                    <div class="box-footer">
                                        <?php if($user=='admin')
                                        {
                                            ?>
                                            <button type="submit" class="btn btn-primary">Submit</button>
                                            <?php
                                        }
                                        ?>
                                        
                                    </div>
                                    <?php } ?>
                                </form>
                            </div><!-- /.box -->

                            

                        </div>
                       <div class="col-md-6">
                            <!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title">Change password</h3>
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                 <?php 
     if($this->session->flashdata('pwd_success_msg')){?>
         <div style="color:green"><?php echo $this->session->flashdata('pwd_success_msg');?></div>      
        <?php  } ?>
                                <form role="form" action="<?php echo site_url('aqadmin/change_password');?>" method="post">
                                <?php foreach($adm as $raw){?>
                                    <div class="box-body">
                                  <input type="hidden" name="user" class="form-control"  value="<?php echo $this->session->userdata('user'); ?>">  
                                    
                                    
 <div class="form-group">
                                            <label for="exampleInputEmail1">Current Password</label>
                                            <input type="password" name="old_password" class="form-control"  value="">
                                   <?php if(form_error('old_password') != ""){?>     
     <div style="color:red"><?php echo "Enter current password.";?></div>
       <?php } ?>  
                                        </div>
                     
                                      <div class="form-group">
                                            <label for="exampleInputEmail1">New Password</label>
                                            <input type="password" name="new_password" class="form-control"  value="">
                     <?php if(form_error('new_password') != ""){?>     
     <div style="color:red"><?php echo "Enter new password.";?></div>
       <?php } ?>  
                                        </div>
                                       <div class="form-group">
                                            <label for="exampleInputEmail1">Confirm Password</label>
                                            <input type="password" name="confirm_password" class="form-control"  value="">
                     <?php if(form_error('confirm_password') != ""){?>     
     <div style="color:red"><?php echo "Enter matching password.";?></div>
       <?php } ?>    
                                        </div>
                                       
                                     
                                        
                                    </div><!-- /.box-body -->

                                    <div class="box-footer">
                                        <button type="submit" class="btn btn-primary">Change password</button>
                                    </div>
                                    <?php } ?>
                                </form>
                            </div><!-- /.box -->

                            

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

                    <!-- top row -->
                    
                    

                    
                    
