Live-Chat-text, split funcs and html_funcs,
authorJan Vales <jan@jvales.net>
Wed, 15 Jul 2015 03:12:31 +0000 (05:12 +0200)
committerJan Vales <jan@jvales.net>
Wed, 15 Jul 2015 03:12:31 +0000 (05:12 +0200)
funcs.php
html_funcs.php [new file with mode: 0644]
index.php
style.css

index e3a0cb42d56c870cbaa42e711c15c83557ce2251..875c408b89925c119bf34ff700da7595c128f829 100644 (file)
--- a/funcs.php
+++ b/funcs.php
@@ -7,6 +7,7 @@
 
 require_once('./settings.php');
 require_once('./db_funcs.php');
+require_once('./html_funcs.php');
 
 function login(){
 //  if(!isset($_SERVER['HTTPS'])){
@@ -92,39 +93,3 @@ function get_person($id){
   return db_get_person($id);
 }
 
-function html_top($title = ""){
-       return <<<EOF
-<!DOCTYPE html>
-<html lang="de" dir="ltr">
-<head>
-<meta charset="utf-8">
-<title>$title</title>
-<link rel="stylesheet" href="style.css">
-<script src="sorttable.js"></script>
-</head>
-<body id="welcometucode">
-EOF;
-}
-
-function html_bottom(){
-       return <<<EOF
-</body>
-</html>
-EOF;
-}
-
-function html_linkbox($current = "") {
-       $items = array(
-               'index' => "Home",
-               'list' => "Anmeldungen",
-               'calendar' => "Kalender",
-               'stats' => "Stats"
-       );
-       $out = '<div id="menu" class="align-center"><h1>Anmeldesystem welcomeTUcode</h1><ul class="menulist">';
-       foreach ($items as $file => $name) {
-               $activeitem = ($current === $file) ? ' menuactive' : '';
-               $out .= '<li class="menuitem'.$activeitem.'"><a href="./'.$file.'.php">'.$name.'</a></li>';
-       }
-       $out .= '</ul></div>';
-       return $out;
-}
diff --git a/html_funcs.php b/html_funcs.php
new file mode 100644 (file)
index 0000000..188d6ec
--- /dev/null
@@ -0,0 +1,47 @@
+<?php
+
+/**
+* welcome.TU.code Anmeldesystem.
+* by David Kaufmann <astra@ionic.at>
+*/
+
+function html_top($title = ""){
+       return <<<EOF
+<!DOCTYPE html>
+<html lang="de" dir="ltr">
+<head>
+<meta charset="utf-8">
+<title>$title</title>
+<link rel="stylesheet" href="style.css">
+<script src="sorttable.js"></script>
+</head>
+<body id="welcometucode">
+EOF;
+}
+
+function html_bottom(){
+       return <<<EOF
+<hr>
+<!-- Entwickelt 2015 von David "astra" Kaufmann (Layout + Website) und Jan "someone" Valeš (Datenbank + Website). -->
+<p class="footnote"><a href="https://frost.fsinf.at/iris?channels=w2c">Live-Support-WebChat</a> (Ist ein WebIRC zu <a href="irc://irc.fsinf.at/w2c">#w2c auf irc.fsinf.at</a>)
+<br>Auch möglich: <a href="mailto:someone@fsinf.at">eMail an someone@fsinf.at</a></p>
+</body>
+</html>
+EOF;
+}
+
+function html_linkbox($current = "") {
+       $items = array(
+               'index' => "Home",
+               'list' => "Anmeldungen",
+               'calendar' => "Kalender",
+               'stats' => "Stats"
+       );
+       $out = '<div id="menu" class="align-center"><h1>Anmeldesystem welcomeTUcode</h1><ul class="menulist">';
+       foreach ($items as $file => $name) {
+               $activeitem = ($current === $file) ? ' menuactive' : '';
+               $out .= '<li class="menuitem'.$activeitem.'"><a href="./'.$file.'.php">'.$name.'</a></li>';
+       }
+       $out .= '</ul></div>';
+       return $out;
+}
index 05c9961ddb6d741065887c6eb9f0637ec540a993..b814323f697354ae676e96da3dec129d7810c4a3 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2,5 +2,16 @@
 require_once('./funcs.php');
 echo html_top("Anmeldesystem");
 echo html_linkbox("index");
-echo html_bottom();
 ?>
+
+<h2>Benutzungsanleitung</h2>
+<p>TODO</p>
+
+<h2>Live-Support</h2>
+<p>Diese Software ist innerhalb von ca 20 Stunden entstanden, was für einen ordentlichen SW-Entwicklungsprozess viel zu wenig ist, weshalb sich trotz Tests auch
+sicherlich Fehler eingeschlichen haben, die wir nicht entdeckt haben.<br>
+Wenn Du Fragen hast, die aus der Benutzungsanleitung nicht klar werden, oder Du glaubst, einen Fehler in der Software entdeckt zu haben, nutze bitte den
+Live-Support Link unten auf jeder Seite, um mit dem Entwickler_innen-Team in Kontakt zu treten.</p>
+
+<?php echo html_bottom();
+
index d361fc82f8277074e58866e3e36a786329df45b4..7a82ba73db311537fdf34dcf2c70f98e1d44d52b 100644 (file)
--- a/style.css
+++ b/style.css
@@ -86,3 +86,9 @@
     display: block;
   }
 }
+
+.footnote {
+  text-align:right;
+  font-size: 12px;
+  }
+