cmc-sales/app/views/currencies/view.ctp
2013-03-23 16:25:52 +11:00

222 lines
9.2 KiB
PHP
Executable file

<div class="currencies view">
<h2><?php __('Currency');?></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 $currency['Currency']['id']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $currency['Currency']['name']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Symbol'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $currency['Currency']['symbol']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Iso4217'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $currency['Currency']['iso4217']; ?>
&nbsp;
</dd>
</dl>
</div>
<div class="actions">
<ul>
<li><?php echo $html->link(__('Edit Currency', true), array('action'=>'edit', $currency['Currency']['id'])); ?> </li>
<li><?php echo $html->link(__('Delete Currency', true), array('action'=>'delete', $currency['Currency']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $currency['Currency']['id'])); ?> </li>
<li><?php echo $html->link(__('List Currencies', true), array('action'=>'index')); ?> </li>
<li><?php echo $html->link(__('New Currency', 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 Principles', true), array('controller'=> 'principles', 'action'=>'index')); ?> </li>
<li><?php echo $html->link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add')); ?> </li>
<li><?php echo $html->link(__('List Quoted Products', true), array('controller'=> 'quoted_products', 'action'=>'index')); ?> </li>
<li><?php echo $html->link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add')); ?> </li>
</ul>
</div>
<div class="related">
<h3><?php __('Related Countries');?></h3>
<?php if (!empty($currency['Country'])):?>
<table cellpadding = "0" cellspacing = "0">
<tr>
<th><?php __('Id'); ?></th>
<th><?php __('Name'); ?></th>
<th><?php __('Currency Id'); ?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($currency['Country'] as $country):
$class = null;
if ($i++ % 2 == 0) {
$class = ' class="altrow"';
}
?>
<tr<?php echo $class;?>>
<td><?php echo $country['id'];?></td>
<td><?php echo $country['name'];?></td>
<td><?php echo $country['currency_id'];?></td>
<td class="actions">
<?php echo $html->link(__('View', true), array('controller'=> 'countries', 'action'=>'view', $country['id'])); ?>
<?php echo $html->link(__('Edit', true), array('controller'=> 'countries', 'action'=>'edit', $country['id'])); ?>
<?php echo $html->link(__('Delete', true), array('controller'=> 'countries', 'action'=>'delete', $country['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $country['id'])); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<div class="actions">
<ul>
<li><?php echo $html->link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add'));?> </li>
</ul>
</div>
</div>
<div class="related">
<h3><?php __('Related Principles');?></h3>
<?php if (!empty($currency['Principle'])):?>
<table cellpadding = "0" cellspacing = "0">
<tr>
<th><?php __('Id'); ?></th>
<th><?php __('Name'); ?></th>
<th><?php __('Code'); ?></th>
<th><?php __('Address1'); ?></th>
<th><?php __('City'); ?></th>
<th><?php __('State'); ?></th>
<th><?php __('Country Id'); ?></th>
<th><?php __('Currency Id'); ?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($currency['Principle'] as $principle):
$class = null;
if ($i++ % 2 == 0) {
$class = ' class="altrow"';
}
?>
<tr<?php echo $class;?>>
<td><?php echo $principle['id'];?></td>
<td><?php echo $principle['name'];?></td>
<td><?php echo $principle['code'];?></td>
<td><?php echo $principle['address1'];?></td>
<td><?php echo $principle['city'];?></td>
<td><?php echo $principle['state'];?></td>
<td><?php echo $principle['country_id'];?></td>
<td><?php echo $principle['currency_id'];?></td>
<td class="actions">
<?php echo $html->link(__('View', true), array('controller'=> 'principles', 'action'=>'view', $principle['id'])); ?>
<?php echo $html->link(__('Edit', true), array('controller'=> 'principles', 'action'=>'edit', $principle['id'])); ?>
<?php echo $html->link(__('Delete', true), array('controller'=> 'principles', 'action'=>'delete', $principle['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $principle['id'])); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<div class="actions">
<ul>
<li><?php echo $html->link(__('New Principle', true), array('controller'=> 'principles', 'action'=>'add'));?> </li>
</ul>
</div>
</div>
<div class="related">
<h3><?php __('Related Quoted Products');?></h3>
<?php if (!empty($currency['QuotedProduct'])):?>
<table cellpadding = "0" cellspacing = "0">
<tr>
<th><?php __('Id'); ?></th>
<th><?php __('Itemnumber'); ?></th>
<th><?php __('Option'); ?></th>
<th><?php __('Principle Id'); ?></th>
<th><?php __('Quantity'); ?></th>
<th><?php __('Costprice'); ?></th>
<th><?php __('Currency Id'); ?></th>
<th><?php __('Ourdiscount'); ?></th>
<th><?php __('Packing'); ?></th>
<th><?php __('Shippingweight'); ?></th>
<th><?php __('Shippingcost'); ?></th>
<th><?php __('Exchangerate'); ?></th>
<th><?php __('Duty'); ?></th>
<th><?php __('Finance'); ?></th>
<th><?php __('Misc'); ?></th>
<th><?php __('Grosssellprice'); ?></th>
<th><?php __('Grossgpdollars'); ?></th>
<th><?php __('Grossgppercentage'); ?></th>
<th><?php __('Netgpdollars'); ?></th>
<th><?php __('Netgppercent'); ?></th>
<th><?php __('Targetgp'); ?></th>
<th><?php __('Title'); ?></th>
<th><?php __('Description'); ?></th>
<th><?php __('Total Landed Cost'); ?></th>
<th><?php __('Fob Countryof Export'); ?></th>
<th><?php __('Quote Id'); ?></th>
<th><?php __('Product Id'); ?></th>
<th><?php __('Discount'); ?></th>
<th><?php __('Discountamount'); ?></th>
<th><?php __('Grosssellpriceeach'); ?></th>
<th><?php __('Netsellpriceeach'); ?></th>
<th><?php __('Netsellprice'); ?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($currency['QuotedProduct'] as $quotedProduct):
$class = null;
if ($i++ % 2 == 0) {
$class = ' class="altrow"';
}
?>
<tr<?php echo $class;?>>
<td><?php echo $quotedProduct['id'];?></td>
<td><?php echo $quotedProduct['itemnumber'];?></td>
<td><?php echo $quotedProduct['option'];?></td>
<td><?php echo $quotedProduct['principle_id'];?></td>
<td><?php echo $quotedProduct['quantity'];?></td>
<td><?php echo $quotedProduct['costprice'];?></td>
<td><?php echo $quotedProduct['currency_id'];?></td>
<td><?php echo $quotedProduct['ourdiscount'];?></td>
<td><?php echo $quotedProduct['packing'];?></td>
<td><?php echo $quotedProduct['shippingweight'];?></td>
<td><?php echo $quotedProduct['shippingcost'];?></td>
<td><?php echo $quotedProduct['exchangerate'];?></td>
<td><?php echo $quotedProduct['duty'];?></td>
<td><?php echo $quotedProduct['finance'];?></td>
<td><?php echo $quotedProduct['misc'];?></td>
<td><?php echo $quotedProduct['grosssellprice'];?></td>
<td><?php echo $quotedProduct['grossgpdollars'];?></td>
<td><?php echo $quotedProduct['grossgppercentage'];?></td>
<td><?php echo $quotedProduct['netgpdollars'];?></td>
<td><?php echo $quotedProduct['netgppercent'];?></td>
<td><?php echo $quotedProduct['targetgp'];?></td>
<td><?php echo $quotedProduct['title'];?></td>
<td><?php echo $quotedProduct['description'];?></td>
<td><?php echo $quotedProduct['total_landed_cost'];?></td>
<td><?php echo $quotedProduct['fob_countryof_export'];?></td>
<td><?php echo $quotedProduct['quote_id'];?></td>
<td><?php echo $quotedProduct['product_id'];?></td>
<td><?php echo $quotedProduct['discount'];?></td>
<td><?php echo $quotedProduct['discountamount'];?></td>
<td><?php echo $quotedProduct['grosssellpriceeach'];?></td>
<td><?php echo $quotedProduct['netsellpriceeach'];?></td>
<td><?php echo $quotedProduct['netsellprice'];?></td>
<td class="actions">
<?php echo $html->link(__('View', true), array('controller'=> 'quoted_products', 'action'=>'view', $quotedProduct['id'])); ?>
<?php echo $html->link(__('Edit', true), array('controller'=> 'quoted_products', 'action'=>'edit', $quotedProduct['id'])); ?>
<?php echo $html->link(__('Delete', true), array('controller'=> 'quoted_products', 'action'=>'delete', $quotedProduct['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $quotedProduct['id'])); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<div class="actions">
<ul>
<li><?php echo $html->link(__('New Quoted Product', true), array('controller'=> 'quoted_products', 'action'=>'add'));?> </li>
</ul>
</div>
</div>