Revize 614
Přidáno uživatelem Michal Kliment před více než 14 roky(ů)
freenetis/trunk/kohana/application/controllers/bank_accounts.php | ||
---|---|---|
*/
|
||
function show_all($limit_results = 500, $order_by = 'id', $order_by_direction = 'ASC', $page_word = null, $page = 1)
|
||
{
|
||
if (!$this->acl_check_2D('menu', 'bank_accounts'))
|
||
if (!$this->acl_check_view('Accounts_Controller', 'bank_accounts'))
|
||
Controller::error(ACCESS);
|
||
// it gets only bank accounts of association
|
||
$bank_account_model = new Bank_account_Model();
|
||
... | ... | |
$baa_grid->field('baname')->label(url_lang::lang('texts.Account name'));
|
||
$baa_grid->field('account_number')->label(url_lang::lang('texts.Account number'));
|
||
$baa_grid->field('mname')->label(url_lang::lang('texts.Member name'));
|
||
if ($this->acl_check_view('Accounts_Controller', 'bank_transfers') || $this->acl_check_2D('menu', 'bank_accounts'))
|
||
if ($this->acl_check_view('Accounts_Controller', 'bank_transfers'))
|
||
$baa_grid->action_field('id')->label(url_lang::lang('texts.Transfers'))->url(url_lang::base().'bank_transfers/show_by_bank_account')->action(url_lang::lang('texts.Show'));
|
||
if ($this->acl_check_new('Accounts_Controller', 'bank_transfers'))
|
||
$baa_grid->action_field('id')->label(url_lang::lang('texts.Import'))->url(url_lang::base().'import/upload_bank_file')->action(url_lang::lang('texts.Import'));
|
Také k dispozici: Unified diff
Odstraneny snad posledni volani uz nepouzivane funkce acl_check_2D z kontroleru bank_accounts - diky tomu neslo importovat nove vypisy...