<?php
$variable = [1, 2, 3];
    require_once($_SERVER['DOCUMENT_ROOT'].'/clases/Parametro.Class.php');
	$parametro_obj = new Parametro(null);
	$parametro_inf = $parametro_obj->informacionParametro(108000,null, 1, 1);
	$parametro_obj->Close();
?>
<div aria-hidden="true" class="modal fade" id="md_modal_reservaInformacion" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="md_modal_reservaInformacionTitulo">
                    Información de la Reserva
                </h5>
                <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true"> &times;</span></button>
            </div>
            <div class="modal-body">
                <div class="col-xs-12" id="div_modal_reservaInformacion">
                </div>
            </div>
            <div class="modal-footer">
                <button class="mr-2 mb-2 btn btn-primary" data-dismiss="modal" type="button"
                    id="md_modal_mensaje_cerrar"> Cerrar</button>
            </div>
        </div>
    </div>
</div>

<div aria-hidden="true" class="modal fade" id="md_modal_reservaVerInformacion" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="md_modal_reservaVerInformacionTitulo">
                    Información de la Reserva
                </h5>
                <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true"> &times;</span></button>
            </div>
            <div class="modal-body">
                <div class="col-xs-12" id="md_modal_reservaVerInformacion_div_informacion">
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-outline-secondary" data-dismiss="modal" type="button" title="Cancelar" >
                    <i class="picons-thin-icon-thin-0153_delete_exit_remove_close"></i>
                    Cerrar
                </button>
            </div>
        </div>
    </div>
</div>

<div aria-hidden="true" class="modal fade" id="md_modal_reservaTarea" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="md_modal_reservaTareaTitulo">
                    Información de la Reserva
                </h5>
                <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true"> &times;</span></button>
            </div>
            <form name="md_modal_reservaTarea_frm" id="md_modal_reservaTarea_frm" method="post">
                <input type="hidden" id="md_modal_reservaTarea_txt_id" name="md_modal_reservaTarea_txt_id">
                <input type="hidden" id="md_modal_reservaTarea_txt_titulo" name="md_modal_reservaTarea_txt_titulo">
                <input type="hidden" id="md_modal_reservaTarea_txt_tarea" name="md_modal_reservaTarea_txt_tarea">
                <input type="hidden" id="md_modal_reservaTarea_txt_accion" name="md_modal_reservaTarea_txt_accion">
                <input type="hidden" id="md_modal_reservaTarea_txt_token" name="md_modal_reservaTarea_txt_token">
                <div class="modal-body">
                    <div class="col-xs-12" id="md_modal_reservaTarea_div_informacion">
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group row">
                            <label for="" class="col-form-label col-xs-12 col-lg-2">Justificación:</label>
                            <div class="col-xs-12 col-lg-10">
                                <textarea class="form-control" type="text" rows="3"
                                    id="md_modal_reservaTarea_txt_justificacion"
                                    name="md_modal_reservaTarea_txt_justificacion"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-danger"
                        id="md_modal_reservaTarea_btn_anular" name="md_modal_reservaTarea_btn_anular">
                        <i class="picons-thin-icon-thin-0154_ok_successful_check"></i>
                        Anular
                    </button>
                    <button type="submit" class="btn btn-danger"
                        id="md_modal_reservaTarea_btn_rechazar" name="md_modal_reservaTarea_btn_rechazar">
                        <i class="picons-thin-icon-thin-0154_ok_successful_check"></i>
                        Rechazar
                    </button>
                    <button class="btn btn-outline-secondary" data-dismiss="modal" type="button" title="Cancelar" >
                        <i class="picons-thin-icon-thin-0153_delete_exit_remove_close"></i>
                        Cancelar
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<div aria-hidden="true" class="modal fade" id="md_modal_reservaCerrar" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="md_modal_reservaCerrarTitulo">
                    Cierre de una Reserva
                </h5>
                <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true"> &times;</span></button>
            </div>
            <form name="md_modal_reservaCerrar_frm" id="md_modal_reservaCerrar_frm" method="post">
                <input type="hidden" id="md_modal_reservaCerrar_txt_id" name="md_modal_reservaCerrar_txt_id">
                <input type="hidden" id="md_modal_reservaCerrar_txt_titulo" name="md_modal_reservaCerrar_txt_titulo">
                <input type="hidden" id="md_modal_reservaCerrar_txt_token" name="md_modal_reservaCerrar_txt_token">
                <div class="modal-body">
                    <div class="col-xs-12" id="md_modal_reservaCerrar_div_informacion">
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group row">
                            <label for="" class="col-form-label col-xs-12 col-lg-2">Calificación:</label>
                            <div class="col-xs-12 col-lg-10"><?php
                                $cantidadOpciones = 0;
                                foreach ($parametro_inf as $value) {
                                    $cantidadOpciones++;?>
                                    <div class="col-xs-6">
                                        <input type="checkbox" id="chb_calificacion" name="chb_calificacion_<?php echo $cantidadOpciones;?>"
                                                value="<?php echo $value['para_UID'];?>" style="font-size: 12px">
                                        <label ><?php echo $value['para_nombre'];?></label>
                                    </div><?php
                                }?>
                            </div>
                            <input type="hidden" id="md_modal_reservaCerrar_txt_cantidadOpciones" name="md_modal_reservaCerrar_txt_cantidadOpciones"
                                value="<?php echo $cantidadOpciones;?>">
                        </div>
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group row">
                            <label for="" class="col-form-label col-xs-12 col-lg-2">Observación:</label>
                            <div class="col-xs-12 col-lg-10">
                                <textarea class="form-control" type="text" rows="3"
                                    id="md_modal_reservaCerrar_txt_justificacion"
                                    name="md_modal_reservaCerrar_txt_justificacion"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary"
                        id="md_modal_reservaCerrar_btn_cerrar" name="md_modal_reservaCerrar_btn_cerrar">
                        <i class="picons-thin-icon-thin-0489_storehouse_storage"></i>
                        Cerrar
                    </button>
                    <button class="btn btn-outline-secondary" data-dismiss="modal" type="button" title="Cancelar" >
                        <i class="picons-thin-icon-thin-0153_delete_exit_remove_close"></i>
                        Cancelar
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>

