Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
17632 naman 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('adminactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<?php // $this->element('adminsearch');?>
8
			<h2><?php echo __('Feature Deal Objects'); ?></h2>
9
			<table class="table table-striped">
10
			<tr>
11
 
12
					<th><?php echo ('Id'); ?></th>
13
					<th><?php echo ('Start Date'); ?></th>
14
					<th><?php echo ('End Date'); ?></th>
15
					<th><?php echo ('Mobiles Rank'); ?></th>
16
					<th><?php echo ('Tablets Rank'); ?></th>
17
					<th><?php echo ('Accessories Rank'); ?></th>
18
					<th class="actions"><?php echo __('Actions'); ?></th>
19
			</tr>
20
			<?php foreach ($dealobjects as $dealobject): ?>
21
			<tr>
22
				<td><?php echo $dealobject['_id']; ?></td>
23
				<td><?php echo date('d-m-Y H:i:s',($dealobject['startDate']/1000)); ?></td>
24
				<td><?php echo date('d-m-Y H:i:s',($dealobject['endDate']/1000)); ?></td>
25
				<?php if(array_key_exists('3', $dealobject['otherInfo'])){ ?>
26
					<td><?php echo $dealobject['otherInfo']['3']; ?></td> 
27
				<?php } else { ?>
28
					<td><?php echo '-'; ?></td>
29
				<?php } ?>
30
				<?php if(array_key_exists('5', $dealobject['otherInfo'])){ ?>
31
                                        <td><?php echo $dealobject['otherInfo']['5']; ?></td>
32
                                <?php } else { ?>
33
                                        <td><?php echo '-'; ?></td>
34
                                <?php } ?>
35
				<?php if(array_key_exists('6', $dealobject['otherInfo'])){ ?>
36
                                        <td><?php echo $dealobject['otherInfo']['6']; ?></td>
37
                                <?php } else { ?>
38
                                        <td><?php echo '-'; ?></td>
39
                                <?php } ?>
40
				<td class="actions">
41
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $dealobject['_id']), null, __('Are you sure you want to delete # %s?', $dealobject['_id'])); ?>
42
				</td>
43
			</tr>
44
		<?php endforeach; ?>
45
			</table>			
46
		</div>
47
	</div>
48
	<nav>
49
	  <ul class="pager">
50
	  	<?php if($page>1):?>
51
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
52
		<?php endif;?>
53
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
54
	  </ul>
55
	</nav>
56
</div>