Subversion Repositories SmartDukaan

Rev

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

Rev 17236 Rev 17349
Line 23... Line 23...
23
			<th style="text-align:center">Expired</th>
23
			<th style="text-align:center">Expired</th>
24
			<th style="text-align:center">Gap</th>
24
			<th style="text-align:center">Gap</th>
25
			<th style="text-align:center">Opened</th>
25
			<th style="text-align:center">Opened</th>
26
			<th style="text-align:center">Referrer</th>
26
			<th style="text-align:center">Referrer</th>
27
			<th style="text-align:center">Login</th>		
27
			<th style="text-align:center">Login</th>		
-
 
28
			<th style="text-align:center">Total Sms</th>
-
 
29
			<th style="text-align:center">Failed Sms</th>
-
 
30
			<th style="text-align:center">Success Sms</th>
-
 
31
			<th style="text-align:center">Received Sms</th>
-
 
32
			<th style="text-align:center">Expired Sms</th>
-
 
33
			<th style="text-align:center">Sent To Operator</th>
-
 
34
			<th style="text-align:center">Gap Sms</th>
28
			<th style="text-align:center" class="actions"><?php echo __('Actions'); ?></th>
35
			<th style="text-align:center" class="actions"><?php echo __('Actions'); ?></th>
29
	
36
	
30
	</tr>
37
	</tr>
31
 
38
 
32
	<?php foreach ($notificationCampaigns as $key=> $notificationCampaign): ?>
39
	<?php foreach ($notificationCampaigns as $key=> $notificationCampaign): ?>
Line 155... Line 162...
155
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['login'])){
162
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['login'])){
156
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['login'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'login',1)); 
163
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['login'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'login',1)); 
157
				}else {echo h('0');}
164
				}else {echo h('0');}
158
			?>&nbsp;
165
			?>&nbsp;
159
		</td>
166
		</td>
-
 
167
		
-
 
168
		<td align="center">
-
 
169
			<?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');}?>
-
 
170
			<?php 
-
 
171
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['smssent'])){
-
 
172
					echo $result[$notificationCampaign['NotificationCampaign']['id']]['smssent']; 
-
 
173
					$smstotal = $result[$notificationCampaign['NotificationCampaign']['id']]['smssent'];
-
 
174
				}else {echo h('0');
-
 
175
					$smstotal=0;
-
 
176
					}
-
 
177
			?>&nbsp;
-
 
178
		</td>
-
 
179
		
-
 
180
		<td align="center">
-
 
181
 			<?php //if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['smsrejected']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['smsrejected'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['smsrejected'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'smsrejected',1)); } else {echo h('0');}?>
-
 
182
 			<?php 
-
 
183
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['smsrejected'])){
-
 
184
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['smsrejected'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'smsrejected',1)); 
-
 
185
				}else {echo h('0');}
-
 
186
			?>&nbsp;
-
 
187
 		</td>
-
 
188
		<td align="center">
-
 
189
 			<?php //if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['smsrejected']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['smsrejected'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['smsrejected'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'smsrejected',1)); } else {echo h('0');}?>
-
 
190
 			<?php 
-
 
191
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['smsprocessed'])){
-
 
192
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['smsprocessed'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'smsprocessed',1)); 
-
 
193
					$smssuccess=$result[$notificationCampaign['NotificationCampaign']['id']]['smsprocessed'];
-
 
194
				}else {echo h('0');
-
 
195
					$smssuccess=0;
-
 
196
					}
-
 
197
				if($smstotal==0){
-
 
198
					$successpert = 0;
-
 
199
				}else{
-
 
200
					$successpert = round(($smssuccess)/($smstotal)*100);
-
 
201
				}
-
 
202
			?>&nbsp;
-
 
203
			<br>
-
 
204
			<br>
-
 
205
			<?php echo h('Success %= '.$successpert);?>
-
 
206
 		</td>
-
 
207
		<td align="center">
-
 
208
			<?php 
-
 
209
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['SMS_DELIVRD'])){
-
 
210
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['SMS_DELIVRD'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'SMS_DELIVRD',1)); 
-
 
211
					$receivedsms=$result[$notificationCampaign['NotificationCampaign']['id']]['SMS_DELIVRD'];
-
 
212
				}else {echo h('0');
-
 
213
					$receivedsms = 0;
-
 
214
				}
-
 
215
			?>&nbsp;
-
 
216
		</td>
-
 
217
		<td align="center">
-
 
218
			<?php 
-
 
219
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['SMS_EXPIRED'])){
-
 
220
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['SMS_EXPIRED'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'SMS_EXPIRED',1)); 
-
 
221
					$expiredsms = $result[$notificationCampaign['NotificationCampaign']['id']]['SMS_EXPIRED'];
-
 
222
				}else {echo h('0');
-
 
223
					$expiredsms = 0;
-
 
224
					}
-
 
225
			?>&nbsp;
-
 
226
		</td>
-
 
227
		<td align="center">
-
 
228
			<?php 
-
 
229
				if(isset($result[$notificationCampaign['NotificationCampaign']['id']]['SMS_SENT_OPERATOR'])){
-
 
230
					echo $this->Html->link(__(h($result[$notificationCampaign['NotificationCampaign']['id']]['SMS_SENT_OPERATOR'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'SMS_SENT_OPERATOR',1)); 
-
 
231
					$sentoperator = $result[$notificationCampaign['NotificationCampaign']['id']]['SMS_SENT_OPERATOR'];
-
 
232
				}else {echo h('0');
-
 
233
					$sentoperator = 0;
-
 
234
				}
-
 
235
			?>&nbsp;
-
 
236
		</td>
-
 
237
 
-
 
238
		<td align="center">
-
 
239
			<?php //echo($notificationWithVersionCode[$key] - ($recieved+$expired));?>
-
 
240
			<?php echo($smssuccess - ($receivedsms+$expiredsms));?>
-
 
241
	
-
 
242
			<br>
-
 
243
 
-
 
244
			<?php if($smssuccess!=0){ echo('%= '.round((($smssuccess - ($receivedsms+$expiredsms+$sentoperator))/$smssuccess)*100));}else {echo('%= 0');}?>
-
 
245
			<br>
-
 
246
		</td>
160
 		
247
 		
161
 		<td align="center" width="15%" class="actions">
248
 		<td align="center" width="15%" class="actions">
162
 
249
 
163
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationCampaign['NotificationCampaign']['id'])); ?>
250
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationCampaign['NotificationCampaign']['id'])); ?>
164
			&nbsp;
251
			&nbsp;