Beispiel #1
0
<?php

require_once 'controle/Usuario.php';
$controle = new ControleUsuario();
$usuarios = $controle->acaoUsuarios(@$_REQUEST['acao']);
?>
<form class="form form-inline" method="post">
    Filtrar por nome: <input autocomplete="off" type="text" name="nome" placeholder="Insira um nome ou parte dele" class="input input-xxlarge" title="Digite o nome ou parte dele e os dados serão auto-completados" data-provide="typehead" id="auto-complete">
    <button class="btn btn-primary">Buscar</button>
</form>

<?php 
if ($_POST) {
    ?>
    <div>

        <a href="?url=usuarios/novo"><h4><i class="icon-plus"></i> Novo Usuário</h4></a>
        <fieldset>
            <table class="table table-bordered table-striped">
                <thead>
                <th>Id</th>
                <th>Nome</th>
                <th>Email</th>
                <th>CPF</th>
                <th>Opções</th>
                </thead>
                <tbody>
                    <?php 
    foreach ($usuarios as $usuario) {
        ?>
                        <tr>
<?php

require_once 'controle/Usuario.php';
$controle = new ControleUsuario();
echo $controle->acaoUsuarios(@$_REQUEST['acao']);