Revize 530
Přidáno uživatelem Jiří Sviták před asi 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'detail of transfer number' => 'Detail převodu',
|
||
'details' => 'Detaily',
|
||
'device' => 'Zařízení',
|
||
'device id' => 'ID zařízení',
|
||
'device admin is successfully saved' => 'Správce zařízení byl úspěšně uložen.',
|
||
'device admin is successfully updated' => 'Správce zařízení byl úspěšně upraven.',
|
||
'device admins' => 'Správci zařízení',
|
freenetis/trunk/kohana/application/controllers/ip_addresses.php | ||
---|---|---|
->select("id","name","network_address as net_str",
|
||
"inet_aton(network_address) as net",
|
||
"32-log2((~inet_aton(netmask) & 0xffffffff) + 1) as mask")
|
||
->orderby('net')->find_all();
|
||
->orderby('name')->find_all();
|
||
|
||
$arr_subnets[0] = '----- '.url_lang::lang('texts.select subnet').' -----';
|
||
|
||
foreach ($subnets as $subnet)
|
||
{
|
||
$arr_subnets[$subnet->id] = $subnet->net_str.'/'.$subnet->mask.': '.$subnet->name;
|
||
$arr_subnets[$subnet->id] = $subnet->name.': '.$subnet->net_str.'/'.$subnet->mask;
|
||
}
|
||
|
||
$this->form->dropdown('iface_id')->label(url_lang::lang('texts.Interface name').':')->options($arr_ifaces);
|
freenetis/trunk/kohana/application/controllers/devices.php | ||
---|---|---|
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');
|
||
$grid->order_field('name')->label(url_lang::lang('texts.Name'));
|
||
//$grid->order_field('name')->label(url_lang::lang('texts.Name'));
|
||
$grid->order_field('type')->label(url_lang::lang('texts.Type'));
|
||
$grid->order_field('u_name')->label(url_lang::lang('texts.User'));
|
||
$grid->order_field('mac')->label(url_lang::lang('texts.MAC address'));
|
||
... | ... | |
$form->set_attr('class', 'form_class')->set_attr('method', 'post');
|
||
$form->group('')->label(url_lang::lang('texts.Basic data'));
|
||
$form->dropdown('user_id')->label(url_lang::lang('texts.user'))->options($arr_users)->rules('required')->selected($selected);
|
||
$form->input('name')->label(url_lang::lang('texts.Device name').':')->rules('required|length[1,50]');
|
||
$form->input('name')->label(url_lang::lang('texts.Device name').':')->rules('length[1,50]');
|
||
$form->input('trade_name')->label(url_lang::lang('texts.Trade name').':')->rules('length[1,50]');
|
||
$form->dropdown('type')->label(url_lang::lang('texts.Type').':')->options($types)->rules('required');
|
||
$form->checkbox('PPPoE_logging_in')->label(url_lang::lang('texts.PPPoE'))->value('1');
|
||
... | ... | |
$form->set_attr('class', 'form_class')->set_attr('method', 'post');
|
||
$form->group('')->label(url_lang::lang('texts.Device'));
|
||
$form->dropdown('user_id')->label(url_lang::lang('texts.user').':')->rules('required')->options($arr_users)->selected($selected);
|
||
$form->input('name')->label(url_lang::lang('texts.Device name').':')->rules('required|length[2,50]');
|
||
$form->input('name')->label(url_lang::lang('texts.Device name').':')->rules('length[2,50]');
|
||
$form->input('trade_name')->label(url_lang::lang('texts.Trade name').':')->rules('length[2,50]');
|
||
$form->dropdown('type')->label(url_lang::lang('texts.Type').':')->options($types)->rules('required');
|
||
$form->checkbox('PPPoE_logging_in')->label(url_lang::lang('texts.PPPoE').':')->value('1');
|
||
... | ... | |
$form->group('')->label(url_lang::lang('texts.Interface'));
|
||
$form->input('mac')->label(url_lang::lang('texts.MAC').':')->rules('required|length[3,250]');
|
||
$form->dropdown('segment_id')->label(url_lang::lang('texts.Segment name').':')->options($arr_segments)->rules('required')->selected($selected_segment);
|
||
// adding ip address
|
||
$form->group('')->label(url_lang::lang('texts.IP address'));
|
||
$form->input('ip_address')->label(url_lang::lang('texts.IP address').':')->rules('required|length[7,15]')
|
||
->callback(array($this, 'valid_ip'));
|
||
$form->dropdown('subnet_id')->label(url_lang::lang('texts.Select subnet name').':')->rules('required')
|
||
->options($arr_subnets_names)->selected($selected_subnet);
|
||
// wireless settings of interface
|
||
$form->group('')->label(url_lang::lang('texts.Wireless setting'));
|
||
$form->checkbox('add_wireless')->label(url_lang::lang('texts.Save wireless setting'))->value(1);
|
||
$form->input('ssid')->label(url_lang::lang('texts.SSID').':');
|
||
$form->dropdown('wmode')->label(url_lang::lang('texts.Mode').':')->options($arr_modes)->callback(array($this, 'valid_mode'));
|
||
... | ... | |
$form->input('channel')->label(url_lang::lang('texts.Channel').':');
|
||
$form->dropdown('antenna')->label(url_lang::lang('texts.Antenna').':')->options($arr_antennas)->callback(array($this, 'valid_antenna'));
|
||
$form->dropdown('polarization')->label(url_lang::lang('texts.Polarization').':')->options($arr_polarizations)->callback(array($this, 'valid_polarization'));
|
||
// adding ip address
|
||
$form->group('')->label(url_lang::lang('texts.IP address'));
|
||
$form->input('ip_address')->label(url_lang::lang('texts.IP address').':')->rules('required|length[7,15]')
|
||
->callback(array($this, 'valid_ip'));
|
||
$form->dropdown('subnet_id')->label(url_lang::lang('texts.Select subnet name').':')->rules('required')
|
||
->options($arr_subnets_names)->selected($selected_subnet);
|
||
// submit button
|
||
$form->submit('submit')->value(url_lang::lang('texts.Save'));
|
||
special::required_forge_style($form, ' *', 'required');
|
freenetis/trunk/kohana/application/views/devices_show.php | ||
---|---|---|
<h2><?php echo url_lang::lang('texts.Device detail').' - '.$device->name ?></h2>
|
||
<h2><?php echo url_lang::lang('texts.Device detail') ?></h2>
|
||
<?php
|
||
echo ($message = $this->session->get('message')) ? '<div class="message">'.$message.'</div>' : '';
|
||
|
Také k dispozici: Unified diff
Pridany drobne vychytavky u zarizeni.