From dc140b6cc06770454487a690d09d40a0ba8384e7 Mon Sep 17 00:00:00 2001 From: urs_hunkler <urs_hunkler> Date: Tue, 18 Jan 2005 11:11:26 +0000 Subject: [PATCH] _ added ids for the layout table --- course/format/social/format.php | 14 ++++++------- course/format/topics/format.php | 8 ++++---- course/format/weeks/format.php | 36 ++++++++++++++++----------------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/course/format/social/format.php b/course/format/social/format.php index ca658c7619..9ba376ef52 100644 --- a/course/format/social/format.php +++ b/course/format/social/format.php @@ -1,6 +1,6 @@ -<?php - // format.php - course format featuring social forum - // included from view.php +<?php // $Id$ + // format.php - course format featuring social forum + // included from view.php require_once("$CFG->dirroot/mod/forum/lib.php"); require_once("$CFG->dirroot/mod/resource/lib.php"); @@ -22,16 +22,16 @@ $strgroupmy = get_string("groupmy"); $editing = isediting($course->id); - echo '<table width="100%" border="0" cellspacing="5" cellpadding="5">'; + echo '<table width="100%" border="0" cellspacing="5" cellpadding="5"> id="layout-table"'; echo '<tr>'; if(blocks_have_content($pageblocks[BLOCK_POS_LEFT]) || $editing) { - echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;">'; + echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;" id="left-column">'; blocks_print_group($PAGE, $pageblocks[BLOCK_POS_LEFT]); echo '</td>'; } - echo "<td width=\"*\" valign=\"top\">"; + echo '<td valign="top" width="*" id="middle-column">'; if ($social = forum_get_course_forum($course->id, "social")) { if (forum_is_subscribed($USER->id, $social->id)) { $subtext = get_string("unsubscribe", "forum"); @@ -55,7 +55,7 @@ // The right column if(blocks_have_content($pageblocks[BLOCK_POS_RIGHT]) || $editing) { - echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">'; + echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;" id="right-column">'; blocks_print_group($PAGE, $pageblocks[BLOCK_POS_RIGHT]); if ($editing && !empty($missingblocks)) { blocks_print_adminblock($PAGE, $missingblocks); diff --git a/course/format/topics/format.php b/course/format/topics/format.php index a54cca31e8..903517cccc 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -57,20 +57,20 @@ /// Layout the whole page as three big columns. - echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">"; + echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\" id=\"layout-table\">"; echo "<tr valign=\"top\">\n"; /// The left column ... if(blocks_have_content($pageblocks[BLOCK_POS_LEFT]) || $editing) { - echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;">'; + echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;" id="left-column">'; blocks_print_group($PAGE, $pageblocks[BLOCK_POS_LEFT]); echo '</td>'; } /// Start main column - echo '<td valign="top">'; + echo '<td valign="top" width="*" id="middle-column">'; print_heading_block(get_string("topicoutline"), "100%", "outlineheadingblock"); print_spacer(8, 1, true); @@ -271,7 +271,7 @@ // The right column if(blocks_have_content($pageblocks[BLOCK_POS_RIGHT]) || $editing) { - echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">'; + echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;" id="right-column">'; blocks_print_group($PAGE, $pageblocks[BLOCK_POS_RIGHT]); if ($editing && !empty($missingblocks)) { blocks_print_adminblock($PAGE, $missingblocks); diff --git a/course/format/weeks/format.php b/course/format/weeks/format.php index 3b54b5b722..f8e07aa8c5 100644 --- a/course/format/weeks/format.php +++ b/course/format/weeks/format.php @@ -48,20 +48,20 @@ /// Layout the whole page as three big columns. - echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">"; + echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\" id=\"layout-table\">"; echo "<tr valign=\"top\">\n"; /// The left column ... if(blocks_have_content($pageblocks[BLOCK_POS_LEFT]) || $editing) { - echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;">'; + echo '<td style="vertical-align: top; width: '.$preferred_width_left.'px;" id="left-column">'; blocks_print_group($PAGE, $pageblocks[BLOCK_POS_LEFT]); echo '</td>'; } /// Start main column - echo '<td valign="top">'; + echo '<td valign="top" width="*" id="middle-column">'; print_heading_block(get_string("weeklyoutline"), "100%", "outlineheadingblock"); print_spacer(8, 1, true); @@ -172,33 +172,33 @@ echo "<td nowrap=\"nowrap\" $colorsides valign=\"top\" width=\"20\">"; echo "<p align=\"center\"><font size=\"3\"><a name=\"$section\">$section</a></font></p>"; echo "</td>"; - + echo "<td valign=\"top\" $colormain width=\"100%\">"; - + if (!isteacher($course->id) and !$thissection->visible) { // Hidden for students echo "<p class=\"weeklydatetext\">$weekday - $endweekday "; echo "(".get_string("notavailable").")"; echo "</p>"; echo "</td>"; - + } else { - + echo "<p class=\"weeklydatetext\">$weekday - $endweekday</p>"; - + $summaryformatoptions->noclean = true; echo format_text($thissection->summary, FORMAT_HTML, $summaryformatoptions); - + if (isediting($course->id)) { echo " <a title=\"$streditsummary\" href=\"editsection.php?id=$thissection->id\">". "<img src=\"$CFG->pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\" /></a><br /><br />"; } - + print_section($course, $thissection, $mods, $modnamesused); - + if (isediting($course->id)) { print_section_add_menus($course, $section, $modnames); } - + echo "</td>"; } echo "<td nowrap=\"nowrap\" $colorsides valign=\"top\" align=\"center\" width=\"10\">"; @@ -212,7 +212,7 @@ echo "<a href=\"view.php?id=$course->id&week=$section\" title=\"$strshowonlyweek\">". "<img src=\"$CFG->pixpath/i/one.gif\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" /></a><br />"; } - + if (isediting($course->id)) { if ($thissection->visible) { // Show the hide/show eye echo "<a href=\"view.php?id=$course->id&hide=$section&sesskey=$USER->sesskey\" title=\"$strweekhide\">". @@ -221,19 +221,19 @@ echo "<a href=\"view.php?id=$course->id&show=$section&sesskey=$USER->sesskey\" title=\"$strweekshow\">". "<img src=\"$CFG->pixpath/i/show.gif\" vspace=\"3\" height=\"16\" width=\"16\" border=\"0\" alt=\"\" /></a><br />"; } - + if ($section > 1) { // Add a arrow to move section up echo "<a href=\"view.php?id=$course->id&section=$section&move=-1&sesskey=$USER->sesskey\" title=\"$strmoveup\">". "<img src=\"$CFG->pixpath/t/up.gif\" vspace=\"3\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a><br />"; } - + if ($section < $course->numsections) { // Add a arrow to move section down echo "<a href=\"view.php?id=$course->id&section=$section&move=1&sesskey=$USER->sesskey\" title=\"$strmovedown\">". "<img src=\"$CFG->pixpath/t/down.gif\" vspace=\"3\" height=\"11\" width=\"11\" border=\"0\" alt=\"\" /></a><br />"; } - + } - + echo "</font>"; echo "</td>"; echo "</tr>"; @@ -257,7 +257,7 @@ // The right column if(blocks_have_content($pageblocks[BLOCK_POS_RIGHT]) || $editing) { - echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;">'; + echo '<td style="vertical-align: top; width: '.$preferred_width_right.'px;" id="right-column">'; blocks_print_group($PAGE, $pageblocks[BLOCK_POS_RIGHT]); if ($editing && !empty($missingblocks)) { blocks_print_adminblock($PAGE, $missingblocks); -- 2.39.5