2009-01-12 21:13:18 -08:00
|
|
|
<div class="countries view">
|
|
|
|
|
<h2><?php __('Country');?></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 $country['Country']['id']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $country['Country']['name']; ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Currency'); ?></dt>
|
|
|
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
|
|
|
<?php echo $html->link($country['Currency']['name'], array('controller'=> 'currencies', 'action'=>'view', $country['Currency']['id'])); ?>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="related">
|
|
|
|
|
<h3><?php __('Related Enquiries');?></h3>
|
2009-02-09 14:25:49 -08:00
|
|
|
<?php if (!empty($country['Enquiry'])) {
|
|
|
|
|
echo $this->element('enquiry_table', $enquiries);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "No Enquiries from this State";
|
|
|
|
|
}
|
2009-01-12 21:13:18 -08:00
|
|
|
?>
|
|
|
|
|
<div class="actions">
|
|
|
|
|
<ul>
|
|
|
|
|
<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add'));?> </li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2009-02-09 14:25:49 -08:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
<div class="related">
|
|
|
|
|
<h3><?php __('Related Principles');?></h3>
|
|
|
|
|
<?php if (!empty($country['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 ($country['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>
|