Subversion Repositories SmartDukaan

Rev

Rev 13579 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13758 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 __('Brands'); ?></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('name'); ?></th>
12
					<th><?php echo $this->Paginator->sort('category_id'); ?></th>
13
					<th><?php echo $this->Paginator->sort('displayed_in_preference_page'); ?></th>
14
					<th><?php echo $this->Paginator->sort('created'); ?></th>
15
					<th class="actions"><?php echo __('Actions'); ?></th>
16
			</tr>
17
			<?php foreach ($brands as $brand): ?>
18
			<tr>
19
				<td><?php echo h($brand['Brand']['id']); ?>&nbsp;</td>
20
				<td><?php echo h($brand['Brand']['name']); ?>&nbsp;</td>
21
				<td>
22
					<?php echo $this->Html->link($brand['Category']['name'], array('controller' => 'categories', 'action' => 'view', $brand['Category']['id'])); ?>
23
				</td>
24
				<td><input data-id="<?php echo ($brand['Brand']['id']); ?>" data-url="/admin/brands/edit/<?php echo h($brand['Brand']['id']); ?>" type="checkbox" name="displayed_in_preference_page[]" class="brandedit" <?php if($brand['Brand']['displayed_in_preference_page']==1):?>checked="checked"<?php endif;?>/></td>
25
				<td><?php echo h($brand['Brand']['created']); ?>&nbsp;</td>
26
				<td class="actions">
27
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $brand['Brand']['id'])); ?>
28
					<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $brand['Brand']['id']), null, __('Are you sure you want to delete # %s?', $brand['Brand']['id'])); ?>
29
				</td>
30
			</tr>
31
		<?php endforeach; ?>
32
			</table>
33
			<p>
34
			<?php
35
			echo $this->Paginator->counter(array(
36
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
37
			));
38
			?>	</p>
39
			<div class="paging">
40
			<?php
41
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
42
				echo $this->Paginator->numbers(array('separator' => ''));
43
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
44
			?>
45
			</div>
46
		</div>
13579 anikendra 47
	</div>
48
</div>