Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $grid = Kdyby\Components\Grinder\Latte\GrinderMacroSet::gridBegin($control) ?><table>
- <thead>
- <?php foreach ($iterator = $_l->its[] = new Nette\Iterators\CachingIterator($grid->getColumns()) as $column): $caption = $column->caption ?>
- <td><?php echo Nette\Templating\Helpers::escapeHtml($caption, ENT_NOQUOTES) ?></td>
- <?php endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
- </thead>
- <tbody>
- <?php foreach ($iterator = $_l->its[] = new Nette\Iterators\CachingIterator($grid) as $row): ?> <tr>
- <?php foreach ($iterator = $_l->its[] = new Nette\Iterators\CachingIterator($grid->getColumns()) as $column): $value = $column->getValue() ?>
- <td><?php echo Nette\Templating\Helpers::escapeHtml($value, ENT_NOQUOTES) ?></td>
- <?php endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
- </tr>
- <?php endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
- </tbody>
- </table>
- <?php $_ctrl = $_control->getComponent("vp"); if ($_ctrl instanceof Nette\Application\UI\IRenderable) $_ctrl->validateControl(); $_ctrl->render() ?>
Advertisement
Add Comment
Please, Sign In to add comment