Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15403 manish.sha 1
<head>
2
<style>
3
table, th, td {
4
    border: 1px solid black;
5
}
6
</style>
7
</head>
8
<div class="notificationCampaigns view">
9
<table cellpadding="0" cellspacing="10%" border="1" class="table table-striped" >
10
	<tr >
11
	<th style="text-align:center"><?php echo $this->Html->link(__(h('User Id')),array('action'=>'sort', $notificationId, '?' => array('type' => 'user_id', 'order' => 'asc'))); ?></th>
12
 
13
	<th style="text-align:center"><?php echo $this->Html->link(__(h('Sent Time')),array('action'=>'sort', $notificationId, '?' => array('type' => 'sent', 'order' => 'asc'))); ?></th>
14
 
15
	<th style="text-align:center"><?php echo $this->Html->link(__(h('Recieved Time')),array('action'=>'sort', $notificationId, '?' => array('type' => 'recieved', 'order' => 'asc'))); ?></th>
16
 
17
	<th style="text-align:center"><?php echo $this->Html->link(__(h('Opened Time')),array('action'=>'sort', $notificationId, '?' => array('type' => 'opened', 'order' => 'asc'))); ?></th>
18
 
19
	<th style="text-align:center"><?php echo h('Status'); ?></th>
20
	</tr>
21
 
22
	<?php foreach ($sortdata as $key => $temp): ?>
23
		<?php// debug($temp);?>
24
		<?php if($key==0):?>
25
			<?php continue; ?>
26
		?>
27
		<?php endif;?>
28
		<tr>
29
		<td align="center">
30
		<!-- echo $this->Html->link(__(h($key), array('action' => 'show', $key))); -->
31
			<?php echo
32
		$this->Html->link(__(h($key)), array('action' => 'user', $key));  ?>
33
 
34
		</td>
35
		<?php if(isset($temp['sent'])):?>
36
		<td align="center">
37
			<?php echo h($temp['sent']); ?>
38
		</td>
39
		<?php endif;?>
40
		<td align="center" width="15%">
41
		<?php if(isset($temp['recieved'])):?>
42
 
43
			<?php echo h($temp['recieved']); ?>
44
		</td>
45
		<?php endif;?>
46
		<td align="center" width="25%">
47
		<?php if(isset($temp['opened'])):?>
48
 
49
			<?php echo h($temp['opened']); ?>
50
		</td>
51
		<?php endif;?>
52
		<td  align="center">
53
		<?php if(isset($temp['status'])):?>
54
		<?php if($temp['status']==1):?>
55
			<p>true</p>
56
		<?php elseif($temp['status']==0):?>
57
			<p>false</p>
58
		</td>
59
		<?php endif;?>
60
		<?php endif;?>
61
		</tr>
62
	<?php endforeach; ?>
63
	</table>
64
</div>