
<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">My Listings</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_listings/my_jobs_list">
                                <span class="badge pull-right"><?php echo $total; ?></span>
                                Jobs</a></li>
                        <li><a href="<?php echo base_url(); ?>careers_listings/my_resume_list">
                                <span class="badge pull-right"><?php echo $ptotal; ?></span>
                                Resume</a></li>
                    </ul>
                </div>
            </div>
        </div>

<!--Mid panel heading-->
<div class="col-md-6">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h2 class="form-signin-heading">Edit Job Information</h2>
        
        </div>
        
        <?php $attributes = array(
            'class' => 'form-horizontal',
        ); ?>
        
        <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>
        
        <?php // if($this->session->flashdata('engine_updated')) : ?>
        <!--<p class="alert alert-dismissable alert-success"><?php // echo $this->session->flashdata('engine_updated'); ?></p>-->
        <?php // endif; ?>
            
        <?php echo form_open_multipart('careers_listings/edit_job_listing/' .$this_listing->listing_id.'', $attributes); ?>
        
            <!--Mid panel body-->        
        <div class="panel-body">
            
            <div class="form-group">           
                            <label for="company_name" class="col-sm-3 control-label">Company Name:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="company_name" name="company_name" value="<?php echo $this_listing->company_name; ?>">
                            </div>
                        </div>
            <div class="form-group">           
                            <label for="position_name" class="col-sm-3 control-label">Position:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="position_name" name="position_name" value="<?php echo $this_listing->position_name; ?>">
                            </div>
                        </div>       
            <div class="form-group">           
                            <label for="full_job_description" class="col-sm-3 control-label">Full Job Description:</label>
                            <div class="col-sm-5">
							<textarea class="form-control" rows="8" id="full_job_description" name="full_job_description"><?php echo $this_listing->full_job_description; ?></textarea>
							</div>
                        </div>
            <div class="form-group">           
                            <label for="job_type" class="col-sm-3 control-label">Job Type:</label>
                            <div class="col-sm-5">
							
                                <select name="jobtype_dropdown" class="form-control">
                                    <option value="--Select a Job Type--" <?php echo ($this_listing->job_type == "--Select a Job Type--") ? 'selected': ''; ?>>--Select a Job Type--</option>
                                    <option value="Full Time" <?php echo ($this_listing->job_type == "Full Time") ? 'selected': ''; ?>>Full Time</option>
                                    <option value="Contract" <?php echo ($this_listing->job_type == "Contract") ? 'selected': ''; ?>>Contract</option>
                                    <option value="Internship" <?php echo ($this_listing->job_type == "Internship") ? 'selected': ''; ?>>Internship</option>
                                </select>
                            </div>
                        </div>
            <div class="form-group">           
                            <label for="city" class="col-sm-3 control-label">City:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="city" name="city" value="<?php echo $this_listing->city ?>">
                            </div>
                        </div>
			<div class="form-group">           
                            <label for="state" class="col-sm-3 control-label">State:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="state" name="state" value="<?php echo $this_listing->state ?>">
                            </div>
                        </div>
			<div class="form-group">           
                            <label for="country" class="col-sm-3 control-label">Country:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="country" name="country" value="<?php echo $this_listing->country ?>">
                            </div>
                        </div>			
            <div class="form-group">           
                            <label for="travel" class="col-sm-3 control-label">Travel Required:</label>
                            <div class="col-sm-5">
							
                                <select name="travel_dropdown" class="form-control">
                                    <option value="--Select Yes or No--" <?php echo ($this_listing->travel == "--Select Yes or No--") ? 'selected': ''; ?>>--Select Yes or No--</option>
                                    <option value="Yes" <?php echo ($this_listing->travel == "Yes") ? 'selected': ''; ?>>Yes</option>
                                    <option value="No" <?php echo ($this_listing->travel == "No") ? 'selected': ''; ?>>No</option>                                                                
                                </select>
                            </div>
                        </div>
            <div class="form-group">           
                            <label for="website" class="col-sm-3 control-label">Company Website:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="website" name="website" value="<?php echo $this_listing->website; ?>">
                            </div>
                        </div>           
            <div class="form-group">           
                            <label for="closing_date" class="col-sm-3 control-label">Offer Closing Date:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control datepicker" data-date-format="yyyy-mm-dd" id="closing_date" name="closing_date" value="<?php echo $this_listing->closing_date; ?>">
                            </div>
                        </div>
            
            <div class="form-group">           
                            <label for="job_phone" class="col-sm-3 control-label">Phone Number:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="job_phone" name="job_phone" value="<?php echo $this_listing->job_phone; ?>">
                            </div>
                        </div>
			<div class="form-group">           
                            <label for="job_email" class="col-sm-3 control-label">E-Mail:</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" id="job_email" name="job_email" value="<?php echo $this_listing->job_email; ?>">
                            </div>
                        </div>			
          
            
            <div class="form-group">
                            <div class="col-sm-offset-3 col-sm-10">
                                <button type="submit" class="btn btn-primary btn-xs">Save 
                                <i class="glyphicon glyphicon-log-in"></i></button>
                                <a href="<?php echo base_url(); ?>careers_listings/my_jobs_list">
                               
                                    
                                    <button type="button" class="btn btn-default btn-xs">Close</button></a>
                            </div>
                        </div>

                        
        </div>
            <?php echo form_close(); ?>
            
            
       
    </div>
</div>

    </div>
</div>