index.php 1.2 KB
Newer Older
martin's avatar
martin committed
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
<?  // $Id$
    // index.php - the front page.
    
    require("config.php");

    if (! $site = get_record("course", "category", 0)) {
        redirect("$CFG->wwwroot/admin/");
    }

    print_header("$site->fullname", "$site->fullname", "", "");

?>

<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
  <TR>
    <TD WIDTH="15%" VALIGN="TOP" NOWRAP>
      <? print_simple_box("Main Menu", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>

	  <LI>Home</LI>
      <LI><A TITLE="Available courses on this server" HREF="course/">Courses</A></LI>

      <? include("mod/reading/lib.php"); 
         list_all_readings();
      ?>

    </TD>

    <TD WIDTH="55%" VALIGN="TOP">
      <? print_simple_box("Site News", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>

      <BR>

      <? include("mod/discuss/lib.php");
         forum_latest_topics();
      ?>
    
    </TD>
    <TD WIDTH="30%" VALIGN="TOP"> 
      <? print_simple_box($site->summary, $align="", $width="100%", $color="$THEME->cellheading"); ?>
    </TD>
  </TR>
</TABLE>

<HR SIZE=1 NOSHADE>


<P ALIGN=center>
<A WIDTH=85 HEIGHT=25 HREF="http://moodle.com/"><IMG SRC="pix/madewithmoodle.gif" BORDER=0></A>
</P>