]> git.somenet.org - fsinf/pub/w2c.git/blob - html_funcs.php
fix insert. Forgot to add a ", ?" when adding gruppenfotoerlaubnis.
[fsinf/pub/w2c.git] / html_funcs.php
1 <?php
2
3 /**
4 * welcome.TU.code Anmeldesystem.
5 * by David Kaufmann <astra@ionic.at>
6 */
7
8 function html_top($title = ""){
9   if($GLOBALS['devmode'] == 1)$title .= ' [DEVMODE]';
10
11         return <<<EOF
12 <!DOCTYPE html>
13 <html lang="de" dir="ltr">
14 <head>
15 <meta charset="utf-8">
16 <title>$title</title>
17 <link rel="stylesheet" href="/style.css">
18 EOF;
19 }
20
21 function html_bottom(){
22         return <<<EOF
23 <hr>
24 <!-- Entwickelt 2015 von David "astra" Kaufmann (Layout + Website) und Jan "someone" Valeš (Datenbank + Website). -->
25 <p class="footnote"><a href="https://frost.fsinf.at/iris?channels=w2c">Support-WebChat</a> (Ist ein WebIRC zu <a href="irc://irc.fsinf.at/w2c">#w2c auf irc.fsinf.at</a>)
26 <br>Auch möglich: <a href="mailto:someone@fsinf.at">eMail an someone@fsinf.at</a></p>
27 </body>
28 </html>
29 EOF;
30 }
31
32 function html_linkbox($current = "") {
33         $items = array(
34                 '/index' => "Home",
35                 '/list' => "Anmeldungen",
36                 '/intern/index' => "Dateiupload",
37                 '/stats' => "Stats"
38         );
39         $out = '</head><body id="welcometucode"><div id="menu" class="align-center"><h1>Anmeldesystem welcomeTUcode</h1><ul class="menulist">';
40         foreach ($items as $file => $name) {
41                 $activeitem = ($current === $file) ? ' menuactive' : '';
42                 $out .= '<li class="menuitem'.$activeitem.'"><a href="'.$file.'.php">'.$name.'</a></li>';
43         }
44         $out .= '</ul></div><hr>';
45     if($GLOBALS['devmode'] == 1)$out .= '<p class="footnote">DEVMODE aktiv.<br>Am System wird gerade gearbeitet!</p>';
46         return $out;
47 }