Skip to content
Browse files

cleaned up the left menu feature output by removing an unused form an…

…d several unnecessary string concatenations
  • Loading branch information...
1 parent fbf7e28 commit aeade7e2271945f20e0c1191188a83603b3ac39f mark-nielsen committed Mar 19, 2006
Showing with 18 additions and 28 deletions.
  1. +9 −14 mod/lesson/action/continue.php
  2. +9 −14 mod/lesson/view.php
View
23 mod/lesson/action/continue.php
@@ -15,20 +15,15 @@
echo '<table><tr valign="top"><td>';
// skip navigation link
echo '<a href="#maincontent" class="skip">'.get_string('skip', 'lesson').'</a>';
- echo '<form name="lessonpages2" method="post" action="view.php">'."\n";
- echo '<input type="hidden" name="id" value="'. $cm->id .'" />'."\n";
- echo '<input type="hidden" name="action" value="navigation" />'."\n";
- echo '<input type="hidden" name="pageid" />'."\n";
- echo '<div class="leftmenu_container">'."\n";
- echo '<div class="leftmenu_title">'.get_string('lessonmenu', 'lesson').'</div>'."\n";
- echo '<div class="leftmenu_courselink">';
- echo "<a href=\"../../course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a>";
- echo '</div>'."\n";
- echo '<div class="leftmenu_links">'."\n";
- lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id);
- echo '</div>'."\n";
- echo '</div>'."\n";
- echo '</form>'."\n";
+ echo "<div class=\"leftmenu_container\">\n";
+ echo '<div class="leftmenu_title">'.get_string('lessonmenu', 'lesson')."</div>\n";
+ echo "<div class=\"leftmenu_courselink\">\n";
+ echo "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a>\n";
+ echo "</div>\n";
+ echo "<div class=\"leftmenu_links\">\n";
+ lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id);
+ echo "</div>\n";
+ echo "</div>\n";
echo '</td><td align="center" width="100%">';
// skip to anchor
echo '<a name="maincontent" id="maincontent" title="'.get_string('anchortitle', 'lesson').'"></a>';
View
23 mod/lesson/view.php
@@ -438,20 +438,15 @@
echo '<a href="#maincontent" class="skip">'.get_string('skip', 'lesson').'</a>';
if($firstpageid = get_field('lesson_pages', 'id', 'lessonid', $lesson->id, 'prevpageid', 0)) {
// print the pages
- echo '<form name="lessonpages2" method="post" action="view.php">'."\n";
- echo '<input type="hidden" name="id" value="'. $cm->id .'" />'."\n";
- echo '<input type="hidden" name="action" value="navigation" />'."\n";
- echo '<input type="hidden" name="pageid" />'."\n";
- echo '<div class="leftmenu_container">'."\n";
- echo '<div class="leftmenu_title">'.get_string('lessonmenu', 'lesson').'</div>'."\n";
- echo '<div class="leftmenu_courselink">';
- echo "<a href=\"../../course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a>";
- echo '</div>'."\n";
- echo '<div class="leftmenu_links">'."\n";
- lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id);
- echo '</div>'."\n";
- echo '</div>'."\n";
- echo '</form>'."\n";
+ echo "<div class=\"leftmenu_container\">\n";
+ echo '<div class="leftmenu_title">'.get_string('lessonmenu', 'lesson')."</div>\n";
+ echo '<div class="leftmenu_courselink">';
+ echo "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a>\n";
+ echo "</div>\n";
+ echo "<div class=\"leftmenu_links\">\n";
+ lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id);
+ echo "</div>\n";
+ echo "</div>\n";
}
if ($page->qtype == LESSON_BRANCHTABLE) {
$width = '';

0 comments on commit aeade7e

Please sign in to comment.
Something went wrong with that request. Please try again.