mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
Changes for XHTML and accessibility compatibility.
Tidied up layout and other minor changes.
This commit is contained in:
parent
6d85b65fc1
commit
d3c8056258
@ -168,11 +168,9 @@ function assignment_user_complete($course, $user, $mod, $assignment) {
|
||||
}
|
||||
|
||||
print_simple_box_start();
|
||||
echo "<p><font size=1>";
|
||||
echo get_string("lastmodified").": ";
|
||||
echo userdate($submission->timemodified);
|
||||
echo assignment_print_difference($assignment->timedue - $submission->timemodified);
|
||||
echo "</font></p>";
|
||||
|
||||
assignment_print_user_files($assignment, $user);
|
||||
|
||||
@ -321,10 +319,10 @@ function assignment_print_recent_activity($course, $isteacher, $timestart) {
|
||||
print_headline(get_string("newsubmissions", "assignment").":");
|
||||
foreach ($assignments as $assignment) {
|
||||
$date = userdate($assignment->time, $strftimerecent);
|
||||
echo "<p><font size=1>$date - ".fullname($assignment)."<br />";
|
||||
echo "$date - ".fullname($assignment)."<br />";
|
||||
echo "\"<a href=\"$CFG->wwwroot/mod/assignment/$assignment->url\">";
|
||||
echo "$assignment->name";
|
||||
echo "</a>\"</font></p>";
|
||||
echo '</a>"';
|
||||
}
|
||||
}
|
||||
|
||||
@ -543,16 +541,15 @@ function assignment_print_submission($assignment, $user, $submission, $teachers,
|
||||
if ($assignment->type == OFFLINE) {
|
||||
echo "\n<td bgcolor=\"$THEME->body\" width=\"35\" valign=\"top\">";
|
||||
} else {
|
||||
echo "\n<td rowspan=\"2\" bgcolor=\"$THEME->body\" width=\"35\" valign\"top\">";
|
||||
echo "\n<td rowspan=\"2\" bgcolor=\"$THEME->body\" width=\"35\" valign=\"top\">";
|
||||
}
|
||||
print_user_picture($user->id, $assignment->course, $user->picture);
|
||||
echo "</td>";
|
||||
echo "<td nowrap=\"nowrap\" bgcolor=\"$THEME->cellheading\">".fullname($user, true);
|
||||
if ($assignment->type != OFFLINE and $submission->timemodified) {
|
||||
echo " <font SIZE=1>".get_string("lastmodified").": ";
|
||||
echo " ".get_string("lastmodified").": ";
|
||||
echo userdate($submission->timemodified);
|
||||
echo assignment_print_difference($assignment->timedue - $submission->timemodified);
|
||||
echo "</font>";
|
||||
}
|
||||
echo "</td>\n";
|
||||
echo "</tr>";
|
||||
@ -585,7 +582,7 @@ function assignment_print_submission($assignment, $user, $submission, $teachers,
|
||||
echo get_string("feedback", "assignment").":";
|
||||
choose_from_menu($grades, "g$submission->id", $submission->grade, get_string("nograde"));
|
||||
if ($submission->timemarked) {
|
||||
echo " <font size=1>".userdate($submission->timemarked)."</font>";
|
||||
echo " ".userdate($submission->timemarked);
|
||||
}
|
||||
echo "<br /><textarea name=\"c$submission->id\" rows=\"6\" cols=\"60\">";
|
||||
p($submission->comment);
|
||||
@ -648,7 +645,7 @@ function assignment_print_user_files($assignment, $user) {
|
||||
$ffurl = "file.php?file=/$filearea/$file";
|
||||
}
|
||||
|
||||
echo "<img src=\"$CFG->pixpath/f/$icon\" height=16 width=16 border=0 alt=\"file\">";
|
||||
echo "<img src=\"$CFG->pixpath/f/$icon\" height=\"16\" width=\"16\" border=\"0\" alt=\"file\" />";
|
||||
echo " <a target=\"uploadedfile\" href=\"$CFG->wwwroot/$ffurl\">$file</a>";
|
||||
echo "<br />";
|
||||
}
|
||||
@ -678,14 +675,14 @@ function assignment_print_upload_form($assignment) {
|
||||
|
||||
global $CFG;
|
||||
|
||||
echo "<div align=CENTER>";
|
||||
echo "<form enctype=\"multipart/form-data\" method=\"POST\" action=\"upload.php?id=$assignment->id\">";
|
||||
echo " <input type=hidden name=id value=\"$assignment->id\" />";
|
||||
echo '<center>';
|
||||
echo "<form enctype=\"multipart/form-data\" method=\"post\" action=\"upload.php?id=$assignment->id\">";
|
||||
echo '<input type="hidden" name="id" value="'.$assignment->id.'" />';
|
||||
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
||||
upload_print_form_fragment(1,array('newfile'),false,null,0,$assignment->maxbytes,false);
|
||||
echo " <input type=submit name=save value=\"".get_string("uploadthisfile")."\" />";
|
||||
echo "</form>";
|
||||
echo "</div>";
|
||||
echo '<input type="submit" name="save" value="'.get_string('uploadthisfile').'" />';
|
||||
echo '</form>';
|
||||
echo '</center>';
|
||||
}
|
||||
|
||||
function assignment_get_recent_mod_activity(&$activities, &$index, $sincetime, $courseid, $assignment="0", $user="", $groupid="") {
|
||||
|
@ -37,7 +37,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string('description', 'assignment') ?>:</b><br />
|
||||
<td align="right"><b><?php print_string('description', 'assignment') ?>:</b><br /><br />
|
||||
<?php
|
||||
helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
|
||||
echo '<br />';
|
||||
|
@ -116,7 +116,7 @@
|
||||
print_heading(get_string("notsubmittedyet","assignment"));
|
||||
}
|
||||
|
||||
echo "<hr size=1 noshade>";
|
||||
echo '<hr size="1" noshade="noshade" />';
|
||||
|
||||
if ($submission and $submission->timemarked) {
|
||||
print_heading(get_string("submissionfeedback", "assignment").":", "center");
|
||||
|
@ -27,13 +27,14 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("chatintro", "chat")?>:</b><br />
|
||||
<td align="right"><b><?php print_string("chatintro", "chat")?>:</b><br /><br />
|
||||
<?php
|
||||
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
||||
echo "<br />";
|
||||
helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
|
||||
echo "<br />";
|
||||
emoticonhelpbutton("form", "intro");
|
||||
echo "<br />";
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -61,7 +61,7 @@
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("choicetext","choice") ?>:</b><br />
|
||||
<td align="right"><b><?php print_string("choicetext","choice") ?>:</b><br /><br />
|
||||
<?php
|
||||
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
||||
echo "<br />";
|
||||
@ -72,6 +72,7 @@
|
||||
} else {
|
||||
emoticonhelpbutton("form", "text");
|
||||
}
|
||||
echo "<br />";
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -72,7 +72,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string('forumintro', 'forum')?>:</b><br />
|
||||
<td align="right"><b><?php print_string('forumintro', 'forum')?>:</b><br /><br />
|
||||
<?php
|
||||
helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
|
||||
echo '<br />';
|
||||
@ -83,6 +83,7 @@
|
||||
} else {
|
||||
emoticonhelpbutton('form', 'intro');
|
||||
}
|
||||
echo '<br />';
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -7,17 +7,9 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b>
|
||||
<?php print_string("message", "forum"); ?>:
|
||||
</b></td>
|
||||
<td align="left" rowspan="2">
|
||||
<?php print_textarea($usehtmleditor, 25, 65, 630, 400, "message", $post->message); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right" valign="middle" nowrap="nowrap">
|
||||
|
||||
<?php
|
||||
<td align="right"><b><?php print_string("message", "forum"); ?>:</b>
|
||||
<br /><br />
|
||||
<?php
|
||||
helpbutton("reading", get_string("helpreading"), "moodle", true, true);
|
||||
echo "<br />";
|
||||
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
|
||||
@ -29,14 +21,14 @@
|
||||
} else {
|
||||
emoticonhelpbutton("theform", "message");
|
||||
}
|
||||
echo "<br />";
|
||||
?>
|
||||
<br />
|
||||
|
||||
</td>
|
||||
<td align="left">
|
||||
<?php print_textarea($usehtmleditor, 25, 65, 630, 400, "message", $post->message); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("formattexttype"); ?>:</b></td>
|
||||
<td>
|
||||
@ -90,7 +82,8 @@
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxbytes ?>" />
|
||||
<input type="file" name="attachment" size="40" alt="<?php print_string("attachment", "forum") ?>" />
|
||||
<?php
|
||||
helpbutton("attachment", get_string("attachment", "forum"), "forum");
|
||||
helpbutton("attachment", get_string("attachment", "forum"), "forum");
|
||||
echo ' ';
|
||||
print_string("maxsize", "", display_size($maxbytes));
|
||||
?>
|
||||
</td>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<form name="prune" method="get" action="post.php" enctype="multipart/form-data">
|
||||
<table border="0" cellpadding="5">
|
||||
<tr valign="top">
|
||||
<td align="right"><p><b><?php print_string("discussionname", "forum"); ?>:</b></p></td>
|
||||
<td align="right"><b><?php print_string("discussionname", "forum"); ?>:</b></td>
|
||||
<td>
|
||||
<input type="text" name="name" size="60" value="<?php p($post->subject) ?>" />
|
||||
</td>
|
||||
@ -10,8 +10,8 @@
|
||||
|
||||
<tr>
|
||||
<td align="center" colspan="2">
|
||||
<input type="hidden" name="prune" value="<?php p($prune) ?>" />
|
||||
<input type="hidden" name="confirm" value="<?php p($prune) ?>" />
|
||||
<input type="hidden" name="prune" value="<?php p($prune) ?>" />
|
||||
<input type="hidden" name="confirm" value="<?php p($prune) ?>" />
|
||||
<input type="submit" value="<?php print_string('prune', 'forum'); ?>" />
|
||||
</td>
|
||||
|
||||
|
@ -80,7 +80,6 @@ if (!isset($form->assesstimefinish)) {
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("description") ?>:</b><br />
|
||||
<font size="1">
|
||||
<?php
|
||||
helpbutton("description", get_string("description"), "glossary", true, true);
|
||||
echo "<br />";
|
||||
@ -88,8 +87,6 @@ if (!isset($form->assesstimefinish)) {
|
||||
echo "<br />";
|
||||
helpbutton("text", get_string("helptext"), "moodle", true, true);
|
||||
?>
|
||||
<br />
|
||||
</font>
|
||||
</td>
|
||||
<td align="left">
|
||||
<?php print_textarea($usehtmleditor, 20, 50, 680, 400, "intro", $form->intro); ?>
|
||||
|
@ -134,9 +134,7 @@
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td align="right"><b><?php print_string("introduction", "quiz") ?>:</b>
|
||||
<br />
|
||||
<span class="editorhelptext">
|
||||
<td align="right"><b><?php print_string("introduction", "quiz") ?>:</b><br /><br />
|
||||
<?php
|
||||
if ($usehtmleditor) {
|
||||
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
|
||||
@ -147,8 +145,6 @@
|
||||
echo '<br />';
|
||||
}
|
||||
?>
|
||||
<br />
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user