mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
to another. A simple popup menu now appears when teachers view any discussion. Includes a new log entry to log when a discussion is moved.
103 lines
3.6 KiB
HTML
103 lines
3.6 KiB
HTML
<?PHP
|
|
if (empty($form->name)) {
|
|
$form->name = "";
|
|
}
|
|
if (empty($form->type)) {
|
|
$form->type = "";
|
|
}
|
|
if (empty($form->intro)) {
|
|
$form->intro = "";
|
|
}
|
|
if (empty($form->open)) {
|
|
$form->open = 2;
|
|
}
|
|
if (empty($form->assessed)) {
|
|
$form->assessed = "";
|
|
}
|
|
if (empty($form->forcesubscribe)) {
|
|
$form->forcesubscribe = "";
|
|
}
|
|
?>
|
|
<form name="form" method="post" action="<?=$ME ?>">
|
|
<table cellpadding=5>
|
|
<tr>
|
|
<tr valign=top>
|
|
<td align=right><P><B><? print_string("forumname", "forum")?>:</B></P></TD>
|
|
<td>
|
|
<input type="text" name="name" size=30 value="<? p($form->name) ?>">
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><P><B><? print_string("forumtype", "forum")?>:</B></P></TD>
|
|
<td>
|
|
<?
|
|
$student = strtolower($course->student);
|
|
require("$CFG->dirroot/mod/forum/lib.php");
|
|
asort($FORUM_TYPES);
|
|
if (! $form->type) {
|
|
$form->type = "general";
|
|
}
|
|
if ($form->type == "news") {
|
|
print_string("namenews", "forum");
|
|
echo "<input type=\"hidden\" name=\"type\" value=\"news\">";
|
|
} else if ($form->type == "social") {
|
|
print_string("namesocial", "forum");
|
|
echo "<input type=\"hidden\" name=\"type\" value=\"social\">";
|
|
} else {
|
|
choose_from_menu($FORUM_TYPES, "type", $form->type, "");
|
|
helpbutton("forumtype", get_string("forumtype", "forum"), "forum");
|
|
}
|
|
?>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr valign=top>
|
|
<td align=right><P><B><? print_string("forumintro", "forum")?>:</B></P>
|
|
<font SIZE="1">
|
|
<? helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br \>
|
|
<? helpbutton("questions", get_string("helpquestions"), "moodle", true, true) ?><br \>
|
|
<? helpbutton("text", get_string("helptext"), "moodle", true, true) ?><br \>
|
|
</font>
|
|
</td>
|
|
<td>
|
|
<textarea name="intro" rows=4 cols=50 wrap="virtual"><? p($form->intro) ?></textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr valign=top>
|
|
<td align=right><P><B><? print_string("allowdiscussions", "forum", strtolower("$course->student")) ?>:</B></P></TD>
|
|
<td>
|
|
<? choose_from_menu($FORUM_OPEN_MODES, "open", $form->open, ""); ?>
|
|
<? helpbutton("allowdiscussions", get_string("allowdiscussions", "forum", strtolower("$course->student")), "forum") ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align=right><P><B><? print_string("allowratings", "forum") ?>:</B></P></TD>
|
|
<td>
|
|
<? $options[0] = get_string("no"); $options[1] = get_string("yes"); ?>
|
|
<? choose_from_menu($options, "assessed", $form->assessed, ""); ?>
|
|
<? helpbutton("ratings", get_string("allowratings", "forum"), "forum") ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align=right><P><B><? print_string("forcesubscribeq", "forum") ?>:</B></P></TD>
|
|
<td>
|
|
<? choose_from_menu($options, "forcesubscribe", $form->forcesubscribe, ""); ?>
|
|
<? helpbutton("subscription", get_string("forcesubscribeq", "forum"), "forum") ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<CENTER>
|
|
<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) ?>">
|
|
<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="<? print_string("savechanges") ?>">
|
|
<input type="submit" name=cancel value="<? print_string("cancel") ?>">
|
|
</CENTER>
|
|
</FORM>
|