HosipLan

Untitled

Feb 14th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. <?php $grid = Kdyby\Components\Grinder\Latte\GrinderMacroSet::gridBegin($control) ?><table>
  2.     <thead>
  3. <?php foreach ($iterator = $_l->its[] = new Nette\Iterators\CachingIterator($grid->getColumns()) as $column): $caption = $column->caption ?>
  4.         <td><?php echo Nette\Templating\Helpers::escapeHtml($caption, ENT_NOQUOTES) ?></td>
  5. <?php endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
  6.     </thead>
  7.     <tbody>
  8. <?php foreach ($iterator = $_l->its[] = new Nette\Iterators\CachingIterator($grid) as $row): ?>        <tr>
  9. <?php foreach ($iterator = $_l->its[] = new Nette\Iterators\CachingIterator($grid->getColumns()) as $column): $value = $column->getValue() ?>
  10.             <td><?php echo Nette\Templating\Helpers::escapeHtml($value, ENT_NOQUOTES) ?></td>
  11. <?php endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
  12.         </tr>
  13. <?php endforeach; array_pop($_l->its); $iterator = end($_l->its) ?>
  14.     </tbody>
  15. </table>
  16.  
  17. <?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