phpBMS

root/branches/brian-oo/header.php

Revision 261, 1.7 KB (checked in by brieb, 5 years ago)

Converted more BMS pages to new field format. Implemented #60

Line 
1<?php 
2        if(!isset($pageTitle)) $pageTitle = APPLICATION_NAME;
3?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml">
5<head>
6<title><?php echo $pageTitle ?></title>
7<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8<?php
9        $phpbms->cssIncludes = array_merge(array("base.css"),$phpbms->cssIncludes);
10        $phpbms->showCssIncludes();
11       
12        $tempjsarray[] = "common/javascript/common.js";
13        $tempjsarray[] = "include/jstransport.php";
14        $tempjsarray[] = "common/javascript/menu.js";
15        $tempjsarray[] = "common/javascript/moo/prototype.lite.js";
16        $tempjsarray[] = "common/javascript/moo/moo.fx.js";
17        $tempjsarray[] = "common/javascript/moo/moo.fx.pack.js";
18       
19        $phpbms->jsIncludes = array_merge($tempjsarray,$phpbms->jsIncludes);
20        $phpbms->showJsIncludes();
21       
22        $phpbms->topJS = array_merge(array("var spinner = new Image;spinner.src=+\"".APP_PATH."common/image/spinner.gif\";"),$phpbms->topJS);
23        if(PERSISTENT_LOGIN && isset($_SESSION["userinfo"]["id"]))
24                $phpbms->topJS[]="setLoginRefresh();";
25               
26        $phpbms->showExtraJs($phpbms->topJS);
27?>
28</head>
29<body <?php if($phpbms->onload) echo "onload=\"".$phpbms->onload."\""?>>
30<?php 
31
32if($phpbms->showMenu){
33        include("include/menu_class.php");
34       
35        $topMenu = new topMenu($db);
36        $topMenu->display();
37}
38
39//See if the statusmessage is set
40if (isset($statusmessage)) {?>
41<div id="statusmessage">
42        <div id="SMLeft">
43                <div id="SMText">
44                        <?php echo $statusmessage ?>
45                </div>
46        </div>
47</div><?php 
48        $phpbms->bottomJS[]='var statusM=getObjectFromID("statusmessage");
49var SMAni=new fx.Combo(statusM,{opacity:false,duration:500});
50SMAni.hide();
51statusM.style.display="block";
52SMAni.toggle();';
53} // end if
54
55?>
Note: See TracBrowser for help on using the browser.
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.