Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 859

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

Nektere starsi rozdelene veci, ktere jsem necomitnul.

Zobrazit rozdíly:

freenetis/branches/ulogd/application/i18n/cs_CZ/texts.php
'cash' => 'Pokladna',
'cash flow' => 'Peněžní tok',
'cash drawn' => 'Výběry hotovosti',
'centralized logging' => 'Centralizované logování',
'chairman and agent' => 'Předseda a jednatel',
'change' => 'Změnit',
'change application password' => 'Změnit aplikační heslo',
......
'lock invoice' => 'Zamčít fakturu',
'log in to freenetis system' => 'Přihlásit do systému Freenetis',
'logged user' => 'Přihlášený uživatel',
'logging' => 'Logování',
'login data' => 'Přihlašovací údaje',
'login logs' => 'Logy přihlášení',
'login logs of user' => 'Logy přihlášení uživatele',
freenetis/branches/ulogd/application/controllers/settings.php
'voip' => url_lang::lang('texts.VoIP'),
'sms' => url_lang::lang('texts.SMS'),
'gateway' => url_lang::lang('texts.Gateway'),
'logging' => url_lang::lang('texts.Logování'),
'map' => url_lang::lang('texts.Map'),
'registration_export' => url_lang::lang('texts.Export of registration')
);
......
$view->render(TRUE);
}
public function logging()
{
// access control
if (!$this->acl_check_edit(get_class($this),'system'))
Controller::error(ACCESS);
// creating of new forge
$this->form = new Forge(NULL, '', 'POST', array('id' => 'article_form'));
$this->form->set_attr('class', 'form_class')->set_attr('method', 'post');
$this->form->group('')->label(url_lang::lang('texts.Centralized logging'));
$this->form->dropdown('clog_driver')->label(url_lang::lang('texts.Driver').':')->options(array(NULL => url_lang::lang('texts.Inactive'), 'ulogd' => 'ulogd'))->selected($this->settings->get('clog_driver'));
$this->form->input('clog_hostname')->label(url_lang::lang('texts.Hostname').':')->value($this->settings->get('clog_hostname'));
$this->form->input('clog_username')->label(url_lang::lang('texts.User name').':')->value($this->settings->get('clog_username'));
$this->form->input('clog_password')->label(url_lang::lang('texts.Password').':')->value($this->settings->get('clog_password'));
$this->form->input('clog_database')->label(url_lang::lang('texts.Database name').':')->value($this->settings->get('clog_database'));
$this->form->input('clog_table')->label(url_lang::lang('texts.Table name').':')->value($this->settings->get('clog_table'));
$this->form->submit('submit')->value(url_lang::lang('texts.Save'));
special::required_forge_style($this->form, ' *', 'required');
// form validate
if ($this->form->validate())
{
$form_data = $this->form->as_array();
$config_model = new Config_Model();
$issaved = true;
foreach ($form_data as $name => $value)
{
$value = addslashes($value);
// check if variable exists
if ($config_model->check_exist_variable($name))
// update of variable
$issaved = $issaved && $config_model->update_variable($name,$value);
else
// insert new variable
$issaved = $issaved && $config_model->insert_variable($name,$value);
}
if ($issaved)
// if all action were succesfull
$this->session->set_flash('message', url_lang::lang('texts.System variables have been successfully updated').'.');
else
// if not
$this->session->set_flash('message', url_lang::lang('texts.System variables havent been successfully updated').'.');
//url::redirect(url_lang::base().'settings/registration_export');
}
// create view for this template
$view = new View('main');
$view->extra_scripts = '$(document).ready(function(){
function update_inputs()
{
var driver = $("#clog_driver option:selected").val();
if (driver == "")
$("[id^=clog_]").not("[id=clog_driver]").attr("disabled",1).removeClass("required");
else
$("[id^=clog_]").not("[id=clog_driver]").removeAttr("disabled").addClass("required");
}
update_inputs();
$("#clog_driver").change(update_inputs);
});';
$view->title = url_lang::lang('texts.Settings').' - '.url_lang::lang('texts.logging');
$view->content = new View('settings');
$view->content->current = 'logging';
$view->content->content = $this->form->html();
$view->content->headline = url_lang::lang('texts.Logging');
$message = $this->session->get_once('message');
if (!empty($message))
$view->content->message = $message;
$view->render(TRUE);
}
function registration_export()
{
// access control

Také k dispozici: Unified diff