<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="panel panel-default">

                <!--Left panel heading-->
                <div class="panel-heading">
                    <h3 class="panel-title">Deactivate Members</h3>
                </div>

                <!--Left panel body-->
                <div class="panel-body">
                    <ul class="nav nav-pills nav-stacked">
                        <li class="active"><a href="<?php echo base_url(); ?>auth/deactivate"><span class="badge pull-right"><?php echo $num_results; ?></span>Members</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <!--Mid panel heading-->
        <div class="col-md-10">
            <div class="panel panel-default">
                <div class="panel-heading">

                    BOX FOR MENTOR

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

        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="form-signin-heading">Deactivate Members</h2>

                </div>

                <?php
                $attributes = array(
                    'class' => 'form-horizontal',
                    'id' => 'submit'
                );
                ?>



                <!--Mid panel body-->        
                <div class="panel-body">
                    
                    <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>
                    
                   <?php if ($this->session->flashdata('member_deactivated')) : ?>
                    <p class="alert alert-dismissable alert-success"><?php echo $this->session->flashdata('member_deactivated'); ?></p>
                    <?php endif; ?>
                    
                    <?php echo form_open('auth/deactivate', $attributes); ?>
                    
                    <span class="msgF pull-right">* required field.</span>
                    
                    <div class="form-group">           
                        <label for="deactivation_id" class="col-sm-4 control-label">Enter User ID to Deactivate:</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="deactivation_id" name="deactivation_id" autocomplete="off" placeholder="User ID">
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-offset-4 col-sm-10">
                            <button type="submit" class="btn btn-primary btn-xs">Deactivate 
                                <i class="glyphicon glyphicon-remove-circle"></i></button>
                        </div>
                    </div>
                        
                        <?php echo form_close(); ?>
  
                    
                    <table style="font-size: 13px;" class="table table-bordered table-hover table-condensed">
                      <thead>
                    <tr>
			<?php foreach($fields as $field_name => $field_display): ?>
			<th <?php if ($sort_by == $field_name) echo "id=\"sort_$sort_order\"" ?>>
                            
                            <?php
                                echo anchor("auth/deactivate/$query_id/$field_name/" .
                                        (($sort_order == 'asc' && $sort_by == $field_name) ? 'desc' : 'asc'), $field_display);
                                ?>
			</th>
			<?php endforeach; ?>
                        <th></th>
                    </tr>
		     </thead>
                        <tbody>
			<?php foreach($membersforview as $user): ?>
			<tr>
				
                                    <!-- get id to use for link -->
                                       <?php $id = $user->id; ?>
                                       <?php $function = array('auth/view_other_user', $id);?>
                                        <td class="hidden-xs"><?php echo $user->id; ?></td>
                                        <td class="hidden-xs"><?php echo $user->first_name; ?></td>
                                        <td class="hidden-xs"><?php echo $user->last_name; ?></td>
                                        <td class="hidden-xs"><?php echo $user->email; ?></td>
                                        <td class="hidden-xs"><?php echo $user->company; ?></td>
                                        <td class="hidden-xs"><?php echo $user->position; ?></td>
                                        <td class="hidden-xs"><?php echo $user->country; ?></td>
                                        <td class="hidden-xs"><?php echo $user->activated; ?></td>
                                <td>
                                    <a href="<?php echo base_url($function) ?>"><i class="glyphicon glyphicon-user"></i></a>
                                </td>
				
			</tr>
			<?php endforeach; ?>			
		</tbody>
                    </table>         
                </div>




                <div class="panel-footer">
                    <div class="row">
                        <div class="col-md-7 pull-right">
                            <div id ="pgcol" class="pgPaginate" id="paginateInfo">
                                <?php if (strlen($pagination)): ?>
	                      <?php echo $pagination; ?>
	
	                   <?php endif; ?>

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

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