<!-- Modal -->
<div class="modal fade" id="newuserAdmin" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content modal-lg">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">Novo administrador</h4>
            </div>
            <div class="modal-body">
                <form role="form" action="add_user.php" method="POST">
                    <div class="form-group input-group">
                        <span class="input-group-addon"> <i class="fa fa-user fa-fw"></i></span>
                        <input type="text" class="form-control" name="nome" placeholder="Nome" autofocus required >
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"> <i class="fa fa-user fa-fw"></i></span>

                        <select name="perfil" id="perfil" class="form-control">
                            <option value ="3" selected="selected">Selecione o Perfil</option>
    
                         
                          <?php if ($_SESSION['UsuarioNivel'] == 1) {
                            echo  '<option value ="2" >Sub Administrador</option>';
                            echo  '<option value ="1" >Administrador</option> ';
                          }
                              ?>
                            
                        </select>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>
                        <input type="text" class="form-control" name="login" placeholder="Login" required>
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-lock fa-fw"></i></span>
                        <input type="password" class="form-control" name="pass" placeholder="Senha" required >
                    </div>
                    <div class="form-group input-group">
                        <span class="input-group-addon"><i class="fa fa-lock fa-fw"></i></span>
                        <input type="password" class="form-control"  name="pass2" placeholder="Confirmar Senha" required>
                    </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button>
                <button type="submit" class="btn btn-primary">Salvar</button>
                </form>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
