if (!empty($USER->id)) {
$authtoken = sha1($USER->username . $USER->password);
$usernameencoded = urlencode($USER->username);
- echo "<p><a href=\"export_execute.php?preset_what=all&preset_time=recentupcoming&username=$usernameencoded&authtoken=$authtoken\">" . get_string('quickdownloadcalendar', 'calendar') . '</a></p>';
+ echo "<p><a href=\"export_execute.php?preset_what=all&preset_time=recentupcoming&username=$usernameencoded&authtoken=$authtoken\">" . get_string('quickdownloadcalendar', 'calendar') . '</a></p>';
}
echo '</td>';
<form method="post" action="module.php" name="form">
<input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
-<table cellpadding=9 cellspacing=0 >
+<table cellpadding="9" cellspacing="0" >
<tr valign=top>
<td align=right><p>assignment_maxbytes:</td>
<td><?php
</td>
</tr>
-<tr valign=top>
- <td align=right><p>assignment_itemstocount:</td>
+<tr valign="top">
+ <td align="right"><p>assignment_itemstocount:</td>
<td><?php
unset($options);
$options[ASSIGNMENT_COUNT_WORDS] = trim(get_string('numwords', ''));
</tr>
<tr>
- <td colspan=3 align=center>
- <input type="submit" value="<?php print_string("savechanges") ?>"></td>
+ <td colspan="3" align="center">
+ <input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</tr>
</table>
* The default implementation prints the assignment description in a box
*/
function view_intro() {
- print_simple_box_start('center', '', '', '', 'generalbox', 'intro');
+ print_simple_box_start('center', '', '', 0, 'generalbox', 'intro');
$formatoptions = new stdClass;
$formatoptions->noclean = true;
echo format_text($this->assignment->description, $this->assignment->format, $formatoptions);
return;
}
- print_simple_box_start('center', '', '', '', 'generalbox', 'dates');
+ print_simple_box_start('center', '', '', 0, 'generalbox', 'dates');
echo '<table>';
if ($this->assignment->timeavailable) {
echo '<tr><td class="c0">'.get_string('availabledate','assignment').':</td>';
}
if (has_capability('mod/assignment:submit', $context)) {
- print_simple_box_start('center', '70%', '', '', 'generalbox', 'online');
+ print_simple_box_start('center', '70%', '', 0, 'generalbox', 'online');
if ($editmode) {
$mform->display();
} else {
return;
}
- print_simple_box_start('center', '', '', '', 'generalbox', 'dates');
+ print_simple_box_start('center', '', '', 0, 'generalbox', 'dates');
echo '<table>';
if ($this->assignment->timeavailable) {
echo '<tr><td class="c0">'.get_string('availabledate','assignment').':</td>';
if ($this->assignment->timeavailable > time()
and !has_capability('mod/assignment:grade', $this->context) // grading user can see it anytime
and $this->assignment->var3) { // force hiding before available date
- print_simple_box_start('center', '', '', '', 'generalbox', 'intro');
+ print_simple_box_start('center', '', '', 0, 'generalbox', 'intro');
print_string('notavailableyet', 'assignment');
print_simple_box_end();
} else {
$options['hook'] = $hook;
echo print_single_button("view.php", $options, get_string("back","glossary") );
echo "</td></tr>";
- echo "</tablee>";
+ echo "</table>";
?>
</td>
$printicon = '';
if ( $isuserframe and $mode != 'search') {
if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
- $printicon = " <a title =\"". get_string("printerfriendly","glossary") . "\" alt =\"". get_string("printerfriendly","glossary") . "\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
+ $printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&mode=$mode&hook=$hook&sortkey=$sortkey&sortorder=$sortorder&offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
}
}
print_heading(format_string($glossary->name).$printicon);