Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 82

Přidáno uživatelem batix před více než 16 roky(ů)

Zobrazit rozdíly:

freenetis/trunk/kohana/media/css/style.css
h1 span {
visibility:hidden;
}
h2 {
padding-bottom:5px;
font-size:150%;
}
h3 {
padding-bottom:5px;
}
freenetis/trunk/kohana/application/i18n/cs_CZ/validation.php
<?php defined('SYSPATH') or die('No direct access allowed.');
$lang = array
(
// Class errors
'error_format' => 'Your error message string must contain the string {message} .',
'invalid_rule' => 'Invalid validation rule used: %s',
// General errors
'unknown_error' => 'Unknown validation error while validating the %s field.',
'required' => 'Pole %s musí být vyplněno.',
'min_length' => 'Pole %s musí obsahovat min. %d znaků.',
'max_length' => 'Pole %s musí obsahovat max. %d znaků.',
'exact_length' => 'Pole %s musí obsahovat přesně %d znaků.',
'in_array' => 'Pole %s musí být vybráno ze seznamu.',
'matches' => 'Pole %s se musí shodovat s polem %s.',
'valid_url' => 'Pole %s musí obsahovat platnou URL.',
'valid_email' => 'Pole %s musí obsahovat platnou emailovou adresu.',
'valid_ip' => 'Pole %s musí obsahovat platnou IP adresu.',
'valid_type' => 'Pole %s musí obsahovat pouze %s.',
'range' => 'Pole %s musí být v definovaném rozsahu.',
'regex' => 'The %s field does not match accepted input.',
'depends_on' => 'The %s field depends on the %s field.',
// Upload errors
'user_aborted' => 'The %s file was aborted during upload.',
'invalid_type' => 'The %s file is not an allowed file type.',
'max_size' => 'The %s file you uploaded was too large. The maximum size allowed is %s.',
'max_width' => 'The %s file you uploaded was too big. The maximum allowed width is %spx.',
'max_height' => 'The %s file you uploaded was too big. The maximum allowed height is %spx.',
'min_width' => 'The %s file you uploaded was too small. The minimum allowed width is %spx.',
'min_height' => 'The %s file you uploaded was too small. The minimum allowed height is %spx.',
// Field types
'alpha' => 'písmena abecedy',
'alpha_dash' => 'alphabetical, dash, and underscore',
'digit' => 'číslice',
'numeric' => 'číslo',
);
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php
'networks' => 'Síť',
'devices' => 'Zařízení',
'segments' => 'Segmenty',
'ports' => 'Porty',
'select user' => 'Vyber uživatele',
'add' => 'Přidat',
'save' => 'Uložit',
'show' => 'Zobrazit',
'edit' => 'Upravit',
'delete' => 'Smazat',
'device is successfully saved' => 'Zařízení bylo úspěšně uloženo.',
'add new device' => 'Přidat nové zařízení',
'add new segment' => 'Přidat nový segmnet',
'add new interface' => 'Přidat nové rozhraní',
'add new ip address' => 'Přidat novou IP adresu',
'update' => 'Upravit',
'device is successfully updated' => 'Zařízení bylo úspěšně upraveno.',
'basic data' => 'Základní údaje',
'location address' => 'Adresa umístění',
'location details' => 'Detaily umístění',
'technology' => 'Technologie',
'bitrate' => 'Rychlost přenosu',
'duplex' => 'Duplexní',
'back to detail' => 'Zpět na detail',
'back to segments list' => 'Zpět na seznam segmentů',
'back to devices list' => 'Zpět na seznam zařízení',
'segment is successfully saved' => 'Segment byl úspěšně uložen.',
'device name' => 'Název zařízení',
'segment name' => 'Název segmentu',
'interface is successfully updated' => 'Rozhraní bylo úspěšně upraveno.',
'interface is successfully saved' => 'Rozhraní bylo úspěšně uloženo.',
'ip address is successfully saved' => 'IP adresa byla úspěšně uložena.',
'ip address is successfully updated' => 'IP adresa byla úspěšně upravena.',
'port is successfully saved' => 'Port byl úspěšně uložen.',
'port is successfully updated' => 'Port byl úspěšně upraven.',
'interface detail' => 'Detail rozhraní',
'select device' => 'Vyber zařízení',
'select segment' => 'Vyber segment',
'map' => 'Mapa',
'interface name' => 'Název rozhraní',
'ip addresses' => 'IP adresy',
'ip address' => 'IP adresa',
'subnet name' => 'Název podsítě',
'subnet network address' => 'IP adresa podsítě',
'subnet netmask' => 'Maska podsítě',
'create new interface' => 'Vytvořit nové rozraní',
'create new ip address' => 'Vytvořit novou IP adresu',
'create new segment' => 'Vytvořit nový segment',
'iface name' => 'Název rozhraní',
'select subnet name' => 'Vyber podsíť',
'select subnet' => 'Vyber podsíť',
'select interface' => 'Vyber rozhraní',
'device detail' => 'Detail zařízení',
'segment detail' => 'Detail segmentu',
'error' => 'Chyba',
'id is required' => 'ID je vyžadováno.',
'devices list' => 'Seznam zařízení',
'back to device parameters' => 'Zpět na parametry zařízení',
'back to interfaces list' => 'Zpět na seznam rozhraní',
'vlan interface name' => 'Název VLAN rozhraní',
'add new port' => 'Přidat nový port',
'ports' => 'Porty',
'segments list' => 'Seznam segmentů',
'create new devices' => 'Vytvořit nové zařízení',
'edit device' => 'Upravit zařízení',
'pppoe' => 'pppoe',
'comment' => 'Komentář',
'id' => 'ID',
'user' => 'Uživatel',
'type' => 'Typ',
'login name' => 'Přihlašovací jméno',
'password' => 'Heslo',
'gps' => 'GPS',
'mac' => 'MAC',
'edit interface' => 'Upravit rozhraní',
'interfaces list' => 'Seznam rozhraní',
'ip address detail' => 'Detail IP adresy',
'edit ip address' => 'Upravit IP adresu',
'back to interfaces list' => 'Zpět na seznam rozhraní',
'ip addresses list' => 'Seznam IP adres',
'Interface type' => 'Typ rozhraní',
'back to interface parameters' => 'Zpět na parametry rozhraní',
'back to ip addresses list' => 'Zpět na seznam IP adres',
'back to interfaces list' => 'Zpět na seznam rozhraní',
'back to ports list' => 'Zpět na seznam portů',
'create new port' => 'Vytvořit nový port',
'subnets list' => 'Seznam podsítí',
'network address' => 'Síťová adresa',
'netmask' => 'Maska',
'ospf area id' => 'ospf ID',
'back to all subnets' => 'Zpět na seznam podsítí',
'subnet is successfully saved' => 'Podsíť byla úspěšně uložena.',
'subnet is successfully updated' => 'Podsíť byla úspěšně upravena.',
'add new subnet' => 'Přidat novu podsíť',
'create new subnet' => 'Vytvoření nové podsítě',
'edit segment' => 'Úprava segmentu',
'vlan interfaces' => 'VLAN rozhraní',
'add new vlan interface' => 'Přidat nové VLAN rozhraní',
'vlan name' => 'Název VLANu',
'vlan interfaces list' => 'Seznam VLAN rozhraní',
'select vlan' => 'Vyber VLAN',
'back to vlan interfaces list' => 'Zpět na seznam VLAN rozhraní',
'vlan interface is successfully saved' => 'VLAN rozhraní bylo úspěšně uloženo.',
'vlan interface is successfully updated' => 'VLAN rozhraní bylo úspěšně upraveno.',
'edit vlan interface' => 'Úprava VLAN rozhraní',
'create new vlan interface' => 'Vytvoření nového VLAN rozhraní',
'back to vlan interface parameters' => 'Zpět na parametry VLAN rozhraní',
'vlan interface detail' => 'Detail VLAN rozhraní',
'add new vlan' => 'Přidat nový VLAN',
'vlans list' => 'Seznam VLANů',
'vlan detail' => 'Detail VLANu',
'create new vlan' => 'Vytvořit nový VLAN',
'edit vlan' => 'Úprava VLANu',
'vlan is successfully saved' => 'VLAN byl úspěšn uložen.',
'vlan is successfully updated' => 'VLAN byl úspěšně upraven.',
'back to vlans list' => 'Zpět na seznam VLANů',
'select port' => 'Vyber port',
'port detail' => 'Detail portu',
'tag_802_1q' => '',
'edit port' => 'Úprava portu',
'engineer' => 'Technik',
'ifaces' => 'Rozhraní',
'interfaces' => 'Rozhraní',
'subnets' => 'Podsítě',
'vlans' => 'VLANy',
'logged user' => 'Přihlášený uživatel',
'port name' => 'Název portu',
'ports list' => 'Seznam portů',
'logout' => 'Odhlásit',
'there are no items yet' => 'Neobsahuje žádné záznamy.',
'basic' => 'Základní',
);
freenetis/trunk/kohana/application/controllers/ifaces.php
function index()
{
url::redirect('ifaces/show_all');
url::redirect(url_lang::base().'ifaces/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('ifaces/add', url_lang::lang('texts.Add new interface'));
$grid->add_new_button(url_lang::base().'ifaces/add', url_lang::lang('texts.Add new interface'));
$grid->order_field('id')->label('ID');
$grid->order_field('name')->label(url_lang::lang('texts.name'));
$grid->order_field('device_name')->label(url_lang::lang('texts.Device name'));
......
'use_selector' => false
));
$grid_ip_addresses->add_new_button('ip_addresses/add', url_lang::lang('texts.Add new IP address'));
$grid_ip_addresses->add_new_button(url_lang::base().'ip_addresses/add', url_lang::lang('texts.Add new IP address'));
$grid_ip_addresses->field('id')->label('ID')->class('center');
$grid_ip_addresses->field('IP_address')->label(url_lang::lang('texts.IP address'));
$grid_ip_addresses->field('subnet_name')->label(url_lang::lang('texts.Subnet name'));
......
'use_selector' => false
));
$grid_VLAN_ifaces->add_new_button('vlan_ifaces/add', url_lang::lang('texts.Add new VLAN interface'));
$grid_VLAN_ifaces->add_new_button(url_lang::base().'vlan_ifaces/add', url_lang::lang('texts.Add new VLAN interface'));
$grid_VLAN_ifaces->field('id')->label('ID')->class('center');
$grid_VLAN_ifaces->field('name')->label(url_lang::lang('texts.Name'));
$grid_VLAN_ifaces->action_field('id')->label(url_lang::lang('texts.Show')) ->url(url_lang::base().'vlan_ifaces/show') ->action(url_lang::lang('texts.Show'))->class('center');
......
if ($iface->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Interface is successfully saved.'));
url::redirect(url_lang::base().'ifaces/show/'.$iface->id, 'redirect');
url::redirect(url_lang::base().'ifaces/show/'.$iface->id);
exit;
}
......
if ($iface->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Interface is successfully updated.'));
url::redirect(url_lang::base().'ifaces/show/'.$iface->id, 'redirect');
url::redirect(url_lang::base().'ifaces/show/'.$iface->id);
exit;
}
freenetis/trunk/kohana/application/controllers/ip_addresses.php
function index()
{
url::redirect('ip_addresses/show_all');
url::redirect(url_lang::base().'ip_addresses/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('ip_addresses/add', url_lang::lang('texts.Add new IP address'));
$grid->add_new_button(url_lang::base().'ip_addresses/add', url_lang::lang('texts.Add new IP address'));
$grid->order_field('id')->label('ID')->class('center');
$grid->order_field('IP_address')->label(url_lang::lang('texts.ip addresses'));
$grid->order_field('iface_name')->label(url_lang::lang('texts.Interface name'));
......
if ($ip->save()) {
$this->session->set_flash('message', url_lang::lang('texts.IP address is successfully saved.'));
if ((bool)$ip->vlan_iface_id) url::redirect(url_lang::base().'vlan_ifaces/show/'.$ip->vlan_iface_id, 'redirect');
elseif ($ssIface_id) url::redirect(url_lang::base().'ifaces/show/'.$ip->iface_id, 'redirect');
else url::redirect(url_lang::base().'ip_addresses/show_all', 'redirect');
if ((bool)$ip->vlan_iface_id) url::redirect(url_lang::base().'vlan_ifaces/show/'.$ip->vlan_iface_id);
elseif ($ssIface_id) url::redirect(url_lang::base().'ifaces/show/'.$ip->iface_id);
else url::redirect(url_lang::base().'ip_addresses/show_all');
exit;
}
......
if ($ip->save()) {
$this->session->set_flash('message', url_lang::lang('texts.IP address is successfully updated.'));
if ($ssVlan_iface_id) url::redirect(url_lang::base().'vlan_ifaces/show/'.$ip->vlan_iface_id, 'redirect');
elseif ($ssIface_id) url::redirect(url_lang::base().'ifaces/show/'.$ip->iface_id, 'redirect');
else url::redirect(url_lang::base().'ip_addresses/show_all', 'redirect');
if ($ssVlan_iface_id) url::redirect(url_lang::base().'vlan_ifaces/show/'.$ip->vlan_iface_id);
elseif ($ssIface_id) url::redirect(url_lang::base().'ifaces/show/'.$ip->iface_id);
else url::redirect(url_lang::base().'ip_addresses/show_all');
exit;
}
freenetis/trunk/kohana/application/controllers/ports.php
function index()
{
url::redirect('ports/show_all');
url::redirect(url_lang::base().'ports/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('ports/add', url_lang::lang('texts.Add new port'));
$grid->add_new_button(url_lang::base().'ports/add', url_lang::lang('texts.Add new port'));
$grid->order_field('id')->label('ID')->class('center');
$grid->order_field('name')->label(url_lang::lang('texts.name'));
$grid->order_field('device_name')->label(url_lang::lang('texts.Device name'));
......
$form->group('')->label(url_lang::lang('texts.Basic data'));
$form->input('name')->label(url_lang::lang('texts.Ports name').':')->rules('required|length[3,200]');
$form->input('name')->label(url_lang::lang('texts.Port name').':')->rules('required|length[3,200]');
if ($ssDevice_id)
{
......
if ($saved) {
$this->session->set_flash('message', url_lang::lang('texts.Port is successfully saved.'));
url::redirect(url_lang::base().'ports/show/'.$port->id, 'redirect');
url::redirect(url_lang::base().'ports/show/'.$port->id);
exit;
}
......
if ($saved) {
$this->session->set_flash('message', url_lang::lang('texts.Port is successfully updated.'));
url::redirect(url_lang::base().'ports/show/'.$port->id, 'redirect');
url::redirect(url_lang::base().'ports/show/'.$port->id);
exit;
}
freenetis/trunk/kohana/application/controllers/vlan_ifaces.php
function index()
{
url::redirect('vlan_ifaces/show_all');
url::redirect(url_lang::base().'vlan_ifaces/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('vlan_ifaces/add', url_lang::lang('texts.Add new VLAN interface'));
$grid->add_new_button(url_lang::base().'vlan_ifaces/add', url_lang::lang('texts.Add new VLAN interface'));
$grid->order_field('id')->label('ID')->class('center');
$grid->order_field('name')->label(url_lang::lang('texts.name'));
$grid->order_field('iface_name')->label(url_lang::lang('texts.Interface name'));
......
'use_selector' => false
));
$grid_ip_addresses->add_new_button('ip_addresses/add', url_lang::lang('texts.Add new IP address'));
$grid_ip_addresses->add_new_button(url_lang::base().'ip_addresses/add', url_lang::lang('texts.Add new IP address'));
$grid_ip_addresses->field('id')->label('ID')->class('center');
$grid_ip_addresses->field('IP_address')->label(url_lang::lang('texts.IP address'));
$grid_ip_addresses->field('subnet_name')->label(url_lang::lang('texts.Subnet name'));
......
if ($vlan_iface->save()) {
$this->session->set_flash('message', url_lang::lang('texts.VLAN interface is successfully saved.'));
url::redirect(url_lang::base().'vlan_ifaces/show/'.$vlan_iface->id, 'redirect');
url::redirect(url_lang::base().'vlan_ifaces/show/'.$vlan_iface->id);
exit;
}
......
if ($vlan_iface->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Vlan interface is successfully updated.'));
url::redirect(url_lang::base().'vlan_ifaces/show/'.$vlan_iface->id, 'redirect');
url::redirect(url_lang::base().'vlan_ifaces/show/'.$vlan_iface->id);
exit;
}
freenetis/trunk/kohana/application/controllers/devices.php
function index()
{
url::redirect('devices/show_all');
url::redirect(url_lang::base().'devices/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('devices/add', url_lang::lang('texts.Add new device'));
$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'));
......
'limit_results' => $limit_results
));
$grid->add_new_button('devices/add', url_lang::lang('texts.Add new device'));
$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'));
......
'use_selector' => false
));
$grid->add_new_button('ifaces/add', url_lang::lang('texts.Add new interface'));
$grid->add_new_button(url_lang::base().'ifaces/add', url_lang::lang('texts.Add new interface'));
$grid->field('id')->label('ID')->class('center');
$grid->field('name')->label(url_lang::lang('texts.name'));
$grid->field('MAC')->label(url_lang::lang('texts.MAC'));
......
'use_selector' => false
));
$grid->add_new_button('ports/add', url_lang::lang('texts.Add new port'));
$grid->add_new_button(url_lang::base().'ports/add', url_lang::lang('texts.Add new port'));
$grid->field('id')->label('ID')->class('center');
$grid->field('name')->label(url_lang::lang('texts.Port name'));
$grid->field('segment_name')->label(url_lang::lang('texts.Segment name'));
......
$view->content = new View('show_device');
//$view->content->submenu = $submenu;
$view->content->headline = url_lang::lang('texts.Device detail');
$view->content->headline = url_lang::lang('texts.Device detail').' - '.$device->name;
$view->content->device = $device;
$view->content->engineer = $engineer_name;
$view->content->count_iface = $iface_model->count_ifaces_of_device($device->id);
......
$view->footer = new View('base/footer');
$view->header->title = url_lang::lang('texts.Device detail');
$view->header->title = url_lang::lang('texts.Device detail').' - '.$device->name;
$view->header->menu = Controller::render_menu();
$view->render(TRUE);
}
......
//$device_model->save()
if ($device_model->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Device is successfully saved.'));
//url::redirect(url_lang::base().'devices/show_all', 'redirect');
url::redirect(url_lang::base().'devices/show/'.$device_model->id, 'redirect');
//url::redirect(url_lang::base().'devices/show_all');
url::redirect(url_lang::base().'devices/show/'.$device_model->id);
exit;
}
}
......
if ($device_model->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Device is successfully updated.'));
url::redirect(url_lang::base().'devices/show/'.$device_model->id, 'redirect');
url::redirect(url_lang::base().'devices/show/'.$device_model->id);
exit;
}
}
freenetis/trunk/kohana/application/controllers/subnets.php
function index()
{
url::redirect('subnets/show_all');
url::redirect(url_lang::base().'subnets/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('subnets/add', url_lang::lang('texts.Add new subnet'));
$grid->add_new_button(url_lang::base().'subnets/add', url_lang::lang('texts.Add new subnet'));
$grid->order_field('id')->label('ID')->class('center');
$grid->order_field('name')->label(url_lang::lang('texts.name'));
$grid->order_field('network_address')->label(url_lang::lang('texts.Network address'));
......
if ($subnet->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Subnet is successfully saved.'));
url::redirect(url_lang::base().'subnets/show/'.$subnet->id, 'redirect');
url::redirect(url_lang::base().'subnets/show/'.$subnet->id);
exit;
}
......
if ($subnet->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Subnet is successfully updated.'));
url::redirect(url_lang::base().'subnets/show/'.$subnet_id, 'redirect');
url::redirect(url_lang::base().'subnets/show/'.$subnet_id);
exit;
}
freenetis/trunk/kohana/application/controllers/vlans.php
function index()
{
url::redirect('vlans/show_all');
url::redirect(url_lang::base().'vlans/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('vlans/add', url_lang::lang('texts.Add new vlan'));
$grid->add_new_button(url_lang::base().'vlans/add', url_lang::lang('texts.Add new vlan'));
$grid->order_field('id')->label('ID')->class('center');
$grid->order_field('name')->label(url_lang::lang('texts.Vlan name'));
$grid->order_field('tag_802_1q')->label(url_lang::lang('texts.tag_802_1q'));
......
if ($vlan->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Vlan is successfully saved.'));
url::redirect(url_lang::base().'vlans/show/'.$vlan->id, 'redirect');
url::redirect(url_lang::base().'vlans/show/'.$vlan->id);
exit;
}
......
if ($vlan->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Vlan is successfully updated.'));
url::redirect(url_lang::base().'vlans/show/'.$vlan->id, 'redirect');
url::redirect(url_lang::base().'vlans/show/'.$vlan->id);
exit;
}
freenetis/trunk/kohana/application/controllers/segments.php
//var_dump($iface);
url::redirect('segments/show_all');
url::redirect(url_lang::base().'segments/show_all');
}
......
'limit_results' => $limit_results
));
$grid->add_new_button('segments/add', url_lang::lang('texts.Add new segment'));
$grid->add_new_button(url_lang::base().'segments/add', url_lang::lang('texts.Add new segment'));
$grid->order_field('id')->label('ID')->class('center');
$grid->order_field('name')->label(url_lang::lang('texts.name'));
$grid->order_field('technology')->label(url_lang::lang('texts.technology'));
......
if ($segment->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Segment is successfully saved.'));
url::redirect(url_lang::base().'segments/show/'.$segment->id, 'redirect');
url::redirect(url_lang::base().'segments/show/'.$segment->id);
exit;
}
......
if ($segment->save()) {
$this->session->set_flash('message', url_lang::lang('texts.Segment is successfully updated.'));
url::redirect(url_lang::base().'segments/show/'.$segment->id, 'redirect');
url::redirect(url_lang::base().'segments/show/'.$segment->id);
exit;
}
freenetis/trunk/kohana/application/views/show_segment.php
<td><?php echo $segment->id ?></td>
</tr>
<tr>
<th><?php echo url_lang::lang('texts.Name2') ?></th>
<th><?php echo url_lang::lang('texts.Name') ?></th>
<td><?php echo $segment->name ?></td>
</tr>
<tr>
freenetis/trunk/kohana/application/views/base/header.php
<h1><span>FreeNetIS</span></h1>
<div class="separator1"></div>
<div class="status">
<span><?php echo url_lang::lang('texts.User name') ?></span>&nbsp;
<span><?php echo url_lang::lang('texts.Logged user') ?></span>&nbsp;
<?php echo special::create_language_flags(array('cs' => 'Česky', 'en' => 'English')) ?>
<table>
<tr>

Také k dispozici: Unified diff