| 
<div class="groups view"><h2><?php echo __('Group');?></h2>
 <dl><?php $i = 0; $class = ' class="altrow"';?>
 <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Id'); ?></dt>
 <dd<?php if ($i++ % 2 == 0) echo $class;?>>
 <?php echo $group['Group']['id']; ?>
  
 </dd>
 <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Name'); ?></dt>
 <dd<?php if ($i++ % 2 == 0) echo $class;?>>
 <?php echo $group['Group']['name']; ?>
  
 </dd>
 <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Created'); ?></dt>
 <dd<?php if ($i++ % 2 == 0) echo $class;?>>
 <?php echo $group['Group']['created']; ?>
  
 </dd>
 <dt<?php if ($i % 2 == 0) echo $class;?>><?php echo __('Modified'); ?></dt>
 <dd<?php if ($i++ % 2 == 0) echo $class;?>>
 <?php echo $group['Group']['modified']; ?>
  
 </dd>
 </dl>
 </div>
 <div class="actions">
 <ul>
 <li><?php echo $this->Html->link(__('Edit Group'), array('action'=>'edit', $group['Group']['id'])); ?> </li>
 <li><?php echo $this->Html->link(__('Delete Group'), array('action'=>'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $group['Group']['id'])); ?> </li>
 <li><?php echo $this->Html->link(__('List Groups'), array('action'=>'index')); ?> </li>
 <li><?php echo $this->Html->link(__('New Group'), array('action'=>'add')); ?> </li>
 <li><?php echo $this->Html->link(__('List Users'), array('controller'=> 'users', 'action'=>'index')); ?> </li>
 <li><?php echo $this->Html->link(__('New User'), array('controller'=> 'users', 'action'=>'add')); ?> </li>
 </ul>
 </div>
 <div class="related">
 <h3><?php echo __('Related Users');?></h3>
 <?php if (!empty($group['User'])):?>
 <table cellpadding = "0" cellspacing = "0">
 <tr>
 <th><?php echo __('Id'); ?></th>
 <th><?php echo __('Username'); ?></th>
 <th><?php echo __('Password'); ?></th>
 <th><?php echo __('Group Id'); ?></th>
 <th><?php echo __('Created'); ?></th>
 <th><?php echo __('Modified'); ?></th>
 <th class="actions"><?php echo __('Actions');?></th>
 </tr>
 <?php
 $i = 0;
 foreach ($group['User'] as $user):
 $class = null;
 if ($i++ % 2 == 0) {
 $class = ' class="altrow"';
 }
 ?>
 <tr<?php echo $class;?>>
 <td><?php echo $user['id'];?></td>
 <td><?php echo $user['username'];?></td>
 <td><?php echo $user['password'];?></td>
 <td><?php echo $user['group_id'];?></td>
 <td><?php echo $user['created'];?></td>
 <td><?php echo $user['modified'];?></td>
 <td class="actions">
 <?php echo $this->Html->link(__('View'), array('controller'=> 'users', 'action'=>'view', $user['id'])); ?>
 <?php echo $this->Html->link(__('Edit'), array('controller'=> 'users', 'action'=>'edit', $user['id'])); ?>
 <?php echo $this->Html->link(__('Delete'), array('controller'=> 'users', 'action'=>'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?'), $user['id'])); ?>
 </td>
 </tr>
 <?php endforeach; ?>
 </table>
 <?php endif; ?>
 
 <div class="actions">
 <ul>
 <li><?php echo $this->Html->link(__('New User'), array('controller'=> 'users', 'action'=>'add'));?> </li>
 </ul>
 </div>
 </div>
 
 |