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