| 14956 |
manas |
1 |
<head>
|
|
|
2 |
<style>
|
|
|
3 |
table, th, td {
|
|
|
4 |
border: 1px solid black;
|
|
|
5 |
}
|
|
|
6 |
</style>
|
|
|
7 |
</head>
|
| 14955 |
manas |
8 |
<div class="notificationCampaigns view">
|
|
|
9 |
<h2><?php echo __('Notification Campaign'); ?></h2>
|
|
|
10 |
<h4><?php echo __('Campaign ID -> '.$notificationData['NotificationCampaign']['id']); ?></h4>
|
|
|
11 |
<h4><?php echo __('Campaign Name -> '.$notificationData['NotificationCampaign']['name']); ?></h4>
|
|
|
12 |
<h4><?php echo __('Campaign Title -> '.$notificationData['NotificationCampaign']['title']); ?></h4>
|
|
|
13 |
<h4><?php echo __('Campaign Message -> '.$notificationData['NotificationCampaign']['message']); ?></h4>
|
|
|
14 |
<h4><?php echo __('Campaign Type -> '.$notificationData['NotificationCampaign']['type']); ?></h4>
|
|
|
15 |
<h4><?php echo __('Campaign URL -> '.$notificationData['NotificationCampaign']['url']); ?></h4>
|
|
|
16 |
<h4><?php echo __('Campaign Created -> '.$notificationData['NotificationCampaign']['created']); ?></h4>
|
| 14968 |
manas |
17 |
<h4><?php echo __('Campaign Expiry -> '.$notificationData['NotificationCampaign']['expiresat']); ?></h4>
|
| 14955 |
manas |
18 |
<?php $cid=$notificationData['NotificationCampaign']['id']?>
|
|
|
19 |
<h4><?php if(isset($notificationCount[$cid]['sent'])){ echo __('Total -> '.$notificationCount[$cid]['sent']);} ?></h4>
|
|
|
20 |
<h4><?php if(isset($notificationCount[$cid]['0'])) {echo __('Failure -> '.$notificationCount[$cid]['0']);} ?></h4>
|
|
|
21 |
<h4><?php if(isset($notificationCount[$cid]['recieved'])) {echo __('Recieved -> '.$notificationCount[$cid]['recieved']);} ?></h4>
|
|
|
22 |
<h4><?php if(isset($notificationCount[$cid]['opened'])) {echo __('Opened -> '.$notificationCount[$cid]['opened']);} ?></h4>
|
|
|
23 |
<table cellpadding="0" cellspacing="10%" border="1" >
|
|
|
24 |
<tr>
|
| 14956 |
manas |
25 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $cid,'?' => array('type' => 'user_id', 'order' => 'desc'))); ?></th>
|
| 14955 |
manas |
26 |
|
| 14956 |
manas |
27 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $cid,'?' => array('type' => 'sent', 'order' => 'desc'))); ?></th>
|
| 14955 |
manas |
28 |
|
| 14956 |
manas |
29 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('Recieved Time')),array('action'=>'sort', $cid,'?' => array('type' => 'recieved', 'order' => 'desc'))); ?></th>
|
|
|
30 |
<th style="text-align:center"><?php echo $this->Html->link(__(h('Opened Time')),array('action'=>'sort', $cid,'?' => array('type' => 'opened', 'order' => 'desc'))); ?></th>
|
| 14955 |
manas |
31 |
|
| 14956 |
manas |
32 |
<th style="text-align:center"><?php echo h('Status'); ?></th>
|
| 14955 |
manas |
33 |
</tr>
|
|
|
34 |
|
|
|
35 |
<?php foreach ($notificationCampaign as $key => $temp): ?>
|
|
|
36 |
<?php //debug($temp);?>
|
|
|
37 |
<?php if($key==0):?>
|
|
|
38 |
<?php continue; ?>
|
|
|
39 |
?>
|
|
|
40 |
<?php endif;?>
|
|
|
41 |
<tr>
|
| 14956 |
manas |
42 |
<td align="center">
|
| 14955 |
manas |
43 |
<!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); -->
|
|
|
44 |
<?php echo
|
|
|
45 |
$this->Html->link(__(h($key)), array('action' => 'user', $key)); ?>
|
|
|
46 |
|
|
|
47 |
</td>
|
|
|
48 |
<?php if(isset($temp['sent'])):?>
|
| 14956 |
manas |
49 |
<td align="center">
|
| 14955 |
manas |
50 |
<?php echo h($temp['sent']); ?>
|
|
|
51 |
</td>
|
|
|
52 |
<?php endif;?>
|
| 14956 |
manas |
53 |
<td align="center" width="15%">
|
| 14955 |
manas |
54 |
<?php if(isset($temp['recieved'])):?>
|
|
|
55 |
|
|
|
56 |
<?php echo h($temp['recieved']); ?>
|
|
|
57 |
</td>
|
|
|
58 |
<?php endif;?>
|
| 14956 |
manas |
59 |
<td align="center" width="25%">
|
| 14955 |
manas |
60 |
<?php if(isset($temp['opened'])):?>
|
|
|
61 |
|
|
|
62 |
<?php echo h($temp['opened']); ?>
|
|
|
63 |
</td>
|
|
|
64 |
<?php endif;?>
|
| 14956 |
manas |
65 |
<td align="center">
|
| 14955 |
manas |
66 |
<?php if(isset($temp['status'])):?>
|
|
|
67 |
<?php if($temp['status']==1):?>
|
|
|
68 |
<p>true</p>
|
|
|
69 |
<?php elseif($temp['status']==0):?>
|
|
|
70 |
<p>false</p>
|
|
|
71 |
</td>
|
|
|
72 |
<?php endif;?>
|
|
|
73 |
<?php endif;?>
|
|
|
74 |
</tr>
|
|
|
75 |
<?php endforeach; ?>
|
|
|
76 |
</table>
|
|
|
77 |
<!-- <dl>
|
|
|
78 |
<dt><?php echo __('Id'); ?></dt>
|
|
|
79 |
<dd>
|
|
|
80 |
<?php echo h($notificationCampaign['NotificationCampaign']['id']); ?>
|
|
|
81 |
|
|
|
82 |
</dd>
|
|
|
83 |
<dt><?php echo __('Name'); ?></dt>
|
|
|
84 |
<dd>
|
|
|
85 |
<?php echo h($notificationCampaign['NotificationCampaign']['name']); ?>
|
|
|
86 |
|
|
|
87 |
</dd>
|
|
|
88 |
<dt><?php echo __('Title'); ?></dt>
|
|
|
89 |
<dd>
|
|
|
90 |
<?php echo h($notificationCampaign['NotificationCampaign']['title']); ?>
|
|
|
91 |
|
|
|
92 |
</dd>
|
|
|
93 |
<dt><?php echo __('Message'); ?></dt>
|
|
|
94 |
<dd>
|
|
|
95 |
<?php echo h($notificationCampaign['NotificationCampaign']['message']); ?>
|
|
|
96 |
|
|
|
97 |
</dd>
|
|
|
98 |
<dt><?php echo __('Type'); ?></dt>
|
|
|
99 |
<dd>
|
|
|
100 |
<?php echo h($notificationCampaign['NotificationCampaign']['type']); ?>
|
|
|
101 |
|
|
|
102 |
</dd>
|
|
|
103 |
<dt><?php echo __('Url'); ?></dt>
|
|
|
104 |
<dd>
|
|
|
105 |
<?php echo h($notificationCampaign['NotificationCampaign']['url']); ?>
|
|
|
106 |
|
|
|
107 |
</dd>
|
|
|
108 |
<dt><?php echo __('Created'); ?></dt>
|
|
|
109 |
<dd>
|
|
|
110 |
<?php echo h($notificationCampaign['NotificationCampaign']['created']); ?>
|
|
|
111 |
|
|
|
112 |
</dd>
|
|
|
113 |
</dl>
|
|
|
114 |
--></div>
|
|
|
115 |
<!-- <div class="actions">
|
|
|
116 |
<h3><?php echo __('Actions'); ?></h3>
|
|
|
117 |
<ul>
|
|
|
118 |
<li><?php echo $this->Html->link(__('Edit Notification Campaign'), array('action' => 'edit', $notificationCampaign['NotificationCampaign']['id'])); ?> </li>
|
|
|
119 |
<li><?php echo $this->Form->postLink(__('Delete Notification Campaign'), array('action' => 'delete', $notificationCampaign['NotificationCampaign']['id']), null, __('Are you sure you want to delete # %s?', $notificationCampaign['NotificationCampaign']['id'])); ?> </li>
|
|
|
120 |
<li><?php echo $this->Html->link(__('List Notification Campaigns'), array('action' => 'index')); ?> </li>
|
|
|
121 |
<li><?php echo $this->Html->link(__('New Notification Campaign'), array('action' => 'add')); ?> </li>
|
|
|
122 |
<li><?php echo $this->Html->link(__('List Pushnotifications'), array('controller' => 'pushnotifications', 'action' => 'index')); ?> </li>
|
|
|
123 |
<li><?php echo $this->Html->link(__('New Pushnotification'), array('controller' => 'pushnotifications', 'action' => 'add')); ?> </li>
|
|
|
124 |
</ul>
|
|
|
125 |
</div> -->
|
|
|
126 |
<!-- <div class="related">
|
|
|
127 |
<h3><?php echo __('Related Pushnotifications'); ?></h3>
|
|
|
128 |
<?php if (!empty($notificationCampaign['Pushnotification'])): ?>
|
|
|
129 |
<table cellpadding = "0" cellspacing = "0">
|
|
|
130 |
<tr>
|
|
|
131 |
<th><?php echo __('Id'); ?></th>
|
|
|
132 |
<th><?php echo __('User Id'); ?></th>
|
|
|
133 |
<th><?php echo __('Campaign Id'); ?></th>
|
|
|
134 |
<th><?php echo __('Type'); ?></th>
|
|
|
135 |
<th><?php echo __('Status'); ?></th>
|
|
|
136 |
<th><?php echo __('Response Time'); ?></th>
|
|
|
137 |
<th><?php echo __('Created'); ?></th>
|
|
|
138 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
|
|
139 |
</tr>
|
|
|
140 |
<?php foreach ($notificationCampaign['Pushnotification'] as $pushnotification): ?>
|
|
|
141 |
<tr>
|
|
|
142 |
<td width="15%"><?php echo $pushnotification['id']; ?></td>
|
|
|
143 |
<td width="5%" align="center"><?php echo $pushnotification['user_id']; ?></td>
|
|
|
144 |
<td width="15%" align="center"><?php echo $pushnotification['notification_campaign_id']; ?></td>
|
|
|
145 |
<td width="15%"><?php echo $pushnotification['type']; ?></td>
|
|
|
146 |
<td width="15%"><?php echo $pushnotification['status']; ?></td>
|
|
|
147 |
<td width="15%"><?php echo $pushnotification['response_time']; ?></td>
|
|
|
148 |
<td width="15%"><?php echo $pushnotification['created']; ?></td>
|
|
|
149 |
<td class="actions">
|
|
|
150 |
<?php echo $this->Html->link(__('View'), array('controller' => 'pushnotifications', 'action' => 'view', $pushnotification['id'])); ?>
|
|
|
151 |
<?php echo $this->Html->link(__('Edit'), array('controller' => 'pushnotifications', 'action' => 'edit', $pushnotification['id'])); ?>
|
|
|
152 |
<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'pushnotifications', 'action' => 'delete', $pushnotification['id']), null, __('Are you sure you want to delete # %s?', $pushnotification['id'])); ?>
|
|
|
153 |
</td>
|
|
|
154 |
</tr>
|
|
|
155 |
<?php endforeach; ?>
|
|
|
156 |
</table>
|
|
|
157 |
<?php endif; ?> -->
|
|
|
158 |
|
|
|
159 |
<!-- <div class="actions">
|
|
|
160 |
<ul>
|
|
|
161 |
<li><?php echo $this->Html->link(__('New Pushnotification'), array('controller' => 'pushnotifications', 'action' => 'add')); ?> </li>
|
|
|
162 |
</ul>
|
|
|
163 |
</div> -->
|
|
|
164 |
</div>
|