Revize 344
Přidáno uživatelem Jiří Sviták před více než 15 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'account transfers' => 'Převody účtu',
|
||
'account type' => 'Typ účtu',
|
||
'account overview' => 'Přehled účtů',
|
||
'add' => 'Přidat',
|
||
'add new account' => 'Přidat nový účet',
|
||
'add new contact' => 'Přidat nový kontakt',
|
||
'add new credit account' => 'Přidat nový kreditní účet',
|
||
... | ... | |
'add new whole device' => 'Přidat nové celé zařízení',
|
||
'add new whole device for member' => 'Přidat nové celé zařízení pro člena',
|
||
'add new work' => 'Přidat novou práci',
|
||
'add' => 'Přidat',
|
||
'add wireless setting' => 'Přidat bezdrátové nastavení',
|
||
'additional_contacts_infotext' => 'Další kontaktní informace',
|
||
'additional information' => 'Doplňkové informace',
|
||
'address' => 'Adresa',
|
||
... | ... | |
'comment' => 'Komentář',
|
||
'confirm' => 'Potvrdit',
|
||
'confirm password' => 'Heslo znovu',
|
||
'confirm new password' => 'Nové heslo znovu',
|
||
'confirmed' => 'Potvrzeno',
|
||
'confirmed by' => 'Potvrzeno od',
|
||
'constant symbol' => 'Konstantní symbol',
|
||
... | ... | |
'edit user' => 'Upravit uživatele',
|
||
'edit vlan interface' => 'Úprava VLAN rozhraní',
|
||
'edit vlan' => 'Úprava VLANu',
|
||
'edit' => 'Upravit',
|
||
'edit wireless setting' => 'Upravit bezdrátové nastavení',
|
||
'editing of account' => 'Úprava účtu',
|
||
'editing of member' => 'Úprava člena',
|
||
'editing of transfer' => 'Úprava převodu',
|
||
... | ... | |
'norm' => 'Norma',
|
||
'number of months' => 'Počet měsíců',
|
||
'number of the hours' => 'počet hodin',
|
||
'old password' => 'staré heslo',
|
||
'old password' => 'Staré heslo',
|
||
'operating account' => 'Provozní účet',
|
||
'optional' => 'nepovinné',
|
||
'or' => 'nebo',
|
||
'order number' => 'Číslo objednávky',
|
||
'organization identifier' => 'IČO',
|
||
'origin account' => 'Zdrojový účet',
|
||
'original term' => 'Původní výraz',
|
||
'ospf area id' => 'OSPF area ID',
|
||
... | ... | |
'users in group' => 'Uživatelé ve skupině',
|
||
'vacating member' => 'Přerušené členství',
|
||
'value' => 'Hodnota',
|
||
'value has not been entered' => 'Hodnota nebyla zadána.',
|
||
'variable symbol' => 'Variabilní symbol',
|
||
'vat' => 'DPH',
|
||
'vlan detail' => 'Detail VLANu',
|
||
... | ... | |
'vlans' => 'VLANy',
|
||
'welcome to the freenetis!' => 'Vítejte ve Freenetisu!',
|
||
'wireless setting' => 'Bezdrátové nastavení',
|
||
'work confirmation' => 'Potvrzení práce',
|
||
'wireless setting has been successfully saved' => 'Bezdrátové nastavení bylo úspěšně uloženo.',
|
||
'wireless setting has been successfully updated' => 'Bezdrátové nastavení bylo úspěšně upraveno.',
|
||
'work confirmation' => 'Potvrzení práce',
|
||
'work has been successfully added' => 'Práce byla úspěšně přidána',
|
||
'work successfully deleted' => 'Práce úspěšně smazána',
|
||
'work successfully updated' => 'Práce úspěšně uložena',
|
freenetis/trunk/kohana/application/models/wireless_setting.php | ||
---|---|---|
public function get_wireless_setting($iface_id)
|
||
{
|
||
return self::$db->query("SELECT
|
||
ws.id, t1.translated_term AS wmode, t2.translated_term AS norm, ws.channel,
|
||
t3.translated_term AS antenna, t4.translated_term AS polarization
|
||
ws.id,
|
||
IFNULL(t1.translated_term, e1.value) AS wmode,
|
||
IFNULL(t2.translated_term, e2.value) AS norm,
|
||
ws.channel,
|
||
IFNULL(t3.translated_term, e3.value) AS antenna,
|
||
IFNULL(t4.translated_term, e4.value) AS polarization
|
||
FROM wireless_settings ws
|
||
LEFT JOIN enum_types e1 ON e1.id = ws.mode
|
||
LEFT JOIN enum_types e1 ON e1.id = ws.wmode
|
||
LEFT JOIN translations t1 ON t1.original_term = e1.value
|
||
LEFT JOIN enum_types e2 ON e2.id = ws.norm
|
||
LEFT JOIN translations t2 ON t2.original_term = e2.value
|
||
... | ... | |
LEFT JOIN translations t3 ON t3.original_term = e3.value
|
||
LEFT JOIN enum_types e4 ON e4.id = ws.polarization
|
||
LEFT JOIN translations t4 ON t4.original_term = e4.value
|
||
WHERE ws.iface_id = $iface_id")->current();
|
||
WHERE ws.iface_id = $iface_id");
|
||
}
|
||
|
||
public function get_wireless_setting_for_edit($iface_id)
|
||
{
|
||
return self::$db->query("SELECT
|
||
wmode, norm, channel, antenna, polarization
|
||
FROM wireless_settings
|
||
WHERE iface_id = $iface_id");
|
||
}
|
||
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/models/member.php | ||
---|---|---|
return self::$db->select(
|
||
array('members.registration', 'members.name as namem', 'members.street', 'members.street_number',
|
||
'members.town', 'members.ZIP_code',
|
||
'members.type as typem', 'members.qos_ceil', 'members.qos_rate',
|
||
'members.type as typem', 'members.organization_identifier', 'members.qos_ceil', 'members.qos_rate',
|
||
'members.entrance_fee', 'members.debt_payment_rate', 'members.entrance_fee_left',
|
||
'members.entrance_date', 'members.comment',
|
||
'enum_types.value as member_type',
|
freenetis/trunk/kohana/application/controllers/members.php | ||
---|---|---|
$form->input('title2')->label(url_lang::lang('texts.post title').':')->rules('length[3,30]');
|
||
$form->dropdown('type')->label(url_lang::lang('texts.Type').':')
|
||
->options($types)->rules('required')->selected($type_id);
|
||
$form->input('organization_identifier')->label(url_lang::lang('texts.Organization identifier').':')->rules('length[3,20]');
|
||
$form->group('')->label(url_lang::lang('texts.Password'));
|
||
$form->password('passwd')->label(url_lang::lang('texts.password').':')->rules('required|length[3,50]')->class('required');
|
||
$form->password('confirm_password')->label(url_lang::lang('texts.confirm password').':')->rules('required|length[3,50]')->matches($form->passwd);
|
||
... | ... | |
$user->password = sha1($form_data['passwd']);
|
||
$user->type = User_Model::$member;
|
||
|
||
$member->type = $form_data['type'];
|
||
|
||
$member->comment = $form_data['comment'];
|
||
$member->entrance_date = date("Y-m-d",$form_data['entrance_date']);
|
||
if ($form_data['membername'] == '')
|
||
... | ... | |
$member->street = $form_data['street'];
|
||
$member->street_number = $form_data['street_number'];
|
||
$member->town = $form_data['town'];
|
||
$member->type = $form_data['type'];
|
||
$member->organization_identifier = $form_data['organization_identifier'];
|
||
$member->ZIP_code = $form_data['zip_code'];
|
||
$member->qos_ceil = $form_data['qos_ceil'];
|
||
$member->qos_rate = $form_data['qos_rate'];
|
||
... | ... | |
->options($types)
|
||
->selected($member_data->typem);
|
||
}
|
||
// to do - access rights
|
||
$form->input('organization_identifier')->label(url_lang::lang('texts.Organization identifier').':')->rules('length[3,20]')->value($member_data->organization_identifier);
|
||
|
||
if ($this->acl_check_edit(get_class($this),'name',$member_id))
|
||
$form->input('membername')->label(url_lang::lang('texts.Members first name and surname').':')->rules('required|length[3,60]')->value($member_data->namem);
|
||
|
||
... | ... | |
$user_data->email = $form_data['email'];
|
||
if ($this->acl_check_edit(get_class($this),'type',$member_id))
|
||
$member_data->type = $form_data['type'];
|
||
// to do - access rights
|
||
$member_data->organization_identifier = $form_data['organization_identifier'];
|
||
if ($this->acl_check_edit(get_class($this),'comment',$member_id))
|
||
$member_data->comment = $form_data['comment'];
|
||
|
freenetis/trunk/kohana/application/controllers/ifaces.php | ||
---|---|---|
}
|
||
if (!$this->acl_check_edit('Devices_Controller','iface',$iface->device->user->member_id))
|
||
Controller::error(1);
|
||
// form
|
||
$form = new Forge(url_lang::base()."ifaces/edit/".$iface_id, '', 'POST', array('id' => 'article_form'));
|
||
$form->set_attr('class', 'form_class')->set_attr('method', 'post');
|
||
$form->group('')->label(url_lang::lang('texts.Basic data'));
|
||
... | ... | |
$iface->$key = htmlspecialchars($value);
|
||
}
|
||
unset($form_data);
|
||
if ($iface->save())
|
||
$iface_saved = $iface->save();
|
||
|
||
if ($iface_saved)
|
||
{
|
||
$this->session->set_flash('message', url_lang::lang('texts.Interface is successfully updated.'));
|
||
url::redirect(url_lang::base().'ifaces/show/'.$iface->id);
|
freenetis/trunk/kohana/application/controllers/wireless_settings.php | ||
---|---|---|
<?php
|
||
class Wireless_Settings_Controller extends Controller
|
||
{
|
||
/**
|
||
* Function adds wireless setting to existing interface.
|
||
* @param $iface_id
|
||
* @return unknown_type
|
||
*/
|
||
function add($iface_id = null)
|
||
{
|
||
if (isset($iface_id))
|
||
{
|
||
// enum types for wireless setting
|
||
$enum_type_model = new Enum_type_Model();
|
||
$arr_modes = $enum_type_model->get_values(Enum_type_Model::$mode_type_id);
|
||
$arr_modes[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_modes);
|
||
$arr_norms = $enum_type_model->get_values(Enum_type_Model::$norm_type_id);
|
||
$arr_norms[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_norms);
|
||
$arr_antennas = $enum_type_model->get_values(Enum_type_Model::$antenna_type_id);
|
||
$arr_antennas[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_antennas);
|
||
$arr_polarizations = $enum_type_model->get_values(Enum_type_Model::$polarization_type_id);
|
||
$arr_polarizations[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_polarizations);
|
||
// form
|
||
$form = new Forge(url_lang::base()."wireless_settings/add/$iface_id", '', 'POST', array('id' => 'article_form'));
|
||
$form->set_attr('class', 'form_class')->set_attr('method', 'post');
|
||
$form->dropdown('wmode')->label(url_lang::lang('texts.Mode').':')->options($arr_modes)->rules('required');
|
||
$form->dropdown('norm')->label(url_lang::lang('texts.Norm').':')->options($arr_norms)->rules('required');
|
||
$form->input('channel')->label(url_lang::lang('texts.Channel').':')->rules('required');
|
||
$form->dropdown('antenna')->label(url_lang::lang('texts.Antenna').':')->options($arr_antennas)->rules('required');
|
||
$form->dropdown('polarization')->label(url_lang::lang('texts.Polarization').':')->options($arr_polarizations)->rules('required');
|
||
$form->submit('submit')->value(url_lang::lang('texts.Save'));
|
||
special::required_forge_style($form, ' *', 'required');
|
||
// validation
|
||
if ($form->validate())
|
||
{
|
||
$form_data = $form->as_array();
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
$wireless_model = new Wireless_setting_Model();
|
||
$wireless_model->iface_id = $iface_id;
|
||
$wireless_model->wmode = $form_data['wmode'];
|
||
$wireless_model->norm = $form_data['norm'];
|
||
$wireless_model->channel = $form_data['channel'];
|
||
$wireless_model->antenna = $form_data['antenna'];
|
||
$wireless_model->polarization = $form_data['polarization'];
|
||
$wireless_model_saved = $wireless_model->save();
|
||
if ($wireless_model_saved)
|
||
{
|
||
$this->session->set_flash('message', url_lang::lang('texts.Wireless setting has been successfully saved.'));
|
||
url::redirect(url_lang::base().'ifaces/show/'.$iface_id);
|
||
}
|
||
}
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->content = new View('form');
|
||
$view->content->form = $form->html();
|
||
$view->content->link_back = html::anchor(url_lang::base().'ifaces/show/'.$iface_id, url_lang::lang('texts.Back to interface parameters'));
|
||
$view->content->headline = url_lang::lang('texts.Add wireless setting');
|
||
$view->footer = new View('base/footer');
|
||
$view->header->title = url_lang::lang('texts.Add wireless setting');
|
||
$view->header->menu = Controller::render_menu();
|
||
$view->render(TRUE);
|
||
}
|
||
else
|
||
{
|
||
Controller::warning(1);
|
||
}
|
||
}
|
||
|
||
/**
|
||
* Function edits wireless setting of given interface. Interface has most highly one wireless setting.
|
||
* @param $iface_id
|
||
* @return unknown_type
|
||
*/
|
||
function edit($iface_id)
|
||
{
|
||
if (isset($iface_id))
|
||
{
|
||
// wireless settings
|
||
$wireless_model = new Wireless_setting_Model();
|
||
$wireless = $wireless_model->get_wireless_setting_for_edit($iface_id)->current();
|
||
// wireless settings of interface
|
||
$enum_type_model = new Enum_type_Model();
|
||
$arr_modes = $enum_type_model->get_values(Enum_type_Model::$mode_type_id);
|
||
$arr_modes[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_modes);
|
||
$arr_norms = $enum_type_model->get_values(Enum_type_Model::$norm_type_id);
|
||
$arr_norms[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_norms);
|
||
$arr_antennas = $enum_type_model->get_values(Enum_type_Model::$antenna_type_id);
|
||
$arr_antennas[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_antennas);
|
||
$arr_polarizations = $enum_type_model->get_values(Enum_type_Model::$polarization_type_id);
|
||
$arr_polarizations[0] = '----- '.url_lang::lang('texts.select').' -----';
|
||
asort($arr_polarizations);
|
||
// form
|
||
$form = new Forge(url_lang::base()."wireless_settings/edit/$iface_id", '', 'POST', array('id' => 'article_form'));
|
||
$form->set_attr('class', 'form_class')->set_attr('method', 'post');
|
||
$form->dropdown('wmode')->label(url_lang::lang('texts.Mode').':')->options($arr_modes)->rules('required')->selected($wireless->wmode);
|
||
$form->dropdown('norm')->label(url_lang::lang('texts.Norm').':')->options($arr_norms)->rules('required')->selected($wireless->norm);
|
||
$form->input('channel')->label(url_lang::lang('texts.Channel').':')->value($wireless->channel)->rules('required');
|
||
$form->dropdown('antenna')->label(url_lang::lang('texts.Antenna').':')->options($arr_antennas)->rules('required')->selected($wireless->antenna);
|
||
$form->dropdown('polarization')->label(url_lang::lang('texts.Polarization').':')->options($arr_polarizations)->rules('required')->selected($wireless->polarization);
|
||
$form->submit('submit')->value(url_lang::lang('texts.Save'));
|
||
special::required_forge_style($form, ' *', 'required');
|
||
// validation
|
||
if ($form->validate())
|
||
{
|
||
$form_data = $form->as_array();
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
$wireless_model = new Wireless_setting_Model();
|
||
$wireless_model->iface_id = $iface_id;
|
||
$wireless_model->wmode = $form_data['wmode'];
|
||
$wireless_model->norm = $form_data['norm'];
|
||
$wireless_model->channel = $form_data['channel'];
|
||
$wireless_model->antenna = $form_data['antenna'];
|
||
$wireless_model->polarization = $form_data['polarization'];
|
||
$wireless_model_saved = $wireless_model->save();
|
||
if ($wireless_model_saved)
|
||
{
|
||
$this->session->set_flash('message', url_lang::lang('texts.Wireless setting has been successfully updated.'));
|
||
url::redirect(url_lang::base().'ifaces/show/'.$iface_id);
|
||
}
|
||
}
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
$view->content = new View('form');
|
||
$view->content->form = $form->html();
|
||
$view->content->link_back = html::anchor(url_lang::base().'ifaces/show/'.$iface_id, url_lang::lang('texts.Back to interface parameters'));
|
||
$view->content->headline = url_lang::lang('texts.Edit wireless setting');
|
||
$view->footer = new View('base/footer');
|
||
$view->header->title = url_lang::lang('texts.Edit wireless setting');
|
||
$view->header->menu = Controller::render_menu();
|
||
$view->render(TRUE);
|
||
}
|
||
else
|
||
{
|
||
Controller::warning(1);
|
||
}
|
||
}
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/controllers/devices.php | ||
---|---|---|
'query_string' => $query_string
|
||
));
|
||
if ($this->acl_check_new(get_class($this),'devices'))
|
||
$grid->add_new_button(url_lang::base().'devices/add_whole', url_lang::lang('texts.Add new device'));
|
||
$grid->add_new_button(url_lang::base().'devices/add_whole', url_lang::lang('texts.Add new whole device'));
|
||
if ($this->acl_check_new(get_class($this),'devices'))
|
||
$grid->add_new_button(url_lang::base().'devices/add', 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('type')->label(url_lang::lang('texts.type'));
|
||
... | ... | |
));
|
||
|
||
if ($this->acl_check_new(get_class($this),'devices',$member_id))
|
||
$grid->add_new_button(url_lang::base().'devices/add_whole', url_lang::lang('texts.Add new device').' ');
|
||
$grid->add_new_button(url_lang::base().'devices/add_whole', url_lang::lang('texts.Add new whole device'));
|
||
if ($this->acl_check_new(get_class($this),'devices',$member_id))
|
||
$grid->add_new_button(url_lang::base().'devices/add', url_lang::lang('texts.Add new device'));
|
||
$grid->add_new_button(url_lang::base().'members/show/'.$member_id, url_lang::lang('texts.Back to the member'));
|
||
$grid->order_field('id')->label('ID')->class('center');
|
||
$grid->order_field('name')->label(url_lang::lang('texts.Name'));
|
||
... | ... | |
$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');
|
||
// 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('0');
|
||
$form->dropdown('mode')->label(url_lang::lang('texts.Mode').':')->options($arr_modes);
|
||
$form->dropdown('norm')->label(url_lang::lang('texts.Norm').':')->options($arr_norms);
|
||
$form->input('channel')->label(url_lang::lang('texts.Channel').':');
|
||
$form->dropdown('antenna')->label(url_lang::lang('texts.Antenna').':')->options($arr_antennas);
|
||
$form->dropdown('polarization')->label(url_lang::lang('texts.Polarization').':')->options($arr_polarizations);
|
||
$form->checkbox('add_wireless')->label(url_lang::lang('texts.Save wireless setting'))->value(1);
|
||
$form->dropdown('wmode')->label(url_lang::lang('texts.Mode').':')->options($arr_modes)->callback(array($this, 'valid_mode'));
|
||
$form->dropdown('norm')->label(url_lang::lang('texts.Norm').':')->options($arr_norms)->callback(array($this, 'valid_norm'));
|
||
$form->input('channel')->label(url_lang::lang('texts.Channel').':')->callback(array($this, 'valid_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]')
|
||
... | ... | |
// submit button
|
||
$form->submit('submit')->value(url_lang::lang('texts.Save'));
|
||
special::required_forge_style($form, ' *', 'required');
|
||
|
||
|
||
// validates form and saves data
|
||
if($form->validate())
|
||
{
|
||
$form_data = $form->as_array();
|
||
|
||
|
||
// device model
|
||
$device_model = new Device_Model();
|
||
$engineers_data[] = $form_data["first_engineer_id"];
|
||
if($form_data["second_engineer_id"]>0)
|
||
if($form_data["second_engineer_id"] > 0)
|
||
$engineers_data[] = $form_data["second_engineer_id"];
|
||
$device_model->user_id = htmlspecialchars($form_data["user_id"]);
|
||
$device_model->name = htmlspecialchars($form_data["name"]);
|
||
... | ... | |
// iface save
|
||
$iface_model_saved = $iface_model->save();
|
||
|
||
// wireless setting of interface
|
||
$wireless_model_saved = true;
|
||
if ($form_data['add_wireless'])
|
||
{
|
||
$wireless_model = new Wireless_setting_Model();
|
||
$wireless_model->iface_id = $iface_model->id;
|
||
$wireless_model->wmode = $form_data['wmode'];
|
||
$wireless_model->norm = $form_data['norm'];
|
||
$wireless_model->channel = $form_data['channel'];
|
||
$wireless_model->antenna = $form_data['antenna'];
|
||
$wireless_model->polarization = $form_data['polarization'];
|
||
$wireless_model_saved = $wireless_model->save();
|
||
}
|
||
|
||
// ip address model
|
||
$ip_address_model = new Ip_address_Model();
|
||
$ip_address_model->iface_id = $iface_model->id;
|
||
... | ... | |
unset($form_data);
|
||
|
||
// has been everything saved successfully?
|
||
if ($device_saved && $device_engineer_saved && $iface_model_saved && $ip_address_saved)
|
||
if ($device_saved && $device_engineer_saved && $iface_model_saved && $wireless_model_saved && $ip_address_saved)
|
||
{
|
||
$this->session->set_flash('message', url_lang::lang('texts.Device has been successfully saved.'));
|
||
url::redirect(url_lang::base().'devices/show/'.$device_model->id);
|
||
... | ... | |
else if ($ip==$net || $ip==($net | ~$mask))
|
||
$input->add_error('required', url_lang::lang('texts.Invalid IP address'));
|
||
}
|
||
|
||
/**
|
||
* Functions validate wireless settings when "add_wireless" checkbox is checked.
|
||
* @param $input
|
||
* @return unknown_type
|
||
*/
|
||
function valid_mode($input)
|
||
{
|
||
if (!$input->value && $this->input->post('add_wireless'))
|
||
$input->add_error('required', url_lang::lang('texts.Value has not been entered.'));
|
||
}
|
||
function valid_norm($input)
|
||
{
|
||
if (!$input->value && $this->input->post('add_wireless'))
|
||
$input->add_error('required', url_lang::lang('texts.Value has not been entered.'));
|
||
}
|
||
function valid_channel($input)
|
||
{
|
||
if (!$input->value && $this->input->post('add_wireless'))
|
||
$input->add_error('required', url_lang::lang('texts.Value has not been entered.'));
|
||
}
|
||
function valid_antenna($input)
|
||
{
|
||
if (!$input->value && $this->input->post('add_wireless'))
|
||
$input->add_error('required', url_lang::lang('texts.Value has not been entered.'));
|
||
}
|
||
function valid_polarization($input)
|
||
{
|
||
if (!$input->value && $this->input->post('add_wireless'))
|
||
$input->add_error('required', url_lang::lang('texts.Value has not been entered.'));
|
||
}
|
||
|
||
}
|
||
?>
|
freenetis/trunk/kohana/application/upgrade_sql/upgrade_sql.php | ||
---|---|---|
}
|
||
|
||
$upgrade_sql[get_SVN_rev()] = array(
|
||
"ALTER TABLE `bank_transfers` DROP `datetime`",
|
||
"ALTER TABLE `transfers` ADD `creation_datetime` DATETIME NOT NULL AFTER `datetime`"
|
||
"ALTER TABLE `wireless_settings` CHANGE `mode` `wmode` INT( 11 ) NOT NULL ",
|
||
"ALTER TABLE `members` ADD `organization_identifier` VARCHAR( 20 ) NULL DEFAULT NULL AFTER `external_type` "
|
||
);
|
||
|
||
?>
|
freenetis/trunk/kohana/application/upgrade_sql/upgrade_sql_342.php | ||
---|---|---|
<?php
|
||
|
||
$upgrade_sql[get_SVN_rev()] = array(
|
||
$upgrade_sql[342] = array(
|
||
"ALTER TABLE `bank_accounts`
|
||
CHANGE `bank_nr` `bank_nr` VARCHAR( 20 ) CHARACTER SET utf8 COLLATE utf8_czech_ci NULL DEFAULT NULL"
|
||
);
|
freenetis/trunk/kohana/application/upgrade_sql/upgrade_sql_343.php | ||
---|---|---|
<?php
|
||
|
||
$upgrade_sql[343] = array(
|
||
"ALTER TABLE `bank_transfers` DROP `datetime`",
|
||
"ALTER TABLE `transfers` ADD `creation_datetime` DATETIME NOT NULL AFTER `datetime`"
|
||
);
|
||
|
||
?>
|
freenetis/trunk/kohana/application/views/members_show.php | ||
---|---|---|
<h2>
|
||
<?php echo url_lang::lang('texts.Member').' ' ?>
|
||
<?php //echo ($member_data->pre_title!=' ') ? $member_data->pre_title.' ' : '' ?>
|
||
<?php //echo $member_data->name.' ' ?>
|
||
<?php //echo ($member_data->middle_name!=' ') ? $member_data->middle_name.' ' : '' ?>
|
||
<?php //echo $member_data->surname.' '.$member_data->post_title ?>
|
||
<?php echo $member_data->namem ?>
|
||
</h2>
|
||
<br />
|
||
... | ... | |
<td><?php echo $member_data->namem ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Organization identifier') ?></th>
|
||
<td><?php echo $member_data->organization_identifier ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Type') ?></th>
|
||
<td><?php echo $member_type ?></td>
|
||
</tr>
|
freenetis/trunk/kohana/application/views/ifaces/show.php | ||
---|---|---|
<?php echo $link_back ?>
|
||
<?php
|
||
if ($this->acl_check_edit('Devices_Controller','iface',$iface->device->user->member_id))
|
||
echo ' | '.html::anchor(url_lang::base().'ifaces/edit/'.$iface->id, url_lang::lang('texts.Edit')) ?><br /><br />
|
||
echo ' | '.html::anchor(url_lang::base().'ifaces/edit/'.$iface->id, url_lang::lang('texts.Edit'))
|
||
?>
|
||
<?php
|
||
if (count($wireless) == 0)
|
||
echo ' | '.html::anchor(url_lang::base().'wireless_settings/add/'.$iface->id, url_lang::lang('texts.Add wireless setting'));
|
||
else
|
||
echo ' | '.html::anchor(url_lang::base().'wireless_settings/edit/'.$iface->id, url_lang::lang('texts.Edit wireless setting'));
|
||
?>
|
||
<br /><br />
|
||
|
||
<table class="extended" style="float:left" cellspacing="0">
|
||
<tr>
|
||
... | ... | |
<td><?php echo $iface->comment ?></td>
|
||
</tr>
|
||
</table>
|
||
<table class="extended" style="float:left; margin-left:25px" cellspacing="0">
|
||
<tr>
|
||
<th colspan="2"><?php echo url_lang::lang('texts.Wireless setting') ?></th>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Mode') ?></th>
|
||
<td><?php echo $wireless ? $wireless->wmode : ' ' ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Norm') ?></th>
|
||
<td><?php echo $wireless ? $wireless->norm : ' ' ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Channel') ?></th>
|
||
<td><?php echo $wireless ? $wireless->channel : ' ' ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Antenna') ?></th>
|
||
<td><?php echo $wireless ? $wireless->antenna : ' ' ?></td>
|
||
</tr>
|
||
<tr>
|
||
<th><?php echo url_lang::lang('texts.Polarization') ?></th>
|
||
<td><?php echo $wireless ? $wireless->polarization : ' ' ?></td>
|
||
</tr>
|
||
</table>
|
||
|
||
<?php
|
||
if (count($wireless) != 0)
|
||
{
|
||
$setting = $wireless->current();
|
||
echo '
|
||
<table class="extended" style="float:left; margin-left:25px" cellspacing="0">
|
||
<tr>
|
||
<th colspan="2">'.url_lang::lang("texts.Wireless setting").'</th>
|
||
</tr>
|
||
<tr>
|
||
<th>'.url_lang::lang("texts.Mode").'</th>
|
||
<td>'.$setting->wmode.'</td>
|
||
</tr>
|
||
<tr>
|
||
<th>'.url_lang::lang("texts.Norm").'</th>
|
||
<td>'.$setting->norm.'</td>
|
||
</tr>
|
||
<tr>
|
||
<th>'.url_lang::lang("texts.Channel").'</th>
|
||
<td>'.$setting->channel.'</td>
|
||
</tr>
|
||
<tr>
|
||
<th>'.url_lang::lang("texts.Antenna").'</th>
|
||
<td>'.$setting->antenna.'</td>
|
||
</tr>
|
||
<tr>
|
||
<th>'.url_lang::lang("texts.Polarization").'</th>
|
||
<td>'.$setting->polarization.'</td>
|
||
</tr>
|
||
</table>';
|
||
}
|
||
?>
|
||
|
||
<br class="clear" />
|
||
<br />
|
||
|
Také k dispozici: Unified diff
Pridano bezdratove nastaveni u rozhrani. Pridano ICO u clena.