Subversion Repositories SmartDukaan

Rev

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

Rev 17221 Rev 17236
Line 54... Line 54...
54
		<td> <?php //echo h($successSent+ $successFailed) ?>
54
		<td> <?php //echo h($successSent+ $successFailed) ?>
55
			<?php //echo $result[$notificationCampaign['NotificationCampaign']['id']]['sent'];?>
55
			<?php //echo $result[$notificationCampaign['NotificationCampaign']['id']]['sent'];?>
56
			<?php 
56
			<?php 
57
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['sent'])){
57
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['sent'])){
58
					echo $result[$notificationCampaign['NotificationCampaign']['id']]['sent']; 
58
					echo $result[$notificationCampaign['NotificationCampaign']['id']]['sent']; 
-
 
59
					$total = $result[$notificationCampaign['NotificationCampaign']['id']]['sent'];
59
				}else {echo '0';}
60
				}else {echo '0';
-
 
61
					$total = 0;
-
 
62
			}
60
			?>
63
			?>
61
			&nbsp;
64
			&nbsp;
62
 
65
 
63
		</td>
66
		</td>
64
		
67
		
Line 75... Line 78...
75
		<td align="center" width="15%">
78
		<td align="center" width="15%">
76
			<?php //if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); } else {echo h('0');}?>
79
			<?php //if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); } else {echo h('0');}?>
77
			<?php 
80
			<?php 
78
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['1'])){
81
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['1'])){
79
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['1'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); 
82
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['1'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); 
-
 
83
					$success = $result[$notificationCampaign['NotificationCampaign']['id']]['1'];
80
				}else {echo h('0');}
84
				}else {echo h('0');
-
 
85
				$success = 0;
-
 
86
			}
81
			?>
87
			?>
82
		<br>
88
		<br>
83
		<?php //echo h('Trackable= '.$notificationWithVersionCode[$key]);?>
89
		<?php //echo h('Trackable= '.$notificationWithVersionCode[$key]);?>
84
		<br>
90
		<br>
85
		<?php //echo h('%= '.round((($notificationWithVersionCode[$key])/($successSent+$successFailed))*100));?>
91
		<?php //echo h('%= '.round((($notificationWithVersionCode[$key])/($successSent+$successFailed))*100));?>
-
 
92
		<?php echo h('Success %= '.round((($success)/($total))*100));?>
86
		</td>
93
		</td>
87
 
94
 
88
		<td align="center">
95
		<td align="center">
89
			<?php //if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'recieved',1)); } else {echo h('0');}?>
96
			<?php //if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'recieved',1)); } else {echo h('0');}?>
90
			<?php 
97
			<?php 
Line 111... Line 118...
111
					$recieved = $result[$notificationCampaign['NotificationCampaign']['id']]['recieved'];  
118
					$recieved = $result[$notificationCampaign['NotificationCampaign']['id']]['recieved'];  
112
				}else {$recieved =0;}
119
				}else {$recieved =0;}
113
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['expired'])){
120
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['expired'])){
114
					$expired = $result[$notificationCampaign['NotificationCampaign']['id']]['expired'];  
121
					$expired = $result[$notificationCampaign['NotificationCampaign']['id']]['expired'];  
115
				}else {$expired =0;}
122
				}else {$expired =0;}
116
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['sent'])){
123
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['1'])){
117
					$sent = $result[$notificationCampaign['NotificationCampaign']['id']]['sent'];  
124
					$sent = $result[$notificationCampaign['NotificationCampaign']['id']]['1'];  
118
				}else {$sent =0;}
125
				}else {$sent =0;}
119
	?>
126
	?>
120
<td align="center" width="10%">
127
<td align="center" width="10%">
121
	<?php //echo($notificationWithVersionCode[$key] - ($recieved+$expired));?>
128
	<?php //echo($notificationWithVersionCode[$key] - ($recieved+$expired));?>
122
	<?php echo($sent - ($recieved+$expired));?>
129
	<?php echo($sent - ($recieved+$expired));?>