Subversion Repositories SmartDukaan

Rev

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