From 39871851d4c76a1f52a5ddd8f1232b8d907b748b Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Wed, 12 Nov 2008 16:53:07 +0100 Subject: [PATCH] [svn r16729] first part of css cleanup (currently only the css/corporate style) --- index.php | 47 +++++++++++++++++++++++++++-------------------- user_portal.php | 31 ++++++++++++++----------------- 2 files changed, 41 insertions(+), 37 deletions(-) diff --git a/index.php b/index.php index 787469c469..b008fdb9b2 100644 --- a/index.php +++ b/index.php @@ -1,26 +1,33 @@ -, Ghent University, Refactoring -* @version $Id: index.php 16652 2008-10-31 21:37:21Z dperales $ +* @version $Id: index.php 16729 2008-11-12 15:53:07Z pcool $ * @todo check the different @todos in this page and really do them * @todo check if the news management works as expected */ @@ -69,7 +76,7 @@ $this_section = SECTION_CAMPUS; * this can be usefull when you are on an open course and you need to log in to edit something and you immediately want to check how anonymous users * will see it. */ -if (!empty($_GET['logout'])) +if (isset($_GET['action']) && $_GET['action'] == 'logout') { logout(); } @@ -163,7 +170,7 @@ Display :: display_header('', 'dokeos'); MAIN CODE ============================================================================== */ -echo '
'; +echo '
'; // Plugins for loginpage_main AND campushomepage_main if (!api_get_user_id()) @@ -408,7 +415,7 @@ function display_anonymous_right_menu() } if(api_number_of_plugins('loginpage_menu') > 0) { - echo '
'; + echo '
'; api_plugin('loginpage_menu'); echo '
'; } @@ -434,7 +441,7 @@ function display_anonymous_right_menu() if ($_user['user_id'] && api_number_of_plugins('campushomepage_menu') > 0) { - echo '
'; + echo '
'; api_plugin('campushomepage_menu'); echo '
'; } @@ -635,7 +642,7 @@ function display_anonymous_course_list() $thereIsSubCat = false; if (mysql_num_rows($resCats) > 0) { - $htmlListCat = "

".get_lang("CatList")."

"."
    "; + $htmlListCat = "

    ".get_lang("CatList")."

    "."
      "; while ($catLine = mysql_fetch_array($resCats)) { if ($catLine['code'] != $category) @@ -715,7 +722,7 @@ function display_anonymous_course_list() { $courses_list_string .= "
      \n"; } - $courses_list_string .= "

      ".get_lang("CourseList")."

      \n"."
        \n"; + $courses_list_string .= "

        ".get_lang("CourseList")."

        \n"."
          \n"; if (api_get_user_id()) { diff --git a/user_portal.php b/user_portal.php index 996015ec4e..985b7ccfdc 100644 --- a/user_portal.php +++ b/user_portal.php @@ -1,9 +1,10 @@ 0) { reset($digest); - $result .= '
            '; + $result .= ' +
              '; while (list ($key2) = each($digest[$thisCourseSysCode])) { $result .= '
            • '; @@ -772,7 +774,7 @@ if ($maxCourse > 0) } -echo '
              '; // start of content for logged in users +echo '
              '; // start of content for logged in users // Plugins for the my courses main area api_plugin('mycourses_main'); @@ -913,7 +915,8 @@ if ( is_array($list) ) { if ( empty($value[2]) ) { //if out of any session $userdefined_categories = get_user_course_categories(); - echo "
                \n"; + echo ' +
                  '; if ($old_user_category<>$value[0]) { @@ -921,12 +924,10 @@ if ( is_array($list) ) { { echo "\n
                "; } - echo "\n\n\t
                  " . - "
                • ".$userdefined_categories[$value[0]]."
                • " . - "
                \n"; + echo "\n\n\t
                • ".$userdefined_categories[$value[0]]."
                \n"; if ($key<>0 OR $value[0]<>0) // there are courses in the previous category { - echo "
                  "; + echo "
                    "; } $old_user_category=$value[0]; @@ -948,8 +949,8 @@ if ( is_array($list) ) { $old_user_category = 0; $userdefined_categories = get_user_course_categories(); - if ( count($listActives)>0 && $display_actives ) { //if it is worth showing a session section - echo '
                      ', "\n"; + if(count($listActives)>0 && $display_actives){ + echo "
                        \n"; foreach ($listActives as $key => $value) { @@ -1016,7 +1017,7 @@ api_session_register('status'); RIGHT MENU ============================================================================== */ -echo '