| 13637 |
anikendra |
1 |
<div class="skuschemes index">
|
|
|
2 |
<h2><?php echo __('Skuschemes'); ?></h2>
|
|
|
3 |
<table cellpadding="0" cellspacing="0">
|
|
|
4 |
<tr>
|
|
|
5 |
<th><?php echo __('sku'); ?></th>
|
|
|
6 |
<th><?php echo __('startDate'); ?></th>
|
|
|
7 |
<th><?php echo __('endDate'); ?></th>
|
|
|
8 |
<th><?php echo __('scheme_amount'); ?></th>
|
|
|
9 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
|
|
10 |
</tr>
|
|
|
11 |
<?php foreach ($skuschemes as $skuscheme): ?>
|
|
|
12 |
<?php $skuscheme = json_decode($skuscheme,1);print_r($skuscheme);?>
|
|
|
13 |
<tr>
|
|
|
14 |
<td><?php echo h($skuscheme['sku']); ?> </td>
|
|
|
15 |
<td><?php echo h($skuscheme['startDate']); ?> </td>
|
|
|
16 |
<td><?php echo h($skuscheme['endDate']); ?> </td>
|
|
|
17 |
<td><?php echo h($skuscheme['scheme_amount']); ?> </td>
|
|
|
18 |
<td class="actions">
|
|
|
19 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $skuscheme['sku'])); ?>
|
|
|
20 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $skuscheme['sku']), null, __('Are you sure you want to delete # %s?', $skuscheme['sku'])); ?>
|
|
|
21 |
</td>
|
|
|
22 |
</tr>
|
|
|
23 |
<?php endforeach; ?>
|
|
|
24 |
</table>
|
|
|
25 |
<p>
|
|
|
26 |
<?php
|
|
|
27 |
// echo $this->Paginator->counter(array(
|
|
|
28 |
// 'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
|
|
|
29 |
// ));
|
|
|
30 |
?> </p>
|
|
|
31 |
<div class="paging">
|
|
|
32 |
<?php
|
|
|
33 |
echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
|
|
|
34 |
echo $this->Paginator->numbers(array('separator' => ''));
|
|
|
35 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
|
|
|
36 |
?>
|
|
|
37 |
</div>
|
|
|
38 |
</div>
|
|
|
39 |
<div class="actions">
|
|
|
40 |
<h3><?php echo __('Actions'); ?></h3>
|
|
|
41 |
<ul>
|
|
|
42 |
<li><?php echo $this->Html->link(__('New Skuscheme'), array('action' => 'add')); ?></li>
|
|
|
43 |
</ul>
|
|
|
44 |
</div>
|