<!-- Modal -->
<div class="modal fade" id="newprepago" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Novo Pré-pago</h4>
            </div>

            <form role="form" id="frmNewPrePago" method="POST">
                <div class="modal-body">

                    <?php
                    $resultUser = mysql_query("SELECT id,nome FROM ponto WHERE id_apoio = " . $_SESSION['UsuarioID'] . " AND id > 0 ORDER BY nome ASC");
                    ?>

                    <div class="form-group input-group">
                        <span class="input-group-addon"> <i class="fa fa-user-plus fa-fw"></i></span>								                  
                        <select name="apoio" id="usuario" class="form-control" autofocus required > 
                            <option value ="" selected="selected">Selecione um ponto</option>
                            <?php
                            while ($rowUser = mysql_fetch_array($resultUser)) {
                                echo '<option value="' . $rowUser['id'] . '">' . $rowUser['nome'] . '</option>';
                            }
                            ?>
                        </select>
                    </div>

                    <div class="form-group input-group">
                        <span class="input-group-addon">$</span>
                        <input min="0" type="number" class="form-control" name="valor" placeholder="Valor" required>
                    </div>

                    <div class="form-group input-group">
                        <span class="input-group-addon">Quantidade</span>
                        <input min="0" type="number" class="form-control" name="quantidade" placeholder="Valor" required>
                    </div>
                    <input type="hidden" name="codigo" id="codigoPrePago">
<!--                    <div class="bg-info" style="padding-top:1px; padding-bottom:10px">
                        <h2><p class="text-center" id="textCodigoPrePago">
                            </p></h2>
                    </div>-->
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" id="btnCancelarNewPrePago" >Cancelar</button>
                    <button type="submit" class="btn btn-primary" id="btnSalvarNewPrePago" >Salvar</button>					
                </div>			
            </form>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
