forked from weex/phpBMS
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheader.php
78 lines (66 loc) · 2.08 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
if(!isset($pageTitle))
$pageTitle = APPLICATION_NAME;
if(!isset($phpbms))
exit();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $pageTitle ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<?php
$phpbms->cssIncludes = array_merge(array("base.css"),$phpbms->cssIncludes);
$phpbms->showCssIncludes();
$tempjsarray[] = "common/javascript/common.js";
$tempjsarray[] = "common/javascript/menu.js";
$tempjsarray[] = "include/jstransport.php";
$tempjsarray[] = "common/javascript/moo/prototype.lite.js";
$tempjsarray[] = "common/javascript/moo/moo.fx.js";
$tempjsarray[] = "common/javascript/moo/moo.fx.pack.js";
$phpbms->jsIncludes = array_merge($tempjsarray,$phpbms->jsIncludes);
$phpbms->showJsIncludes();
if(PERSISTENT_LOGIN && isset($_SESSION["userinfo"]["id"]))
$phpbms->topJS[]="setLoginRefresh();";
$phpbms->showExtraJs($phpbms->topJS);
if($phpbms->onload) {
?><script language="JavaScript" type="text/javascript">
connect(window,"onload",function() {
<?php
foreach($phpbms->onload as $theextra)
echo $theextra."\n";
?>
})
</script><?php
}//end if onload
?>
</head>
<body>
<?php
if($phpbms->showMenu){
include("include/menu_class.php");
$topMenu = new topMenu($db);
$topMenu->display();
//See if the statusmessage is set
if (isset($statusmessage)) {?>
<div id="statusmessage">
<div id="SMLeft">
<div id="SMText">
<?php echo $statusmessage ?>
</div>
</div>
</div><?php
$phpbms->bottomJS[]='var statusM=getObjectFromID("statusmessage");
var SMAni=new fx.Combo(statusM,{opacity:false,duration:500});
SMAni.hide();
statusM.style.display="block";
SMAni.toggle();';
} // end if
?>
<noscript>
<div class="bodyline">
<h1>JavaScript Disabled</h1>
<p>phpBMS requires JavaScript to be enabled.</p>
</div>
</noscript><?php
}//end if showMenu
?>