moodle/theme/cornflower/header.html
2005-04-26 01:56:11 +00:00

75 lines
2.6 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html<?php echo $direction ?>>
<head>
<?php echo $meta ?>
<meta name="keywords" content="moodle, <?php echo $title ?> " />
<title><?php echo $title ?></title>
<link rel="shortcut icon" href="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/favicon.ico" />
<?php include("$CFG->javascript"); ?>
</head>
<body background="<?php echo "$CFG->wwwroot/theme/$CFG->theme/images/bg.gif" ?>" <?php
echo " $bodytags";
if ($focus) {
echo " onload=\"setfocus()\"";
}
?>>
<table align="center" width="100%" border="2" cellpadding="0" cellspacing="0" bgcolor="#D0E2EE">
<tr><td>
<div id="page">
<?php if ($home) { // This is what gets printed on the home page only
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<table background="<?php echo "$CFG->wwwroot/theme/$CFG->theme/images/headerbg.jpg" ?>" width="100%" height="112" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" class="header1"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/images/logo.jpg" ?>" border="0">&nbsp;</td>
<td align="right" style="padding-right:5px" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
</tr>
</table></tr></td>
</table>
<?php } else if ($heading) { // This is what gets printed on any other page with a heading ?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<table background="<?php echo "$CFG->wwwroot/theme/$CFG->theme/images/headerbg.jpg" ?>" width="100%" height="112" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme/images/logo2.jpg" ?>" border="0">&nbsp;</td>
<td align="right" style="padding-right:5px" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
</tr>
</table>
</tr>
</td>
</table>
<?php } ?>
<div class="clearer">&nbsp;</div>
<?php if ($navigation) { // This is the navigation table with breadcrumbs ?>
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td><?php print_navigation("$navigation"); ?></td>
<td align="right" width="20" valign="top"><?php echo $button; ?></td>
</tr>
</table>
<img src="<?php echo $CFG->wwwroot?>/pix/spacer.gif" alt="" height="5" width="1" /><br />
<?php } else if ($heading) { // If no navigation, but a heading, then print a line
?>
<?php } ?>
<div class="clearer">&nbsp;</div>
<!-- END OF HEADER -->
<div id="content">