186 lines
7.9 KiB
Plaintext
186 lines
7.9 KiB
Plaintext
|
|
<div class="principles view">
|
||
|
|
<h2><?php __('Principle');?></h2>
|
||
|
|
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $principle['Principle']['id']; ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $principle['Principle']['name']; ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Code'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $principle['Principle']['code']; ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $principle['Principle']['address']; ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('City'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $principle['Principle']['city']; ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('State'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $principle['Principle']['state']; ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Country'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $html->link($principle['Country']['name'], array('controller'=> 'countries', 'action'=>'view', $principle['Country']['id'])); ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Currency'); ?></dt>
|
||
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||
|
|
<?php echo $html->link($principle['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $principle['Currency']['id'])); ?>
|
||
|
|
|
||
|
|
</dd>
|
||
|
|
</dl>
|
||
|
|
</div>
|
||
|
|
<div class="actions">
|
||
|
|
<ul>
|
||
|
|
<li><?php echo $html->link(__('Edit Principle', true), array('action'=>'edit', $principle['Principle']['id'])); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('Delete Principle', true), array('action'=>'delete', $principle['Principle']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['Principle']['id'])); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('List Principles', true), array('action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Principle', true), array('action'=>'add')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('List Currencies', true), array('controller'=> 'currencies', 'action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Currency', true), array('controller'=> 'currencies', 'action'=>'add')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('List Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('List Products', true), array('controller'=> 'products', 'action'=>'index')); ?> </li>
|
||
|
|
<li><?php echo $html->link(__('New Product', true), array('controller'=> 'products', 'action'=>'add')); ?> </li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div class="related">
|
||
|
|
<h3><?php __('Related Enquiries');?></h3>
|
||
|
|
<?php if (!empty($principle['Enquiry'])):?>
|
||
|
|
<table cellpadding = "0" cellspacing = "0">
|
||
|
|
<tr>
|
||
|
|
<th><?php __('Id'); ?></th>
|
||
|
|
<th><?php __('Created'); ?></th>
|
||
|
|
<th><?php __('Title'); ?></th>
|
||
|
|
<th><?php __('User Id'); ?></th>
|
||
|
|
<th><?php __('Customer Id'); ?></th>
|
||
|
|
<th><?php __('Contact Id'); ?></th>
|
||
|
|
<th><?php __('State Id'); ?></th>
|
||
|
|
<th><?php __('Country Id'); ?></th>
|
||
|
|
<th><?php __('Principle Id'); ?></th>
|
||
|
|
<th><?php __('Status Id'); ?></th>
|
||
|
|
<th><?php __('Comments'); ?></th>
|
||
|
|
<th><?php __('Principle Code'); ?></th>
|
||
|
|
<th><?php __('Gst'); ?></th>
|
||
|
|
<th><?php __('Billing Address Id'); ?></th>
|
||
|
|
<th><?php __('Shipping Address Id'); ?></th>
|
||
|
|
<th><?php __('Posted'); ?></th>
|
||
|
|
<th class="actions"><?php __('Actions');?></th>
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
$i = 0;
|
||
|
|
foreach ($principle['Enquiry'] as $enquiry):
|
||
|
|
$class = null;
|
||
|
|
if ($i++ % 2 == 0) {
|
||
|
|
$class = ' class="altrow"';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<tr<?php echo $class;?>>
|
||
|
|
<td><?php echo $enquiry['id'];?></td>
|
||
|
|
<td><?php echo $enquiry['created'];?></td>
|
||
|
|
<td><?php echo $enquiry['title'];?></td>
|
||
|
|
<td><?php echo $enquiry['user_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['customer_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['contact_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['state_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['country_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['principle_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['status_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['comments'];?></td>
|
||
|
|
<td><?php echo $enquiry['principle_code'];?></td>
|
||
|
|
<td><?php echo $enquiry['gst'];?></td>
|
||
|
|
<td><?php echo $enquiry['billing_address_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['shipping_address_id'];?></td>
|
||
|
|
<td><?php echo $enquiry['posted'];?></td>
|
||
|
|
<td class="actions">
|
||
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'enquiries', 'action'=>'view', $enquiry['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Edit', true), array('controller'=> 'enquiries', 'action'=>'edit', $enquiry['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Delete', true), array('controller'=> 'enquiries', 'action'=>'delete', $enquiry['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $enquiry['id'])); ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<div class="actions">
|
||
|
|
<ul>
|
||
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add'));?> </li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="related">
|
||
|
|
<h3><?php __('Related Products');?></h3>
|
||
|
|
<?php if (!empty($principle['Product'])):?>
|
||
|
|
<table cellpadding = "0" cellspacing = "0">
|
||
|
|
<tr>
|
||
|
|
<th><?php __('Id'); ?></th>
|
||
|
|
<th><?php __('Principle Id'); ?></th>
|
||
|
|
<th><?php __('Title'); ?></th>
|
||
|
|
<th><?php __('Description'); ?></th>
|
||
|
|
<th><?php __('Principle Part Number'); ?></th>
|
||
|
|
<th><?php __('Cmc Part Number'); ?></th>
|
||
|
|
<th><?php __('Costprice Each'); ?></th>
|
||
|
|
<th><?php __('Our Discount'); ?></th>
|
||
|
|
<th><?php __('Packing Each'); ?></th>
|
||
|
|
<th><?php __('Shipping Weight Each'); ?></th>
|
||
|
|
<th><?php __('Shipping Cost Each'); ?></th>
|
||
|
|
<th><?php __('Duty'); ?></th>
|
||
|
|
<th><?php __('Target Gp'); ?></th>
|
||
|
|
<th><?php __('Sellprice Each'); ?></th>
|
||
|
|
<th class="actions"><?php __('Actions');?></th>
|
||
|
|
</tr>
|
||
|
|
<?php
|
||
|
|
$i = 0;
|
||
|
|
foreach ($principle['Product'] as $product):
|
||
|
|
$class = null;
|
||
|
|
if ($i++ % 2 == 0) {
|
||
|
|
$class = ' class="altrow"';
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
<tr<?php echo $class;?>>
|
||
|
|
<td><?php echo $product['id'];?></td>
|
||
|
|
<td><?php echo $product['principle_id'];?></td>
|
||
|
|
<td><?php echo $product['title'];?></td>
|
||
|
|
<td><?php echo $product['description'];?></td>
|
||
|
|
<td><?php echo $product['principle_part_number'];?></td>
|
||
|
|
<td><?php echo $product['cmc_part_number'];?></td>
|
||
|
|
<td><?php echo $product['costprice_each'];?></td>
|
||
|
|
<td><?php echo $product['our_discount'];?></td>
|
||
|
|
<td><?php echo $product['packing_each'];?></td>
|
||
|
|
<td><?php echo $product['shipping_weight_each'];?></td>
|
||
|
|
<td><?php echo $product['shipping_cost_each'];?></td>
|
||
|
|
<td><?php echo $product['duty'];?></td>
|
||
|
|
<td><?php echo $product['target_gp'];?></td>
|
||
|
|
<td><?php echo $product['sellprice_each'];?></td>
|
||
|
|
<td class="actions">
|
||
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'products', 'action'=>'view', $product['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Edit', true), array('controller'=> 'products', 'action'=>'edit', $product['id'])); ?>
|
||
|
|
<?php echo $html->link(__('Delete', true), array('controller'=> 'products', 'action'=>'delete', $product['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $product['id'])); ?>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</table>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<div class="actions">
|
||
|
|
<ul>
|
||
|
|
<li><?php echo $html->link(__('New Product', true), array('controller'=> 'products', 'action'=>'add'));?> </li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|