Subversion Repositories SmartDukaan

Rev

Rev 13532 | Rev 13685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13532 Rev 13579
Line 1... Line -...
1
<div class="categories view">
-
 
2
<h2><?php echo __('Category'); ?></h2>
-
 
3
	<dl>
-
 
4
		<dt><?php echo __('Id'); ?></dt>
-
 
5
		<dd>
-
 
6
			<?php echo h($category['Category']['id']); ?>
-
 
7
			&nbsp;
-
 
8
		</dd>
-
 
9
		<dt><?php echo __('Parent Id'); ?></dt>
-
 
10
		<dd>
-
 
11
			<?php echo h($category['Category']['parent_id']); ?>
-
 
12
			&nbsp;
-
 
13
		</dd>
-
 
14
		<dt><?php echo __('Lft'); ?></dt>
-
 
15
		<dd>
-
 
16
			<?php echo h($category['Category']['lft']); ?>
-
 
17
			&nbsp;
-
 
18
		</dd>
-
 
19
		<dt><?php echo __('Rght'); ?></dt>
-
 
20
		<dd>
-
 
21
			<?php echo h($category['Category']['rght']); ?>
-
 
22
			&nbsp;
-
 
23
		</dd>
-
 
24
		<dt><?php echo __('Name'); ?></dt>
-
 
25
		<dd>
-
 
26
			<?php echo h($category['Category']['name']); ?>
-
 
27
			&nbsp;
-
 
28
		</dd>
-
 
29
	</dl>
-
 
30
</div>
-
 
31
<div class="actions">
1
<div class="container">
32
	<h3><?php echo __('Actions'); ?></h3>
-
 
33
	<ul>
-
 
34
		<li><?php echo $this->Html->link(__('Edit Category'), array('action' => 'edit', $category['Category']['id'])); ?> </li>
-
 
35
		<li><?php echo $this->Form->postLink(__('Delete Category'), array('action' => 'delete', $category['Category']['id']), null, __('Are you sure you want to delete # %s?', $category['Category']['id'])); ?> </li>
-
 
36
		<li><?php echo $this->Html->link(__('List Categories'), array('action' => 'index')); ?> </li>
-
 
37
		<li><?php echo $this->Html->link(__('New Category'), array('action' => 'add')); ?> </li>
-
 
38
		<li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
-
 
39
		<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
-
 
40
	</ul>
-
 
41
</div>
-
 
42
<div class="related">
2
  <div class="row scroll">
43
	<h3><?php echo __('Related Products'); ?></h3>
-
 
44
	<?php if (!empty($category['Product'])): ?>
-
 
45
	<table cellpadding = "0" cellspacing = "0">
-
 
46
	<tr>
-
 
47
		<th><?php echo __('Id'); ?></th>
-
 
48
		<th><?php echo __('Name'); ?></th>
-
 
49
		<th><?php echo __('Category Id'); ?></th>
-
 
50
		<th><?php echo __('Tag Line'); ?></th>
-
 
51
		<th><?php echo __('Created'); ?></th>
-
 
52
		<th><?php echo __('Modified'); ?></th>
-
 
53
		<th class="actions"><?php echo __('Actions'); ?></th>
-
 
54
	</tr>
-
 
55
	<?php foreach ($category['Product'] as $product): ?>
-
 
56
		<tr>
-
 
57
			<td><?php echo $product['id']; ?></td>
-
 
58
			<td><?php echo $product['name']; ?></td>
-
 
59
			<td><?php echo $product['category_id']; ?></td>
3
    <?php echo $this->element('categorydeals');?>    
60
			<td><?php echo $product['tag_line']; ?></td>
-
 
61
			<td><?php echo $product['created']; ?></td>
-
 
62
			<td><?php echo $product['modified']; ?></td>
-
 
63
			<td class="actions">
-
 
64
				<?php echo $this->Html->link(__('View'), array('controller' => 'products', 'action' => 'view', $product['id'])); ?>
-
 
65
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'products', 'action' => 'edit', $product['id'])); ?>
-
 
66
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'products', 'action' => 'delete', $product['id']), null, __('Are you sure you want to delete # %s?', $product['id'])); ?>
-
 
67
			</td>
-
 
68
		</tr>
-
 
69
	<?php endforeach; ?>
-
 
70
	</table>
-
 
71
<?php endif; ?>
-
 
72
 
-
 
73
	<div class="actions">
-
 
74
		<ul>
-
 
75
			<li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
-
 
76
		</ul>
-
 
77
	</div>
4
  </div>    
78
</div>
5
</div>
-
 
6
<script type="text/javascript" src="/js/jquery.jscroll.min.js"></script>
-
 
7
<script type="text/javascript" src="/js/profittill.js"></script>
79
8