Revize 532
Přidáno uživatelem Jiří Sviták před téměř 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'wrong password' => 'Špatné heslo',
|
||
'year' => 'Rok',
|
||
'yes' => 'ano',
|
||
'you are in debt' => 'Jste v dluhu',
|
||
'you have been successfully logged out' => 'Byl jste úspěšně odhlášen.',
|
||
'your ip address has not been found in database' => 'Vaše IP adresa nebyla nalezena v databázi.',
|
||
'zip code' => 'PSČ',
|
freenetis/trunk/kohana/application/controllers/members.php | ||
---|---|---|
$account = $model_accounts->
|
||
where(array('member_id' => $member_id,
|
||
'account_attribute_id' => Account_attribute_Model::$credit))->find();
|
||
// count expiration date of credit
|
||
$balance = $account->get_account_balance($account->id);
|
||
$fee_model = new Fee_Model();
|
||
$fee = $fee_model->get_by_date_type(date('Y-m-d'), 'regular member fee');
|
||
$expiration_date = date('Y-m-d', time() + (($balance / $fee->fee) * 30 * 24 * 60 * 60));
|
||
}
|
||
// contacts of main user of member
|
||
$model_contacts = new Contact_Model();
|
||
... | ... | |
$view->content->address = $address;
|
||
$view->content->town = $town;
|
||
$view->content->zip = $zip;
|
||
$view->content->expiration_date = $expiration_date;
|
||
$view->content->contact_types = $arr_contact_types;
|
||
$view->content->contacts = $contacts;
|
||
$view->content->message = $this->session->get_once('message');
|
freenetis/trunk/kohana/application/views/members_show.php | ||
---|---|---|
<td><?php echo number_format((float) $account->get_account_balance($account->id), 2, ',', ' ').' '.$this->setting->currency ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Payed to')?></th>
|
||
<td><?php echo date('Y-m-d') < $expiration_date ? $expiration_date : '<span style="color:red">'.url_lang::lang('texts.You are in debt').'</span>' ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Entrance fee') ?></th>
|
||
<td><?php echo number_format((float)$member_data->entrance_fee, 2, ',', ' ').' '.$this->setting->currency ?></td>
|
||
</tr>
|
freenetis/trunk/kohana/application/views/transfers/show_by_account.php | ||
---|---|---|
<?php if ($account->account_attribute_id == Account_attribute_Model::$credit) { ?>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Payed to')?></th>
|
||
<td><?php echo $expiration_date ?></td>
|
||
<td><?php echo date('Y-m-d') < $expiration_date ? $expiration_date : '<span style="color:red">'.url_lang::lang('texts.You are in debt').'</span>' ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
</table>
|
Také k dispozici: Unified diff
Uprava zobrazovani datumu vyprseni kreditu.