Subversion Repositories SmartDukaan

Rev

Rev 14956 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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