Revize 463
Přidáno uživatelem Jiří Sviták před asi 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'day book' => 'Účetní deník',
|
||
'debit payment rate' => 'Výše splátek',
|
||
'debtor' => 'Dlužník',
|
||
'debtor text' => 'Text pro dlužníka',
|
||
'debtors' => 'Dlužníci',
|
||
'deduct' => 'Strhnout',
|
||
'deduct entrance fee' => 'Strhnout vstupní příspěvek',
|
||
... | ... | |
'list of works of user' => 'Seznam prací uživatele',
|
||
'location address' => 'Adresa umístění',
|
||
'location details' => 'Detaily umístění',
|
||
'log in to freenetis system' => 'Přihlásit do systému Freenetis',
|
||
'logged user' => 'Přihlášený uživatel',
|
||
'login data' => 'Přihlašovací údaje',
|
||
'login logs' => 'Logy přihlášení',
|
||
... | ... | |
'old password' => 'Staré heslo',
|
||
'operating account' => 'Provozní účet',
|
||
'optional' => 'nepovinné',
|
||
'optional message' => 'Volitelná zpráva',
|
||
'optional message text' => 'Text pro volitelná zpráva',
|
||
'or' => 'nebo',
|
||
'order number' => 'Číslo objednávky',
|
||
'organization identifier' => 'IČ',
|
||
... | ... | |
'payment' => 'Platba',
|
||
'payment has been successfully assigned' => 'Platba byla úspěšně přiřazena.',
|
||
'payment information' => 'Informace o platbě',
|
||
'payment notice' => 'Upozornění na platbu',
|
||
'payment notice text' => 'Text pro upozornění na platbu',
|
||
'penalty' => 'Pokuta',
|
||
'penalty and fee' => 'Poplatky a pokuty',
|
||
'penalty for unidentified transfer' => 'Pokuta za neidentifikovanou platbu',
|
freenetis/trunk/kohana/application/controllers/settings.php | ||
---|---|---|
$this->form->textarea('unknown_device')->label(url_lang::lang('texts.Unknown device text').':')->value(addslashes($this->setting->unknown_device));
|
||
$this->form->textarea('debtor')->label(url_lang::lang('texts.Debtor text').':')->value(addslashes($this->setting->debtor));
|
||
$this->form->textarea('payment_notice')->label(url_lang::lang('texts.Payment notice text').':')->value(addslashes($this->setting->payment_notice));
|
||
$this->form->textarea('optional_message')->label(url_lang::lang('texts.Optional message').':')->value(addslashes($this->setting->optional_message));
|
||
$this->form->textarea('optional_message')->label(url_lang::lang('texts.Optional message text').':')->value(addslashes($this->setting->optional_message));
|
||
$this->form->submit('submit')->value(url_lang::lang('texts.Save'));
|
||
special::required_forge_style($this->form, ' *', 'required');
|
||
// form validate
|
freenetis/trunk/kohana/application/controllers/transfers.php | ||
---|---|---|
$member_fees = ORM::factory('account')->find_by_account_attribute_id(Account_attribute_Model::$member_fees);
|
||
$cash = ORM::factory('account')->find_by_account_attribute_id(Account_attribute_Model::$cash);
|
||
$operating = ORM::factory('account')->find_by_account_attribute_id(Account_attribute_Model::$operating);
|
||
// first transfer is from member fees account to cash account
|
||
$transfer1 = new Transfer_Model();
|
||
$transfer1->origin_id = $member_fees->id;
|
||
$transfer1->destination_id = $cash->id;
|
||
$transfer1->datetime = $form_data['datetime'];
|
||
$transfer1->datetime = date('Y-m-d', $form_data['datetime']);
|
||
$transfer1->creation_datetime = date('Y-m-d H:i:s', time());
|
||
$transfer1->text = $form_data['text'];
|
||
$transfer1->amount = $form_data['amount'];
|
||
$transfer1_saved = $transfer1->save();
|
||
// check if there is fee for payment, then new amount is calculated
|
||
$fee_model = new Fee_Model();
|
||
$fee = $fee_model->get_by_date_type($transfer1->datetime, 'transfer fee');
|
||
if (is_object($fee) && $fee->id)
|
||
$amount = $form_data['amount'] - $fee->fee;
|
||
// second transfer is from operating account
|
||
$transfer2 = new Transfer_Model();
|
||
$transfer2->origin_id = $operating->id;
|
||
$transfer2->destination_id = $credit->id;
|
||
$transfer2->datetime = $form_data['datetime'];
|
||
$transfer2->datetime = date('Y-m-d', $form_data['datetime']);
|
||
$transfer2->creation_datetime = date('Y-m-d H:i:s', time());
|
||
$transfer2->text = $form_data['text'];
|
||
$transfer2->amount = $form_data['amount'];
|
||
$transfer2->amount = $amount;
|
||
$transfer2_saved = $transfer2->save();
|
||
if ($transfer1_saved && $transfer2_saved)
|
||
{
|
||
... | ... | |
{
|
||
$this->session->set_flash('message', url_lang::lang('texts.Error - cant add new transfer.'));
|
||
}
|
||
url::redirect(url_lang::base().'transfers/show_by_member/'.$member_id);
|
||
url::redirect(url_lang::base().'transfers/show_by_account/'.$credit->id);
|
||
}
|
||
else
|
||
{
|
||
... | ... | |
$view->content = new View('form');
|
||
$view->content->headline = $headline;
|
||
$view->content->form = $form->html();
|
||
$view->content->link_back = html::anchor(url_lang::base().'transfers/show_by_member/'.$member_id,url_lang::lang('texts.Back to transfers of member'));
|
||
$links[] = html::anchor(url_lang::base().'members/show/'.$member_id, url_lang::lang('texts.Back to the member'));
|
||
$links[] = html::anchor(url_lang::base().'transfers/show_by_account/'.$credit->id, url_lang::lang('texts.Back to transfers of member'));
|
||
$view->content->link_back = implode(' | ', $links);
|
||
$view->render(TRUE);
|
||
}
|
||
|
freenetis/trunk/kohana/application/controllers/subnets.php | ||
---|---|---|
if ($subnet->id == 0)
|
||
Controller::error(RECORD);
|
||
if (!$this->acl_check_view('Devices_Controller', 'subnet'))
|
||
Controller::error(ERROR);
|
||
Controller::error(ACCESS);
|
||
$headline = url_lang::lang('texts.Subnet').' '.$subnet->name;
|
||
$view = new View('main');
|
||
$view->title = $headline;
|
freenetis/trunk/kohana/application/controllers/device_admins.php | ||
---|---|---|
{
|
||
// access rights
|
||
if (!$this->acl_check_delete('Devices_Controller', 'admin'))
|
||
Controller::error(ERROR);
|
||
Controller::error(ACCESS);
|
||
if (!isset($rel_id))
|
||
Controller::warning(PARAMETER);
|
||
$device_admin_model = new Device_admin_Model($rel_id);
|
freenetis/trunk/kohana/application/controllers/redirect.php | ||
---|---|---|
$content = '';
|
||
$subnet_name = '';
|
||
$member_name = '';
|
||
$login = '';
|
||
$device_engineers = array();
|
||
$device_admins = array();
|
||
// trying to find ip remote ip address in database
|
||
... | ... | |
elseif ($ip_address->iface->device->user->member->redirect & 4)
|
||
{
|
||
$member_name = $ip_address->iface->device->user->member->name;
|
||
$login = $ip_address->iface->device->user->login;
|
||
$content = $this->setting->optional_message;
|
||
}
|
||
// payment notice redirection
|
||
elseif ($ip_address->iface->device->user->member->redirect & 2)
|
||
{
|
||
$member_name = $ip_address->iface->device->user->member->name;
|
||
$login = $ip_address->iface->device->user->login;
|
||
$content = $this->setting->payment_notice;
|
||
}
|
||
// debtor redirection
|
||
elseif ($ip_address->iface->device->user->member->redirect & 1)
|
||
{
|
||
$member_name = $ip_address->iface->device->user->member->name;
|
||
$login = $ip_address->iface->device->user->login;
|
||
$content = $this->setting->debtor;
|
||
}
|
||
// no reason to redirect, function will exit, this shouldn't happen
|
||
... | ... | |
$view->title = url_lang::lang('texts.Redirection');
|
||
$view->subnet_name = $subnet_name;
|
||
$view->member_name = $member_name;
|
||
$view->login = $login;
|
||
$view->device_engineers = $device_engineers;
|
||
$view->device_admins = $device_admins;
|
||
$view->content = $content;
|
freenetis/trunk/kohana/application/controllers/email.php | ||
---|---|---|
public function index()
|
||
{
|
||
if (!$this->acl_check_2D('freenetis', 'write_email'))
|
||
Controller::error(ERROR);
|
||
Controller::error(ACCESS);
|
||
|
||
if ($this->input->post('address') == NULL || $this->input->post('email_member_id') == NULL)
|
||
Controller::warning(PARAMETER);
|
||
... | ... | |
public function send()
|
||
{
|
||
if (!$this->acl_check_2D('freenetis', 'write_email'))
|
||
Controller::error(ERROR);
|
||
Controller::error(ACCESS);
|
||
|
||
if ($this->input->post('email_from') == NULL || $this->input->post('email_to') == NULL || $this->input->post('email_member_id') == NULL)
|
||
Controller::warning(PARAMETER);
|
freenetis/trunk/kohana/application/views/redirect.php | ||
---|---|---|
<td class="bold"> <?php echo $member_name ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (!empty($login)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Login name').':' ?></td>
|
||
<td class="bold"> <?php echo $login ?></td>
|
||
</tr>
|
||
<?php } ?>
|
||
<?php if (!empty($subnet_name)) { ?>
|
||
<tr>
|
||
<td class="orange"><?php echo url_lang::lang('texts.Subnet').':' ?></td>
|
||
... | ... | |
<?php } ?>
|
||
</table>
|
||
<br />
|
||
<?php echo html::anchor(url_lang::base().'login', url_lang::lang('texts.Log in to Freenetis system'))?>
|
||
<br />
|
||
<br />
|
||
<h2><?php echo url_lang::lang('texts.Contact information')?></h2>
|
||
<?php echo $this->setting->contact ?>
|
||
</div>
|
Také k dispozici: Unified diff
Opravy chyb, hlavne v pridavani plateb v hotovosti. Rozsireni informaci u presmerovani.