Files
HotLunches/default.header.html
T
2026-10-19 15:22:52 -07:00

144 lines
5.0 KiB
HTML

<?php
//if ($user_ip == '70.70.168.245') {
// echo($http_host . "<br>\n");
// echo(mysql_num_rows($results) . "<br>\n");
// exit;
//}
require_once "include/globals.php";
$SiteTitle = "Hot Lunches - " . $school_record['school_name'];
// Set colour scheme
$colourcss = $school_record['colour_scheme'];
// Setup screen background
$background = "background: ";
if (strlen($school_record['bg_color'])) {
if (preg_match("/^#/",$school_record['bg_color'])) $background .= $school_record['bg_color'];
else $background .= "#" . $school_record['bg_color'];
}
else {
$background .= "#000000";
}
if (strlen($school_record['background'])) {
$background .= " url(/admin/backgrounds/" . $school_record['background'] . ") top center fixed";
}
$background .= ";\n";
$DBtitle = "";
if ($currentDBMode != "Standard") $DBtitle = "$currentDBMode DB &nbsp;&nbsp;&nbsp;";
// Check if there is a calendar css file for this colour
$calCSS = "css/Calendar.$colourcss";
if (! is_file($calCSS)) {
$calCSS = "css/Calendar.black.css";
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?php echo($SiteTitle) ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<style type="text/css">
<!--
body{
margin: 0 auto 20px auto;
text-align: center;
padding: 0;
font: 12px Arial, Helvetica, sans-serif;
<?php echo($background) ?>
width: 965px
}
-->
</style>
<link rel="stylesheet" href="css/master.css" type="text/css">
<link rel="stylesheet" href="css/calendar.css" type="text/css">
<link rel="stylesheet" href="css/layout.css" type="text/css">
<link rel="stylesheet" href="css/top-bar.css" type="text/css">
<link rel="stylesheet" type="text/css" href="css/primary-nav.css">
<link rel="stylesheet" type="text/css" href="css/secondary-nav.css">
<link rel="stylesheet" href="css/buttons.css" type="text/css">
<link rel="stylesheet" href="css/<?php echo($colourcss) ?>" type="text/css">
<link rel="stylesheet" href="<?php echo($calCSS) ?>" type="text/css">
<link rel="stylesheet" href="css/dhtmlwindow.css" type="text/css">
<script type="text/javascript" src="include/javascript.js"></script>
<script type="text/javascript" src="include/dhtmlwindow.js"></script>
<script type="text/javascript" src="include/wz_tooltip.js"></script>
<?php if (isset($action) && $action == 'photo-gallery') { ?>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen">
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<?php } ?>
<script language= "JavaScript">
<!--Break out of frames
if (window != top) top.location.href = location.href;
//-->
</script>
<script type="text/javascript">
function languageWindow(code) {
var cmd = 'lang.edit.php?id='+code+'';
var langwin=dhtmlwindow.open("langbox","iframe",cmd,"On-Line Help","width=590px,height=350px,resize=1,scrolling=1,center=1");
}
</script>
<SCRIPT TYPE="text/javascript" LANGUAGE="javascript">
// <!-- Begin
function waitPreloadPage() {
if (document.getElementById){ //DOM
document.getElementById('prepage').style.visibility='hidden';
}else{
if (document.layers){ //NS4
document.prepage.visibility = 'hidden';
}
else { //IE4
document.all.prepage.style.visibility = 'hidden';
}
}
}
// End -->
</SCRIPT>
</head>
<body onLoad="waitPreloadPage();">
<DIV id="prepage" style="position:absolute; left:0px; top:0px; background-color:white; opacity: 0.8; layer-background-color:white; height:100%; width:100%;">
<table width='100%'>
<tr height='200'>
<td align='center' class='loading'>Page Loading...</td>
</tr>
</table>
</DIV>
<div id="wrapper">
<div id="header">
<div id="top-bar">
<table width='100%'>
<tr>
<td align='left'>&nbsp;&nbsp;&nbsp;&nbsp;<a href='http://www.hotlunches.net/'><img src='/admin/images/logo.gif' width='213' height='32' border='0'></a></td>
<td align='right' valign='middle'><?php echo($DBtitle) ?>
<?php if (UserLoggedIn()) { ?>
Welcome: <?php echo($_SESSION['UserInfo']['userid']) ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php } ?>
</td>
</tr>
</table>
</div>
</div>
<div id='body'>
<?php if (isset($school_record)) { ?>
<table cellpadding="0" cellspacing="0" align="left">
<tr height='30'>
<td width='40'>&nbsp;</td>
<td valign='top' class='large'><?php echo($school_record['application_title']) ?></td>
</tr>
</table>
<?php } ?>