<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>

        <!--Mid panel heading-->
        <div class="col-md-6">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h2 class="form-signin-heading">Enter Engine Information</h2>

                </div>

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

                <?php echo validation_errors('<p class="alert alert-dismissable alert-danger">'); ?>
                
                

            <?php echo form_open_multipart('epc_listings/listings/add_listing', $attributes); ?>

                <!--Mid panel body-->        
                <div class="panel-body">

                    <span class="msgF pull-right">* required field.</span>

                    <div class="form-group">           
                        <label for="manufacturer" class="col-sm-3 control-label">Manufacturer:</label>
                        <div class="col-sm-5">

                            <select name="company_dropdown" class="form-control">
                                <option value="--Select Manufacturer--" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == '--Select Manufacturer--') echo 'selected'; ?>>--Select Manufacturer--</option>
                                <option value="CFM International" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'CFM International') echo 'selected'; ?>>CFM International</option>
                                <option value="Engine Alliance" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'Engine Alliance') echo 'selected'; ?>>Engine Alliance</option>
                                <option value="GE Aviation" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'GE Aviation') echo 'selected'; ?>>GE Aviation</option>
                                <option value="Honeywell Aerospace" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'Honeywell Aerospace') echo 'selected'; ?>>Honeywell Aerospace</option>
                                <option value="International Aero Engines" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'International Aero Engines') echo 'selected'; ?>>International Aero Engines</option>
                                <option value="Pratt & Whitney" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'Pratt & Whitney') echo 'selected'; ?>>Pratt & Whitney</option>
                                <option value="Rolls Royce" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'Rolls Royce') echo 'selected'; ?>>Rolls Royce</option>
                                <option value="Williams International" <?php if (!empty($_REQUEST['company_dropdown']) && $_REQUEST['company_dropdown'] == 'Williams International') echo 'selected'; ?>>Williams International</option>

                            </select>
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="engine_model" class="col-sm-3 control-label">Engine Model:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="engine_model" name="engine_model" autocomplete="off" value="<?php echo set_value('engine_model'); ?>" placeholder="Engine Model">
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="esn" class="col-sm-3 control-label">ESN:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="esn" name="esn" autocomplete="off" value="<?php echo set_value('esn'); ?>" placeholder="Esn Number">
                        </div>
                        <div class="col-sm-1">
                            <span class="error2">*</span>
                        </div>

                    </div>    
                    <div class="form-group">           
                        <label for="tsn" class="col-sm-3 control-label">TSN:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="tsn" name="tsn" autocomplete="off" value="<?php echo set_value('tsn'); ?>" placeholder="Tsn Number">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="csn" class="col-sm-3 control-label">CSN:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="csn" name="csn" autocomplete="off" value="<?php echo set_value('csn'); ?>" placeholder="Csn Number">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="tso" class="col-sm-3 control-label">TSO:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="tso" name="tso" autocomplete="off" value="<?php echo set_value('tso'); ?>" placeholder="Tso Number">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="cso" class="col-sm-3 control-label">CSO:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="cso" name="cso" autocomplete="off" value="<?php echo set_value('cso'); ?>" placeholder="Cso Number">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="first_limiter" class="col-sm-3 control-label">First Limiter:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="first_limiter" name="first_limiter" autocomplete="off" value="<?php echo set_value('first_limiter'); ?>" placeholder="First Limiter">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="limiting_module" class="col-sm-3 control-label">Limiting Module:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="limiting_module" name="limiting_module" autocomplete="off" value="<?php echo set_value('limiting_module'); ?>" placeholder="Limiting Module">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="last_operator" class="col-sm-3 control-label">Last Operator:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="last_operator" name="last_operator" autocomplete="off" value="<?php echo set_value('last_operator'); ?>" placeholder="Last operator">
                        </div>
                    </div>
                    <div class="form-group">           
                        <label for="location" class="col-sm-3 control-label">Location:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="location" name="location" autocomplete="off" value="<?php echo set_value('location'); ?>" placeholder="Location">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="lister" class="radio-inline col-sm-3 control-label"><strong>Lister:</strong></label>
                        <div class="col-sm-5">
                            <label class="radio-inline">
                                <input type="radio" id="inlineRadio1" name="inlineradio" value="Buyer" <?php echo set_radio('inlineradio', 'Buyer'); ?>>Buyer
                            </label>
                            <label class="radio-inline">
                                <input type="radio" id="inlineRadio2" name="inlineradio" value="Seller" <?php echo set_radio('inlineradio', 'Seller'); ?>>Seller
                            </label>
                        </div>
                        <div class="col-xs-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="transaction" class="checkbox-inline col-sm-3 control-label"><strong>Transaction:</strong></label>
                        <div class="col-sm-5">
                            <label class="checkbox-inline">
                                <input type="checkbox" id="inlineCheckbox1" name="inlinecheck[]" class="childC" value="Sale" <?php echo set_checkbox('inlinecheck[]', 'Sale'); ?>>Sale
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" id="inlineCheckbox2" name="inlinecheck[]" class="childC" value="Lease" <?php echo set_checkbox('inlinecheck[]', 'Lease'); ?>>Lease
                            </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" id="inlineCheckbox3" name="inlinecheck[]" class="childC" value="Exchange" <?php echo set_checkbox('inlinecheck[]', 'Exchange'); ?>>Exchange
                            </label>
                        </div>

                        <div class="col-xs-1">
                            <span class="error2">*</span>
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="asking_price" class="col-sm-3 control-label">Asking Price:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="asking_price" name="asking_price" autocomplete="off" value="<?php echo set_value('asking_price'); ?>" placeholder="Asking Price">
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="monthly_rent" class="col-sm-3 control-label">Monthly Rent:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control" id="monthly_rent" name="monthly_rent" autocomplete="off" value="<?php echo set_value('monthly_rent'); ?>" placeholder="Monthly Rent">
                        </div>
                    </div>

                    <div class="form-group">           
                        <label for="available_date" class="col-sm-3 control-label">Available Date:</label>
                        <div class="col-sm-5">
                            <input type="text" class="form-control datepicker" id="available_date" data-date-format="mm-dd-yyyy" name="available_date" autocomplete="off" value="<?php echo set_value('available_date'); ?>" placeholder="DD-MM-YYYY">
                        </div>
                        <div class="col-xs-1">
                            <span class="error2">*</span>
                        </div>
                    </div>
                    
                    <div class="form-group">           
                        <label for="mini_pack" class="col-sm-3 control-label">Mini Pack:</label>
                        <div class="col-sm-5">
                            <input type="file" class="form-control" name="userfile" size="20">
                        </div>
                    </div>


                    <div class="form-group">
                        <div class="col-sm-offset-3 col-sm-10">
                            <button type="submit" class="btn btn-primary btn-xs">Add 
                                <i class="glyphicon glyphicon-check"></i></button>
                            <a href="<?php echo base_url(); ?>epc_listings/listings/my_engines_list">

                                <button type="button" class="btn btn-default btn-xs">Close</button></a>
                        </div>
                    </div>


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



            </div>
        </div>

    </div>
</div>