<?php
if (empty($form->name)) {
- $form->name = "";
+ $form->name = '';
}
if (empty($form->description)) {
- $form->description = "";
+ $form->description = '';
}
if (empty($form->format)) {
- $form->format = "";
+ $form->format = '';
}
if (empty($form->type)) {
- $form->type = "";
+ $form->type = '';
}
if (empty($form->resubmit)) {
- $form->resubmit = "";
+ $form->resubmit = '';
}
if (!isset($form->grade)) {
$form->grade = 100;
$form->maxbytes = $CFG->assignment_maxbytes;
}
if (empty($form->timedue)) {
- $form->timedue = "";
+ $form->timedue = '';
}
if (empty($form->emailteachers)) {
- $form->emailteachers = "";
+ $form->emailteachers = '';
}
?>
<form name="form" method="post" action="mod.php">
<table cellpadding="5">
<tr valign="top">
- <td align="right"><b><?php print_string("assignmentname", "assignment") ?>:</b></td>
+ <td align="right"><b><?php print_string('assignmentname', 'assignment') ?>:</b></td>
<td>
- <input type="text" name="name" size="60" value="<?php p($form->name) ?>" alt="<?php print_string("assignmentname", "assignment") ?>" />
+ <input type="text" name="name" size="60" value="<?php p($form->name) ?>" alt="<?php print_string('assignmentname', 'assignment') ?>" />
</td>
</tr>
<tr valign="top">
- <td align="right"><b><?php print_string("description", "assignment") ?>:</b><br />
- <font size="1">
+ <td align="right"><b><?php print_string('description', 'assignment') ?>:</b><br />
<?php
- helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
- echo "<br />";
- helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
- echo "<br />";
+ helpbutton('writing', get_string('helpwriting'), 'moodle', true, true);
+ echo '<br />';
+ helpbutton('questions', get_string('helpquestions'), 'moodle', true, true);
+ echo '<br />';
if ($usehtmleditor) {
helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
} else {
emoticonhelpbutton("form", "description");
- }
+ }
?>
- <br />
- </font>
</td>
<td>
<?php
if ($usehtmleditor) {
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
- echo '<p align="right">';
+ echo '<div align="right">';
helpbutton("textformat", get_string("formattexttype"));
print_string("formattexttype");
echo ': ';
$form->format = $defaultformat;
}
choose_from_menu(format_text_menu(), "format", $form->format, "");
- echo '</p>';
+ echo '</div>';
}
?>
</td>
<tr valign="top">
<td align="right"><b><?php print_string("choicename","choice") ?>:</b></td>
<td>
- <input type="text" name="name" size="30" value="<?php p($form->name) ?>" />
+ <input type="text" name="name" size="30" alt="<?php print_string("choicename","choice") ?>" value="<?php p($form->name) ?>" />
</td>
</tr>
<tr valign="top">
- <td align="right"><b><?php print_string("choicetext","choice") ?>:</b>
- <font size="1">
+ <td align="right"><b><?php print_string("choicetext","choice") ?>:</b><br />
<?php
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
echo "<br />";
emoticonhelpbutton("form", "text");
}
?>
- <br />
- </font>
</td>
<td>
<?php
if ($usehtmleditor) {
echo '<input type="hidden" name="format" value="'.FORMAT_HTML.'" />';
} else {
- echo "<p align=\"right\">";
+ echo "<div align=\"right\">";
helpbutton("textformat", get_string("formattexttype"));
print_string("formattexttype");
echo ": ";
$form->format = $defaultformat;
}
choose_from_menu(format_text_menu(), "format", $form->format, "");
- echo "</p>";
+ echo "</div>";
}
?>
</td>
<tr valign="top">
<td align="right"><b><?php print_string("choice","choice","1") ?>:</b></td>
<td>
- <input type="text" name="answer1" size="60" value="<?php p($form->answer1) ?>" />
+ <input type="text" name="answer1" size="60" alt="<?php print_string("choice","choice","1") ?>" value="<?php p($form->answer1) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><b><?php print_string("choice","choice","2") ?>:</b></td>
<td>
- <input type="text" name="answer2" size="60" value="<?php p($form->answer2) ?>" />
+ <input type="text" name="answer2" size="60" alt="<?php print_string("choice","choice","2") ?>" value="<?php p($form->answer2) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><b><?php print_string("choice","choice","3") ?>:</b></td>
<td>
- <input type="text" name="answer3" size="60" value="<?php p($form->answer3) ?>" />
+ <input type="text" name="answer3" size="60" alt="<?php print_string("choice","choice","3") ?>" value="<?php p($form->answer3) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><b><?php print_string("choice","choice","4") ?>:</b></td>
<td>
- <input type="text" name="answer4" size="60" value="<?php p($form->answer4) ?>" />
+ <input type="text" name="answer4" size="60" alt="<?php print_string("choice","choice","4") ?>" value="<?php p($form->answer4) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><b><?php print_string("choice","choice","5") ?>:</b></td>
<td>
- <input type="text" name="answer5" size="60" value="<?php p($form->answer5) ?>" />
+ <input type="text" name="answer5" size="60" alt="<?php print_string("choice","choice","5") ?>" value="<?php p($form->answer5) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
<tr valign="top">
<td align="right"><b><?php print_string("choice","choice","6") ?>:</b></td>
<td>
- <input type="text" name="answer6" size="60" value="<?php p($form->answer6) ?>" />
+ <input type="text" name="answer6" size="60" alt="<?php print_string("choice","choice","6") ?>" value="<?php p($form->answer6) ?>" />
<?php helpbutton("options", get_string("modulenameplural", "choice"), "choice") ?>
</td>
</tr>
var timeitems = ['openday','openmonth','openyear','openhour', 'openminute', 'closeday','closemonth','closeyear','closehour','closeminute'];
</script>
- <input name="timerestrict" type="checkbox" value="1" onclick="return lockoptions('form','timerestrict', timeitems)" <?php if ($form->timerestrict) echo "checked"; ?> />
+ <input name="timerestrict" type="checkbox" value="1" alt="<?php print_string("timerestrict", "choice") ?>" onclick="return lockoptions('form','timerestrict', timeitems)" <?php if ($form->timerestrict) echo 'checked="checked"'; ?> />
<?php
helpbutton("timerestrict", get_string("timerestrict","choice"), "choice");
?>