Subversion Repositories SmartDukaan

Rev

Rev 13633 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13579 anikendra 1
<div class="container">
2
	<div class="row">
3
		<div class="col-lg-3">
4
			<?php echo $this->Element('categorydiscountactions');?>
5
		</div>
6
		<div class="col-lg-9">
7
			<h2><?php echo __('Category Discounts'); ?></h2>
8
			<table class="table table-striped">
9
			<tr>
10
					<th><?php echo $this->Paginator->sort('id'); ?></th>
11
					<th><?php echo $this->Paginator->sort('category_id'); ?></th>
12
					<th><?php echo $this->Paginator->sort('brand'); ?></th>
13
					<th><?php echo $this->Paginator->sort('min_discount'); ?></th>
14
					<th><?php echo $this->Paginator->sort('max_discount'); ?></th>
15
					<th><?php echo $this->Paginator->sort('discount_category'); ?></th>
16
					<th class="actions"><?php echo __('Actions'); ?></th>
17
			</tr>
18
			<?php foreach ($categoryDiscounts as $categoryDiscount): ?>
19
			<tr>
20
				<td><?php echo h($categoryDiscount['CategoryDiscount']['id']); ?>&nbsp;</td>
21
				<td><?php echo $categoryDiscount['Category']['name'];?>
22
					<?php //echo $this->Html->link($categoryDiscount['Category']['name'], array('controller' => 'categories', 'action' => 'view', $categoryDiscount['Category']['id'])); ?>
23
				</td>
24
				<td><?php echo h($categoryDiscount['CategoryDiscount']['brand']); ?>&nbsp;</td>
25
				<td><?php echo h($categoryDiscount['CategoryDiscount']['min_discount']); ?>&nbsp;</td>
26
				<td><?php echo h($categoryDiscount['CategoryDiscount']['max_discount']); ?>&nbsp;</td>
27
				<td><?php echo h($categoryDiscount['CategoryDiscount']['discount_category']); ?>&nbsp;</td>
28
				<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'])); ?>
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'])); ?>
32
				</td>
33
			</tr>
34
		<?php endforeach; ?>
35
			</table>
36
			<p>
37
			<?php
38
			echo $this->Paginator->counter(array(
39
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
40
			));
41
			?>	</p>
42
			<div class="paging">
43
			<?php
44
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
45
				echo $this->Paginator->numbers(array('separator' => ''));
46
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
47
			?>
48
			</div>
49
		</div>
50
	</div>
51
</div>