<div class="container">
    <ul class="breadcrumb">
        <li><a>Administraci&oacute;n</a></li>
        <li class="active">Tarificaci&oacute;n</li>
    </ul>
    <h3 class="booking-title">Tarificaci&oacute;n</h3>
</div>

<div class="container">
    <div class="row">
        <div class="col-md-3">
            <?php include_once ROOT . 'views' . DS . 'layout' . DS . 'default' . DS . '_LeftSidebar_admin.php'; ?>
        </div>
        <div class="col-md-9">

                <div class="mfp-with-anim mfp-hide mfp-dialog mfp-search-dialog" id="modal-edit-vuelo">
                    <h3 id="tituloModiVuelos">Modificar programa</h3>
                    <div class="row" id="content_">Espere mientras procesamos su solicitud...</div>
                </div>
            
            
            <div class="row">
                <div class="col-md-12">
                    <h4>Parametros Calculo Precio Venta</h4>
                </div>
            </div>
            <form class="booking-item-dates-change mb40">
                <div class="row">
                    <div class="col-md-12">
                        <div class="col-md-4">
                            <span class="control-label">&percnt; Markup Tarifas Negociadas</span>
                             <input class="form-control" type="text" disabled value="<?php echo Session::get('markup');?>">   
                        </div>
                        <div class="col-md-1">&nbsp;</div>
                        <div class="col-md-4">
                            <span class="control-label">Cargo x pasajero (USD)</span>
                             <input class="form-control" type="text"  disabled value="<?php echo Session::get('cargo_por_ser');?>">   
                        </div>
                        <input type="hidden" id="location_" value="<?php echo BASE_URL . 'administrar_vuelos/AdminVuelos'; ?>">
                        <div class="col-md-3">
                             <a class="btn btn-primary btn-lg pull-right popup-text" effect="mfp-zoom-out" href="#modal-edit-vuelo"onclick="abrePopup('content_','<?php echo BASE_URL;?>administrar_vuelos/abreInsertParam','tituloModiVuelos','Editar','1','from');">Modificar</a>   
                        </div>              
                    </div>
                </div>
            </form>
            
            
            <div class="row">
                <div class="col-md-12">
                    <h4>Parametros lineas A&eacute;reas con tarifas negociadas</h4>
                </div>
            </div>
            <br/>
            <div class="row">
                <div class="col-md-12">
                <?php if($this->objVuelos){?>
                    <table id="tblAdminVuelos" class="table table-striped dt-responsive nowrap table-bordered"  cellspacing="0" width="100%">
                        <thead>
                            <tr>
                                <th></th>
                                <th></th>
                                <th>Linea A&eacute;rea</th>
                                <th>Nombre Linea A&eacute;rea</th>
                                <th>Cod. Negociaci&oacute;n</th>
                                <th>PTC Ni&ntilde;o</th>
                                <th>PTC Inf</th>
                                <th>Orden</th>
                                <th>Orden EU</th>
                            </tr>
                        </thead>
                        <tbody>

                        <?php 
                            if ($this->objVuelos) {                                
                            foreach ($this->objVuelos as $objVuelos) { ?>
                            <tr>
                                <td><a href="#modal-edit-vuelo" class="fa fa-times box-icon-normal box-icon round popup-text" data-effect="mfp-zoom-out" onclick="abrePopup('content_','<?php echo BASE_URL;?>administrar_vuelos/deleteVuelo','tituloModiVuelos','Eliminar','<?php echo $objVuelos->getId()?>','from');"></a></td>
                                <td><a href="#modal-edit-vuelo" class="fa fa-edit box-icon-normal box-icon round popup-text" data-effect="mfp-zoom-out" onclick="abrePopup('content_','<?php echo BASE_URL;?>administrar_vuelos/editVuelo','tituloModiVuelos','Editar','<?php echo $objVuelos->getId()?>','from');"></a></td>
                                <td><?php echo $objVuelos->getCodigo(); ?></td>
                                <td><?php echo $objVuelos->getNombre(); ?></td>
                                <td><?php echo $objVuelos->getNegocio(); ?></td>
                                <td><?php echo $objVuelos->getPtcChd(); ?></td>
                                <td><?php echo $objVuelos->getPtcInf(); ?></td>
                                <td><?php echo $objVuelos->getPrioridad(); ?></td>
                                <td><?php echo $objVuelos->getPrioridadEu();?></td>
                            </tr>
                            <?php 
                        }
                    }
                            ?>
                        </tbody>
                    </table>
<?php } ?>
                </div>
            </div>
            <br />
            <div class="row">
                <div class="col-md-12">
                    <a class="btn btn-primary btn-lg pull-right popup-text" data-effect="mfp-zoom-out" href="#modal-edit-vuelo" onclick="abrePopup('content_','<?php echo BASE_URL;?>administrar_vuelos/addVuelo','tituloModiVuelos','Agregar','1','form');">Agregar</a>
                </div>
            </div>
            <br/>
        </div>
    </div>
</div>