Subversion Repositories SmartDukaan

Rev

Rev 17227 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="notificationCampaigns view">
<h2><?php echo __('Notification Campaign'); ?></h2>
        <?php //debug($notificationCampaign); ?>
        <table cellpadding="0" cellspacing="10%" border="1" class="table table-striped">
        <tr>
        <!-- <th align="center"><?php //echo h('Pushed By'); ?></th> -->
        <th align="center"><?php echo h('Campaign Id'); ?></th>
        <th align="center"><?php echo h('Type'); ?></th>
        <th align="center"><?php echo h('Created'); ?></th>
        <th align="center"><?php echo h('Sent'); ?></th>
        <th align="center"><?php echo h('Received'); ?></th>
        </tr>
        
        <?php foreach ($userdata as $key => $temp): ?>
                <tr align="center">
                <!-- <td width="15%"> -->
                <?php //echo h($temp['pushnotifications']['id'])?>
                <?php //echo h($temp['pushed_by'])?>
                <!-- </td> -->
                <td>
                <?php //echo h($temp['pushnotifications']['notification_campaign_id'])?>
                <?php echo h($temp['notification_campaign_id'])?>
                </td>
                <td>
                <?php //echo h($temp['pushnotifications']['type'])?>
                <?php echo h($temp['type'])?>
                </td>
                <td>
                <?php //echo h($temp['pushnotifications']['status'])if(isset($temp['sent_timestamp'])){
                        if(isset($temp['created_timestamp'])){
                                echo h(date('Y-m-d H:i:s', $temp['created_timestamp']/1000)); 
                        }?>
                </td>
                <td width="30%">
                <?php //echo h($temp['pushnotifications']['response_time'])?>
                <?php 
                        if(isset($temp['sent_timestamp'])){
                                echo h(date('Y-m-d H:i:s', $temp['sent_timestamp']/1000)); 
                        }?>
                <?php //echo h($temp['response_time'])?>
                </td>
                <td width="30%">
                <?php //echo h($temp['pushnotifications']['created'])?>
                <?php 
                        if(isset($temp['receive_timestamp'])){
                                echo h(date('Y-m-d H:i:s', $temp['receive_timestamp']/1000)); 
                }?>
                <?php //echo h($temp['created'])?>
                </td>

                </tr>
        <?php endforeach; ?>
        </table>

</div>