Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 449

Přidáno uživatelem Jiří Sviták před asi 15 roky(ů)

Oprava chyby v predchozi revizi, ktera se projevila az v ostre verzi. Opravy chyb u html tagu.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/models/bank_transfer.php
$where .= $key.' LIKE \'%'.$value.'%\' COLLATE utf8_general_ci';
}
}
return self::$db->query("SELECT COUNT(*) AS total,
srct.id, srct.datetime, srct.amount, srct.text, bt.variable_symbol, ba.account_nr, ba.bank_nr
return self::$db->query("SELECT COUNT(*) AS total
FROM transfers srct
JOIN accounts a ON a.id = srct.origin_id
AND srct.member_id = 0
freenetis/trunk/kohana/application/libraries/Grid.php
protected $url_array_ofset = 0;
protected $query_string;
protected $filter = '';
protected $buttons = array();
private $first_add_button;
......
public function add_new_button($uri, $label, $options = array())
{
$this->template->add_button = substr($this->template->add_button, 0, strlen($this->template->add_button)-2);
$this->template->add_button .= '<span class="grid_button">';
if ($this->first_add_button)
$this->first_add_button = false;
else
$this->template->add_button .= '| ';
$this->template->add_button .= html::anchor($uri, $label, $options).'&nbsp;</span>';
$this->buttons[] = html::anchor($uri, $label, $options);
}
......
public function render()
{
$this->template->buttons = $this->buttons;
$this->template->filter = $this->filter;
$this->template->fields = $this->fields;
$this->template->action_fields = $this->action_fields;
freenetis/trunk/kohana/application/views/grid_template.php
<?php echo ($title) ? '<h2>'.$title.'</h2><br />' : '' ?>
<?php echo ($filter) ? $filter : '' ?>
<?php echo ($label) ? $label.$separator : '' ?>
<?php if (isset($add_button)){ echo $add_button.$separator; }?>
<?php echo empty($buttons) ? '' : implode(' | ', $buttons).'<br /><br />' ?>
<table class="main" cellspacing="0">
<tr>
freenetis/trunk/kohana/application/views/base/header.php
<div class="status">
<span><?php echo $this->session->get('user_id', 0) ? url_lang::lang('texts.Logged user') : url_lang::lang('texts.Unlogged user') ?></span>&nbsp;
<?php echo special::create_language_flags(array('cs' => 'Česky', 'en' => 'English')) ?>
<a href="javascript: window.print();"><?php echo "<img src=\"".url::base()."media/images/print.png\" style=\"width: 28px; height: 28px;\">"?></a>
<a href="javascript: window.print();"><?php echo "<img src=\"".url::base()."media/images/print.png\" alt=\"print icon\" style=\"width: 28px; height: 28px;\" />"?></a>
<table>
<tr>
<td class="orange"><?php echo $this->session->get('user_id', 0) ? url_lang::lang('texts.Name').':' : '' ?></td>

Také k dispozici: Unified diff