Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15077 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 __('Auto Updates'); ?></h2>
9
			<table cellpadding="0" cellspacing="0" class="table table-striped">
10
			<tr>
11
					<!-- <th><?php //echo __('id'); ?></th> -->
12
					<th><?php echo __('skuBundleId'); ?></th>
13
					<th><?php echo __('name'); ?></th>
14
					<th><?php echo __('brand'); ?></th>
15
					<th><?php echo __('startDate'); ?></th>
16
					<th><?php echo __('endDate'); ?></th>
17
					<th>Actions</th>
18
			</tr>
19
			<?php foreach ($autoupdates as $product): ?>
20
			<tr>
21
				<!-- <td><?php //echo h($product['_id']['$oid']); ?>&nbsp;</td> -->
22
				<td><?php echo h($product['skuBundleId']); ?>&nbsp;</td>
23
				<td><?php echo h($product['model_name']); ?>&nbsp;</td>				
24
				<td><?php echo h($product['brand']); ?></td>
25
				<td id="startDate" data-oid="<?php echo $product['startDate'];?>"><?php echo date('H:i d-m-Y',$product['startDate']/1000); ?></td>
26
				<td id="endDate" data-oid="<?php echo $product['endDate'];?>"><?php echo date('H:i d-m-Y',$product['endDate']/1000); ?></td>				
27
				<td><?php echo $this->Html->link(__('Edit'), array('action' => 'editscheduledupdate', $product['_id']['$oid'],$product['skuBundleId'],$product['model_name'],$product['brand'],$product['startDate'],$product['endDate'])); ?>&nbsp;|&nbsp;<?php echo $this->Form->postLink(__('Delete'), array('action' => 'deletescheduledupdate', $product['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $product['_id']['$oid'])); ?></td>
28
			</tr>
29
		<?php endforeach; ?>
30
			</table>			
31
		</div>
32
	</div>
33
	<ul class="pager">
34
	  	<?php if($page>1):?>
35
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
36
		<?php endif;?>
37
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
38
  	</ul>
39
</div>