| Line -... |
Line 1... |
| - |
|
1 |
<head>
|
| - |
|
2 |
<style>
|
| - |
|
3 |
table, th, td {
|
| - |
|
4 |
border: 1px solid black;
|
| - |
|
5 |
}
|
| - |
|
6 |
</style>
|
| - |
|
7 |
</head>
|
| 1 |
<div class="notificationCampaigns view">
|
8 |
<div class="notificationCampaigns view">
|
| 2 |
<h2><?php echo __('Notification Campaign'); ?></h2>
|
9 |
<h2><?php echo __('Notification Campaign'); ?></h2>
|
| 3 |
<h4><?php echo __('Campaign ID -> '.$notificationData['NotificationCampaign']['id']); ?></h4>
|
10 |
<h4><?php echo __('Campaign ID -> '.$notificationData['NotificationCampaign']['id']); ?></h4>
|
| 4 |
<h4><?php echo __('Campaign Name -> '.$notificationData['NotificationCampaign']['name']); ?></h4>
|
11 |
<h4><?php echo __('Campaign Name -> '.$notificationData['NotificationCampaign']['name']); ?></h4>
|
| 5 |
<h4><?php echo __('Campaign Title -> '.$notificationData['NotificationCampaign']['title']); ?></h4>
|
12 |
<h4><?php echo __('Campaign Title -> '.$notificationData['NotificationCampaign']['title']); ?></h4>
|
| Line 12... |
Line 19... |
| 12 |
<h4><?php if(isset($notificationCount[$cid]['0'])) {echo __('Failure -> '.$notificationCount[$cid]['0']);} ?></h4>
|
19 |
<h4><?php if(isset($notificationCount[$cid]['0'])) {echo __('Failure -> '.$notificationCount[$cid]['0']);} ?></h4>
|
| 13 |
<h4><?php if(isset($notificationCount[$cid]['recieved'])) {echo __('Recieved -> '.$notificationCount[$cid]['recieved']);} ?></h4>
|
20 |
<h4><?php if(isset($notificationCount[$cid]['recieved'])) {echo __('Recieved -> '.$notificationCount[$cid]['recieved']);} ?></h4>
|
| 14 |
<h4><?php if(isset($notificationCount[$cid]['opened'])) {echo __('Opened -> '.$notificationCount[$cid]['opened']);} ?></h4>
|
21 |
<h4><?php if(isset($notificationCount[$cid]['opened'])) {echo __('Opened -> '.$notificationCount[$cid]['opened']);} ?></h4>
|
| 15 |
<table cellpadding="0" cellspacing="10%" border="1" >
|
22 |
<table cellpadding="0" cellspacing="10%" border="1" >
|
| 16 |
<tr>
|
23 |
<tr>
|
| 17 |
<th align="center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $cid,'?' => array('type' => 'user_id', 'order' => 'desc'))); ?></th>
|
24 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $cid,'?' => array('type' => 'user_id', 'order' => 'desc'))); ?></th>
|
| 18 |
|
25 |
|
| 19 |
<th align="center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $cid,'?' => array('type' => 'sent', 'order' => 'desc'))); ?></th>
|
26 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $cid,'?' => array('type' => 'sent', 'order' => 'desc'))); ?></th>
|
| 20 |
|
27 |
|
| 21 |
<th align="center"><?php echo $this->Html->link(__(h('Recieved Time')),array('action'=>'sort', $cid,'?' => array('type' => 'recieved', 'order' => 'desc'))); ?></th>
|
28 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('Recieved Time')),array('action'=>'sort', $cid,'?' => array('type' => 'recieved', 'order' => 'desc'))); ?></th>
|
| 22 |
<th align="center"><?php echo $this->Html->link(__(h('Opened Time')),array('action'=>'sort', $cid,'?' => array('type' => 'opened', 'order' => 'desc'))); ?></th>
|
29 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('Opened Time')),array('action'=>'sort', $cid,'?' => array('type' => 'opened', 'order' => 'desc'))); ?></th>
|
| 23 |
|
30 |
|
| 24 |
<th align="center"><?php echo h('Status'); ?></th>
|
31 |
<th style="text-align:center"><?php echo h('Status'); ?></th>
|
| 25 |
</tr>
|
32 |
</tr>
|
| 26 |
|
33 |
|
| 27 |
<?php foreach ($notificationCampaign as $key => $temp): ?>
|
34 |
<?php foreach ($notificationCampaign as $key => $temp): ?>
|
| 28 |
<?php //debug($temp);?>
|
35 |
<?php //debug($temp);?>
|
| 29 |
<?php if($key==0):?>
|
36 |
<?php if($key==0):?>
|
| 30 |
<?php continue; ?>
|
37 |
<?php continue; ?>
|
| 31 |
?>
|
38 |
?>
|
| 32 |
<?php endif;?>
|
39 |
<?php endif;?>
|
| 33 |
<tr>
|
40 |
<tr>
|
| 34 |
<td>
|
41 |
<td align="center">
|
| 35 |
<!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); -->
|
42 |
<!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); -->
|
| 36 |
<?php echo
|
43 |
<?php echo
|
| 37 |
$this->Html->link(__(h($key)), array('action' => 'user', $key)); ?>
|
44 |
$this->Html->link(__(h($key)), array('action' => 'user', $key)); ?>
|
| 38 |
|
45 |
|
| 39 |
</td>
|
46 |
</td>
|
| 40 |
<?php if(isset($temp['sent'])):?>
|
47 |
<?php if(isset($temp['sent'])):?>
|
| 41 |
<td>
|
48 |
<td align="center">
|
| 42 |
<?php echo h($temp['sent']); ?>
|
49 |
<?php echo h($temp['sent']); ?>
|
| 43 |
</td>
|
50 |
</td>
|
| 44 |
<?php endif;?>
|
51 |
<?php endif;?>
|
| 45 |
<td>
|
52 |
<td align="center" width="15%">
|
| 46 |
<?php if(isset($temp['recieved'])):?>
|
53 |
<?php if(isset($temp['recieved'])):?>
|
| 47 |
|
54 |
|
| 48 |
<?php echo h($temp['recieved']); ?>
|
55 |
<?php echo h($temp['recieved']); ?>
|
| 49 |
</td>
|
56 |
</td>
|
| 50 |
<?php endif;?>
|
57 |
<?php endif;?>
|
| 51 |
<td>
|
58 |
<td align="center" width="25%">
|
| 52 |
<?php if(isset($temp['opened'])):?>
|
59 |
<?php if(isset($temp['opened'])):?>
|
| 53 |
|
60 |
|
| 54 |
<?php echo h($temp['opened']); ?>
|
61 |
<?php echo h($temp['opened']); ?>
|
| 55 |
</td>
|
62 |
</td>
|
| 56 |
<?php endif;?>
|
63 |
<?php endif;?>
|
| 57 |
<td>
|
64 |
<td align="center">
|
| 58 |
<?php if(isset($temp['status'])):?>
|
65 |
<?php if(isset($temp['status'])):?>
|
| 59 |
<?php if($temp['status']==1):?>
|
66 |
<?php if($temp['status']==1):?>
|
| 60 |
<p>true</p>
|
67 |
<p>true</p>
|
| 61 |
<?php elseif($temp['status']==0):?>
|
68 |
<?php elseif($temp['status']==0):?>
|
| 62 |
<p>false</p>
|
69 |
<p>false</p>
|