3
3
require("config.php");
4
4
require("tools.php");
7
6
header("Content-Type: application/xhtml+xml; charset=UTF-8");
8
7
header("Content-Type: text/html; charset=UTF-8");
9
8
header("Cache-Control: no-cache, must-revalidate");
10
9
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
11
if (!isset($_GET["minimal"])) {
12
if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone") || strpos($_SERVER['HTTP_USER_AGENT'],"iPod") || strpos($_SERVER['HTTP_USER_AGENT'],"iPad") || ereg('iPhone',$_SERVER['HTTP_USER_AGENT']) || ereg('iPod',$_SERVER['HTTP_USER_AGENT'])) {
13
$host = $_SERVER['HTTP_HOST'];
14
$uri = rtrim(dirname($_SERVER['PHP_SELF']), "/\\");
15
$extra = 'index.php?minimal=iAdei';
16
header("Location: http://$host$uri/$extra");
12
20
if (isset($_GET["minimal"])) {
13
21
if ($_GET["minimal"]) $minimal = $_GET["minimal"];
14
22
else $minimal = true;
15
23
unset($_GET["minimal"]);
16
24
} else $minimal = false;
26
$ADEI_MODE = $minimal;
20
29
switch ($minimal) {
55
63
$no_header = false;
67
if (!in_array("settings", $MODULES)) array_push($MODULES, "settings");
68
$config_module = "wiki";
69
$allowed_modules = array("slowcontrol", "alarms", "graph", "wiki", "settings");
70
$allowed_popups = array("source", "export");
71
$displayed_popups = array();
59
76
$config_module = "graph";
60
77
$allowed_modules = array($config_module);
93
109
$_SESSION['setup'] = $ADEI_SETUP;
113
require("module.php");
95
116
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
96
117
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
98
119
<title>ADEI (Advanced Data Extraction Infrastructure) </title>
99
<meta name = "viewport" content = "user-scalable=no, initial-scale = 1.0, maximum-scale = 1.0, minimum-scale = 1.0" />
100
<meta name = "apple-mobile-web-app-capable" content = "yes" />
101
<link rel="stylesheet" type="text/css" href="adei.css"/> <?/* Should be first, otherwise cssSetProperty would not work */?>
102
<? if (file_exists($SETUP_CSS)) {?>
103
<link rel="stylesheet" type="text/css" href="<?echo $SETUP_CSS;?>"/>
121
<meta name = "viewport" content = "user-scalable=no, initial-scale = 1.0, maximum-scale = 1.0, minimum-scale = 1.0" />
122
<meta name="apple-touch-fullscreen" content="YES" />
123
<meta name="apple-mobile-web-app-capable" content="yes" />
124
<meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
125
<link rel="stylesheet" type="text/css" href="iadei.css"/> <?/* Should be first, otherwise cssSetProperty would not work */?>
126
<link rel="stylesheet" type="text/css" href="includes/sw/spinningwheel.css"/>
128
<link rel="stylesheet" type="text/css" href="adei.css"/> <?/* Should be first, otherwise cssSetProperty would not work */?>
131
if (file_exists($SETUP_CSS)) {?>
132
<link rel="stylesheet" type="text/css" href="<?echo $SETUP_CSS;?>"/>
105
134
<link rel="stylesheet" type="text/css" href="includes/dhtmlx/skins/dhtmlxmenu_<?=$DHTMLX_SKIN;?>.css"/>
106
135
<link rel="stylesheet" type="text/css" href="includes/dhtmlx/dhtmlxtree.css"/>
112
141
<script type="text/javascript" src="includes/prototype.js"></script>
113
142
<script type="text/javascript" src="includes/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop"></script>
114
143
<script type="text/javascript" src="includes/cropper/cropper.js"></script>
117
146
This causes Ajax.Request (prototype) to return on 'onSuccess' handler
118
147
status=0 (should be 200) and undefined responseText.
176
206
<script type="text/javascript" ev:event="onload">
178
208
function Geometry() {
209
/* DS: Do we need this? */
179
210
if (typeof adei == "undefined") return;
181
212
var new_width = windowGetWidth();
182
213
var new_height = windowGetHeight();
183
214
<?moduleAdjustGeometry("new_width", "new_height");?>
224
255
adei.Start('<?echo $config_module;?>', <?echo $AJAX_UPDATE_RATE;?>);
258
function Navigate(btn) {
259
if(btn != "settings") {
260
adei.OpenModule(btn);
262
adei.SetConfiguration("p_id=main");
263
adei.OpenModule(btn);
264
adei.updater.Update();
230
<body onload="javascript:Startup()" onresize="Geometry()">
271
<body onload="javascript:Startup()" onresize="Geometry()" onorientationchange="Geometry()">
231
272
<div class="all ales">
232
273
<?if (!$no_menu) {?>
233
274
<div class="menu_button"><div id="menu_zone"></div></div>
235
277
<?if (!$no_header) {?>
236
278
<div id="header_div" class="header">
237
279
<table width="100%" cellspacing="0" cellpadding="0"><tr>
295
<div id="header_div" class="iheader">
296
<table><tr><td><button class="settingsbtn" id="settingsbutton" onclick="javascript:Navigate('settings');"></button></td><td><h1 class="ADEIhead">ADEI</h1></td></tr></table>
297
<select class="moduleSelector" onChange='javascript:Navigate(this.options[this.selectedIndex].value);' name="modsel" id="modsel">
299
if($allowed_modules){
300
for($i = 0; $i<sizeof($allowed_modules);$i++){
301
echo"<option value='$allowed_modules[$i]'>";
302
if (isset($GLOBALS[$allowed_modules[$i] . "_title"])) echo $GLOBALS[$allowed_modules[$i] . "_title"];
303
else echo"$allowed_modules[$i]";
251
313
<div><table align="center" cellspacing="0" cellpadding="0">
252
314
<?/*<tr><td colspan="2"></td></tr>*/?>
253
315
<tr><td id="main_sidebar"><div>