<div class="panel panel-default" id="painelSelecaoLista">
    <div class="panel-body">
        <form onsubmit="$.fn.Carregando()" method="post">
            <div class="row">
                <div class="col-sm-8 col-sm-8">
                    <div id="painelListaPacienteFila">
                        <div id="painelDefault">
                            <div class="row">
                                <div class="col-md-12">
                                    <table class="table table-striped" id="listaPacienteTable">
                                        <tbody style="height: 500px">
                                        <?php
                                        foreach ($listapaciente as $paciente) {
                                            ?>
                                            <tr>
                                                <td id="tdinpu">
                                                    <input type="radio" id="<?= $paciente->HANDLE ?>"
                                                           value="<?= $paciente->NOMEPACIENTE ?>"
                                                           name="radioNomePaciente" required>
                                                </td>

                                                <td id="tdlabel">
                                                    <label for="<?= $paciente->HANDLE ?>">
                                                        <?= $paciente->NOMEPACIENTE ?>
                                                    </label>
                                                </td>
                                            </tr>
                                        <?php } ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-3" align="center" id="panelButtonLista">
                    <div class="row">
                        <div class="col-md-12" id="btnActionGroup">
                            <div id="btnControleDefault" align="left">
                                <button type="submit" name="PROXIMO" id="btnAction" class="btn btn-primary">
                                    <img src="assets/img/PROXIMO.png" class="img-circle">
                                    PROXIMO
                                </button>
                            </div>
                        </div>
                        <div class="col-md-12" id="btnActionGroup">
                            <div id="btnControleDefault" align="left">
                                <button type="submit" name="VOLTAR" id="btnAction" onClick="history.go(-1)"
                                        class="btn btn-primary">
                                    <img src="assets/img/VOLTAR.png" class="img-circle">
                                    VOLTAR
                                </button>
                            </div>
                        </div>
                        <div class="col-md-12" id="btnActionGroup">
                            <div id="btnControleDefault" align="left">
                                <button style="border-color: #eeefdf;background-color: #e8130b;background-image: none"
                                        type="submit" name="OUTROPACIENTE" id="btnAction"
                                        class="btn btn-primary">
                                    <img style="margin-left: -155px; border-color: #eeefdf;background-color: #e8130b;"
                                         src="assets/img/nenhum_lista.png" class="img-circle">
                                    NENHUM DA LISTA
                                </button>
                            </div>
                        </div>

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

<?php
if (isset($_SESSION['retorno'])) {
    echo "<script>confirmMessage('messageDialog','" . $_SESSION['mensagemRetorno'] . "',1000,500,'" . base_url() . "');</script>";
}
?>

<div id="messageDialog"></div>