moodle/mod/survey/mod.html

37 lines
1.4 KiB
HTML
Raw Normal View History

2001-11-22 06:23:56 +00:00
<form name="form" method="post" action="<?=$CFG->wwwroot ?>/mod/survey/details.php">
<table cellpadding=5>
<tr valign=top>
2002-08-12 17:54:13 +00:00
<td align=right><P><B><? print_string("surveyname", "survey") ?>:</B></P></TD>
2001-11-22 06:23:56 +00:00
<td>
<input type="text" name="name" size=30 value="<? p($form->name) ?>">
</td>
</tr>
<tr>
2002-08-12 17:54:13 +00:00
<td align=right><P><B><? print_string("surveytype", "survey") ?>:</B></P></TD>
2001-11-22 06:23:56 +00:00
<td>
<?
if ($options = get_records_sql_menu("SELECT id, name FROM survey WHERE template='0'")) {
choose_from_menu($options, "template", $form->template);
2002-08-12 17:54:13 +00:00
helpbutton("surveys", get_string("helpsurveys", "survey"));
2001-11-22 06:23:56 +00:00
} 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=coursemodule value="<? p($form->coursemodule) ?>">
<input type="hidden" name=section value="<? p($form->section) ?>">
2001-11-22 06:23:56 +00:00
<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) ?>">
2002-08-12 17:54:13 +00:00
<input type="submit" value="<? print_string("savechanges") ?>">
2001-11-22 06:23:56 +00:00
</CENTER>
</FORM>