moodle/theme/poweraid/header.html

148 lines
8.9 KiB
HTML

<?php
/*
Filename: header.html
Purpose of file: Printing out the Moodle theme header
Author of file: Bjarne Varoystrand aka Black Skorpio
E-mail: webmaster@postnuke-sweden.com
Web: www.postnuke-sweden.com
ICQ: 1194177
---------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
*/
?>
<HTML<?php echo $direction?>>
<HEAD>
<?php echo $meta ?>
<TITLE><?php echo $title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?php echo $title ?> " />
<meta name="ROBOTS" content="INDEX,FOLLOW" />
<meta name="resource-type" content="document" />
<meta http-equiv="expires" content="0" />
<meta name="author" content="<?php echo $title ?>" />
<meta name="copyright" content="Copyright (c) 2003 by <?php echo $title ?>" />
<meta name="revisit-after" content="1 days" />
<meta name="distribution" content="Global" />
<meta name="generator" content="Moodle - http://moodle.com" />
<meta name="rating" content="General" />
<LINK REL="stylesheet" HREF="<?php echo $styles ?>" />
<LINK REL="SHORTCUT ICON" HREF="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/favicon.ico" />
</script>
<?php include("$CFG->javascript"); ?>
</HEAD>
<BODY <?php if ($focus) { echo "onLoad=setfocus()"; } echo " bgcolor=\"$THEME->body\" topmargin=\"$THEME->topmargin\" leftmargin=\"$THEME->leftmargin\" marginheight=\"$THEME->marginheight\" marginwidth=\"$THEME->marginwidth\" />"; ?>
<?php if ($home) { // This is what gets printed on the home page only ?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="6" ><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr>
<tr>
<td width="6" bgcolor="<?php echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="left" valign="top"><A TARGET="<?php echo $CFG->framename?>" HREF="<?php echo $CFG->wwwroot?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->frontlogo" ?>" border="0" /></A></td>
<td width="6" bgcolor="<?php echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="middle" width="100%">
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD ALIGN=LEFT VALIGN=middle>&nbsp;<FONT SIZE=4><B><?php echo $heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=middle><?php echo $menu ?>&nbsp;</TD>
</TR>
</TABLE>
</td>
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_right.gif" width="2" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr><tr>
<td width="6" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg" width="6" height="100" /></td>
<td align="left" valign="top">
<?php } else if ($heading) { // This is what gets printed on any other page with a heading ?>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr>
<tr>
<td width="6" bgcolor="<?php echo $THEME->body?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="left" valign="top"><A TARGET="<?php echo $CFG->framename?>" HREF="<?php echo $CFG->wwwroot ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/$THEME->smalllogo" ?>" border="0" /></A></td>
<td width="6" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_sidebar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_sidebar.jpg" width="6" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="middle">
<table WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD ALIGN=LEFT VALIGN=middle>&nbsp;<FONT SIZE=4><B><?php echo $heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=middle><?php echo $menu ?>&nbsp;</TD>
</TR>
</table>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR>
<TD BGCOLOR="<?php echo $THEME->cellheading?>" CLASS="navbar" VALIGN=middle>&nbsp;<FONT SIZE=2><B><?php print_navigation("$navigation"); ?></B></FONT></TD>
<TD BGCOLOR="<?php echo $THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?php echo $button ?></TD>
</TR>
</table>
<?php } ?>
</td>
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_right.gif" width="2" height="100%" /></td>
</tr>
</table><table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="1" bgcolor="<?php echo $THEME->themeborders?>"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/side_left.gif" width="2" height="100%" /></td>
<td align="center" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="<?php echo $THEME->themewidth?>">
<tr>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_corner_top.jpg" width="6" height="9" /></td>
<td valign="bottom" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/top_bar.jpg" width="1" height="9" /></td>
<td width="6"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/left_corner_top.jpg" width="6" height="9" /></td>
</tr><tr>
<td width="6" background="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg"><img src="<?php echo $CFG->wwwroot?>/theme/<?php echo $CFG->theme ?>/images/right_sidebar.jpg" width="6" height="100" /></td>
<td align="left" valign="top">
<?php } else { // This is what gets printed on any other page (no heading, not home page) ?>
<BLOCKQUOTE>
<?php } ?>
<!-- End of header -->