From 96965deeeca70be493fe444d2a5b76411cde763e Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 21 May 2009 21:28:16 +0200 Subject: [PATCH] [svn r20933] Added Display::display_reduced_header() Changed exercise_show and exercice_submit to use correct HTML header (use course stylesheet instead of platform stylesheet) --- main/exercice/exercice_submit.php | 29 ++++------------------------- main/exercice/exercise_show.php | 5 +++-- main/inc/lib/display.lib.php | 10 ++++++++++ 3 files changed, 17 insertions(+), 27 deletions(-) diff --git a/main/exercice/exercice_submit.php b/main/exercice/exercice_submit.php index bf89e4863d..3b182dd43a 100644 --- a/main/exercice/exercice_submit.php +++ b/main/exercice/exercice_submit.php @@ -1,5 +1,5 @@  '; /* * HTML HEADER */ -?> - - - - - - - - - - - '; } // I'm in a preview mode diff --git a/main/exercice/exercise_show.php b/main/exercice/exercise_show.php index a2764da9c5..1c947b774b 100644 --- a/main/exercice/exercise_show.php +++ b/main/exercice/exercise_show.php @@ -4,7 +4,7 @@ * * @package dokeos.exercise * @author Julio Montoya Armas Added switchable fill in blank option added -* @version $Id: exercise_show.php 20843 2009-05-19 17:19:12Z cvargas1 $ +* @version $Id: exercise_show.php 20933 2009-05-21 19:28:16Z yannoo $ * * @todo remove the debug code and use the general debug library * @todo use the Database:: functions @@ -118,6 +118,8 @@ if($origin=='user_course') { if ($origin != 'learnpath') { Display::display_header($nameTools,"Exercise"); +} else { + Display::display_reduced_header(); } $emailId = $_REQUEST['email']; $user_name = $_REQUEST['user']; @@ -139,7 +141,6 @@ $id = $_REQUEST['id']; --> -