| Line 5... |
Line 5... |
| 5 |
</div>
|
5 |
</div>
|
| 6 |
<div class="col-lg-9">
|
6 |
<div class="col-lg-9">
|
| 7 |
<h2><?php echo __('Category Discounts'); ?></h2>
|
7 |
<h2><?php echo __('Category Discounts'); ?></h2>
|
| 8 |
<table class="table table-striped">
|
8 |
<table class="table table-striped">
|
| 9 |
<tr>
|
9 |
<tr>
|
| 10 |
<th><?php echo $this->Paginator->sort('id'); ?></th>
|
- |
|
| 11 |
<th><?php echo $this->Paginator->sort('category_id'); ?></th>
|
10 |
<th><?php echo $this->Paginator->sort('category_id'); ?></th>
|
| 12 |
<th><?php echo $this->Paginator->sort('brand'); ?></th>
|
11 |
<th><?php echo $this->Paginator->sort('brand'); ?></th>
|
| 13 |
<th><?php echo $this->Paginator->sort('min_discount'); ?></th>
|
12 |
<th><?php echo $this->Paginator->sort('min_discount'); ?></th>
|
| 14 |
<th><?php echo $this->Paginator->sort('max_discount'); ?></th>
|
13 |
<th><?php echo $this->Paginator->sort('max_discount'); ?></th>
|
| 15 |
<th><?php echo $this->Paginator->sort('discount_category'); ?></th>
|
14 |
<th><?php echo $this->Paginator->sort('discountType'); ?></th>
|
| 16 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
15 |
<th class="actions"><?php echo __('Actions'); ?></th>
|
| 17 |
</tr>
|
16 |
</tr>
|
| 18 |
<?php foreach ($categoryDiscounts as $categoryDiscount): ?>
|
17 |
<?php foreach ($categoryDiscounts as $categoryDiscount): ?>
|
| - |
|
18 |
<?php $categoryDiscount = json_decode($categoryDiscount,1);?>
|
| 19 |
<tr>
|
19 |
<tr>
|
| 20 |
<td><?php echo h($categoryDiscount['CategoryDiscount']['id']); ?> </td>
|
- |
|
| 21 |
<td><?php echo $categoryDiscount['Category']['name'];?>
|
20 |
<td><?php echo $categories[$categoryDiscount['category_id']];?>
|
| 22 |
<?php //echo $this->Html->link($categoryDiscount['Category']['name'], array('controller' => 'categories', 'action' => 'view', $categoryDiscount['Category']['id'])); ?>
|
21 |
<?php //echo $this->Html->link($categoryDiscount['Category']['name'], array('controller' => 'categories', 'action' => 'view', $categoryDiscount['Category']['id'])); ?>
|
| 23 |
</td>
|
22 |
</td>
|
| 24 |
<td><?php echo h($categoryDiscount['CategoryDiscount']['brand']); ?> </td>
|
23 |
<td><?php echo h($categoryDiscount['brand']); ?> </td>
|
| 25 |
<td><?php echo h($categoryDiscount['CategoryDiscount']['min_discount']); ?> </td>
|
24 |
<td><?php echo h($categoryDiscount['min_discount']); ?> </td>
|
| 26 |
<td><?php echo h($categoryDiscount['CategoryDiscount']['max_discount']); ?> </td>
|
25 |
<td><?php echo h($categoryDiscount['max_discount']); ?> </td>
|
| 27 |
<td><?php echo h($categoryDiscount['CategoryDiscount']['discount_category']); ?> </td>
|
26 |
<td><?php echo h($categoryDiscount['discountType']); ?> </td>
|
| 28 |
<td class="actions">
|
27 |
<td class="actions">
|
| 29 |
<?php //echo $this->Html->link(__('View'), array('action' => 'view', $categoryDiscount['CategoryDiscount']['id'])); ?>
|
- |
|
| 30 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $categoryDiscount['CategoryDiscount']['id'])); ?>
|
28 |
<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $categoryDiscount['_id']['$oid'])); ?>
|
| 31 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $categoryDiscount['CategoryDiscount']['id']), null, __('Are you sure you want to delete # %s?', $categoryDiscount['CategoryDiscount']['id'])); ?>
|
29 |
<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $categoryDiscount['_id']['$oid']), null, __('Are you sure you want to delete # %s?', $categoryDiscount['CategoryDiscount']['id'])); ?>
|
| 32 |
</td>
|
30 |
</td>
|
| 33 |
</tr>
|
31 |
</tr>
|
| 34 |
<?php endforeach; ?>
|
32 |
<?php endforeach; ?>
|
| 35 |
</table>
|
33 |
</table>
|
| 36 |
<p>
|
34 |
<p>
|
| Line 46... |
Line 44... |
| 46 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
|
44 |
echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
|
| 47 |
?>
|
45 |
?>
|
| 48 |
</div>
|
46 |
</div>
|
| 49 |
</div>
|
47 |
</div>
|
| 50 |
</div>
|
48 |
</div>
|
| 51 |
</div>
|
- |
|
| 52 |
|
49 |
</div>
|
| - |
|
50 |
|