mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
fixed up leftmenu some more
This commit is contained in:
parent
029db9ee2d
commit
49584784ac
4 changed files with 2074 additions and 2064 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
require("../../config.php");
|
||||
require("locallib.php");
|
||||
require_once("styles.php");
|
||||
//require_once("styles.php");
|
||||
|
||||
|
||||
$id = required_param('id', PARAM_INT); // Course Module ID
|
||||
|
@ -39,7 +39,7 @@
|
|||
error("Course module is incorrect");
|
||||
}
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
require_login($course->id);
|
||||
|
||||
// set up some general variables
|
||||
$usehtmleditor = can_use_html_editor();
|
||||
|
@ -57,7 +57,7 @@
|
|||
print_header("$course->shortname: $lesson->name", "$course->fullname",
|
||||
"$navigation <A HREF=index.php?id=$course->id>$strlessons</A> ->
|
||||
<A HREF=\"view.php?id=$cm->id\">$lesson->name</A>",
|
||||
"", "", true);
|
||||
"", "<style type=\"text/css\">@import url($CFG->wwwroot/mod/lesson/styles.php);</style>", true);
|
||||
|
||||
//...get the action
|
||||
$action = required_param('action');
|
||||
|
@ -627,18 +627,18 @@
|
|||
if($firstpageid = get_field('lesson_pages', 'id', 'lessonid', $lesson->id, 'prevpageid', 0)) {
|
||||
echo '<table><tr valign="top"><td>';
|
||||
// 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 "<table class=\"lessonside\" width=\"140px\">";
|
||||
echo "<tr><td>".get_string("lessonmenu", "lesson")."</td></tr>";
|
||||
echo '<tr><td class="lessonmain">';
|
||||
echo "<a href=\"../../course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a></td></tr>";
|
||||
echo "<td class=\"leftmenu\">";
|
||||
echo '<form name="lessonpages2" method="post" action="view.php">';
|
||||
echo '<input type="hidden" name="id" value="'. $cm->id .'" />';
|
||||
echo '<input type="hidden" name="action" value="navigation" />';
|
||||
echo '<input type="hidden" name="pageid" />';
|
||||
echo "<table><tr><td valign=\"top\">";
|
||||
echo "<div class=\"leftmenutable\">".get_string('lessonmenu', 'lesson')."<br />";
|
||||
echo "<div class=\"main\">";
|
||||
echo "<a href=\"../../course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a><br />"; echo "</div>";
|
||||
echo '<div class="leftmenu">';
|
||||
lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id);
|
||||
echo "</td></tr></table>";
|
||||
echo "</form>";
|
||||
echo '</div></div></td></tr></table>'; //close lmlinks
|
||||
echo '</form>';
|
||||
echo '</td><td align="center" width="100%">';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<!-- define a new instance of lesson -->
|
||||
<!-- It is used from /course/mod.php. The whole instance is available as $form. -->
|
||||
<?php
|
||||
require_once("styles.php");
|
||||
echo "<style type=\"text/css\">@import url($CFG->wwwroot/mod/lesson/styles.php);</style>";
|
||||
require("$CFG->dirroot/mod/lesson/locallib.php"); // for parameter array
|
||||
if ($form->mode == "add") {
|
||||
if ($defaults = get_record("lesson_default", "course", $form->course)) {
|
||||
|
@ -483,7 +483,7 @@ if ($form->mode == "add") {
|
|||
<?php
|
||||
} // end if statement if ($form->mode != "add") {
|
||||
?>
|
||||
<?php print_visible_setting($form); ?>
|
||||
|
||||
</table>
|
||||
<!-- These hidden variables are always the same -->
|
||||
<input type="hidden" name="course" value="<?php p($form->course) ?>" />
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<style type="text/css">
|
||||
<?php
|
||||
require_once("../../config.php");
|
||||
?>
|
||||
|
||||
img {
|
||||
border:0;
|
||||
|
@ -15,15 +17,23 @@ img {
|
|||
.footer a:link, .footer v:link, .footer a:visited {
|
||||
}
|
||||
|
||||
.leftmenutable {
|
||||
width:170px;
|
||||
height:400px;
|
||||
overflow:auto;
|
||||
background-color: <?PHP echo $THEME->cellheading2 ?>;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.leftmenu a:link, .leftmenu a:active, .leftmenu a:visited, .leftmenu1 a:link, .leftmenu1 a:active, .leftmenu1 a:visited{
|
||||
font-size:.7em;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.main a:link, .main a:active, .main a:visited{
|
||||
font-size:.9em;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.viewpos {
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
error('Course module is incorrect');
|
||||
}
|
||||
|
||||
require_login($course->id, true, $cm);
|
||||
require_login($course->id);
|
||||
|
||||
/// Print the page header
|
||||
|
||||
|
@ -338,13 +338,13 @@
|
|||
echo '<input type="hidden" name="id" value="'. $cm->id .'" />';
|
||||
echo '<input type="hidden" name="action" value="navigation" />';
|
||||
echo '<input type="hidden" name="pageid" />';
|
||||
echo "<table width=\"140px\">";
|
||||
echo "<tr><td>".get_string('lessonmenu', 'lesson') .'</td></tr>';
|
||||
echo "<tr><td class=\"main\">";
|
||||
echo "<a href=\"../../course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a></td></tr>";
|
||||
echo '<td class="leftmenu">';
|
||||
echo "<table><tr><td valign=\"top\">";
|
||||
echo "<div class=\"leftmenutable\">".get_string('lessonmenu', 'lesson')."<br />";
|
||||
echo "<div class=\"main\">";
|
||||
echo "<a href=\"../../course/view.php?id=$course->id\">".get_string("mainmenu", "lesson")."</a><br />"; echo "</div>";
|
||||
echo '<div class="leftmenu">';
|
||||
lesson_print_tree_menu($lesson->id, $firstpageid, $cm->id);
|
||||
echo '</td></tr></table>'; //close lmlinks
|
||||
echo '</div></div></td></tr></table>'; //close lmlinks
|
||||
echo '</form>';
|
||||
}
|
||||
echo '</td><td align="center" width="100%">';
|
||||
|
@ -783,7 +783,7 @@
|
|||
}
|
||||
}*/
|
||||
if (!$lesson->slideshow) {
|
||||
echo '</table>';
|
||||
echo '</table></table>';
|
||||
print_simple_box_end();
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue