Revize 410
Přidáno uživatelem Michal Kliment před asi 15 roky(ů)
freenetis/trunk/kohana/application/controllers/settings.php | ||
---|---|---|
|
||
function index()
|
||
{
|
||
// create view for this template
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->footer = new View('base/footer');
|
||
$view->content = new View('settings/settings');
|
||
$view->content->headline = url_lang::lang('texts.Settings');
|
||
$view->header->menu = Controller::render_menu();
|
||
$view->header->title = url_lang::lang('texts.Settings');
|
||
$view->render(TRUE);
|
||
url::redirect(url_lang::base().'settings/system');
|
||
}
|
||
|
||
/**
|
||
... | ... | |
$this->form = new Forge(url_lang::base()."settings/voip", '', 'POST', array('id' => 'voip_form'));
|
||
$this->form->set_attr('class', 'form_class')->set_attr('method', 'post');
|
||
|
||
$this->form->group('')->label(url_lang::lang('texts.System variables'));
|
||
$this->form->group('')->label(url_lang::lang('texts.VoIP'));
|
||
|
||
// page title
|
||
$this->form->input('voip_number_intervals')->label(url_lang::lang('texts.Number intervals').':')->rules('length[9,100]|required')->value($this->setting->voip_number_intervals);
|
freenetis/trunk/kohana/application/controllers/devices.php | ||
---|---|---|
$grid->add_new_button(url_lang::base().'members/show/'.$user->member_id, url_lang::lang('texts.Back to the member'));
|
||
$grid->add_new_button(url_lang::base().'users/show/'.$user->id, url_lang::lang('texts.Back to the user'));
|
||
if ($this->acl_check_new(get_class($this),'devices',$user->member_id))
|
||
$grid->add_new_button(url_lang::base().'devices/add_whole/'.$user->member_id, url_lang::lang('texts.Add new whole device'));
|
||
$grid->add_new_button(url_lang::base().'devices/add_whole/'.$user->id, url_lang::lang('texts.Add new whole device'));
|
||
if ($this->acl_check_new(get_class($this),'devices',$user->member_id))
|
||
$grid->add_new_button(url_lang::base().'devices/add/'.$user->id, url_lang::lang('texts.Add new device'));
|
||
$grid->order_field('id')->label('ID')->class('center');
|
||
... | ... | |
*/
|
||
function add_whole($user_id = null)
|
||
{
|
||
$this->user = new User_Model($user_id);
|
||
$this->user = new User_Model($user_id);
|
||
// access rights
|
||
if (!$this->acl_check_new(get_class($this),'devices',$this->user->member_id))
|
||
Controller::error(ACCESS);
|
freenetis/trunk/kohana/application/views/settings/settings.php | ||
---|---|---|
<h2><?php echo $headline ?></h2>
|
||
<br />
|
||
<?php echo html::anchor(url_lang::base().'settings/system',url_lang::lang('texts.System')); ?>
|
||
<br />
|
||
<?php echo html::anchor(url_lang::base().'settings/voip',url_lang::lang('texts.VoIP')); ?>
|
||
<br /><br />
|
freenetis/trunk/kohana/application/views/settings/voip.php | ||
---|---|---|
<h2><?php echo $headline ?></h2>
|
||
<br />
|
||
<?php echo ($message = $this->session->get('message')) ? '<div class="message">'.$message.'</div>' : '' ?>
|
||
<?php echo url_lang::lang('texts.Section') ?>: <?php echo url_lang::lang('texts.VoIP') ?>
|
||
<?php echo url_lang::lang('texts.Section') ?>: <?php echo html::anchor(url_lang::base().'settings/system',url_lang::lang('texts.System')) ?> | <?php echo url_lang::lang('texts.VoIP') ?>
|
||
<br /><br />
|
||
<?php echo $form ?>
|
freenetis/trunk/kohana/application/views/settings/system.php | ||
---|---|---|
<h2><?php echo $headline ?></h2>
|
||
<br />
|
||
<?php echo ($message = $this->session->get('message')) ? '<div class="message">'.$message.'</div>' : '' ?>
|
||
<?php echo url_lang::lang('texts.Section') ?>: <?php echo url_lang::lang('texts.System') ?>
|
||
<?php echo url_lang::lang('texts.Section') ?>: <?php echo url_lang::lang('texts.System') ?> | <?php echo html::anchor(url_lang::base().'settings/voip',url_lang::lang('texts.VoIP')) ?>
|
||
<br /><br />
|
||
<?php echo $form ?>
|
Také k dispozici: Unified diff
Mensi upravy u nastaveni. Opraven bug u pridavani zarizeni uzivatele.