| Line 1... |
Line 1... |
| 1 |
<div class="skuschemes index">
|
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">
|
| 2 |
<h2><?php echo __('Skuschemes'); ?></h2>
|
7 |
<h2><?php echo __('Sku Schemes'); ?></h2>
|
| 3 |
<table cellpadding="0" cellspacing="0">
|
8 |
<table cellpadding="0" cellspacing="0">
|
| 4 |
<tr>
|
9 |
<tr>
|
| 5 |
<th><?php echo __('sku'); ?></th>
|
10 |
<th><?php echo __('sku'); ?></th>
|
| 6 |
<th><?php echo __('startDate'); ?></th>
|
11 |
<th><?php echo __('startDate'); ?></th>
|
| 7 |
<th><?php echo __('endDate'); ?></th>
|
12 |
<th><?php echo __('endDate'); ?></th>
|
| 8 |
<th><?php echo __('scheme_amount'); ?></th>
|
13 |
<th><?php echo __('scheme_amount'); ?></th>
|
| 9 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
14 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
| 10 |
</tr>
|
15 |
</tr>
|
| 11 |
<?php foreach ($skuschemes as $skuscheme): ?>
|
16 |
<?php foreach ($skuschemes as $skuscheme): ?>
|
| 12 |
<?php $skuscheme = json_decode($skuscheme,1);print_r($skuscheme);?>
|
17 |
<?php $skuscheme = json_decode($skuscheme,1);?>
|
| 13 |
<tr>
|
18 |
<tr>
|
| 14 |
<td><?php echo h($skuscheme['sku']); ?> </td>
|
19 |
<td><?php echo h($skuscheme['sku']); ?> </td>
|
| 15 |
<td><?php echo h($skuscheme['startDate']); ?> </td>
|
20 |
<td><?php echo date('d-m-Y',$skuscheme['startDate']/1000); ?> </td>
|
| 16 |
<td><?php echo h($skuscheme['endDate']); ?> </td>
|
21 |
<td><?php echo date('d-m-Y',$skuscheme['endDate']/1000); ?> </td>
|
| 17 |
<td><?php echo h($skuscheme['scheme_amount']); ?> </td>
|
22 |
<td><?php echo h($skuscheme['scheme_amount']); ?> </td>
|
| 18 |
<td class="actions">
|
23 |
<td class="actions">
|
| 19 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $skuscheme['sku'])); ?>
|
24 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $skuscheme['_id']['$oid'])); ?>
|
| 20 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $skuscheme['sku']), null, __('Are you sure you want to delete # %s?', $skuscheme['sku'])); ?>
|
25 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $skuscheme['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $skuscheme['_id']['$oid'])); ?>
|
| 21 |
</td>
|
26 |
</td>
|
| 22 |
</tr>
|
27 |
</tr>
|
| 23 |
<?php endforeach; ?>
|
28 |
<?php endforeach; ?>
|
| 24 |
</table>
|
29 |
</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>
|
30 |
</div>
|
| 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>
|
31 |
</div>
|
| 38 |
</div>
|
32 |
</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>
|
- |
|
| 45 |
|
33 |
|