Example #1
0
        ?>
                        <tr>
                            <td><?php 
        echo $menu->id;
        ?>
</td>
                            <td><?php 
        echo $menu->descricao;
        ?>
</td>
                            <td><?php 
        echo $menu->link;
        ?>
</td>
                            <td><?php 
        echo Perfis::getInstancia()->getPerfil($menu->prf_id)->descricao;
        ?>
</td>
                            <td>
                                <a href="admin.php?modulo=Menus&acao=editar&id=<?php 
        echo $menu->id;
        ?>
"><i class="icon-edit"></i> <strong>Editar</strong></a>
                                -
                                <!-- CapĂ­tulo 5 - Laboratorio 1 -->
                                <a href="admin.php?modulo=Menus&acao=excluir&id=<?php 
        echo $menu->id;
        ?>
"><i class="icon-trash"></i> <strong>Excluir</strong></a>
                            </td>
                        </tr>
Example #2
0
            <div class="controls">
                <input name="descricao" value="<?php 
echo $dados->descricao;
?>
" class="input-xlarge" type="text">
            </div>
        </div>
                
        <div class="control-group">
            <label class="control-label">Perfil:</label>
            <div class="controls">
                <select class="span2" name="prf_id">
        		    <option value="">Selecionar</option>
                    <?php 
use Model\Perfis;
foreach (Perfis::getInstancia()->listar() as $perfil) {
    $selected = $perfil->id == $dados->prf_id ? 'selected' : '';
    echo "<option value=\"{$perfil->id}\" {$selected}>{$perfil->descricao}</option>";
}
?>
        	    </select>
            </div>
        </div>
        
        <div class="control-group">
            <label class="control-label">Link:</label>
            <div class="controls">
                <input name="link" value="<?php 
echo $dados->link;
?>
" class="input-xlarge" type="text">
Example #3
0
                </thead>
                <tbody>
                    <?php 
    foreach ($dados as $funcionario) {
        ?>
                        <tr>
                            <td><?php 
        echo $funcionario->id;
        ?>
</td>
                            <td><?php 
        echo $funcionario->nome;
        ?>
</td>
                            <td><?php 
        echo Perfis::getInstancia()->getPerfil($funcionario->prf_id)->descricao;
        ?>
</td>
                            <td><?php 
        echo $funcionario->email;
        ?>
</td>
                            <td><?php 
        echo $funcionario->senha;
        ?>
</td>
                            <td>
                                <a href="admin.php?modulo=Funcionarios&acao=editar&id=<?php 
        echo $funcionario->id;
        ?>
"><i class="icon-edit"></i> <strong>Editar</strong></a>