<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>
                                <span class="badge pull-right"><?php echo $total; ?></span>
                                Engines</a></li>
                        <li><a>
                                <span class="badge pull-right"><?php echo $ptotal; ?></span>
                                Parts</a></li>
                    </ul>
                </div>
            </div>
        </div>


        <div class="col-md-4">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="form-signin-heading">Engine Information</h2>

                </div>

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

<?php echo form_open('epc_listings/listings/display_listing/' . $this_listing->list_id . '', $attributes); ?>
                

                <!--Mid panel body-->          
                <div class="panel-body">
                    <table class="table table-bordered table-striped table-condensed">
                        <tbody>

                            <tr>
                                <th>Manufacturer:</th>  
                                <td><?php echo $this_listing->manufacturer; ?></td>
                            </tr>

                            <tr>
                                <th>Engine Model:</th>  
                                <td><?php echo $this_listing->engine_model; ?></td>
                            </tr>

                            <tr>
                                <th>ESN:</th>  
                                <td><?php echo $this_listing->esn; ?></td>
                            </tr>

                            <tr>
                                <th>TSN:</th>  
                                <td><?php echo $this_listing->tsn; ?></td>
                            </tr>

                            <tr>
                                <th>CSN:</th>  
                                <td><?php echo $this_listing->csn; ?></td>
                            </tr>

                            <tr>
                                <th>TSO:</th>  
                                <td><?php echo $this_listing->tso; ?></td>
                            </tr>

                            <tr>
                                <th>CSO:</th>  
                                <td><?php echo $this_listing->cso; ?></td>
                            </tr>

                            <tr>
                                <th>First Limiter:</th>  
                                <td><?php echo $this_listing->first_limiter; ?></td>
                            </tr>

                            <tr>
                                <th>Limiting Module:</th>  
                                <td><?php echo $this_listing->limiting_module; ?></td>
                            </tr>

                            <tr>
                                <th>Last Operator:</th>  
                                <td><?php echo $this_listing->last_operator; ?></td>
                            </tr>

                            <tr>
                                <th>Location:</th>  
                                <td><?php echo $this_listing->location; ?></td>
                            </tr>

                            <tr>
                                <th>Lister:</th>  
                                <td><?php echo $this_listing->lister; ?></td>
                            </tr>

                            <tr>
                                <th>Transaction:</th>  
                                <td><?php echo $this_listing->transaction; ?></td>
                            </tr>

                            <tr>
                                <th>Asking Price:</th>  
                                <td><?php echo $this_listing->asking_price; ?></td>
                            </tr>

                            <tr>
                                <th>Monthly Rent:</th>  
                                <td><?php echo $this_listing->monthly_rent; ?></td>
                            </tr>

                            <tr>
                                <th>Available Date:</th>  
                                <td><?php echo $this_listing->available_date; ?></td>
                            </tr>

                            <tr>
                                <th>Date Listed:</th>  
                                <td><?php echo $this_listing->date_listed; ?></td>
                            </tr>

                            <tr>
                                <?php $idz = $this->ion_auth->get_user_id(); ?>
                                <?php $user = $this->ion_auth->user($idz)->row(); ?>
                                
                                <th>Minipack:</th>  
                                <td><a href="<?php echo base_url(); ?>members/<?php echo $user->email ?>/engine_listings/<?php echo $this_listing->mini_pack_folder; ?>/<?php echo $this_listing->mini_pack_name ?>" target="_blank"><?php echo $this_listing->mini_pack_name; ?></a></td>
                            </tr>

                        </tbody>
                    </table>

                    <div class="">
                        <a href="javascript:window.history.go(-1);">

                            <button type="button" class="btn btn-primary btn-xs">Close 
                                <i class="glyphicon glyphicon-log-out"></i></button></a>
                    </div>

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



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