course-reports MDL-24173 Course reports now use the report page layout + minor tweaks...
authorSam Hemelryk <sam@moodle.com>
Thu, 2 Dec 2010 07:31:48 +0000 (07:31 +0000)
committerSam Hemelryk <sam@moodle.com>
Thu, 2 Dec 2010 07:31:48 +0000 (07:31 +0000)
course/report/completion/index.php
course/report/log/index.php
course/report/outline/index.php
course/report/progress/index.php
theme/serenity/style/core.css

index 631ad02..4a630b2 100644 (file)
@@ -48,7 +48,7 @@ $course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
 
 $url = new moodle_url('/course/report/completion/index.php', array('course'=>$course->id));
 $PAGE->set_url($url);
-$PAGE->set_pagelayout('standard');
+$PAGE->set_pagelayout('report');
 
 $firstnamesort = ($sort == 'firstname');
 $excel = ($format == 'excelcsv');
index c2a6081..df325b8 100644 (file)
@@ -49,7 +49,7 @@
     if ($chooselog !== 0) $params['chooselog'] = $chooselog;
     if ($logformat !== 'showashtml') $params['logformat'] = $logformat;
     $PAGE->set_url('/course/report/log/index.php', $params);
-    $PAGE->set_pagelayout('admin');
+    $PAGE->set_pagelayout('report');
 
     if ($hostid == $CFG->mnet_localhost_id) {
         if (!$course = $DB->get_record('course', array('id'=>$id))) {
index 6b1073e..5c151df 100644 (file)
@@ -47,7 +47,6 @@
 
     $outlinetable = new html_table();
     $outlinetable->attributes['class'] = 'generaltable boxaligncenter';
-    $outlinetable->attributes['style'] = 'width:2000px;';
     $outlinetable->cellpadding = 5;
     $outlinetable->id = 'outlinetable';
     $outlinetable->head = array($stractivity, $strviews);
index 374c330..c68c571 100644 (file)
@@ -53,7 +53,7 @@ if ($start !== 0) {
     $url->param('start', $start);
 }
 $PAGE->set_url($url);
-$PAGE->set_pagelayout('admin');
+$PAGE->set_pagelayout('report');
 
 require_login($course);
 
index e92ef14..911964e 100644 (file)
     border-top:1px solid #c1bc9d;
 }
 
+html {
+    background: none;
+}
+
 body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,input,textarea { 
     font-family: Georgia, "Times New Roman", Times, serif;
     color: #2a2513;
@@ -49,6 +53,12 @@ a:hover {
     margin: 1em 0.5em 0.75em;
 }
 
+/* Footer
+-------------------------*/
+#page-footer {
+    float:none;
+}
+
 /* Navbar 
 -------------------------*/