Rev 19079 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<head><style>table, th, td {border: 1px solid black;}</style></head><div class="notificationCampaigns view"><h2><?php echo __('Notification Campaign'); ?></h2><h4><?php echo __('Campaign ID -> '.$notificationData['NotificationCampaign']['id']); ?></h4><h4><?php echo __('Campaign Name -> '.$notificationData['NotificationCampaign']['name']); ?></h4><h4><?php echo __('Campaign Title -> '.$notificationData['NotificationCampaign']['title']); ?></h4><h4><?php echo __('Campaign Message -> '.$notificationData['NotificationCampaign']['message']); ?></h4><h4><?php echo __('Campaign Type -> '.$notificationData['NotificationCampaign']['type']); ?></h4><h4><?php echo __('Campaign URL -> '.$notificationData['NotificationCampaign']['url']); ?></h4><h4><?php echo __('Campaign Created -> '.$notificationData['NotificationCampaign']['created']); ?></h4><h4><?php echo __('Campaign Expiry -> '.$notificationData['NotificationCampaign']['expiresat']); ?></h4><?php if(isset($notificationData['NotificationCampaign']['messagetext'])) { ?><h4><?php echo __('Campaign Message Text -> '.$notificationData['NotificationCampaign']['messagetext']); ?></h4><?php } ?><?php $cid=$notificationData['NotificationCampaign']['id']?><h4><?php //if(isset($notificationCount[$cid]['sent'])){ echo __('Total -> '.$notificationCount[$cid]['sent']);} ?></h4><h4><?php // if(isset($notificationCount[$cid]['0'])) {echo __('Failure -> '.$notificationCount[$cid]['0']);} ?></h4><h4><?php //if(isset($notificationCount[$cid]['recieved'])) {echo __('Recieved -> '.$notificationCount[$cid]['recieved']);} ?></h4><h4><?php //if(isset($notificationCount[$cid]['opened'])) {echo __('Opened -> '.$notificationCount[$cid]['opened']);} ?></h4><table cellpadding="0" cellspacing="10%" border="1" class="table table-striped" ><tr><th style="text-align:center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $cid,'?' => array('type' => 'user_id', 'order' => 'desc'))); ?></th><th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $cid,'?' => array('type' => 'sent', 'order' => 'desc'))); ?></th><th style="text-align:center"><?php echo $this->Html->link(__(h('Recieved Time')),array('action'=>'sort', $cid,'?' => array('type' => 'recieved', 'order' => 'desc'))); ?></th><th style="text-align:center"><?php echo $this->Html->link(__(h('Opened Time')),array('action'=>'sort', $cid,'?' => array('type' => 'opened', 'order' => 'desc'))); ?></th><th style="text-align:center"><?php echo h('Status'); ?></th></tr><?php foreach ($notificationCampaign as $key => $temp): ?><?php if($key==0):?><?php continue; ?>?><?php endif;?><tr><td align="center"><!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); --><?php echo$this->Html->link(__(h(explode('_', $key)[0])), array('action' => 'user', explode('_', $key)[0])); ?></td><td align="center"><?php if(isset($temp['sent'])):?><?php echo h($temp['sent']); ?><?php endif;?></td><td align="center" width="15%"><?php if(isset($temp['recieved'])):?><?php echo h($temp['recieved']); ?><?php endif;?></td><td align="center" width="25%"><?php if(isset($temp['opened'])):?><?php echo h($temp['opened']); ?><?php endif;?></td><td align="center"><?php if(isset($temp['status'])):?><?php if($temp['status']==1):?><p>true</p><?php elseif($temp['status']==0):?><p>false</p><?php endif;?><?php endif;?></td></tr><?php endforeach; ?></table><!-- <dl><dt><?php //echo __('Id'); ?></dt><dd><?php //echo h($notificationCampaign['NotificationCampaign']['id']); ?> </dd><dt><?php //echo __('Name'); ?></dt><dd><?php// echo h($notificationCampaign['NotificationCampaign']['name']); ?> </dd><dt><?php //echo __('Title'); ?></dt><dd><?php //echo h($notificationCampaign['NotificationCampaign']['title']); ?> </dd><dt><?php //echo __('Message'); ?></dt><dd><?php //echo h($notificationCampaign['NotificationCampaign']['message']); ?> </dd><dt><?php //echo __('Type'); ?></dt><dd><?php //echo h($notificationCampaign['NotificationCampaign']['type']); ?> </dd><dt><?php //echo __('Url'); ?></dt><dd><?php //echo h($notificationCampaign['NotificationCampaign']['url']); ?> </dd><dt><?php //echo __('Created'); ?></dt><dd><?php //echo h($notificationCampaign['NotificationCampaign']['created']); ?> </dd></dl>--></div><!-- <div class="actions"><h3><?php //echo __('Actions'); ?></h3><ul><li><?php //echo $this->Html->link(__('Edit Notification Campaign'), array('action' => 'edit', $notificationCampaign['NotificationCampaign']['id'])); ?> </li><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><li><?php //echo $this->Html->link(__('List Notification Campaigns'), array('action' => 'index')); ?> </li><li><?php //echo $this->Html->link(__('New Notification Campaign'), array('action' => 'add')); ?> </li><li><?php //echo $this->Html->link(__('List Pushnotifications'), array('controller' => 'pushnotifications', 'action' => 'index')); ?> </li><li><?php //echo $this->Html->link(__('New Pushnotification'), array('controller' => 'pushnotifications', 'action' => 'add')); ?> </li></ul></div> --><!-- <div class="related"><h3><?php //echo __('Related Pushnotifications'); ?></h3><?php //if (!empty($notificationCampaign['Pushnotification'])): ?><table cellpadding = "0" cellspacing = "0"><tr><th><?php //echo __('Id'); ?></th><th><?php //echo __('User Id'); ?></th><th><?php //echo __('Campaign Id'); ?></th><th><?php //echo __('Type'); ?></th><th><?php //echo __('Status'); ?></th><th><?php //echo __('Response Time'); ?></th><th><?php //echo __('Created'); ?></th><th class="actions"><?php //echo __('Actions'); ?></th></tr><?php //foreach ($notificationCampaign['Pushnotification'] as $pushnotification): ?><tr><td width="15%"><?php //echo $pushnotification['id']; ?></td><td width="5%" align="center"><?php //echo $pushnotification['user_id']; ?></td><td width="15%" align="center"><?php //echo $pushnotification['notification_campaign_id']; ?></td><td width="15%"><?php //echo $pushnotification['type']; ?></td><td width="15%"><?php //echo $pushnotification['status']; ?></td><td width="15%"><?php //echo $pushnotification['response_time']; ?></td><td width="15%"><?php //echo $pushnotification['created']; ?></td><td class="actions"><?php //echo $this->Html->link(__('View'), array('controller' => 'pushnotifications', 'action' => 'view', $pushnotification['id'])); ?><?php //echo $this->Html->link(__('Edit'), array('controller' => 'pushnotifications', 'action' => 'edit', $pushnotification['id'])); ?><?php //echo $this->Form->postLink(__('Delete'), array('controller' => 'pushnotifications', 'action' => 'delete', $pushnotification['id']), null, __('Are you sure you want to delete # %s?', $pushnotification['id'])); ?></td></tr><?php //endforeach; ?></table><?php //endif; ?> --><!-- <div class="actions"><ul><li><?php //echo $this->Html->link(__('New Pushnotification'), array('controller' => 'pushnotifications', 'action' => 'add')); ?> </li></ul></div> --></div>