<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 Jobs</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(); ?>careers_market_listings/job_listings">
                                <span class="badge pull-right"><?php echo $total; ?></span>
                                Jobs</a></li>
                        <li><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">Jobs
                </div>

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

<?php echo form_open('careers_market_listings/search_job_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="column_dropdown" id="column_dropdown" class="form-control">
                                <option value="--Select Column--" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == '--Select Column--') echo 'selected'; ?>>--Select Column--</option>
                                <option value="company_name" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'company_name') echo 'selected'; ?>>Company Name</option>
                                <option value="position_name" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'position_name') echo 'selected'; ?>>Position Name</option>
                                <option value="job_type" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'job_type') echo 'selected'; ?>>Job Type</option>
                                <option value="city" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'city') echo 'selected'; ?>>City</option>
                                <option value="state" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'state') echo 'selected'; ?>>State</option>
                                <option value="country" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'country') echo 'selected'; ?>>Country</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>Company Name:</th>
                                <th>Position:</th>
                                <th>Job Type:</th>
                                <th>City:</th>
                                <th>State:</th>
                                <th>Country:</th>
                                <th>Offer Closing Date:</th>
                                <th>Phone:</th>
                                <th>Email:</th>
                                <th></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($jstart) && !empty($jend)) { ?>

                                Showing: <span id="label" class="label"><?php echo $jstart; ?> to <?php echo $jend; ?> 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($jlinks)): ?>

                                    <?php echo $jlinks; ?>

<?php endif; ?>

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

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

