Initial revision
[moodle.git] / index.php
CommitLineData
f9903ed0 1<? // $Id$
2 // index.php - the front page.
3
4 require("config.php");
5
6 if (! $site = get_record("course", "category", 0)) {
7 redirect("$CFG->wwwroot/admin/");
8 }
9
10 print_header("$site->fullname", "$site->fullname", "", "");
11
12?>
13
14<TABLE WIDTH="100%" BORDER="0" CELLSPACING="5" CELLPADDING="5">
15 <TR>
16 <TD WIDTH="15%" VALIGN="TOP" NOWRAP>
17 <? print_simple_box("Main Menu", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>
18
19 <LI>Home</LI>
20 <LI><A TITLE="Available courses on this server" HREF="course/">Courses</A></LI>
21
22 <? include("mod/reading/lib.php");
23 list_all_readings();
24 ?>
25
26 </TD>
27
28 <TD WIDTH="55%" VALIGN="TOP">
29 <? print_simple_box("Site News", $align="CENTER", $width="100%", $color="$THEME->cellheading"); ?>
30
31 <BR>
32
33 <? include("mod/discuss/lib.php");
34 forum_latest_topics();
35 ?>
36
37 </TD>
38 <TD WIDTH="30%" VALIGN="TOP">
39 <? print_simple_box($site->summary, $align="", $width="100%", $color="$THEME->cellheading"); ?>
40 </TD>
41 </TR>
42</TABLE>
43
44<HR SIZE=1 NOSHADE>
45
46
47<P ALIGN=center>
48<A WIDTH=85 HEIGHT=25 HREF="http://moodle.com/"><IMG SRC="pix/madewithmoodle.gif" BORDER=0></A>
49</P>
50