| 4 | | <table cellpadding="0" cellspacing="0"> |
|---|
| 5 | | <tr> |
|---|
| 6 | | <th><?php echo $paginator->sort('id');?></th> |
|---|
| 7 | | <th><?php echo $paginator->sort('name');?></th> |
|---|
| 8 | | <th><?php echo $paginator->sort('url');?></th> |
|---|
| 9 | | <th><?php echo $paginator->sort('position');?></th> |
|---|
| 10 | | <th><?php echo $paginator->sort('icon');?></th> |
|---|
| 11 | | <th><?php echo $paginator->sort('parent_id');?></th> |
|---|
| 12 | | <th><?php echo $paginator->sort('section_id');?></th> |
|---|
| 13 | | <th><?php echo $paginator->sort('access_level');?></th> |
|---|
| 14 | | <th><?php echo $paginator->sort('published');?></th> |
|---|
| 15 | | <th>Actions</th> |
|---|
| 16 | | </tr> |
|---|
| 17 | | <?php foreach ($menus as $menu): ?> |
|---|
| 18 | | <tr> |
|---|
| 19 | | <td><?php echo $menu['Menu']['id']; ?></td> |
|---|
| 20 | | <td><?php echo $menu['Menu']['name']; ?></td> |
|---|
| 21 | | <td><?php echo $menu['Menu']['url']; ?></td> |
|---|
| 22 | | <td><?php echo $menu['Menu']['position']; ?></td> |
|---|
| 23 | | <td><?php echo $menu['Menu']['icon']; ?></td> |
|---|
| 24 | | <td><?php echo $html->link($menu['Menu']['parent_id'], array('controller'=> 'menus', 'action'=>'view', $menu['Menu']['parent_id'])); ?></td> |
|---|
| 25 | | <td><?php echo $html->link($menu['Section']['name'], array('controller'=> 'sections', 'action'=>'view', $menu['Section']['id'])); ?></td> |
|---|
| 26 | | <td><?php echo $menu['Menu']['access_level']; ?></td> |
|---|
| 27 | | <td><?php echo $menu['Menu']['published']; ?></td> |
|---|
| 28 | | <td class="actions"> |
|---|
| 29 | | <?php echo $html->link('View', array('action'=>'view', $menu['Menu']['id'])); ?> |
|---|
| 30 | | <?php echo $html->link('Edit', array('action'=>'edit', $menu['Menu']['id'])); ?> |
|---|
| 31 | | <?php echo $html->link('Delete', array('action'=>'delete', $menu['Menu']['id']), null, 'Are you sure you want to delete #' . $menu['Menu']['id']); ?> |
|---|
| 32 | | </td> |
|---|
| 33 | | </tr> |
|---|
| 34 | | <?php endforeach; ?> |
|---|
| | 14 | foreach ($menus as $menu) { |
|---|
| | 15 | $tr = array ( |
|---|
| | 16 | $html->link($menu['Menu']['id'],array('action' => 'view', $menu['Menu']['id'])), |
|---|
| | 17 | $menu['Menu']['name'], |
|---|
| | 18 | $html->link($menu['Menu']['url']), |
|---|
| | 19 | $time->nice($menu['Menu']['modified']), |
|---|
| | 20 | ife($menu['Menu']['published'],'visible','hidden') |
|---|
| | 21 | ); |
|---|
| | 22 | echo $html->tableCells($tr); |
|---|
| | 23 | } |
|---|
| | 24 | ?> |
|---|