-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
class Help extends HTMLPage{ | ||
|
||
public function pagePrint(){ | ||
|
||
$cookies = null; | ||
$output = null; | ||
if (isset($_COOKIE['cookie'])) { | ||
foreach ($_COOKIE['cookie'] as $name => $value) { | ||
$name = htmlspecialchars($name); | ||
if ($name == 'previous') { | ||
$value = htmlspecialchars($value); | ||
$cookies = $value; | ||
} | ||
} | ||
} | ||
|
||
$navbar = ' | ||
<li><a hintas="Pateikiamos padalinių ir IS apkrovimo ataskaitos." href="?info=home/duom_anal">Duomenų analizė</a></li> | ||
<li><a hintas="Planuoja (vienos ar net kelių) paramos priemonių poveikį IS ir padalinių apkrovimui." href="?info=home/prognozes">Prognozės</a></li> | ||
<li><a hintas="Atsijungia nuo sistemos." href="?info=home/logout">Atsijungti</a></li> | ||
<li><a hintas="Parodo pagalbą esamam langui" href="?info=home/help">Help</a></li> | ||
'; | ||
$position = strpos($_SERVER['REQUEST_URI'], "info=home"); | ||
if ($position === false) { | ||
$navbar = ' | ||
<li><a hintas="Pateikiamos padalinių ir IS apkrovimo ataskaitos." href="?info=admin/duom_anal">Duomenų analizė</a></li> | ||
<li><a hintas="Planuoja (vienos ar net kelių) paramos priemonių poveikį IS ir padalinių apkrovimui." href="?info=admin/prognozes">Prognozės</a></li> | ||
<li><a hintas="Importuoti duomenis iš .xsl failo." href="?info=admin/import">Importuoti duomenis</a></li> | ||
<li><a hintas="Leidžia sukurti naują arba ištrinti jau esama vartotoją." href="?info=admin/vartotojai">Vartotojai</a></li> | ||
<li><a hintas="Atjungia nuo sistemos." href="?info=admin/logout">Atsijungti</a></li> | ||
<li><a hintas="Parodo pagalbą esamam langui" href="?info=admin/help">Help</a></li> | ||
'; | ||
} | ||
|
||
switch ($cookies) { | ||
case 'duom_anal': { | ||
$output = '<img src="Design/images/DuomenuAnalize.png" />'; | ||
break; | ||
} | ||
case 'prognozes': { | ||
$output = '<img src="Design/images/Prognozes.png" />'; | ||
break; | ||
} | ||
case 'import': { | ||
$output = '<img src="Design/images/ImportuotiDuomenis.png" />'; | ||
break; | ||
} | ||
case 'vartotojai': { | ||
$output = '<img src="Design/images/Vartotojai.png" />'; | ||
break; | ||
} | ||
} | ||
|
||
//$output | ||
|
||
$page =<<<FFF | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta name="keywords" content="" /> | ||
<meta name="description" content="" /> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<title>Pagalba</title> | ||
<link href="Design/style.css" rel="stylesheet" type="text/css" media="screen" /> | ||
<script src="jquery-1.7.min.js"></script> | ||
<script src="JS/functions.js"></script> | ||
</head> | ||
<body> | ||
<div id="wrapper"> | ||
<div id="header" class="container"> | ||
<div id="menu"> | ||
<ul> | ||
{$navbar} | ||
</ul> | ||
</div> | ||
<div class="hintPanel"> | ||
<p id="hint"></p> | ||
</div> | ||
</div> | ||
<!-- end #header --> | ||
<div id="page" class="container"> | ||
<div class="helpImage"> | ||
{$output} | ||
</div> | ||
</div> | ||
<!-- end #page --> | ||
</div> | ||
<div id="footer"> | ||
<p>Copyright (c) 2011. All rights reserved.</p> | ||
</div> | ||
<!-- end #footer --> | ||
</body> | ||
</html> | ||
FFF; | ||
echo $page; | ||
} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters