mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
35 lines
1.2 KiB
HTML
35 lines
1.2 KiB
HTML
|
<form name="form" method="post" action="<?=$CFG->wwwroot ?>/mod/survey/details.php">
|
||
|
<table cellpadding=5>
|
||
|
<tr valign=top>
|
||
|
<td align=right><P><B>Survey Name:</B></P></TD>
|
||
|
<td>
|
||
|
<input type="text" name="name" size=30 value="<? p($form->name) ?>">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td align=right><P><B>Survey Type:</B></P></TD>
|
||
|
<td>
|
||
|
<?
|
||
|
if ($options = get_records_sql_menu("SELECT id, name FROM survey WHERE template='0'")) {
|
||
|
choose_from_menu($options, "template", $form->template);
|
||
|
} else {
|
||
|
echo "No surveys to choose from!";
|
||
|
}
|
||
|
?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<CENTER>
|
||
|
<input type="hidden" name=intro value="<? p($form->intro) ?>">
|
||
|
<input type="hidden" name=destination value="<?=$ME ?>">
|
||
|
|
||
|
<input type="hidden" name=course value="<? p($form->course) ?>">
|
||
|
<input type="hidden" name=week value="<? p($form->week) ?>">
|
||
|
<input type="hidden" name=module value="<? p($form->module) ?>">
|
||
|
<input type="hidden" name=modulename value="<? p($form->modulename) ?>">
|
||
|
<input type="hidden" name=instance value="<? p($form->instance) ?>">
|
||
|
<input type="hidden" name=mode value="<? p($form->mode) ?>">
|
||
|
<input type="submit" value="Save these settings">
|
||
|
</CENTER>
|
||
|
</FORM>
|