74 lines
3.2 KiB
PHP
Executable file
74 lines
3.2 KiB
PHP
Executable file
<div class="customerCategories view">
|
|
<h2><?php __('CustomerCategory');?></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 $customerCategory['CustomerCategory']['id']; ?>
|
|
|
|
</dd>
|
|
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
|
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
<?php echo $customerCategory['CustomerCategory']['name']; ?>
|
|
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('Edit CustomerCategory', true), array('action'=>'edit', $customerCategory['CustomerCategory']['id'])); ?> </li>
|
|
<li><?php echo $html->link(__('Delete CustomerCategory', true), array('action'=>'delete', $customerCategory['CustomerCategory']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $customerCategory['CustomerCategory']['id'])); ?> </li>
|
|
<li><?php echo $html->link(__('List CustomerCategories', true), array('action'=>'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New CustomerCategory', true), array('action'=>'add')); ?> </li>
|
|
<li><?php echo $html->link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?> </li>
|
|
<li><?php echo $html->link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?> </li>
|
|
</ul>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php __('Related Customers');?></h3>
|
|
<?php if (!empty($customerCategory['Customer'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php __('Id'); ?></th>
|
|
<th><?php __('Name'); ?></th>
|
|
<th><?php __('Abn'); ?></th>
|
|
<th><?php __('Created'); ?></th>
|
|
<th><?php __('Notes'); ?></th>
|
|
<th><?php __('Payment Terms'); ?></th>
|
|
<th><?php __('Discount Pricing Policies'); ?></th>
|
|
<th><?php __('Customer Category Id'); ?></th>
|
|
<th class="actions"><?php __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($customerCategory['Customer'] as $customer):
|
|
$class = null;
|
|
if ($i++ % 2 == 0) {
|
|
$class = ' class="altrow"';
|
|
}
|
|
?>
|
|
<tr<?php echo $class;?>>
|
|
<td><?php echo $customer['id'];?></td>
|
|
<td><?php echo $customer['name'];?></td>
|
|
<td><?php echo $customer['abn'];?></td>
|
|
<td><?php echo $customer['created'];?></td>
|
|
<td><?php echo $customer['notes'];?></td>
|
|
<td><?php echo $customer['payment_terms'];?></td>
|
|
<td><?php echo $customer['discount_pricing_policies'];?></td>
|
|
<td><?php echo $customer['customer_category_id'];?></td>
|
|
<td class="actions">
|
|
<?php echo $html->link(__('View', true), array('controller'=> 'customers', 'action'=>'view', $customer['id'])); ?>
|
|
<?php echo $html->link(__('Edit', true), array('controller'=> 'customers', 'action'=>'edit', $customer['id'])); ?>
|
|
<?php echo $html->link(__('Delete', true), array('controller'=> 'customers', 'action'=>'delete', $customer['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $customer['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $html->link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add'));?> </li>
|
|
</ul>
|
|
</div>
|
|
</div>
|