Subversion Repositories SmartDukaan

Rev

Rev 14849 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14579 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('adminactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<h2><?php echo __('Notification Rules'); ?></h2>
8
			<table class="table table-striped">
9
			<tr>
14849 anikendra 10
					<!-- <th><?php echo $this->Paginator->sort('id'); ?></th> -->
14579 anikendra 11
					<th><?php echo $this->Paginator->sort('name'); ?></th>
12
					<th><?php echo $this->Paginator->sort('sql'); ?></th>
13
					<th><?php echo $this->Paginator->sort('message'); ?></th>
14849 anikendra 14
					<th><?php echo $this->Paginator->sort('url'); ?></th>					
14579 anikendra 15
					<th><?php echo $this->Paginator->sort('starttime'); ?></th>
16
					<th><?php echo $this->Paginator->sort('endtime'); ?></th>
17
					<th><?php echo $this->Paginator->sort('status'); ?></th>
14849 anikendra 18
					<th><?php echo $this->Paginator->sort('popup_display_count'); ?></th>
19
					<th><?php echo $this->Paginator->sort('popup_display_interval'); ?></th>
14928 anikendra 20
					<th><?php echo $this->Paginator->sort('popup_type'); ?></th>
14579 anikendra 21
					<th class="actions"><?php echo __('Actions'); ?></th>
22
			</tr>
23
			<?php foreach ($notificationRules as $notificationRule): ?>
24
			<tr>
14849 anikendra 25
				<!-- <td><?php echo h($notificationRule['NotificationRule']['id']); ?>&nbsp;</td> -->
14579 anikendra 26
				<td><?php echo h($notificationRule['NotificationRule']['name']); ?>&nbsp;</td>
27
				<td><?php echo h($notificationRule['NotificationRule']['sql']); ?>&nbsp;</td>
28
				<td><?php echo h($notificationRule['NotificationRule']['message']); ?>&nbsp;</td>
29
				<td><?php echo h($notificationRule['NotificationRule']['url']); ?>&nbsp;</td>		
30
				<td><?php echo h($notificationRule['NotificationRule']['starttime']); ?>&nbsp;</td>
31
				<td><?php echo h($notificationRule['NotificationRule']['endtime']); ?>&nbsp;</td>
32
				<td><?php echo h($notificationRule['NotificationRule']['status']); ?>&nbsp;</td>
14849 anikendra 33
				<td><?php echo $notificationRule['NotificationRule']['popup_display_count']; ?></td>
34
				<td><?php echo $notificationRule['NotificationRule']['popup_display_interval']; ?></td>
14928 anikendra 35
				<td><?php echo $notificationRule['NotificationRule']['popup_type']; ?></td>
14579 anikendra 36
				<td class="actions">
37
					<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationRule['NotificationRule']['id'])); ?>
38
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $notificationRule['NotificationRule']['id'])); ?>
39
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $notificationRule['NotificationRule']['id']), null, __('Are you sure you want to delete # %s?', $notificationRule['NotificationRule']['id'])); ?>
40
				</td>
41
			</tr>
42
		<?php endforeach; ?>
43
			</table>
44
			<p>
45
			<?php
46
			echo $this->Paginator->counter(array(
47
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
48
			));
49
			?>	</p>
50
			<div class="paging">
51
			<?php
52
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
53
				echo $this->Paginator->numbers(array('separator' => ''));
54
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
55
			?>
56
			</div>
57
		</div>
58
	</div>
59
</div>