KumbiaPHP beta2-dev
Framework PHP en español
index.phtml
Ir a la documentación de este archivo.
00001 <?php Tag::css('scaffold')?>
00002 <div id="scaffold">
00003 <?php View::content()?>
00004 <h1><?php echo ucwords("$model"),": <span>$action_name</span>" ?></h1>
00005 <?php if ($results->items) : ?>
00006 <table>
00007     <thead><tr>
00008     <?php foreach (current($results->items)->fields as $field) : ?>
00009         <th><?php echo (current($results->items)->get_alias($field))?></th>
00010     <?php endforeach?>
00011         <th>Acciones</th>
00012     </tr></thead>
00013         <tbody>
00014     <?php foreach ($results->items as $item) : ?>
00015         <tr>
00016             <?php foreach ($item->fields as $field) : ?>
00017             <td><?php eh($item->$field)?></td>
00018             <?php endforeach?>
00019                         <td><?php echo Html::linkAction("ver/$item->id",'Ver')?> |
00020                         <?php echo Html::linkAction("editar/$item->id",'Editar')?> |
00021                         <?php echo Html::linkAction("borrar/$item->id",'Borrar', 'onclick="return confirm(\'¿Está seguro?\')"')?>
00022                         </td>
00023         </tr>
00024     <?php endforeach?>
00025         </tbody>
00026 </table>
00027 <?php View::partial('paginators/digg', false, array('page' => $results ,'url' => Router::get('controller_path').'/index')); ?>
00028 
00029 <?php else : // Si no hay items?>
00030 <h2>No hay ningún registro</h2>
00031 <?php endif ?>
00032 
00033 </div>
00034 <div class="actions">
00035         <?php echo Html::linkAction("crear/",'Crear registro')?>
00036 </div>
00037 <?php //var_dump($results)?>
 Todo Estructuras de Datos Namespaces Archivos Funciones Variables Enumeraciones