<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 Parts</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(); ?>epc_listings/market_listings/search_p_listings">
                                <span class="badge pull-right"><?php echo $ptotal; ?></span>
                                Total Parts</a></li>
                        <li><a>
                                <span class="badge pull-right"><?php echo $ftotal; ?></span>
                                Found Parts</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="well panel panel-default">
                <div class="panel-heading">

                    <p>IAEA incorporated the component trade on the same e-commerce cloud to integrate every aspect of the trade in the aircraft engine industry. Similar to engine marketplace, the asking price and component’s paperwork have been included to eliminate placeholders and advocate online trading. The IAEA’s Marketplace will eliminate 100s of phone calls, email and fax communications for component transactions to take place and provide visibility to market pricing like a stock market. Sellers can upload their inventories using an upload template while buyers can post their inquiries for a better response especially in case of AOG. The advantage of the IAEA’s Marketplace is that it brings a focus to engine components that have longer trading value and life than airframe components.</p>

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

        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-heading">Parts

                </div>

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

<?php echo form_open('epc_listings/market_listings/search_p_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 id="sby" 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="part_number" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'part_number') echo 'selected'; ?>>Part Number</option>
                                <option value="part_description" <?php if (!empty($_REQUEST['column_dropdown']) && $_REQUEST['column_dropdown'] == 'part_description') echo 'selected'; ?>>Part Description</option>
                            </select>
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>

                    </div>

                    <div class="form-group">           
                        <label id="sf" style="font-size: 13px;" 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>Part Number:</th>
                                <th>Part Description:</th>
                                <th>Part Condition:</th>
                                <th>Tag:</th>
                                <th class="hidden-xs">Quantity:</th>
                                <th class="hidden-xs">Lister:</th>
                                <th class="hidden-xs">Transaction:</th>
                                <th class="hidden-xs">Asking Price:</th>
                                <th class="hidden-xs">Available Date:</th>
                                <th class="hidden-xs">Contact:</th>
                                <th class="hidden-xs">Email:</th>
                                <th class="hidden-xs">Phone:</th>
                                <th></th>
                            </tr>
                        </thead>
                        <tbody>


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

<?php echo form_close(); ?>


                <div class="panel-footer">
                </div>

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

