<table cellpadding=9 cellspacing=0 >
<tr valign=top>
<td align="right"><P><?php print_string("category") ?>:</td>
- <td><?php
+ <td><?php
$displaylist = array();
$parentlist = array();
make_categories_list($displaylist, $parentlist);
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("summary") ?>:</td>
- <td><?php
+ <td><?php
print_textarea($usehtmleditor, 10, 50, 660, 200, "summary", $form->summary);
helpbutton("text", get_string("helptext"));
- if (isset($err["summary"])) formerr($err["summary"]);
+ if (isset($err["summary"])) formerr($err["summary"]);
?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("format") ?>:</td>
- <td><?php
+ <td><?php
choose_from_menu ($form->courseformats, "format", "$form->format", "");
helpbutton("courseformats", get_string("courseformats"));
?>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("newsitemsnumber") ?>:</td>
- <td><?php
+ <td><?php
$newsitem = get_string("newsitem");
$newsitems = get_string("newsitems");
?>
</td>
</tr>
-<tr valign=top>
- <td align="right"><P><?php print_string("showrecent") ?>:</td>
- <td><?php
- unset($choices);
- $choices["0"] = get_string("no");
- $choices["1"] = get_string("yes");
- choose_from_menu ($choices, "showrecent", $form->showrecent, "");
- helpbutton("courserecent", get_string("recentactivity")); ?>
- </td>
-</tr>
<tr valign=top>
<td align="right"><P><?php print_string("showgrades") ?>:</td>
<td><?php
<tr valign=top>
<td align="right"><P><?php print_string("wordforteacher") ?>:</td>
<td><input type="text" name="teacher" maxlength="100" size=25 value="<?php p($form->teacher) ?>">
- (<?php print_string("wordforteachereg") ?>)
+ (<?php print_string("wordforteachereg") ?>)
<?php if (isset($err["teacher"])) formerr($err["teacher"]); ?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("wordforstudent") ?>:</td>
<td><input type="text" name="student" maxlength="100" size=25 value="<?php p($form->student) ?>">
- (<?php print_string("wordforstudenteg") ?>)
+ (<?php print_string("wordforstudenteg") ?>)
<?php if (isset($err["student"])) formerr($err["student"]); ?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("wordforstudents") ?>:</td>
<td><input type="text" name="students" maxlength="100" size=25 value="<?php p($form->students) ?>">
- (<?php print_string("wordforstudentseg") ?>)
+ (<?php print_string("wordforstudentseg") ?>)
<?php if (isset($err["students"])) formerr($err["students"]); ?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("forcelanguage") ?>:</td>
<td>
- <?php
+ <?php
$languages[''] = get_string("forceno");
$languages += get_list_of_languages();
- choose_from_menu ($languages, "lang", $form->lang, "", "", "");
+ choose_from_menu ($languages, "lang", $form->lang, "", "", "");
?>
</td>
</tr>
redirect("teacher.php?id=$newcourseid", get_string("changessaved"));
} else { // Add current teacher and send to course
-
+
$newteacher = NULL;
$newteacher->userid = $USER->id;
$newteacher->course = $newcourseid;
foreach ($err as $key => $value) {
$focus = "form.$key";
}
-
+
}
}
$form->guest = 0;
$form->numsections = 10;
$form->newsitems = 5;
- $form->showrecent = 1;
$form->showgrades = 1;
$form->groupmode = 0;
$form->groupmodeforce = 0;
$strcategories = get_string("categories");
if (!empty($course)) {
- print_header($streditcoursesettings, "$course->fullname",
- "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
+ print_header($streditcoursesettings, "$course->fullname",
+ "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a>
-> $streditcoursesettings", $focus);
} else {
print_header("$site->shortname: $straddnewcourse", "$site->fullname",
print_footer($course);
- if ($usehtmleditor) {
+ if ($usehtmleditor) {
use_html_editor();
}