Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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