Subversion Repositories SmartDukaan

Rev

Rev 17432 | 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']?>
19079 naman 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>
14956 manas 51
		<td align="center">
19079 naman 52
			<?php if(isset($temp['sent'])):?>		
53
				<?php echo h($temp['sent']); ?>	
54
			<?php endif;?>
14955 manas 55
		</td>
14956 manas 56
		<td align="center" width="15%">
19079 naman 57
			<?php if(isset($temp['recieved'])):?>		
58
				<?php echo h($temp['recieved']); ?>		
59
			<?php endif;?>
14955 manas 60
		</td>
14956 manas 61
		<td align="center" width="25%">
19079 naman 62
			<?php if(isset($temp['opened'])):?>		
63
				<?php echo h($temp['opened']); ?>
64
			<?php endif;?>
14955 manas 65
		</td>
14956 manas 66
		<td align="center">
19079 naman 67
			<?php if(isset($temp['status'])):?>
68
				<?php if($temp['status']==1):?>
69
					<p>true</p>
70
				<?php elseif($temp['status']==0):?>
71
					<p>false</p>			
72
				<?php endif;?>		
73
			<?php endif;?>
14955 manas 74
		</td>
75
		</tr>
76
	<?php endforeach; ?>
77
	</table>
78
<!-- 	 <dl>
17213 naman 79
		<dt><?php //echo __('Id'); ?></dt>
14955 manas 80
		<dd>
17213 naman 81
			<?php //echo h($notificationCampaign['NotificationCampaign']['id']); ?>
14955 manas 82
			&nbsp;
83
		</dd>
17213 naman 84
		<dt><?php //echo __('Name'); ?></dt>
14955 manas 85
		<dd>
17213 naman 86
			<?php// echo h($notificationCampaign['NotificationCampaign']['name']); ?>
14955 manas 87
			&nbsp;
88
		</dd>
17213 naman 89
		<dt><?php //echo __('Title'); ?></dt>
14955 manas 90
		<dd>
17213 naman 91
			<?php //echo h($notificationCampaign['NotificationCampaign']['title']); ?>
14955 manas 92
			&nbsp;
93
		</dd>
17213 naman 94
		<dt><?php //echo __('Message'); ?></dt>
14955 manas 95
		<dd>
17213 naman 96
			<?php //echo h($notificationCampaign['NotificationCampaign']['message']); ?>
14955 manas 97
			&nbsp;
98
		</dd>
17213 naman 99
		<dt><?php //echo __('Type'); ?></dt>
14955 manas 100
		<dd>
17213 naman 101
			<?php //echo h($notificationCampaign['NotificationCampaign']['type']); ?>
14955 manas 102
			&nbsp;
103
		</dd>
17213 naman 104
		<dt><?php //echo __('Url'); ?></dt>
14955 manas 105
		<dd>
17213 naman 106
			<?php //echo h($notificationCampaign['NotificationCampaign']['url']); ?>
14955 manas 107
			&nbsp;
108
		</dd>
17213 naman 109
		<dt><?php //echo __('Created'); ?></dt>
14955 manas 110
		<dd>
17213 naman 111
			<?php //echo h($notificationCampaign['NotificationCampaign']['created']); ?>
14955 manas 112
			&nbsp;
113
		</dd>
114
	</dl> 
115
 --></div>
116
 <!-- <div class="actions">
17213 naman 117
	<h3><?php //echo __('Actions'); ?></h3>
14955 manas 118
	<ul>
17213 naman 119
		<li><?php //echo $this->Html->link(__('Edit Notification Campaign'), array('action' => 'edit', $notificationCampaign['NotificationCampaign']['id'])); ?> </li>
120
		<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>
121
		<li><?php //echo $this->Html->link(__('List Notification Campaigns'), array('action' => 'index')); ?> </li>
122
		<li><?php //echo $this->Html->link(__('New Notification Campaign'), array('action' => 'add')); ?> </li>
123
		<li><?php //echo $this->Html->link(__('List Pushnotifications'), array('controller' => 'pushnotifications', 'action' => 'index')); ?> </li>
124
		<li><?php //echo $this->Html->link(__('New Pushnotification'), array('controller' => 'pushnotifications', 'action' => 'add')); ?> </li>
14955 manas 125
	</ul>
126
</div>  -->
127
<!-- <div class="related">
17213 naman 128
	<h3><?php //echo __('Related Pushnotifications'); ?></h3>
129
	<?php //if (!empty($notificationCampaign['Pushnotification'])): ?>
14955 manas 130
	<table cellpadding = "0" cellspacing = "0">
131
	<tr>
17213 naman 132
		<th><?php //echo __('Id'); ?></th>
133
		<th><?php //echo __('User Id'); ?></th>
134
		<th><?php //echo __('Campaign Id'); ?></th>
135
		<th><?php //echo __('Type'); ?></th>
136
		<th><?php //echo __('Status'); ?></th>
137
		<th><?php //echo __('Response Time'); ?></th>
138
		<th><?php //echo __('Created'); ?></th>
139
		<th class="actions"><?php //echo __('Actions'); ?></th>
14955 manas 140
	</tr>
17213 naman 141
	<?php //foreach ($notificationCampaign['Pushnotification'] as $pushnotification): ?>
14955 manas 142
		<tr>
17213 naman 143
			<td width="15%"><?php //echo $pushnotification['id']; ?></td>
144
			<td width="5%" align="center"><?php //echo $pushnotification['user_id']; ?></td>
145
			<td width="15%" align="center"><?php //echo $pushnotification['notification_campaign_id']; ?></td>
19079 naman 146
			<td width="15%"><?php //echo $pushnotification['type']; ?></td>
17213 naman 147
			<td width="15%"><?php //echo $pushnotification['status']; ?></td>
148
			<td width="15%"><?php //echo $pushnotification['response_time']; ?></td>
149
			<td width="15%"><?php //echo $pushnotification['created']; ?></td>
14955 manas 150
			<td class="actions">
17213 naman 151
				<?php //echo $this->Html->link(__('View'), array('controller' => 'pushnotifications', 'action' => 'view', $pushnotification['id'])); ?>
152
	 			<?php //echo $this->Html->link(__('Edit'), array('controller' => 'pushnotifications', 'action' => 'edit', $pushnotification['id'])); ?>
153
				<?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 154
			</td>
155
		</tr>
17213 naman 156
	<?php //endforeach; ?>
14955 manas 157
	</table>
17213 naman 158
<?php //endif; ?> -->
14955 manas 159
 
160
<!-- <div class="actions">
161
		<ul>
17213 naman 162
			<li><?php //echo $this->Html->link(__('New Pushnotification'), array('controller' => 'pushnotifications', 'action' => 'add')); ?> </li>
14955 manas 163
		</ul>
164
	</div>  -->
165
</div>