Subversion Repositories SmartDukaan

Rev

Rev 14517 | Rev 17343 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14517 anikendra 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 echo $this->element('adminsearch');?>
8
			<h2><?php echo __('Featured Deals'); ?></h2>
9
			<table class="table table-striped">
10
			<tr>
11
					<th><?php echo ('sku'); ?></th>
12
					<th><?php echo ('Brand'); ?></th>
13
					<th><?php echo ('Name'); ?></th>
14
					<th><?php echo ('Default Rank'); ?></th>
15
					<th><?php echo ('Mobiles Rank'); ?></th>
16
					<th><?php echo ('Tablets Rank'); ?></th>
17
					<th><?php echo ('Threshold Price'); ?></th>
18
					<th><?php echo ('Bundle Id'); ?></th>
19
					<th><?php echo ('Start Date'); ?></th>
20
					<th><?php echo ('End Date'); ?></th>
21
					<th class="actions"><?php echo __('Actions'); ?></th>
22
			</tr>
23
			<?php foreach ($featureddeals as $negativedeal): ?>
24
			<tr>
25
				<td><?php echo h($negativedeal['sku']); ?>&nbsp;</td>
26
				<td><?php echo h($negativedeal['brand']); ?></td>
27
				<td><?php echo h($negativedeal['source_product_name']); ?></td>
14533 anikendra 28
				<td><?php if(!empty($negativedeal['rankDetails'][0])) { echo h($negativedeal['rankDetails'][0]);} ?></td>
29
				<td><?php if(!empty($negativedeal['rankDetails'][3])) { echo h($negativedeal['rankDetails'][3]);} ?></td>
30
				<td><?php if(!empty($negativedeal['rankDetails'][5])) { echo h($negativedeal['rankDetails'][5]);} ?></td>
14517 anikendra 31
				<td><?php echo h($negativedeal['thresholdPrice']); ?></td>
32
				<td><?php echo $negativedeal['skuBundleId']; ?></td>
33
				<td><?php echo date('d-m-Y',($negativedeal['startDate']/1000)); ?></td>
34
				<td><?php echo date('d-m-Y',($negativedeal['endDate']/1000)); ?></td>
35
				<td class="actions">
36
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $negativedeal['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $negativedeal['_id']['$oid'])); ?>
37
				</td>
38
			</tr>
39
		<?php endforeach; ?>
40
			</table>			
41
		</div>
42
	</div>
43
	<nav>
44
	  <ul class="pager">
45
	  	<?php if($page>1):?>
46
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
47
		<?php endif;?>
48
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
49
	  </ul>
50
	</nav>
51
</div>