Subversion Repositories SmartDukaan

Rev

Rev 14956 | 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">
<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', $notificationId, '?' => array('type' => 'user_id', 'order' => 'asc'))); ?></th>
        
        <th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $notificationId, '?' => array('type' => 'sent', 'order' => 'asc'))); ?></th>
        
        <th style="text-align:center"><?php echo $this->Html->link(__(h('Recieved Time')),array('action'=>'sort', $notificationId, '?' => array('type' => 'recieved', 'order' => 'asc'))); ?></th>
        
        <th style="text-align:center"><?php echo $this->Html->link(__(h('Opened Time')),array('action'=>'sort', $notificationId, '?' => array('type' => 'opened', 'order' => 'asc'))); ?></th>
        
        <th style="text-align:center"><?php echo h('Status'); ?></th>
        </tr>
        
        <?php foreach ($sortdata as $key => $temp): ?>
                <?php// debug($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($key)), array('action' => 'user', $key));  ?>
                        
                </td>
                <?php if(isset($temp['sent'])):?>
                <td align="center">
                        <?php echo h($temp['sent']); ?>
                </td>
                <?php endif;?>
                <td align="center" width="15%">
                <?php if(isset($temp['recieved'])):?>
                
                        <?php echo h($temp['recieved']); ?>
                </td>
                <?php endif;?>
                <td align="center" width="25%">
                <?php if(isset($temp['opened'])):?>
                
                        <?php echo h($temp['opened']); ?>
                </td>
                <?php endif;?>
                <td  align="center">
                <?php if(isset($temp['status'])):?>
                <?php if($temp['status']==1):?>
                        <p>true</p>
                <?php elseif($temp['status']==0):?>
                        <p>false</p>
                </td>
                <?php endif;?>
                <?php endif;?>
                </tr>
        <?php endforeach; ?>
        </table>
</div>