Subversion Repositories SmartDukaan

Rev

Rev 17432 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17432 Rev 19079
Line 17... Line 17...
17
	<h4><?php echo __('Campaign Expiry ->     '.$notificationData['NotificationCampaign']['expiresat']); ?></h4>
17
	<h4><?php echo __('Campaign Expiry ->     '.$notificationData['NotificationCampaign']['expiresat']); ?></h4>
18
	<?php if(isset($notificationData['NotificationCampaign']['messagetext'])) { ?>
18
	<?php if(isset($notificationData['NotificationCampaign']['messagetext'])) { ?>
19
	<h4><?php echo __('Campaign Message Text ->     '.$notificationData['NotificationCampaign']['messagetext']); ?></h4>
19
	<h4><?php echo __('Campaign Message Text ->     '.$notificationData['NotificationCampaign']['messagetext']); ?></h4>
20
	<?php } ?>
20
	<?php } ?>
21
	<?php $cid=$notificationData['NotificationCampaign']['id']?>
21
	<?php $cid=$notificationData['NotificationCampaign']['id']?>
22
	<h4><?php if(isset($notificationCount[$cid]['sent'])){ echo __('Total ->     '.$notificationCount[$cid]['sent']);} ?></h4>
22
	<h4><?php //if(isset($notificationCount[$cid]['sent'])){ echo __('Total ->     '.$notificationCount[$cid]['sent']);} ?></h4>
23
	<h4><?php  if(isset($notificationCount[$cid]['0'])) {echo __('Failure ->     '.$notificationCount[$cid]['0']);} ?></h4>
23
	<h4><?php // if(isset($notificationCount[$cid]['0'])) {echo __('Failure ->     '.$notificationCount[$cid]['0']);} ?></h4>
24
	<h4><?php if(isset($notificationCount[$cid]['recieved'])) {echo __('Recieved ->     '.$notificationCount[$cid]['recieved']);} ?></h4>
24
	<h4><?php //if(isset($notificationCount[$cid]['recieved'])) {echo __('Recieved ->     '.$notificationCount[$cid]['recieved']);} ?></h4>
25
	<h4><?php if(isset($notificationCount[$cid]['opened'])) {echo __('Opened ->     '.$notificationCount[$cid]['opened']);} ?></h4>
25
	<h4><?php //if(isset($notificationCount[$cid]['opened'])) {echo __('Opened ->     '.$notificationCount[$cid]['opened']);} ?></h4>
26
	<table cellpadding="0" cellspacing="10%" border="1" class="table table-striped" >
26
	<table cellpadding="0" cellspacing="10%" border="1" class="table table-striped" >
27
	<tr>
27
	<tr>
28
	<th style="text-align:center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $cid,'?' => array('type' => 'user_id', 'order' => 'desc'))); ?></th>
28
	<th style="text-align:center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $cid,'?' => array('type' => 'user_id', 'order' => 'desc'))); ?></th>
29
	
29
	
30
	<th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $cid,'?' => array('type' => 'sent', 'order' => 'desc'))); ?></th>
30
	<th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $cid,'?' => array('type' => 'sent', 'order' => 'desc'))); ?></th>
Line 46... Line 46...
46
		<!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); -->
46
		<!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); -->
47
			<?php echo
47
			<?php echo
48
		$this->Html->link(__(h($key)), array('action' => 'user', $key));  ?>
48
		$this->Html->link(__(h($key)), array('action' => 'user', $key));  ?>
49
			
49
			
50
		</td>
50
		</td>
51
		<?php if(isset($temp['sent'])):?>
-
 
52
		<td align="center">
51
		<td align="center">
-
 
52
			<?php if(isset($temp['sent'])):?>		
53
			<?php echo h($temp['sent']); ?>
53
				<?php echo h($temp['sent']); ?>	
-
 
54
			<?php endif;?>
54
		</td>
55
		</td>
55
		<?php endif;?>
-
 
56
		<td align="center" width="15%">
56
		<td align="center" width="15%">
57
		<?php if(isset($temp['recieved'])):?>
57
			<?php if(isset($temp['recieved'])):?>		
58
		
-
 
59
			<?php echo h($temp['recieved']); ?>
58
				<?php echo h($temp['recieved']); ?>		
-
 
59
			<?php endif;?>
60
		</td>
60
		</td>
61
		<?php endif;?>
-
 
62
		<td align="center" width="25%">
61
		<td align="center" width="25%">
63
		<?php if(isset($temp['opened'])):?>
62
			<?php if(isset($temp['opened'])):?>		
64
		
-
 
65
			<?php echo h($temp['opened']); ?>
63
				<?php echo h($temp['opened']); ?>
-
 
64
			<?php endif;?>
66
		</td>
65
		</td>
67
		<?php endif;?>
-
 
68
		<td align="center">
66
		<td align="center">
69
		<?php if(isset($temp['status'])):?>
67
			<?php if(isset($temp['status'])):?>
70
		<?php if($temp['status']==1):?>
68
				<?php if($temp['status']==1):?>
71
			<p>true</p>
69
					<p>true</p>
72
		<?php elseif($temp['status']==0):?>
70
				<?php elseif($temp['status']==0):?>
73
			<p>false</p>
71
					<p>false</p>			
-
 
72
				<?php endif;?>		
-
 
73
			<?php endif;?>
74
		</td>
74
		</td>
75
		<?php endif;?>
-
 
76
		<?php endif;?>
-
 
77
		</tr>
75
		</tr>
78
	<?php endforeach; ?>
76
	<?php endforeach; ?>
79
	</table>
77
	</table>
80
<!-- 	 <dl>
78
<!-- 	 <dl>
81
		<dt><?php //echo __('Id'); ?></dt>
79
		<dt><?php //echo __('Id'); ?></dt>
Line 143... Line 141...
143
	<?php //foreach ($notificationCampaign['Pushnotification'] as $pushnotification): ?>
141
	<?php //foreach ($notificationCampaign['Pushnotification'] as $pushnotification): ?>
144
		<tr>
142
		<tr>
145
			<td width="15%"><?php //echo $pushnotification['id']; ?></td>
143
			<td width="15%"><?php //echo $pushnotification['id']; ?></td>
146
			<td width="5%" align="center"><?php //echo $pushnotification['user_id']; ?></td>
144
			<td width="5%" align="center"><?php //echo $pushnotification['user_id']; ?></td>
147
			<td width="15%" align="center"><?php //echo $pushnotification['notification_campaign_id']; ?></td>
145
			<td width="15%" align="center"><?php //echo $pushnotification['notification_campaign_id']; ?></td>
148
			<td width="15%"><?php// echo $pushnotification['type']; ?></td>
146
			<td width="15%"><?php //echo $pushnotification['type']; ?></td>
149
			<td width="15%"><?php //echo $pushnotification['status']; ?></td>
147
			<td width="15%"><?php //echo $pushnotification['status']; ?></td>
150
			<td width="15%"><?php //echo $pushnotification['response_time']; ?></td>
148
			<td width="15%"><?php //echo $pushnotification['response_time']; ?></td>
151
			<td width="15%"><?php //echo $pushnotification['created']; ?></td>
149
			<td width="15%"><?php //echo $pushnotification['created']; ?></td>
152
			<td class="actions">
150
			<td class="actions">
153
				<?php //echo $this->Html->link(__('View'), array('controller' => 'pushnotifications', 'action' => 'view', $pushnotification['id'])); ?>
151
				<?php //echo $this->Html->link(__('View'), array('controller' => 'pushnotifications', 'action' => 'view', $pushnotification['id'])); ?>