mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 15:08:32 +01:00
7613890851
These are the changes from MOODLE_13_STABLE, merged into trunk The tag MOODLE_13_MERGED on the MOODLE_13_STABLE branch now refers to this point The biggest changes here are the fixes for HTML editor in all standard modules
54 lines
1.9 KiB
HTML
54 lines
1.9 KiB
HTML
<?php
|
|
if (!isset($form->name)) {
|
|
$form->name = "";
|
|
}
|
|
if (!isset($form->template)) {
|
|
$form->template = "";
|
|
}
|
|
if (!isset($form->intro)) {
|
|
$form->intro = "";
|
|
}
|
|
$nohtmleditorneeded = true;
|
|
?>
|
|
|
|
<form name="form" method="post" action="../mod/survey/details.php">
|
|
<table cellpadding=5>
|
|
<tr valign=top>
|
|
<td align=right><P><B><?php print_string("surveyname", "survey") ?>:</B></P></TD>
|
|
<td>
|
|
<input type="text" name="name" size=30 value="<?php p($form->name) ?>">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align=right><P><B><?php print_string("surveytype", "survey") ?>:</B></P></TD>
|
|
<td>
|
|
<?php
|
|
if ($options = get_records_menu("survey", "template", 0, "name", "id, name")) {
|
|
foreach ($options as $id => $name) {
|
|
$options[$id] = get_string($name, "survey");
|
|
}
|
|
choose_from_menu($options, "template", $form->template);
|
|
helpbutton("surveys", get_string("helpsurveys", "survey"));
|
|
} else {
|
|
echo "No surveys to choose from!";
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<CENTER>
|
|
<input type="hidden" name=intro value="<?php p($form->intro) ?>">
|
|
<input type="hidden" name=destination value="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
|
|
|
|
<input type="hidden" name=course value="<?php p($form->course) ?>">
|
|
<input type="hidden" name=coursemodule value="<?php p($form->coursemodule) ?>">
|
|
<input type="hidden" name=section value="<?php p($form->section) ?>">
|
|
<input type="hidden" name=module value="<?php p($form->module) ?>">
|
|
<input type="hidden" name=modulename value="<?php p($form->modulename) ?>">
|
|
<input type="hidden" name=instance value="<?php p($form->instance) ?>">
|
|
<input type="hidden" name=mode value="<?php p($form->mode) ?>">
|
|
<input type="submit" value="<?php print_string("savechanges") ?>">
|
|
<input type="submit" name=cancel value="<?php print_string("cancel") ?>">
|
|
</CENTER>
|
|
</FORM>
|