Changeset 518 for trunk/Modules/Network/Network.php
- Timestamp:
- Apr 14, 2013, 5:15:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Network/Network.php
r479 r518 1 1 <?php 2 2 3 include_once('HostList.php'); 3 include_once(dirname(__FILE__).'/HostList.php'); 4 include_once(dirname(__FILE__).'/Administration.php'); 5 include_once(dirname(__FILE__).'/Availability.php'); 6 include_once(dirname(__FILE__).'/Subnet.php'); 7 include_once(dirname(__FILE__).'/Hosting.php'); 8 include_once(dirname(__FILE__).'/UserHosts.php'); 4 9 5 class PageNetwork Informationextends Page10 class PageNetwork extends Page 6 11 { 7 12 var $FullTitle = 'Technické informace o síti'; … … 9 14 10 15 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() 11 31 { 12 32 $Output = ''; … … 72 92 default: 73 93 $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 />'; 76 96 //$Output .= '<a href="tkr.php">Kanály kabelové televize</a>'; 77 97 } … … 104 124 { 105 125 parent::Start(); 106 $this->System->RegisterPage('hostlist.php', 'PageHostList'); 107 $this->System->RegisterPage('network.php', 'PageNetworkInformation'); 126 $this->System->RegisterPage('network', 'PageNetwork'); 108 127 } 109 128
Note:
See TracChangeset
for help on using the changeset viewer.