Revize 249
Přidáno uživatelem Jiří Sviták před asi 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'account name' => 'Název účtu',
|
||
'account has been successfully added' => 'Účet byl úspěšně přidán.',
|
||
'account has been successfully updated' => 'Účet byl úspěšně upraven.',
|
||
'account transfers' => 'Transakce účtu',
|
||
'account transfers' => 'Převody účtu',
|
||
'account type' => 'Typ účtu',
|
||
'accounts overview' => 'Přehled účtů',
|
||
'acount deleted' => 'Účet byl smazán',
|
||
... | ... | |
'assign transfer' => 'Přiřadit převod',
|
||
'association members' => 'Členové sdružení',
|
||
'back' => 'Zpět',
|
||
'back to account transfers' => 'Zpět na transakce účtu',
|
||
'back to account transfers' => 'Zpět na převody účtu',
|
||
'back to all subnets' => 'Zpět na seznam podsítí',
|
||
'back to detail' => 'Zpět na detail',
|
||
'back to device parameters' => 'Zpět na parametry zařízení',
|
||
... | ... | |
'back to the member' => 'Zpět na profil člena',
|
||
'back to the user' => 'Zpět na uživatele',
|
||
'back to this member' => 'Zpět na profil člena',
|
||
'back to the members transfers' => 'Zpět na transakce člena',
|
||
'back to the members transfers' => 'Zpět na převody člena',
|
||
'back to this account' => 'Zpět na tento účet',
|
||
'back to this user' => 'Zpět na tohoto uživatele',
|
||
'back to unidentified transfers' => 'Zpět na neidentifikované platby',
|
||
'back to vlan interface parameters' => 'Zpět na parametry VLAN rozhraní',
|
||
'back to vlan interfaces list' => 'Zpět na seznam VLAN rozhraní',
|
||
'back to vlans list' => 'Zpět na seznam VLANů',
|
||
'bank account' => 'Bankovní účet',
|
||
'bad phone format' => 'Špatný formát telefonu',
|
||
'bank account' => 'Bankovní účet',
|
||
'bank accounts of association' => 'Bankovní účty sdružení',
|
||
'bank fee' => 'Bankovní poplatek',
|
||
'bank fee have to be a number' => 'Bankovní poplatek musí být číslo',
|
||
'bad phone format' => 'Špatný formát telefonu',
|
||
'bank info' => 'Údaje platby',
|
||
'bank transfer fee' => 'Bankovní poplatek',
|
||
'basic data' => 'Základní údaje',
|
||
... | ... | |
'basic' => 'Základní',
|
||
'birthday' => 'Datum narození',
|
||
'bitrate' => 'Rychlost přenosu',
|
||
'cash flow' => 'Tok peněz',
|
||
'comment' => 'Komentář',
|
||
'completive informations' => 'Doplňkové informace',
|
||
'confirm' => 'Potvrdit',
|
||
'confirm password' => 'Heslo znovu',
|
||
'confirmed by' => 'Potvrzeno od',
|
||
'constant symbol' => 'Konstantní symbol',
|
||
'contact data' => 'Kontaktní údaje',
|
||
'contact informations' => 'Kontaktní informace',
|
||
... | ... | |
'description' => 'Popis',
|
||
'destination account' => 'Cílový účet',
|
||
'destination language' => 'Cílový jazyk',
|
||
'detail of transfer number' => 'Detail transakce č.',
|
||
'detail of transfer number' => 'Detail převodu č.',
|
||
'details' => 'Detaily',
|
||
'device' => 'Zařízení',
|
||
'device admin is successfully saved' => 'Správce zařízení byl úspěšně uložen.',
|
||
... | ... | |
'display user' => 'Zobraz uživatele',
|
||
'do transfer' => 'Proveď transakci',
|
||
'double entry account' => 'Podvojný účet',
|
||
'double-entry accounts' => 'Podvojné účty',
|
||
'duplex' => 'Duplexní',
|
||
'economy' => 'Ekonomika',
|
||
'economic variables' => 'Ekonomické proměnné',
|
||
... | ... | |
'gateway name' => 'Jméno brány',
|
||
'gps' => 'GPS souřadnice',
|
||
'honorary member' => 'Čestný člen',
|
||
'hours' => 'Hodiny',
|
||
'change' => 'Změnit',
|
||
'change password' => 'Změnit heslo',
|
||
'id' => 'ID',
|
||
... | ... | |
'message' => 'Zpráva',
|
||
'middle name' => 'Prostřední jméno',
|
||
'minimal duration of interrupt is one month' => 'Minimální délka přerušení je jeden měsíc',
|
||
'money transfer' => 'Převod peněz',
|
||
'money transfers' => 'Převody peněz',
|
||
'money transfers of member' => 'Převody peněz člena',
|
||
'monthly member payment' => 'Měsiční členské příspěvky',
|
||
... | ... | |
'new device engineer has been successfully saved' => 'Nový technik zařízení byl úspěšně uložen.',
|
||
'new member' => 'Nový člen',
|
||
'new password' => 'Nové heslo',
|
||
'new transfer' => 'Nová transakce',
|
||
'new transfer from account' => 'Nová transakce z účtu',
|
||
'new transfer' => 'Nový převod',
|
||
'new transfer from account' => 'Nový převod z účtu',
|
||
'no' => 'ne',
|
||
'none' => 'žádný',
|
||
'non-member' => 'Nečlen',
|
||
... | ... | |
'send sms' => 'Pošli SMS',
|
||
'send to member' => 'Pošli členovi',
|
||
'settings' => 'Nastavení',
|
||
'show all transfers on the account' => 'Ukaž všechny transakce tohoto účtu',
|
||
'show his transfers' => 'Zobrazit jeho transakce',
|
||
'show all transfers on the account' => 'Ukaž všechny převody tohoto účtu',
|
||
'show his transfers' => 'Zobrazit jeho převody',
|
||
'show his devices' => 'Zobrazit jeho zařízení',
|
||
'show transfer' => 'ukaž transakci',
|
||
'show transfers on this account' => 'Ukaž transakce tohoto účtu',
|
||
'show transfers on this account' => 'Ukaž převody tohoto účtu',
|
||
'show user' => 'Ukaž uživatele',
|
||
'show' => 'Zobrazit',
|
||
'specific symbol' => 'Specifický symbol',
|
||
... | ... | |
'system variables havent been updated' => 'Systémové proměnné nebyly úspěšně aktualizovány',
|
||
'tag_802_1q' => 'tag 802.1Q',
|
||
'technology' => 'Technologie',
|
||
'the transfer successfully done' => 'Transakce úspěšně dokončena',
|
||
'the transfer successfully done' => 'Převod úspěšně dokončen',
|
||
'there are no items yet' => 'Neobsahuje žádné záznamy.',
|
||
'time' => 'čas',
|
||
'timestamp' => 'Čas',
|
||
'to' => 'Komu',
|
||
'total items' => 'Celkem položek',
|
||
'town' => 'Město',
|
||
'transfer details' => 'Detaily transakce',
|
||
'transfer fee' => 'Poplatek za transakci',
|
||
'transfer fee have to be a number' => 'Poplatek za transakci musí být číslo',
|
||
'transfer informations' => 'Informace o transakci',
|
||
'transfers' => 'Transakce',
|
||
'transfer details' => 'Detaily převodu',
|
||
'transfer fee' => 'Poplatek za převod',
|
||
'transfer fee have to be a number' => 'Poplatek za převod musí být číslo',
|
||
'transfer informations' => 'Informace o převodu',
|
||
'transfers' => 'Převody',
|
||
'translated term' => 'Přeložený výraz',
|
||
'translation' => 'Překlad',
|
||
'translation has been successfully added' => 'Překlad byl úspěšně přidán.',
|
||
... | ... | |
'write email' => 'Napsat e-mail',
|
||
'wrong password' => 'Špatné heslo',
|
||
'yes' => 'ano',
|
||
'you have successfully logout' => 'Byl jste úspěšně odhlášen.',
|
||
'you have been successfully logged out' => 'Byl jste úspěšně odhlášen.',
|
||
'zip code' => 'PSČ'
|
||
);
|
freenetis/trunk/kohana/application/models/money_transfer.php | ||
---|---|---|
class Money_transfer_Model extends ORM
|
||
{
|
||
/**
|
||
* Gets all money transfers of member's analytic account.
|
||
* @author Jiri Svitak
|
||
* It gets all money transfers of double-entry account.
|
||
* @param $account_id
|
||
* @param $limit_from
|
||
* @param $limit_results
|
||
... | ... | |
*/
|
||
public function get_all_money_transfers()
|
||
{
|
||
return self::$db->query('SELECT mt.id AS mtid, mt.timestamp, mt.text, mt.amount,
|
||
return self::$db->query('SELECT mt.id AS mtid, mt.datetime, mt.text, mt.amount,
|
||
bi.variable_symbol, bi.comment,
|
||
oa.name AS origin,
|
||
CONCAT(oba.account_nr, "/", oba.bank_nr),
|
freenetis/trunk/kohana/application/controllers/login.php | ||
---|---|---|
// test if cookie is enabled
|
||
if (!isset($_COOKIE['testcookie']))
|
||
{
|
||
$error = url_lang::lang('texts.Cookies must be anabled.');
|
||
$error = url_lang::lang('texts.Cookies must be enabled.');
|
||
}
|
||
else
|
||
{
|
||
... | ... | |
}
|
||
die();
|
||
}
|
||
else $error = url_lang::lang('texts.username or password do not match');
|
||
else $error = url_lang::lang('texts.Username or password do not match');
|
||
}
|
||
}
|
||
// check if is logged in
|
||
... | ... | |
}
|
||
|
||
$login = new View('login');
|
||
$login->title = url_lang::lang('texts.login to');
|
||
$login->title = url_lang::lang('texts.Login to');
|
||
if (!$error) $error = $this->session->get_once('err_message');
|
||
$login->error = $error;
|
||
$login->registration = html::anchor(url_lang::base().'registration', url_lang::lang('texts.new member'));
|
||
$login->render(TRUE);
|
||
|
||
//commented by Jiri Svitak (commented in View too)
|
||
// not fully functional and should be available only after whole system is complete
|
||
//$login->registration = html::anchor(url_lang::base().'registration', url_lang::lang('texts.New member'));
|
||
|
||
$login->render(TRUE);
|
||
|
||
/*
|
||
/*$articles = $articles->find_by_login_and_password($this->input->post('username'),sha1($this->input->post('password')));
|
||
echo '<ol>';
|
||
... | ... | |
{
|
||
// Logout user
|
||
$this->session->destroy();
|
||
$this->index(url_lang::lang('texts.You have successfully logout'));
|
||
$this->index(url_lang::lang('texts.You have been successfully logged out'));
|
||
}
|
||
|
||
|
freenetis/trunk/kohana/application/controllers/money_transfers.php | ||
---|---|---|
}
|
||
|
||
/**
|
||
* Shows all items from money_transfers table.
|
||
* It shows all items from money_transfers table.
|
||
* @param $limit_results
|
||
* @param $order_by
|
||
* @param $order_by_direction
|
||
... | ... | |
|
||
/**
|
||
* @author Jiri Svitak
|
||
* Shows transactions of member's analytic account.
|
||
* It shows transactions of member's analytic account.
|
||
* @param $account_id
|
||
* @return unknown_type
|
||
*/
|
||
... | ... | |
// gets grid settings
|
||
if (is_numeric($this->input->get('record_per_page')))
|
||
$limit_results = (int) $this->input->get('record_per_page');
|
||
// to do - correct allowed order type array
|
||
$allowed_order_type = array('mt.id', 'origin_id', 'destination_id', 'timestamp', 'amount', 'constant_symbol', 'specific_symbol', 'name', 'date_time', 'fee_transfer_id', 'trans_type', 'text');
|
||
if (!in_array(strtolower($order_by),$allowed_order_type))
|
||
$order_by = 'mt.id';
|
||
... | ... | |
$grid->order_field('aname', 'name')->label(url_lang::lang('texts.From/To'));
|
||
$grid->order_field('amount')->label(url_lang::lang('texts.Amount'));
|
||
$grid->order_field('text')->label(url_lang::lang('texts.Text'));
|
||
$grid->order_field('timestamp')->label(url_lang::lang('texts.Date and time'));
|
||
$grid->order_field('datetime')->label(url_lang::lang('texts.Date and time'));
|
||
$grid->datasource($transfers);
|
||
|
||
$view = new View('template');
|
freenetis/trunk/kohana/application/controllers/accounts.php | ||
---|---|---|
url::redirect(url_lang::base().'accounts/transfers');
|
||
}
|
||
|
||
// commented by Jiri Svitak, useless function
|
||
/*
|
||
function main_accounts($acc_name = 'master')
|
||
{
|
||
$model_account = new Account_Model();
|
||
$model_account->where('type=\''.$acc_name.'\'')->find();
|
||
url::redirect(url_lang::base().'accounts/account_transfers/'.$model_account->id);
|
||
}
|
||
*/
|
||
|
||
/**
|
||
* @author Jiri Svitak
|
||
* It shows bank accounts of association.
|
||
* @param $limit_results
|
||
* @param $order_by
|
||
* @param $order_by_direction
|
||
* @return unknown_type
|
||
*/
|
||
function bank_accounts($limit_results = 50, $order_by = 'id', $order_by_direction = 'DESC')
|
||
{
|
||
// it selects only bank accounts of association
|
||
$acc_model = new Account_Model();
|
||
// to do - simplification of enum types
|
||
$accs = $acc_model->where(array('member_id' => 1, 'type_id' => 29))->find_all();
|
||
$total_accs = $accs->count();
|
||
|
||
$acc_grid = new Grid(url_lang::base().'accounts',
|
||
url_lang::lang('texts.Bank accounts of association'), array(
|
||
'separator' => '<br /><br />',
|
||
'current' => $limit_results, // current selected 'records_per_page' value
|
||
'selector_increace' => 50, // increace
|
||
'selector_min' => 50, // minimum where selector start
|
||
'selector_max_multiplier' => 10,
|
||
'base_url' => Config::item('locale.lang').'/accounts/bank_transfers/'.$limit_results.'/'.$order_by.'/'.$order_by_direction ,
|
||
'uri_segment' => 'page', // pass a string as uri_segment to trigger former 'label' functionality
|
||
'total_items' => $total_accs, // use db count query here of course
|
||
'items_per_page' => $limit_results, // it may be handy to set defaults for stuff like this in config/pagination.php
|
||
'style' => 'classic',
|
||
'order_by' => $order_by,
|
||
'order_by_direction' => $order_by_direction,
|
||
'limit_results' => $limit_results,
|
||
));
|
||
// adding account, to do - access rights
|
||
//if ($this->acl_check_new(get_class($this), 'accounts', $member_id))
|
||
// $acc_grid->add_new_button(url_lang::base().'accounts/add_bank_account/'.$member_id, url_lang::lang('texts.Add new bank account'));
|
||
$acc_grid->order_field('id')->label('ID');
|
||
$acc_grid->order_field('name')->label(url_lang::lang('texts.Account name'));
|
||
$acc_grid->order_field('comment')->label(url_lang::lang('texts.Comment'));
|
||
$acc_grid->action_field('id')->label(url_lang::lang('texts.Transfers'))->url(url_lang::base().'money_transfers/show')->action(url_lang::lang('texts.Show'));
|
||
$acc_grid->datasource($accs);
|
||
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->header->title = url_lang::lang('texts.Display member');
|
||
$view->header->menu = Controller::render_menu();
|
||
$view->content = $acc_grid;
|
||
$view->footer = new View('base/footer');
|
||
$view->render(TRUE);
|
||
}
|
||
|
||
/**
|
||
* @author Jiri Svitak
|
||
* It shows double-entry accounts of members.
|
||
* @param $limit_results
|
||
* @param $order_by
|
||
* @param $order_by_direction
|
||
* @return unknown_type
|
||
*/
|
||
function doubleentry_accounts($limit_results = 50, $order_by = 'id', $order_by_direction = 'DESC')
|
||
{
|
||
|
||
}
|
||
|
||
function account_transfers($acc_id = NULL, $limit_results = 50, $order_by = 'mt.id', $order_by_direction = 'DESC')
|
||
{
|
||
if (isset($acc_id))
|
||
... | ... | |
|
||
/**
|
||
* @author Jiri Svitak
|
||
* Adds new credit account. Available from member's screen.
|
||
* Adds new credit account. Available only for admins.
|
||
* @param $member_id
|
||
* @return unknown_type
|
||
*/
|
||
... | ... | |
|
||
/**
|
||
* @author Jiri Svitak
|
||
* Deletes account. Available from member's screen.
|
||
* Deletes account. It shouldn't be used. Accounts cannot be deleted.
|
||
* @param $acc_id
|
||
* @return unknown_type
|
||
*/
|
freenetis/trunk/kohana/application/libraries/MY_Controller.php | ||
---|---|---|
$acc_menu .= '<li>'.html::anchor(url_lang::base().'accounts/unidentified_transfers/', url_lang::lang('texts.Unidentified transfers')).'</li>';
|
||
|
||
if ($this->acl_check_2D('menu', 'accounts'))
|
||
$acc_menu .= '<li>'.html::anchor(url_lang::base().'accounts/main_accounts/master', url_lang::lang('texts.Bank account')).'</li>
|
||
<li>'.html::anchor(url_lang::base().'accounts/main_accounts/infrastructure', url_lang::lang('texts.Infrastructure account')).'</li>
|
||
<li>'.html::anchor(url_lang::base().'accounts/main_accounts/operating', url_lang::lang('texts.Operating account')).'</li>
|
||
<li>'.html::anchor(url_lang::base().'money_transfers', url_lang::lang('texts.Money transfers')).'</li>';
|
||
$acc_menu .= '<li>'.html::anchor(url_lang::base().'accounts/bank_accounts', url_lang::lang('texts.Bank accounts of association')).'</li>
|
||
<li>'.html::anchor(url_lang::base().'accounts/doubleentry_accounts', url_lang::lang('texts.Double-entry accounts')).'</li>
|
||
<li>'.html::anchor(url_lang::base().'accounts/cash_flow', url_lang::lang('texts.Cash flow')).'</li>';
|
||
// commented by Jiri Svitak, it's probably useless
|
||
//<li>'.html::anchor(url_lang::base().'money_transfers', url_lang::lang('texts.Money transfers')).'</li>';
|
||
|
||
if ($acc_menu != '') $myMenu .= '<li class="transfer"><h2>'.url_lang::lang('texts.Transfers').'</h2>
|
||
if ($acc_menu != '') $myMenu .= '<li class="transfer"><h2>'.url_lang::lang('texts.Finance').'</h2>
|
||
<ul>
|
||
'.$acc_menu.'
|
||
</ul>
|
freenetis/trunk/kohana/application/views/login.php | ||
---|---|---|
<?php echo form::submit('submit', url_lang::lang('texts.login'), ' class="submit"') ?>
|
||
|
||
</fieldset>
|
||
<?php echo $registration ?>
|
||
<?php // echo $registration ?>
|
||
<?php echo form::close() ?>
|
||
</div>
|
||
<div id="lock"> </div>
|
Také k dispozici: Unified diff
Opraveny preklady, na login obrazovce zakomentovana registrace. Obnovi se pozdeji. Predelano menu financi, pridano zobrazeni bankovnich uctu sdruzeni.