Tidied up layout and other minor changes.
}
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);
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>"';
}
}
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>";
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);
$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 />";
}
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="") {
</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 />';
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");
</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>
</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 />";
} else {
emoticonhelpbutton("form", "text");
}
+ echo "<br />";
?>
</td>
<td>
</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 />';
} else {
emoticonhelpbutton('form', 'intro');
}
+ echo '<br />';
?>
</td>
<td>
</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);
} 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>
<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>
<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>
<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>
</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 />";
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); ?>
</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);
echo '<br />';
}
?>
- <br />
- </span>
</td>
<td>
<?php