Пример #1
0
if (isset($result)) {
    echo '<i>' . urldecode($result) . '</i>';
}
?>
    </div>
    
    <div>
        <p><?php 
echo Mainapp::my_anchor('logout', 'Salir del sistema');
?>
</p>
    </div>

    <div>
        <p><?php 
echo Mainapp::my_anchor('users_list', 'Regresar a la lista de usuarios');
?>
</p>
    </div>

    <?php 
echo form_open('mainapp/user_' . ($user_name === '' ? 'insert' : 'update'));
echo form_hidden('user_name_old', $user_name);
?>
    
    <table border="1">
    <tr><td>Nombre (login)</td><td><?php 
echo form_input('user_name_edit', $user_name);
?>
</td></tr>
    <tr><td>Rol</td><td><?php 
Пример #2
0
    <table border="1">
    <tr>
        <th>Nombre</th>
        <th>Rol</th>
        <th>Acción</th>
    </tr>
    
    <?php 
foreach ($users as $user) {
    ?>
        <tr>
        <td><?php 
    echo Mainapp::my_anchor('user_show/' . $user['user_name'], $user['user_name']);
    ?>
        <td><?php 
    echo $user['role'];
    ?>
</td>
        <td><?php 
    echo Mainapp::my_anchor('user_delete/' . $user['user_name'], 'Eliminar');
    ?>
        </tr>
        
        <?php 
}
?>
    </table>
    
</div>