Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15832 anikendra 1
<div class="notificationViews index">
2
	<h2><?php echo __('Notification Views'); ?></h2>
3
	<table cellpadding="0" cellspacing="0">
4
	<tr>
5
			<th><?php echo $this->Paginator->sort('id'); ?></th>
6
			<th><?php echo $this->Paginator->sort('user_id'); ?></th>
7
			<th><?php echo $this->Paginator->sort('notification_rule_id'); ?></th>
8
			<th><?php echo $this->Paginator->sort('created'); ?></th>
9
			<th class="actions"><?php echo __('Actions'); ?></th>
10
	</tr>
11
	<?php foreach ($notificationViews as $notificationView): ?>
12
	<tr>
13
		<td><?php echo h($notificationView['NotificationView']['id']); ?>&nbsp;</td>
14
		<td>
15
			<?php echo $this->Html->link($notificationView['User']['username'], array('controller' => 'users', 'action' => 'view', $notificationView['User']['id'])); ?>
16
		</td>
17
		<td>
18
			<?php echo $this->Html->link($notificationView['NotificationRule']['name'], array('controller' => 'notification_rules', 'action' => 'view', $notificationView['NotificationRule']['id'])); ?>
19
		</td>
20
		<td><?php echo h($notificationView['NotificationView']['created']); ?>&nbsp;</td>
21
		<td class="actions">
22
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationView['NotificationView']['id'])); ?>
23
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $notificationView['NotificationView']['id'])); ?>
24
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $notificationView['NotificationView']['id']), null, __('Are you sure you want to delete # %s?', $notificationView['NotificationView']['id'])); ?>
25
		</td>
26
	</tr>
27
<?php endforeach; ?>
28
	</table>
29
	<p>
30
	<?php
31
	echo $this->Paginator->counter(array(
32
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
33
	));
34
	?>	</p>
35
	<div class="paging">
36
	<?php
37
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
38
		echo $this->Paginator->numbers(array('separator' => ''));
39
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
40
	?>
41
	</div>
42
</div>
43
<div class="actions">
44
	<h3><?php echo __('Actions'); ?></h3>
45
	<ul>
46
		<li><?php echo $this->Html->link(__('New Notification View'), array('action' => 'add')); ?></li>
47
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
48
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
49
		<li><?php echo $this->Html->link(__('List Notification Rules'), array('controller' => 'notification_rules', 'action' => 'index')); ?> </li>
50
		<li><?php echo $this->Html->link(__('New Notification Rule'), array('controller' => 'notification_rules', 'action' => 'add')); ?> </li>
51
	</ul>
52
</div>