<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">Member Activity</h3>
                </div>

                <!--Left panel body-->
                <div class="panel-body">
                    <ul class="nav nav-pills nav-stacked">
                        <div id="jumbo2" class="jumbotron">
                        <h1><br><br></h1>
                        </div>
                        <!--<li><img style="margin-left: 50px" border="0" src="../res/images/slides/IAEALOGOPNG1.png" width="120" height="120"></li>-->
                    </ul>
                </div>
            </div>
        </div>

        <!--Mid panel heading-->

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

                </div>

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

<?php echo form_open('activity/search', $attributes); ?>

                <!--Mid panel body-->        
                <div class="panel-body">
<!--
                    <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>

                    <?php if ($this->session->flashdata('test')) : ?>
                        <p class="alert alert-dismissable alert-success"><?php echo $this->session->flashdata('test'); ?></p>
<?php endif; ?>-->

                    <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("activity/display/$query_id/$field_name/" .
					(($sort_order == 'asc' && $sort_by == $field_name) ? 'desc' : 'asc') ,
					$field_display); ?>
			</th>
			<?php endforeach; ?>
                    </tr>
		</thead>
                        <tbody>
			<?php foreach($membersforview as $user): ?>
			<tr>
				<?php foreach($fields as $field_name => $field_display): ?>
				<td>
			<?php echo $user->$field_name; ?>
                                    
				</td>
				<?php endforeach; ?>
			</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; ?>
  <?php echo form_close(); ?>

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

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