Ignore:
Timestamp:
Apr 14, 2013, 5:15:25 PM (11 years ago)
Author:
chronos
Message:
  • Upraveno: Síťové informace přetvořeny na aplikační modul.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Network/Network.php

    r479 r518  
    11<?php
    22
    3 include_once('HostList.php');
     3include_once(dirname(__FILE__).'/HostList.php');
     4include_once(dirname(__FILE__).'/Administration.php');
     5include_once(dirname(__FILE__).'/Availability.php');
     6include_once(dirname(__FILE__).'/Subnet.php');
     7include_once(dirname(__FILE__).'/Hosting.php');
     8include_once(dirname(__FILE__).'/UserHosts.php');
    49
    5 class PageNetworkInformation extends Page
     10class PageNetwork extends Page
    611{
    712  var $FullTitle = 'Technické informace o síti';
     
    914
    1015  function Show()
     16  {
     17    if(count($this->System->PathItems) > 1)
     18    {
     19      if($this->System->PathItems[1] == 'administration') $Output = $this->NewPage('PageNetworkAdministration')->Show();
     20      else if($this->System->PathItems[1] == 'availability') $Output = $this->NewPage('PageAvailability')->Show();
     21      else if($this->System->PathItems[1] == 'subnet') $Output = $this->NewPage('PageSubnet')->Show();
     22      else if($this->System->PathItems[1] == 'user_hosts') $Output = $this->NewPage('PageNetworkHostList')->Show();
     23      else if($this->System->PathItems[1] == 'hosting') $Output = $this->NewPage('PageHosting')->Show();
     24      else if($this->System->PathItems[1] == 'hosts') $Output = $this->NewPage('PageHostList')->Show();
     25      else $Output = $this->ShowInformation();
     26    } else $Output = $this->ShowInformation();
     27    return($Output); 
     28  }
     29 
     30  function ShowInformation()
    1131  {
    1232    $Output = '';
     
    7292      default:
    7393        $Output .= '<a href="?section=obsazeni_wifi_kanalu">Obsazení Wi-Fi kanálů</a><br />';
    74         $Output .= '<a href="network/dostupnost.php">Měření dostupnosti zařízení</a><br />';
    75         $Output .= '<a href="network/subnet.php">Výpis registrovaných podsítí</a><br />';
     94        $Output .= '<a href="'.$this->System->Link('/network/availability/').'">Měření dostupnosti zařízení</a><br />';
     95        $Output .= '<a href="'.$this->System->Link('/network/subnet/').'">Výpis registrovaných podsítí</a><br />';
    7696        //$Output .= '<a href="tkr.php">Kanály kabelové televize</a>';
    7797    }
     
    104124  {
    105125    parent::Start();
    106     $this->System->RegisterPage('hostlist.php', 'PageHostList');
    107     $this->System->RegisterPage('network.php', 'PageNetworkInformation');   
     126    $this->System->RegisterPage('network', 'PageNetwork');   
    108127  } 
    109128 
Note: See TracChangeset for help on using the changeset viewer.