<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><a>
                                <span class="badge pull-right"><?php echo $total; ?></span>
                                Engines</a></li>
                        <li class="active"><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">Part Information</h2>

                </div>

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

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

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

                            <tr>
                                <th>Part Number:</th>  
                                <td><?php echo $this_plisting->part_number; ?></td>
                            </tr>

                            <tr>
                                <th>Part Description:</th>  
                                <td><?php echo $this_plisting->part_description; ?></td>
                            </tr>

                            <tr>
                                <th>Part Condition:</th>  
                                <td><?php echo $this_plisting->part_condition; ?></td>
                            </tr>

                            <tr>
                                <th>Engine Model:</th>  
                                <td><?php echo $this_plisting->enginep_model; ?></td>
                            </tr>

                            <tr>
                                <th>Tag:</th>  
                                <td><?php echo $this_plisting->tag; ?></td>
                            </tr>

                            <tr>
                                <th>Quantity:</th>  
                                <td><?php echo $this_plisting->quantity; ?></td>
                            </tr>

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

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

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

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

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

                            <tr>
                                <th>Date Listed:</th>  
                                <td><?php echo $this_plisting->date_listed; ?></td>
                            </tr>
                            
                             <tr>
                                <?php $idz = $this->ion_auth->get_user_id(); ?>
                                <?php $user = $this->ion_auth->user($idz)->row(); ?>
                                
                                <th>Record:</th>  
                                <td><a href="<?php echo base_url(); ?>members/<?php echo $user->email ?>/part_listings/<?php echo $this_plisting->record_folder; ?>/<?php echo $this_plisting->record_name ?>" target="_blank"><?php echo $this_plisting->record_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>
