Projekt

Obecné

Profil

Stáhnout (2.8 KB) Statistiky
| Větev: | Tag: | Revize:
8baed187 Michal Kliment
<h2><?php echo $headline ?></h2><br />
<?php
$links = array();

if ($this->acl_check_view ('Members_Controller', 'comment', $account->member_id))
c2e44ab0 Michal Kliment
{
$links[] = html::anchor('transfers/show_by_account/'.$account->id.'#transfers', __('Transfers'), array('id' => 'transfers_link'));
8baed187 Michal Kliment
$links[] = html::anchor('transfers/show_by_account/'.$account->id.'#comments', __('Comments'), array('id' => 'comments_link'));
c2e44ab0 Michal Kliment
}
8baed187 Michal Kliment
c2e44ab0 Michal Kliment
if ($links):
echo implode(' | ', $links); ?>
8baed187 Michal Kliment
<br />
<br />
c2e44ab0 Michal Kliment
<?php endif; ?>
8baed187 Michal Kliment
<table class="extended" style="float:left">
<tr>
<th><?php echo __('Account ID')?></th>
<td><?php echo $account->id ?></td>
</tr>
<tr>
<th><?php echo __('Account name')?></th>
<td><?php echo $account->name ?></td>
</tr>
<tr>
<th><?php echo __('Owner of account')?></th>
2a7bec72 Ondřej Fibich
<td><?php if ($account->member_id) { echo html::anchor('members/show/'.$account->member_id, $account->member->name); } ?></td>
8baed187 Michal Kliment
</tr>
<tr>
<th><?php echo __('Type of double-entry account')?></th>
<td><?php echo $account->account_attribute->name ?></td>
</tr>
<?php if ($account->account_attribute_id == Account_attribute_Model::CREDIT) { ?>
<tr>
<th><?php echo __('Entrance date')?></th>
<td><?php echo $account->member->entrance_date ?></td>
</tr>
<?php if ($account->member->leaving_date > '0000-00-00') {?>
<tr>
<th><?php echo __('Leaving date')?></th>
<td><?php echo $account->member->leaving_date ?></td>
</tr>
<?php } ?>
<?php } ?>
</table>

<table class="extended" style="float:left; margin-left:10px">
<tr>
<th><?php echo __('Balance')?></th>
<td><?php echo number_format((float)$balance, 2, ',', ' ').' '.$this->settings->get('currency') ?></td>
</tr>
<tr>
<th><?php echo __('Total inbound')?></th>
<td><?php echo number_format((float)$inbound, 2, ',', ' ').' '.$this->settings->get('currency') ?></td>
</tr>
<tr>
<th><?php echo __('Total outbound')?></th>
<td><?php echo number_format((float)$outbound, 2, ',', ' ').' '.$this->settings->get('currency') ?></td>
</tr>
<?php if ($account->account_attribute_id == Account_attribute_Model::CREDIT) { ?>
<tr>
<th><?php echo __('Variable symbols')?></th>
<td>
<?php foreach ($variable_symbols as $i => $variable_s):?>
<?php echo $variable_s->variable_symbol ?><br />
<?php endforeach; ?>
</td>
</tr>
<?php if (isset($expiration_date)) { ?>
<tr>
<th><?php echo __('Payed to')?></th>
<td><?php echo $expiration_date ?></td>
</tr>
<?php } ?>
<?php } ?>
</table>

<br class="clear" />
<br />

<div id="transfers_grid">
<h3><a name="transfers"><?php echo __('Transfers') ?></a></h3>
<?php echo $transfers_grid; ?><br />
</div>

<?php if ($this->acl_check_view ('Members_Controller','comment',$account->member_id)): ?>
<div id="comments_grid">
<h3><a name="comments"><?php echo __('Comments') ?></a></h3>
<?php echo $comments_grid; ?>
</div>
<?php endif ?>