Subversion Repositories SmartDukaan

Rev

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

Rev 14955 Rev 14956
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 index">
8
<div class="notificationCampaigns index">
2
	
9
	
3
	<h2><?php echo __('Notification Campaigns'); ?></h2>
10
	<h2><?php echo __('Notification Campaigns'); ?></h2>
4
	
11
	
5
	<table cellpadding="0" cellspacing="0" border="1"  >
12
	<table cellpadding="0" cellspacing="0" border="1"  >
6
	<tr>
13
	<tr>
7
			<th align="center"><?php echo $this->Paginator->sort('id'); ?></th>
14
			<th style="text-align:center"><?php echo $this->Paginator->sort('id'); ?></th>
8
			<th align="center"><?php echo $this->Paginator->sort('name'); ?></th>
15
			<th style="text-align:center"><?php echo $this->Paginator->sort('name'); ?></th>
9
			<th align="center"><?php echo $this->Paginator->sort('title'); ?></th>
16
			<th style="text-align:center"><?php echo $this->Paginator->sort('title'); ?></th>
10
			<th align="center"><?php echo $this->Paginator->sort('message'); ?></th>
17
			<th style="text-align:center"><?php echo $this->Paginator->sort('message'); ?></th>
11
			<!-- <th align="center"><?php echo $this->Paginator->sort('type'); ?></th>
-
 
12
			<th align="center"><?php echo $this->Paginator->sort('url'); ?></th>
-
 
13
			 --><th align="center"><?php echo $this->Paginator->sort('created'); ?></th>
18
			<th style="text-align:center"><?php echo $this->Paginator->sort('created'); ?></th>
14
			<th align="center">Total</th>
19
			<th style="text-align:center">Total</th>
15
			<th align="center">Recieved</th>
20
			<th style="text-align:center">Failed</th>
16
			<th align="center">Failed</th>
21
			<th style="text-align:center">Recieved</th>
17
			<th align="center">Opened</th>
22
			<th style="text-align:center">Opened</th>
18
			<th align="center">Referrer</th>
23
			<th style="text-align:center">Referrer</th>
19
			<th align="center">Login</th>
24
			<th style="text-align:center">Login</th>
20
			<th align="center" class="actions"><?php echo __('Actions'); ?></th>
25
			<th style="text-align:center" class="actions"><?php echo __('Actions'); ?></th>
21
	
26
	
22
	</tr>
27
	</tr>
23
 
28
 
24
	<?php foreach ($notificationCampaigns as $notificationCampaign): ?>
29
	<?php foreach ($notificationCampaigns as $notificationCampaign): ?>
25
	<tr>
30
	<tr>
Line 30... Line 35...
30
		<td align="center"><?php echo h($notificationCampaign['NotificationCampaign']['created']); ?>&nbsp;</td>
35
		<td align="center"><?php echo h($notificationCampaign['NotificationCampaign']['created']); ?>&nbsp;</td>
31
		
36
		
32
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])){echo
37
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])){echo
33
		$this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); } else {echo h('0');}?>&nbsp;</td>
38
		$this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['sent'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',1)); } else {echo h('0');}?>&nbsp;</td>
34
 
39
 
-
 
40
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0'])){	echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',0));} else {echo h('0');}?>&nbsp;</td>
-
 
41
 
35
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])){echo
42
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])){echo
36
		$this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'recieved',1)); } else {echo h('0');}?>&nbsp;</td>
43
		$this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['recieved'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'recieved',1)); } else {echo h('0');}?>&nbsp;</td>
37
		
44
		
38
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0'])){	echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['0'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'sent',0));} else {echo h('0');}?>&nbsp;</td>
45
 
39
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'opened',1));  } else {echo h('0');}?>&nbsp;</td>
46
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['opened'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'opened',1));  } else {echo h('0');}?>&nbsp;</td>
40
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'referrer',1));  } else {echo h('0');}?>&nbsp;</td>
47
		<td align="center"><?php if(isset($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer']) && !empty($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer'])){echo $this->Html->link(__(h($notificationCampaignsCount[$notificationCampaign['NotificationCampaign']['id']]['referrer'])), array('action' => 'show', $notificationCampaign['NotificationCampaign']['id'], 'referrer',1));  } else {echo h('0');}?>&nbsp;</td>
41
		<td align="center"><?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');}?>&nbsp;</td>
48
		<td align="center"><?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');}?>&nbsp;</td>
42
 		<td align="center" width="7%" class="actions">
49
 		<td align="center" width="7%" class="actions">
43
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationCampaign['NotificationCampaign']['id'])); ?>
50
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $notificationCampaign['NotificationCampaign']['id'])); ?>