Edición de «Datagrid Simple»
De KumbiaPHP Framework Wiki
Advertencia: no has iniciado sesión. Tu dirección IP se hará pública si haces cualquier edición. Si inicias sesión o creas una cuenta, tus ediciones se atribuirán a tu nombre de usuario, además de otros beneficios.
Puedes deshacer la edición. Antes de deshacer la edición, comprueba la siguiente comparación para verificar que realmente es lo que quieres hacer, y entonces guarda los cambios para así efectuar la reversión.
Revisión actual | Tu texto | ||
Línea 19: | Línea 19: | ||
'Nombre' => 'nombre', | 'Nombre' => 'nombre', | ||
'Telefono' => 'telefono', | 'Telefono' => 'telefono', | ||
− | 'Direccion' => 'direccion'); | + | 'Direccion' => 'direccion')); |
} | } | ||
} | } | ||
− | |||
</source> | </source> | ||
Línea 31: | Línea 30: | ||
<source lang="php"> | <source lang="php"> | ||
<?php | <?php | ||
− | <? View::partial('datagrid/simple' | + | <? View::partial('datagrid/simple'false,array('Model'=>$result, 'Campos'=>$campos)); ?> |
?> | ?> | ||
</source> | </source> | ||
Línea 54: | Línea 53: | ||
<div id="datagrid"> | <div id="datagrid"> | ||
− | <table border="1px" class="simple"> | + | <table border="1px" class="simple">" |
<thead><tr> | <thead><tr> | ||
<?php foreach( $Campos as $titulo => $valor): ?> | <?php foreach( $Campos as $titulo => $valor): ?> | ||
− | <th> <?php echo $titulo ? | + | <th> <?php echo $titulo >?</th> |
<?php endforeach; ?> | <?php endforeach; ?> | ||
</tr></thead> | </tr></thead> | ||
Línea 71: | Línea 70: | ||
</div> | </div> | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Categoría:Partials]] | [[Categoría:Partials]] |