Subversion Repositories SmartDukaan

Rev

Rev 14579 | Go to most recent revision | 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>
14579 anikendra 20
					<th class="actions"><?php echo __('Actions'); ?></th>
21
			</tr>
22
			<?php foreach ($notificationRules as $notificationRule): ?>
23
			<tr>
14849 anikendra 24
				<!-- <td><?php echo h($notificationRule['NotificationRule']['id']); ?>&nbsp;</td> -->
14579 anikendra 25
				<td><?php echo h($notificationRule['NotificationRule']['name']); ?>&nbsp;</td>
26
				<td><?php echo h($notificationRule['NotificationRule']['sql']); ?>&nbsp;</td>
27
				<td><?php echo h($notificationRule['NotificationRule']['message']); ?>&nbsp;</td>
28
				<td><?php echo h($notificationRule['NotificationRule']['url']); ?>&nbsp;</td>		
29
				<td><?php echo h($notificationRule['NotificationRule']['starttime']); ?>&nbsp;</td>
30
				<td><?php echo h($notificationRule['NotificationRule']['endtime']); ?>&nbsp;</td>
31
				<td><?php echo h($notificationRule['NotificationRule']['status']); ?>&nbsp;</td>
14849 anikendra 32
				<td><?php echo $notificationRule['NotificationRule']['popup_display_count']; ?></td>
33
				<td><?php echo $notificationRule['NotificationRule']['popup_display_interval']; ?></td>
14579 anikendra 34
				<td class="actions">
35
					<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationRule['NotificationRule']['id'])); ?>
36
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $notificationRule['NotificationRule']['id'])); ?>
37
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $notificationRule['NotificationRule']['id']), null, __('Are you sure you want to delete # %s?', $notificationRule['NotificationRule']['id'])); ?>
38
				</td>
39
			</tr>
40
		<?php endforeach; ?>
41
			</table>
42
			<p>
43
			<?php
44
			echo $this->Paginator->counter(array(
45
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
46
			));
47
			?>	</p>
48
			<div class="paging">
49
			<?php
50
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
51
				echo $this->Paginator->numbers(array('separator' => ''));
52
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
53
			?>
54
			</div>
55
		</div>
56
	</div>
57
</div>