Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 165

Přidáno uživatelem Michal Kliment před více než 15 roky(ů)

Opraveno komponenta Grid - nyni se uvadi i pocet zobrazenych zaznamu.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php
'the transfer successfully done.'=> 'Transakce úspěšně dokončena',
'there are no items yet' => 'Neobsahuje žádné záznamy.',
'time'=> 'čas',
'to'=> 'Komu',
'to'=> 'Komu',
'total items' => 'Celkem položek',
'town' => 'Město',
'transfer details'=> 'Detaily transakce',
'transfer informations'=> 'Informace o transakci',
freenetis/trunk/kohana/application/controllers/users.php
$dotaz = $model_users->get_all_users($sql_offset, (int)$limit_results, $order_by, $order_by_direction, $filter->values());
$grid = new Grid(url_lang::base().'users', url_lang::lang('texts.List of all users'),array(
'separator' => '',
//'separator' => '',
//'use_paginator' => false,
//'use_selector' => false,
'current' => $limit_results, // current selected 'records_per_page' value
freenetis/trunk/kohana/application/controllers/ip_addresses.php
$grid = new Grid(url_lang::base().'ip_addresses', null,array(
$grid = new Grid(url_lang::base().'ip_addresses', url_lang::lang('texts.IP addresses list'),array(
//'separator' => '<br />-----------',
//'use_paginator' => false,
//'use_selector' => false,
......
$view->content = new View('show_all');
$view->content->table = $filter->view.$grid;
$view->content->headline = url_lang::lang('texts.IP addresses list');
$view->content->headline = '';
$view->footer = new View('base/footer');
freenetis/trunk/kohana/application/libraries/Grid.php
protected $back_button = FALSE;
protected $base_uri;
protected $template = 'grid_template';
protected $title;
protected $title;
protected $label = NULL;
protected $use_paginator = true;
protected $use_selector = true;
protected $separator = '<br /><br />';
......
}
$this->template = new View($this->template);
$this->template->base_uri = $this->base_uri = $base_uri;
$this->template->title = $title;
$this->template->title = $title;
$this->template->label = (isset($config['total_items'])) ? url_lang::lang('texts.Total items').': '.$config['total_items'] : '';
if (is_array($config)) $this->initialize($config);
}
freenetis/trunk/kohana/application/views/grid_template.php
<?php echo ($title) ? '<h2>'.$title.'</h2><br />' : '' ?>
<?php echo ($title) ? '<h2>'.$title.'</h2><br />' : '' ?>
<?php echo ($label) ? $label.$separator : '' ?>
<?php if (isset($add_button)){ echo $add_button.$separator; }?>
<table class="main" cellspacing="0">

Také k dispozici: Unified diff