Example #1
0
<?php

include dirname(__FILE__) . "/../../../res/php/_auth.php";
include dirname(__FILE__) . "/../../../res/php/_loadLangFiles.php";
include dirname(__FILE__) . "/../../../res/php/_getVersionScript.php";
include dirname(__FILE__) . "/../../../res/php/_loadStundenplan.php";
include dirname(__FILE__) . "/../../../res/php/_saveStundenplan.php";
function CreateTable()
{
    $array = array();
    for ($i = 0; $i < 40; $i++) {
        array_push($array, "");
    }
    file_put_contents(dirname(__FILE__) . "/../../../res/data/" . $_SESSION['username'] . ".data", json_encode($array));
}
if (isset($_GET['do']) && $_GET['do'] == "create") {
    CreateTable();
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    if (@$_POST['save']) {
        saveStundenplan();
        $result = "<h2>" . $string['labels']['l.preview'] . "</h2>";
        $result .= loadStundenplan($wochentagArray);
    }
    if (@$_POST['reset']) {
        CreateTable();
    }
}
Example #2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php 
include dirname(__FILE__) . "/res/php/_plan.php";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
    <?php 
include dirname(__FILE__) . "/res/html/mobileHtmlHead.html";
?>
		<title>Stundenplan</title>
	</head>
	<body class="metro">
		<header>
      <nav class="navigation-bar dark fixed-top">
        <nav class="navigation-bar-content">
          <a href="./index.php" class="element"><span class="icon-arrow-left-5"></span> <?php 
echo $string['links']['a.timetable'];
?>
<sup>online</sup></a>
        </nav>
      </nav>
    </header>
    <h1><?php 
echo $string['labels']['l.timetable'];
?>
</h1><br/>  
    <?php 
echo loadStundenplan($wochentagArray);
?>
  </body>
</html>
echo '
	<link rel="stylesheet" type="text/css" href="../../skin/dropdown.css" />
	
	<title>School organizer | Home</title>
</head>
<body bgcolor="#' . $bgcolor . '">
<input type="hidden" id="user" value="' . $user->getEmail() . '" />
<table id="hometable">
<tr>
	<td id="hometableleft"></td>
	<td id="hometablemid" style="background-color:#ffffff; box-shadow: 0px 0px 10px #000000;" valign="top">
<br /><br /><br />
<!-- Content -->
<div class="contentz" id="home" name="' . $email . '">' . loadHome($user, $db) . '</div>
<div class="contentz" id="kalender" name="' . $email . '">' . loadKalender($user, $db) . '</div>
<div class="contentz" id="stundenplan" name="' . $email . '">' . loadStundenplan($user, $db) . '</div>
<div class="contentz" id="gruppen" name="' . $email . '">' . loadGruppen($user, $db) . '</div>
<div class="contentz" id="freunde" name="' . $email . '">' . loadFreunde($user, $db) . '</div>
<div class="contentz" id="settings" name="' . $email . '">' . loadSettings($user, $db) . '</div>
					
					
					
</td>
	<td id="hometableright">';
include '../../global/chat.php';
echo '</td>
</tr>
</table>
<div id="menu" style="background-color:#' . $MENUCOLOR . '; box-shadow: 0px 0px 10px #000000;">
	<div align="center">
		<input type="hidden" name="email" value="' . $user->getEmail() . '" />
Example #4
0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php 
include dirname(__FILE__) . "/res/php/_today.php";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
    <?php 
include dirname(__FILE__) . "/res/html/mobileHtmlHead.html";
?>
		<title>Stundenplan</title>
	</head>
	<body class="metro">
		<header>
    		<nav class="navigation-bar dark fixed-top">
      			<nav class="navigation-bar-content">
        			<a href="./index.php" class="element"><span class="icon-arrow-left-5"></span> <?php 
echo $string['links']['a.timetable'];
?>
<sup>online</sup></a>
      			</nav>
    		</nav>
  		</header>
        <h1><?php 
echo $string['labels']['l.today'];
?>
</h1><br/>  
        <?php 
echo loadStundenplan();
?>
  	</body>
</html>