<div aria-hidden="true" class="modal fade" id="md_modal_reservaConfirmar" role="dialog" tabindex="-1">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="md_modal_reservaConfirmarTitulo">
                    Cierre de una Reserva
                </h5>
                <button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true"> &times;</span></button>
            </div>
            <form name="md_modal_reservaConfirmar_frm" id="md_modal_reservaConfirmar_frm" method="post">
                <input type="hidden" id="md_modal_reservaConfirmar_txt_id" name="md_modal_reservaConfirmar_txt_id">
                <input type="hidden" id="md_modal_reservaConfirmar_txt_titulo" name="md_modal_reservaConfirmar_txt_titulo">
                <input type="hidden" id="md_modal_reservaConfirmar_txt_token" name="md_modal_reservaConfirmar_txt_token">
                <div class="modal-body">
                    <div class="col-xs-12" id="md_modal_reservaConfirmar_div_informacion">
                    </div>
                    <div class="col-xs-12">
                        <div class="form-group row">
                            <label for="" class="col-form-label col-xs-12 col-lg-2">Observación de Confirmación:</label>
                            <div class="col-xs-12 col-lg-10">
                                <textarea class="form-control" type="text" rows="3"
                                    id="md_modal_reservaConfirmar_txt_justificacion"
                                    name="md_modal_reservaConfirmar_txt_justificacion"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary"
                        id="md_modal_reservaConfirmar_btn_confirmar" name="md_modal_reservaConfirmar_btn_confirmar">
                        <i class="picons-thin-icon-thin-0489_storehouse_storage"></i>
                        Confirmar
                    </button>
                    <button type="buttom" class="btn btn-danger" onclick="gestionReservasConfirmarModificar()"
                        <i class="picons-thin-icon-thin-0001_compose_write_pencil_new"></i>
                        Modificar
                    </button>
                    <button class="btn btn-outline-secondary" data-dismiss="modal" type="button" title="Cancelar" >
                        <i class="picons-thin-icon-thin-0153_delete_exit_remove_close"></i>
                        Cancelar
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
