if ($course->format == "weeks") {
$table->head = array ($strweek, $strname, $strsummary);
- $table->align = array ("CENTER", "LEFT", "LEFT");
+ $table->align = array ("center", "left", "left");
} else if ($course->format == "topics") {
$table->head = array ($strtopic, $strname, $strsummary);
- $table->align = array ("CENTER", "LEFT", "LEFT");
+ $table->align = array ("center", "left", "left");
} else {
$table->head = array ($strlastmodified, $strname, $strsummary);
- $table->align = array ("LEFT", "LEFT", "LEFT");
+ $table->align = array ("left", "left", "left");
}
$currentsection = "";
<tr valign="top">
<td align="right"><p><b><?php print_string("name") ?>:</b></p></td>
<td>
- <input type="text" name="name" size="65" value="<?php p($form->name) ?>" />
+ <input type="text" name="name" size="65" value="<?php p($form->name) ?>" alt="<?php print_string("name") ?>" />
</td>
</tr>
<tr valign="top">
echo '<tr>';
echo '<td>';
- echo "<img src=\"$CFG->pixpath/f/$icon\" width=\"16\" height=\"16\" />";
+ echo "<img src=\"$CFG->pixpath/f/$icon\" width=\"16\" height=\"16\" alt=\"\"/>";
echo '</td>';
echo '<td nowrap="nowrap"><p>';
if ($icon == 'folder.gif') {
-<script language="javascript">
+
+<tr valign="top">
+ <td align="right" nowrap="nowrap">
+
+
+<script language="javascript" type="text/javascript">
function showhide (id, set) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
</script>
-<tr valign="top">
- <td align="right" nowrap="nowrap">
<p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
<font size="1">
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
<input name="windowpopup" type="radio" value="1" <?php echo ($windowtype == "popup") ? "checked=\"checked\"" : "" ?>
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
- <ul>
+ <blockquote>
<?php
foreach ($window as $name => $value) {
if ($name == "height" or $name == "width") {
echo "</script>";
}
?>
- </ul>
+ </blockquote>
</td>
</tr>
</div>
-</td></tr>
-
-<script language="javascript">
+<script language="javascript" type="text/javascript">
showhide('windowsettings', true);
</script>
+
+</td></tr>
+
"", "", true, update_module_button($this->cm->id, $course->id, $strresource),
navmenu($course, $this->cm));
- echo "\n<script language=\"Javascript\">";
+ echo "\n<script language=\"javascript\" type=\"text/javascript\">";
echo "\n<!--\n";
- echo "openpopup('/mod/resource/view.php?inpopup=true&id={$this->cm->id}','resource{$resource->id}','{$resource->popup}');\n";
+ echo "openpopup('/mod/resource/view.php?inpopup=true&id={$this->cm->id}','resource{$resource->id}','{$resource->popup}');\n";
echo "\n-->\n";
echo '</script>';
print_footer($course);
}
} else { /// not a popup at all
+ die;
add_to_log($course->id, "resource", "view", "view.php?id={$this->cm->id}", $resource->id, $this->cm->id);
print_header($pagetitle, $course->fullname, "$navigation {$resource->name}",
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "$THEME->cellcontent", "20");
- echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
+ echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
print_footer($course);
}
if ($optionname == "height" or $optionname == "width") {
$window->$optionname = $optionvalue;
} else if ($optionvalue) {
- $window->$optionname = "checked";
+ $window->$optionname = "checked=\"checked\"";
}
}
}
print_header();
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
"center", "", "$THEME->cellcontent", "20");
+ print_footer($course);
} else { /// Make a page and a pop-up window
print_header($pagetitle, $course->fullname, "$navigation {$resource->name}",
"", "", true, update_module_button($this->cm->id, $course->id, $strresource),
navmenu($course, $this->cm));
- echo "\n<script language=\"Javascript\">";
+ echo "\n<script language=\"javascript\" type=\"text/javascript\">";
echo "\n<!--\n";
- echo "openpopup('/mod/resource/view.php?inpopup=true&id={$this->cm->id}','resource{$resource->id}','{$resource->popup}');\n";
+ echo "openpopup('/mod/resource/view.php?inpopup=true&id={$this->cm->id}','resource{$resource->id}','{$resource->popup}');\n";
echo "\n-->\n";
echo '</script>';
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
"center", "", "$THEME->cellcontent", "20");
- echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</p></center>";
+ echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
print_footer($course);
}
if ($optionname == "height" or $optionname == "width") {
$window->$optionname = $optionvalue;
} else if ($optionvalue) {
- $window->$optionname = "checked";
+ $window->$optionname = "checked=\"checked\"";
}
}
}
-<script language="javascript">
+
+<tr valign="top">
+ <td align="right" nowrap="nowrap">
+
+
+<script language="javascript" type="text/javascript">
function showhide (id, set) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
-<tr valign="top">
- <td align="right" nowrap="nowrap">
<p><b><?php print_string("fulltext", "resource") ?>:</b></p><br />
<font size="1">
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
onclick=" return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<?php p($strnewwindowopen) ?>
- <ul>
+ <blockquote>
<?php
foreach ($window as $name => $value) {
if ($name == "height" or $name == "width") {
echo "</script>";
}
?>
- </ul>
+ </blockquote>
</td>
</tr>
</div>
-</td></tr>
-
-<script language="javascript">
+<script language="javascript" type="text/javascript">
showhide('windowsettings', true);
</script>
+
+</td></tr>
+
+
+