source: www/style.php@ 32

Last change on this file since 32 was 12, checked in by george, 17 years ago

Přidáno: Odkaz z hlavní stránky na web kameru.

  • Property svn:executable set to *
File size: 7.3 KB
Line 
1<?php
2include_once('global.php');
3
4function ShowHeader($Title, $Path, $BodyParam = '')
5{
6 global $Time_Start, $refresh, $Config;
7 $Time_Start = GetMicrotime(); // Zjisti počáteční čas
8 $Rozcestnik = '<a href="/">Rozcestník</a>';
9 $ScriptName = $_SERVER['SCRIPT_NAME'];
10 while(strpos($ScriptName, '//')!==false)
11 $ScriptName = str_replace('//', '/', $ScriptName);
12 $Cesty = array(
13 '/index.php' => $Rozcestnik,
14 '/missing.php' => $Rozcestnik,
15 '/manualy.php' => $Rozcestnik.' &gt; <a href="/manualy.php">Manuály</a>',
16 '/is/administration_page.php' => $Rozcestnik.' &gt; <a href="/is/administration_page.php">Administrace sítě</a>',
17 '/network.php' => $Rozcestnik.' &gt; <a href="/network.php">Technické informace</a>',
18 '/mapy/mapa_nabidka.php' => $Rozcestnik.' &gt; <a href="mapy/mapa_nabidka.php">Nabídky mapy</a>',
19 '/map/index.php' => $Rozcestnik.' &gt; <a href="/map/">Mapa</a>',
20 '/nabidky_pripojeni.php' => $Rozcestnik.' &gt; <a href="nabidky_pripojeni.php">Nabídky připojení</a>',
21 '/telseznam.php' => $Rozcestnik.' &gt; <a href="/telseznam.php">Telefonní seznam</a>',
22 '/merak.php' => $Rozcestnik.' &gt; <a href="/merakm.php">Měřič spotřeby</a>',
23 '/tkr.php' => $Rozcestnik.' &gt; <a href="/tkr.php">Kanály kabelové televize </a>',
24 '/share/index.php' => $Rozcestnik.' &gt; <a href="/share/index.php">Prohledat sdílení</a>',
25 '/share/firefox.php' => $Rozcestnik.' &gt; <a href="/share/index.php">Prohledat sdílení</a> &gt; <a href="/share/firefox.php">Integrace do prohlížeče</a> ',
26 '/hostlist.php' => $Rozcestnik.' &gt; <a href="/hostlist.php">Seznam počítačů</a>',
27 '/userlist.php' => $Rozcestnik.' &gt; <a href="/userlist.php">Seznam uživatelů</a>',
28 '/farnost/index.php' => $Rozcestnik.' &gt; <a href="/farnost/index.php">Rozpis mší</a>',
29 // Finance
30 '/finance/index.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a>',
31 '/finance/spotreba.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/spotreba.php">Spotřeba</a>',
32 '/finance/changes.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/changes.php">Změny</a>',
33 '/finance/tarify.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/tarify.php">Tarify</a>',
34 '/finance/inventory.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/inventory.php">Skladové zásoby</a>',
35 '/finance/clenove.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/clenove.php">Seznam členů</a>',
36 '/finance/zarizeni.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/zarizeni.php">Zařízení</a>',
37 '/finance/strom.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/strom.php">Strom zařízení</a>',
38 '/finance/srovnani.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/srovnani.php">Porovnání tarifů s konkurencí</a>',
39 '/finance/faktury/index.php' => $Rozcestnik.' &gt; <a href="/finance/">Finance</a> &gt; <a href="/finance/faktury/">Faktury za internet</a>',
40 '/is/topologie.php' => $Rozcestnik.' &gt; <a href="/is/topologie.php">Topologie sítě</a>',
41 '/is/dostupnost.php' => $Rozcestnik.' &gt; <a href="/is/dostupnost.php">Dostupnost zařízení</a>',
42 '/statistic/trafficview.php' => $Rozcestnik.' &gt; <a href="/statistic/trafficview.php">Vytížení internetu</a>',
43 '/statistic/index.php' => $Rozcestnik.' &gt; <a href="/statistic/">Statistika</a>',
44 '/statistic/trafficview2.php' => $Rozcestnik.' &gt; <a href="/statistic/trafficview2.php">Statistika</a>',
45 '/statistic/bandwidth.php' => $Rozcestnik.' &gt; <a href="/statistic/bandwidth.php">Zatížení internetu</a>',
46 '/statistic/bandwidth_full.php' => $Rozcestnik.' &gt; <a href="/statistic/bandwidth_full.php">Zatížení internetu všech počítačů</a>',
47 '/download/addfile.php' => $Rozcestnik.' &gt; <a href="/download/addfile.php">Stažení souborů</a>',
48 '/fotbal.php' => $Rozcestnik.' &gt; <a href="/fotbal.php">Fotbal</a>',
49 '/webcam/index.php' => $Rozcestnik.' &gt; <a href="/webcam/index.php">Web kamera</a>',
50 '/mapy/mapa.php' => $Rozcestnik.' &gt; <a href="/mapy/mapa.php">Mapa</a>',
51 '/navody.php' => $Rozcestnik.' &gt; <a href="/navody.php">Návody</a>',
52 '/ukoly.php' => $Rozcestnik.' &gt; <a href="/ukoly.php">Plány do budoucna</a>',
53 '/otevreno.php' => $Rozcestnik.' &gt; <a href="/otevreno.php">Otvírací doby</a>',
54 '/aktuality/index.php' => $Rozcestnik.' &gt; <a href="/aktuality/">Aktuality</a>',
55 '/aktuality/subscription.php' => $Rozcestnik.' &gt; <a href="/aktuality/subscription.php">RSS aktuality</a>',
56 '/sluzby.php' => $Rozcestnik.' &gt; <a href="/sluzby.php">Služby</a>',
57 '/history.php' => $Rozcestnik.' &gt; <a href="/history.php">Historie</a>',
58 '/lanchat/seznam.php' => $Rozcestnik.' &gt; <a href="/lanchat/seznam.php">Historie SunriseChatu</a>',
59 '/lanchat/show.php' => $Rozcestnik.' &gt; <a href="/lanchat/seznam.php">Historie SunriseChatu</a>',
60 '/sunrisechat/history.php' => $Rozcestnik.' &gt; <a href="/sunrisechat/history.php">Historie SunriseChatu</a>',
61 '/sunrisechat/network.php' => $Rozcestnik.' &gt; <a href="/sunrisechat/network.php">Obsah testu sítě SunriseChatu 2.7+</a>',
62 '/sunrisechat/network_old.php' => $Rozcestnik.' &gt; <a href="/sunrisechat/network_old.php">Obsah testu sítě SunriseChatu 2.6</a>',
63 '/sunrisechat/webchat.php' => $Rozcestnik.' &gt; <a href="/sunrisechat/webchat.php">Okno SunriseChatu</a>',
64 '/docs/zapisy/zapisy.php' => $Rozcestnik.' &gt; <a href="/docs/zapisy/zapisy.php">Zápisy ze schůzí</a>',
65 '/jidelna/index.php' => $Rozcestnik.' &gt; <a href="/jidelna">Jídelníček</a>',
66 '/jidelna/menuedit.php' => $Rozcestnik.' &gt; <a href="/jidelna/menuedit.php">Editace jídelníčku</a>',
67 '/backup/index.php' => $Rozcestnik.' &gt; <a href="/backup/index.php">Nastavení zálohování</a>',
68 );
69 echo('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
70<html><head>
71 <meta http-equiv="Content-Language" content="cs">
72 <meta http-equiv="Content-Type" content="text/html; charset=');
73 echo($Config['Web']['Charset']);
74
75 echo('">');
76 if (isset($refresh)) echo('<meta http-equiv="Refresh" content="'.$refresh."\">\n");
77 // <link href="style.css" rel="stylesheet" type="text/css">
78 echo("\n".' <title>Centrála - '.$Path.'</title>
79 </head><body style="font-family: sans-serif;" '.$BodyParam.'>
80<div style="padding: 3px; font-size: 20px; border-style: solid; border-color: blue; border-width: 1; background-color: #F0F0FF; margin-bottom: 4px;">'.$Title.'</div>
81<div style="border-style: solid; border-bottom-color: gray; border-width: 0 0 1 0; margin-bottom: 3px; padding-bottom: 2px;"><strong>Navigace &gt;&gt;</strong> '.$Cesty[$ScriptName].'</div>');
82}
83
84function ShowFooter()
85{
86 global $Time_Start;
87 $Time = floor((GetMicrotime() - $Time_Start)*100)/100;
88 echo('<div style="border-style: solid; border-top-color: gray; border-width: 1 0 0 0; margin-top: 7px; padding-top: 2px;" align="center">
89 <i style="font-size: 10;">| Web mistr: Jiří Hajda | e-mail: robie@centrum.cz | ICQ: 277158770 | Vygenerováno za '.$Time.' s | Verze: 1.0 | Naposledy aktualizováno: '.date('j.n.Y',filemtime($_SERVER['SCRIPT_FILENAME'])).' |</i>
90 </div>');
91 //ShowArray($GLOBALS);
92 echo('</body></html>');
93}
94
95?>
Note: See TracBrowser for help on using the repository browser.