File: header.html

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (74 lines) | stat: -rw-r--r-- 2,628 bytes parent folder | download | duplicates (2)
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
<!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/'.current_theme()   ?>/favicon.ico" />
    <?php include("$CFG->javascript"); ?>
</head>

<body background="<?php echo $CFG->httpswwwroot.'/theme/'.current_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->httpswwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">

        <tr>

        <td valign="top" class="headermain"><?php echo $heading ?></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->httpswwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
        <tr>
        <td valign="top"><?php echo $heading ?></td>
        <td align="right" sty class="headermain"le="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->httpswwwroot?>/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">