<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">Career Listings</h3>
                </div>

                 <!--Left panel body-->
                <div class="panel-body">
                    <ul class="nav nav-pills nav-stacked">
                        <li><a href="<?php echo base_url(); ?>careers_market_listings/job_listings">
                                <span class="badge pull-right"><?php echo $total; ?></span>
                                Jobs</a></li>
                        <li class="active"><a href="<?php echo base_url(); ?>careers_market_listings/resume_listings">
                                <span class="badge pull-right"><?php echo $ptotal; ?></span>
                                Resumes</a></li>
                    </ul>
                    

<div class="panel-group" id="accordion">
  <div class="panel panel-default">
    <div class="panel-heading">
      <h4 class="panel-title">
        <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
          Search
        </a>
      </h4>
    </div>
    <div id="collapseOne" class="panel-collapse collapse">
      <div class="panel-body">
          
          <?php echo form_open('careers_market_listings/search_resume_listings'); ?>                
          <div class="form-group">
              <div  id="btnMrgn" class="col-sm-8">
                  <button type="submit" class="btn btn-primary btn-xs">Search 
                      <i class="glyphicon glyphicon-search"></i></button>
              </div>
          </div>
          
          <?php echo form_close(); ?>
      
      </div>
    </div>
  </div>
</div>
                    
                    
                    
                </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-10">
    <div class="panel panel-default">
        <div class="panel-heading">Resumes
            
            
        </div>
        
        <!--Mid panel body-->        
        <div class="panel-body">
            
        <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>

        <?php if ($this->session->flashdata('msg_sent')) : ?>
        <p class="alert alert-dismissable alert-success"><?php echo $this->session->flashdata('msg_sent'); ?></p>
        <?php endif; ?>
        
        
           
        
        <table style="font-size: 13px;" class="table table-bordered table-hover table-condensed">
    <thead>
        <tr>
           <th class="col-md-2" <?php if($sort_by == 'first_name') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/first_name/" .
                      (($sort_order == 'asc' && $sort_by == 'first_name') ? 'desc' : 'asc') ,
                      'First Name: '); ?></th>
		  <th class="col-md-2" <?php if($sort_by == 'last_name') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/last_name/" .
                      (($sort_order == 'asc' && $sort_by == 'last_name') ? 'desc' : 'asc') ,
                      'Last Name: '); ?></th>			  
          <th class="col-md-2" <?php if($sort_by == 'r_skills') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/r_skills/" .
                      (($sort_order == 'asc' && $sort_by == 'r_skills') ? 'desc' : 'asc') ,
                      'Skills: '); ?></th>
          <th class="col-md-2" <?php if($sort_by == 'r_job_history') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/r_job_history/" .
                      (($sort_order == 'asc' && $sort_by == 'r_job_history') ? 'desc' : 'asc') ,
                      'Most Recent Job: '); ?></th>
          <th class="col-md-2" <?php if($sort_by == 'education') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/education/" .
                      (($sort_order == 'asc' && $sort_by == 'education') ? 'desc' : 'asc') ,
                      'Most Recent Degree: '); ?></th>
          <th class="col-md-2" <?php if($sort_by == 'r_phone') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/r_phone/" .
                      (($sort_order == 'asc' && $sort_by == 'r_phone') ? 'desc' : 'asc') ,
                      'Phone: '); ?></th>
		  <th class="col-md-2" <?php if($sort_by == 'r_email') echo "id=\"sort_$sort_order\"" ?>><?php echo anchor("careers_market_listings/resume_listings/r_email/" .
                      (($sort_order == 'asc' && $sort_by == 'r_email') ? 'desc' : 'asc') ,
                      'E-Mail: '); ?></th>
		  <th class="col-md-2">Resume: </th>		  
          <th></th>
        </tr>
    </thead>
    <tbody>
        <?php if(!empty($rlistings) ) { ?> 
          <?php foreach($rlistings as $list) : ?>
        <tr>
        <!--<tr data-toggle="collapse" data-target="#<?php // echo $list->id; ?>" class="accordion-toggle">-->
          <td><a href="<?php echo base_url(); ?>auth/view_other_user/<?php echo $list->id; ?>"><?php echo $list->first_name; ?></a></td>
          <td><a href="<?php echo base_url(); ?>auth/view_other_user/<?php echo $list->id; ?>"><?php echo $list->last_name; ?></a></td>
		  <td><?php echo $list->r_skills; ?></td>
		  <td><?php echo $list->r_job_history; ?></td>
          <td><?php echo $list->education; ?></td>
          <td><?php echo $list->r_phone; ?></td>
		  <td><?php echo $list->r_email; ?></td>
		  <td><a href="<?php echo base_url(); ?>members/<?php echo $list->r_email; ?>/resume/<?php echo $list->r_filename; ?>"  target="_blank"><i class="glyphicon glyphicon-file"></i></a></td>
            
            <td>              
                <a href="<?php echo $list->resume_id; ?>" data-va="<?php echo $list->r_email; ?>" data-id="<?php echo $list->resume_id; ?>"><i class="glyphicon glyphicon-envelope"></i></a>
            </td>
            
        </tr>   
         <?php endforeach; ?>
         <?php } ?>
    </tbody>
</table>
        
        
        </div>
        
        <!--Mid panel footer-->
        <div class="panel-footer">
            <div class="row">
                <div class="col-md-4">
                    
                     <?php if(!empty($start) && !empty($end)) { ?>
                    
                    Showing: <span id="label" class="label"><?php echo $start; ?> to <?php echo $end; ?> of <?php echo $total; ?> entries</span>
                
                    <?php } ?>
                </div> 
                <div class="col-md-7 pull-right">
                    <div id ="pgcol" class="pgPaginate" id="paginateInfo"> 
                        <?php echo $rlinks; ?>
                    </div>
                </div>
            </div>  
        </div>
        
        
    </div>
</div>
    </div>
</div>


   

