<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">Marketplace - Search Resumes</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>
            </div>

            <!--LEFT COLUMN ADVERTISEMENTS PLACEHOLDER FOR REVISION2 -->            
<!--            <div class="panel panel-default">       
                <div class="panel-body">
                    ADD PLACEHOLDER
                </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">Resumes
                </div>

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

<?php echo form_open('careers_market_listings/search_resume_listings', $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; ?>

                    <!--<div id="response"></div>-->

                    <span class="msgF pull-right">* required field.</span>

                    <div class="form-group">           
                        <label for="column" class="col-sm-1 control-label">Search By:</label>
                        <div class="col-sm-3">

                            <select name="rcolumn_dropdown" id="rcolumn_dropdown" class="form-control">
                                <option value="--Select Column--" <?php if (!empty($_REQUEST['rcolumn_dropdown']) && $_REQUEST['rcolumn_dropdown'] == '--Select Column--') echo 'selected'; ?>>--Select Column--</option>
                                <option value="first_name" <?php if (!empty($_REQUEST['rcolumn_dropdown']) && $_REQUEST['rcolumn_dropdown'] == 'first_name') echo 'selected'; ?>>First Name</option>
                                <option value="last_name" <?php if (!empty($_REQUEST['rcolumn_dropdown']) && $_REQUEST['rcolumn_dropdown'] == 'last_name') echo 'selected'; ?>>Last Name</option>
                                <option value="r_skills" <?php if (!empty($_REQUEST['rcolumn_dropdown']) && $_REQUEST['rcolumn_dropdown'] == 'r_skills') echo 'selected'; ?>>Skills</option>
                                <option value="r_email" <?php if (!empty($_REQUEST['rcolumn_dropdown']) && $_REQUEST['rcolumn_dropdown'] == 'r_email') echo 'selected'; ?>>E-Mail</option>

                            </select>
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>

                    </div>

                    <div class="form-group">           
                        <label for="searchfield" class="col-sm-1 control-label">Criteria:</label>
                        <div class="col-sm-3">
                            <input type="text" class="form-control" id="search_field" name="search_field" autocomplete="off" value="<?php echo set_value('search_field'); ?>" placeholder="Criteria">
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>

                    </div> 


                    <div class="form-group">
                        <div class="col-sm-offset-1 col-sm-10">
                            <button type="submit" class="btn btn-primary btn-xs">Search 
                                <i class="glyphicon glyphicon-search"></i></button>
                        </div>
                    </div>



                    <table style="font-size: 13px;" class="table table-bordered table-hover table-condensed">
                        <thead>
                            <tr>
                                <th>First Name:</th>
                                <th>Last Name:</th>
                                <th>Skills:</th>
                                <th>Most Recent Job:</th>
                                <th>Most Recent Degree:</th>
                                <th>Phone Number:</th>
                                <th>E-Mail:</th>
                                <th>Resume:</th>
                            </tr>
                        </thead>
                        <tbody>


                        </tbody>
                    </table>         
                </div>

<?php echo form_close(); ?>


                <div class="panel-footer">
                    <div class="row">
                        <div class="col-md-4">

<?php if (!empty($rstart) && !empty($rend)) { ?>

                                Showing: <span id="label" class="label"><?php echo $rstart; ?> to <?php echo $rend; ?> of <?php echo $ptotal; ?> entries</span>

<?php } ?>
                        </div> 
                        <div class="col-md-7 pull-right">
                            <div id ="pgcol" class="pgPaginate" id="paginateInfo">
                                <?php if (!empty($rlinks)): ?>

                                    <?php echo $rlinks; ?>

<?php endif; ?>

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

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

