Revize 84
Přidáno uživatelem batix před více než 16 roky(ů)
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php | ||
---|---|---|
'back to vlans list' => 'Zpět na seznam VLANů',
|
||
'select port' => 'Vyber port',
|
||
'port detail' => 'Detail portu',
|
||
'tag_802_1q' => '',
|
||
'tag_802_1q' => 'tag_802_1q',
|
||
'edit port' => 'Úprava portu',
|
||
'engineer' => 'Technik',
|
||
'ifaces' => 'Rozhraní',
|
freenetis/trunk/kohana/application/controllers/ifaces.php | ||
---|---|---|
$form_data = $form->as_array();
|
||
|
||
$iface = new Iface_Model();
|
||
|
||
$iface->name = $form_data['name'];
|
||
$iface->device_id = $form_data['device_id'];
|
||
$iface->segment_id = $form_data['segment_id'];
|
||
$iface->MAC = $form_data['MAC'];
|
||
$iface->comment = $form_data['comment'];
|
||
|
||
/*print_r($form_data);
|
||
die();*/
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$iface->$key = htmlspecialchars($value);
|
||
}
|
||
|
||
unset($form_data);
|
||
|
||
if ($iface->save()) {
|
||
... | ... | |
|
||
$iface = new Iface_Model($iface_id);
|
||
|
||
$iface->name = $form_data['name'];
|
||
$iface->device_id = $form_data['device_id'];
|
||
$iface->segment_id = $form_data['segment_id'];
|
||
$iface->MAC = $form_data['MAC'];
|
||
$iface->comment = $form_data['comment'];
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$iface->$key = htmlspecialchars($value);
|
||
}
|
||
|
||
/*print_r($form_data);
|
||
die();*/
|
freenetis/trunk/kohana/application/controllers/ip_addresses.php | ||
---|---|---|
else {
|
||
$form->hidden('iface_type')->value($default);
|
||
}
|
||
$form->dropdown('iface_id')->label(url_lang::lang('texts.Interface name'))->options($arr_ifaces)->rules('required')->class('ajax')->callback(array($this, 'callback_iface_selected'));
|
||
$form->dropdown('iface_id')->label(url_lang::lang('texts.Interface name').':')->options($arr_ifaces)->rules('required')->class('ajax')->callback(array($this, 'callback_iface_selected'));
|
||
$form->input('IP_address')->label(url_lang::lang('texts.IP address').':')->rules('required|valid_ip');
|
||
|
||
$form->dropdown('subnet_id')->label(url_lang::lang('texts.Select subnet name'))->options($arr_subnets)->class('ajax')->onchange('ajax_get_subnet(this.value)');
|
||
$form->dropdown('subnet_id')->label(url_lang::lang('texts.Select subnet name').':')->options($arr_subnets)->class('ajax')->onchange('ajax_get_subnet(this.value)');
|
||
$form->group('')->label(url_lang::lang('texts.Subnet data'));
|
||
$form->input('subnet_name')->label(url_lang::lang('texts.Subnet name').':')->rules('required|length[3,250]')->callback(array($this, 'callback_subnet_selected'));
|
||
$form->input('subnet_network_address')->label(url_lang::lang('texts.Subnet network address').':')->rules('required|valid_ip')->callback(array($this, 'callback_subnet_selected'));
|
||
... | ... | |
if($form->validate())
|
||
{
|
||
$form_data = $form->as_array();
|
||
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$ip = new Ip_address_Model();
|
||
|
||
if ($form_data['iface_type'] == 'iface') {
|
||
... | ... | |
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$ip = new Ip_address_Model($ip_address_id);
|
||
|
freenetis/trunk/kohana/application/controllers/ports.php | ||
---|---|---|
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$arr_vlan_id = array();
|
||
if(isset($_POST['vlan_id'])) $arr_vlan_id = $_POST['vlan_id'];
|
||
|
||
... | ... | |
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$arr_vlan_id = array();
|
||
if(isset($_POST['vlan_id'])) $arr_vlan_id = $_POST['vlan_id'];
|
||
|
freenetis/trunk/kohana/application/controllers/vlan_ifaces.php | ||
---|---|---|
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$vlan_iface = new Vlan_iface_Model();
|
||
|
||
$vlan_iface->name = $form_data['name'];
|
||
... | ... | |
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$vlan_iface = new Vlan_iface_Model($vlan_iface_id);
|
||
|
||
$vlan_iface->name = $form_data['name'];
|
freenetis/trunk/kohana/application/controllers/devices.php | ||
---|---|---|
{
|
||
$form_data = $form->as_array();
|
||
|
||
$device_model = new Device_Model;
|
||
$user_model = new User_Model;
|
||
$iface_model = new Iface_Model;
|
||
$ip_model = new Ip_address_Model;
|
||
$subnet_model = new Subnet_Model;
|
||
$device_model = new Device_Model();
|
||
|
||
$device_model->user_id = $form_data['user_id'];
|
||
$device_model->name = $form_data['name'];
|
||
$device_model->type = $form_data['type'];
|
||
$device_model->PPPoE_logging_in = $form_data['PPPoE_logging_in'];
|
||
$device_model->login = $form_data['login'];
|
||
$device_model->password = $form_data['password'];
|
||
$device_model->GPS = $form_data['GPS'];
|
||
$device_model->location_address = $form_data['location_address'];
|
||
$device_model->location_details = $form_data['location_details'];
|
||
$device_model->comment = $form_data['comment'];
|
||
$device_model->engineer_id = $this->session->get('user_id');
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$device_model->$key = htmlspecialchars($value);
|
||
}
|
||
$device_model->engineer_id = $this->session->get('user_id');
|
||
|
||
unset($form_data);
|
||
//$device_model->save()
|
||
... | ... | |
//----- end validate --------------------------------------------------
|
||
|
||
|
||
|
||
$view = new View('template');
|
||
$view->header = new View('base/header');
|
||
// $view->content = new View('content', $data);
|
||
... | ... | |
{
|
||
$form_data = $form->as_array();
|
||
|
||
$device_model = new Device_Model;
|
||
$device_model = new Device_Model();
|
||
|
||
$device_model->find_by_id($device_id);
|
||
|
||
$device_model->user_id = $form_data['user_id'];
|
||
$device_model->name = $form_data['name'];
|
||
$device_model->type = $form_data['type'];
|
||
$device_model->PPPoE_logging_in = $form_data['PPPoE_logging_in'];
|
||
$device_model->login = $form_data['login'];
|
||
$device_model->password = $form_data['password'];
|
||
$device_model->GPS = $form_data['GPS'];
|
||
$device_model->location_address = $form_data['location_address'];
|
||
$device_model->location_details = $form_data['location_details'];
|
||
$device_model->comment = $form_data['comment'];
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$device_model->$key = htmlspecialchars($value);
|
||
}
|
||
|
||
unset($form_data);
|
||
|
freenetis/trunk/kohana/application/controllers/subnets.php | ||
---|---|---|
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$subnet = new Subnet_Model();
|
||
|
||
$subnet->name = $form_data['name'];
|
||
... | ... | |
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$subnet = new Subnet_Model($subnet_id);
|
||
|
||
$subnet->name = $form_data['name'];
|
freenetis/trunk/kohana/application/controllers/vlans.php | ||
---|---|---|
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$vlan = new Vlan_Model();
|
||
|
||
$vlan->name = $form_data['name'];
|
||
... | ... | |
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$vlan = new vlan_Model($vlan_id);
|
||
|
||
$vlan->name = $form_data['name'];
|
freenetis/trunk/kohana/application/controllers/segments.php | ||
---|---|---|
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$segment = new Segment_Model();
|
||
|
||
$segment->name = $form_data['name'];
|
||
... | ... | |
{
|
||
$form_data = $form->as_array();
|
||
|
||
foreach($form_data as $key => $value)
|
||
{
|
||
$form_data[$key] = htmlspecialchars($value);
|
||
}
|
||
|
||
$segment = new Segment_Model($segment_id);
|
||
|
||
|
||
$segment->name = $form_data['name'];
|
||
$segment->technology = $form_data['technology'];
|
Také k dispozici: Unified diff