| 14955 |
manas |
1 |
<div class="notificationCampaigns index">
|
|
|
2 |
|
|
|
3 |
<h2><?php echo __('Notification Campaigns'); ?></h2>
|
|
|
4 |
|
|
|
5 |
<table cellpadding="0" cellspacing="0" border="1" >
|
|
|
6 |
<tr>
|
|
|
7 |
<th align="center"><?php echo $this->Paginator->sort('id'); ?></th>
|
|
|
8 |
<th align="center"><?php echo $this->Paginator->sort('name'); ?></th>
|
|
|
9 |
<th align="center"><?php echo $this->Paginator->sort('title'); ?></th>
|
|
|
10 |
<th align="center"><?php echo $this->Paginator->sort('message'); ?></th>
|
|
|
11 |
<!-- <th align="center"><?php echo $this->Paginator->sort('type'); ?></th>
|
|
|
12 |
<th align="center"><?php echo $this->Paginator->sort('url'); ?></th>
|
|
|
13 |
--><th align="center"><?php echo $this->Paginator->sort('created'); ?></th>
|
|
|
14 |
<th align="center">Total</th>
|
|
|
15 |
<th align="center">Recieved</th>
|
|
|
16 |
<th align="center">Failed</th>
|
|
|
17 |
<th align="center">Opened</th>
|
|
|
18 |
<th align="center">Referrer</th>
|
|
|
19 |
<th align="center">Login</th>
|
|
|
20 |
<th align="center" class="actions"><?php echo __('Actions'); ?></th>
|
|
|
21 |
|
|
|
22 |
</tr>
|
|
|
23 |
|
|
|
24 |
<?php foreach ($notificationCampaigns as $notificationCampaign): ?>
|
|
|
25 |
<tr>
|
|
|
26 |
<td align="center" width="4%"><?php echo h($notificationCampaign['NotificationCampaign']['id']); ?> </td>
|
|
|
27 |
<td align="center"><?php echo h($notificationCampaign['NotificationCampaign']['name']); ?> </td>
|
|
|
28 |
<td align="center"><?php echo h($notificationCampaign['NotificationCampaign']['title']); ?> </td>
|
|
|
29 |
<td align="center"><?php echo h($notificationCampaign['NotificationCampaign']['message']); ?> </td>
|
|
|
30 |
<td align="center"><?php echo h($notificationCampaign['NotificationCampaign']['created']); ?> </td>
|
|
|
31 |
|
|
|
32 |
<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])){echo
|
|
|
33 |
$this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); } else {echo h('0');}?> </td>
|
|
|
34 |
|
|
|
35 |
<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])){echo
|
|
|
36 |
$this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'recieved',1)); } else {echo h('0');}?> </td>
|
|
|
37 |
|
|
|
38 |
<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0'])){ echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',0));} else {echo h('0');}?> </td>
|
|
|
39 |
<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'opened',1)); } else {echo h('0');}?> </td>
|
|
|
40 |
<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'referrer',1)); } else {echo h('0');}?> </td>
|
|
|
41 |
<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['login']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['login'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['login'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'login',1)); } else {echo h('0');}?> </td>
|
|
|
42 |
<td align="center" width="7%" class="actions">
|
|
|
43 |
<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationCampaign['NotificationCampaign']['id'])); ?>
|
|
|
44 |
|
|
|
45 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $notificationCampaign['NotificationCampaign']['id'])); ?>
|
|
|
46 |
<!--<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $notificationCampaign['NotificationCampaign']['id']), null, __('Are you sure you want to delete # %s?', $notificationCampaign['NotificationCampaign']['id'])); ?> -->
|
|
|
47 |
</td>
|
|
|
48 |
</tr>
|
|
|
49 |
<?php endforeach; ?>
|
|
|
50 |
</table>
|
|
|
51 |
<p>
|
|
|
52 |
<?php
|
|
|
53 |
echo $this->Paginator->counter(array(
|
|
|
54 |
'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
|
|
55 |
));
|
|
|
56 |
?> </p>
|
|
|
57 |
<div class="paging">
|
|
|
58 |
<?php
|
|
|
59 |
echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
|
|
|
60 |
echo $this->Paginator->numbers(array('separator' => ' '));
|
|
|
61 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
|
|
|
62 |
?>
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
|