Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
13646 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
			<h2><?php echo __('Sku Schemes'); ?></h2>
8
			<table cellpadding="0" cellspacing="0">
9
			<tr>
10
					<th><?php echo __('sku'); ?></th>
14098 anikendra 11
					<th><?php echo __('Name'); ?></th>
12
					<!-- <th><?php //echo __('startDate'); ?></th> -->
13
					<!-- <th><?php //echo __('endDate'); ?></th> -->
14
					<th><?php echo __('schemeAmount'); ?></th>
13646 anikendra 15
					<th class="actions"><?php echo __('Actions'); ?></th>
16
			</tr>
17
			<?php foreach ($skuschemes as $skuscheme): ?>
14098 anikendra 18
			<?php $skuscheme = json_decode($skuscheme,1);
19
			?>
13646 anikendra 20
			<tr>
21
				<td><?php echo h($skuscheme['sku']); ?>&nbsp;</td>
14098 anikendra 22
				<td><?php echo h($skuscheme['source_product_name']); ?>&nbsp;</td>				
23
				<!-- <td><?php //echo date('d-m-Y',$skuscheme['startDate']/1000); ?>&nbsp;</td> -->
24
				<!-- <td><?php //echo date('d-m-Y',$skuscheme['endDate']/1000); ?>&nbsp;</td> -->
25
				<td class="edit" id="schemeAmount" data-oid="<?php echo $skuscheme['_id']['$oid'];?>" ><?php echo h($skuscheme['schemeAmount']); ?></td>
13646 anikendra 26
				<td class="actions">
14098 anikendra 27
					<?php //echo $this->Html->link(__('Edit'), array('action' => 'edit', $skuscheme['_id']['$oid'])); ?>
13646 anikendra 28
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $skuscheme['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $skuscheme['_id']['$oid'])); ?>
29
				</td>
30
			</tr>
31
		<?php endforeach; ?>
32
			</table>			
33
		</div>
13637 anikendra 34
	</div>
14098 anikendra 35
	<nav>
36
	  <ul class="pager">
37
	  	<?php if($page>1):?>
38
	    <li><a href="?page=<?php echo $page-1;?>">Previous</a></li>
39
		<?php endif;?>
40
	    <li><a href="?page=<?php echo $page+1;?>">Next</a></li>
41
	  </ul>
42
	</nav>
13646 anikendra 43
</div>