Subversion Repositories SmartDukaan

Rev

Rev 13579 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13579 Rev 13758
Line 1... Line 1...
1
<div class="brands 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 __('Brands'); ?></h2>
7
			<h2><?php echo __('Brands'); ?></h2>
3
	<table cellpadding="0" cellspacing="0">
8
			<table class="table table-striped">
4
	<tr>
9
			<tr>
5
			<th><?php echo $this->Paginator->sort('id'); ?></th>
10
					<th><?php echo $this->Paginator->sort('id'); ?></th>
6
			<th><?php echo $this->Paginator->sort('name'); ?></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>
7
			<th><?php echo $this->Paginator->sort('created'); ?></th>
14
					<th><?php echo $this->Paginator->sort('created'); ?></th>
8
			<th class="actions"><?php echo __('Actions'); ?></th>
15
					<th class="actions"><?php echo __('Actions'); ?></th>
9
	</tr>
16
			</tr>
10
	<?php foreach ($brands as $brand): ?>
17
			<?php foreach ($brands as $brand): ?>
11
	<tr>
18
			<tr>
12
		<td><?php echo h($brand['Brand']['id']); ?>&nbsp;</td>
19
				<td><?php echo h($brand['Brand']['id']); ?>&nbsp;</td>
13
		<td><?php echo h($brand['Brand']['name']); ?>&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>
14
		<td><?php echo h($brand['Brand']['created']); ?>&nbsp;</td>
25
				<td><?php echo h($brand['Brand']['created']); ?>&nbsp;</td>
15
		<td class="actions">
26
				<td class="actions">
16
			<?php echo $this->Html->link(__('View'), array('action' => 'view', $brand['Brand']['id'])); ?>
-
 
17
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $brand['Brand']['id'])); ?>
27
					<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $brand['Brand']['id'])); ?>
18
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $brand['Brand']['id']), null, __('Are you sure you want to delete # %s?', $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'])); ?>
19
		</td>
29
				</td>
20
	</tr>
30
			</tr>
21
<?php endforeach; ?>
31
		<?php endforeach; ?>
22
	</table>
32
			</table>
23
	<p>
33
			<p>
24
	<?php
34
			<?php
25
	echo $this->Paginator->counter(array(
35
			echo $this->Paginator->counter(array(
26
	'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
36
			'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
27
	));
37
			));
28
	?>	</p>
38
			?>	</p>
29
	<div class="paging">
39
			<div class="paging">
30
	<?php
40
			<?php
31
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
41
				echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
32
		echo $this->Paginator->numbers(array('separator' => ''));
42
				echo $this->Paginator->numbers(array('separator' => ''));
33
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
43
				echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
34
	?>
44
			?>
-
 
45
			</div>
-
 
46
		</div>
35
	</div>
47
	</div>
36
</div>
48
</div>
37
<div class="actions">
-
 
38
	<h3><?php echo __('Actions'); ?></h3>
-
 
39
	<ul>
-
 
40
		<li><?php echo $this->Html->link(__('New Brand'), array('action' => 'add')); ?></li>
-
 
41
	</ul>
-
 
42
</div>
-