Subversion Repositories SmartDukaan

Rev

Rev 14955 | Rev 14968 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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