moodle/course/group-edit.html

55 lines
1.9 KiB
HTML
Raw Normal View History

2004-02-10 14:25:20 +00:00
<form method="post" enctype="multipart/form-data" action="group.php">
2004-09-12 12:21:27 +00:00
<table cellpadding="9" cellspacing="0" align="center">
2004-02-10 14:25:20 +00:00
<tr valign="top">
<td align="right"><p><?php print_string("name") ?>:</td>
2004-09-12 12:21:27 +00:00
<td><input type="text" name="name" size="30" value="<?php p($group->name) ?>" />
2004-02-10 14:25:20 +00:00
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</td>
</tr>
2004-09-12 12:21:27 +00:00
<tr valign="top">
<td align="right"><p><?php print_string("description") ?>:</td>
2004-02-10 14:25:20 +00:00
<td><?php
print_textarea($usehtmleditor, 10, 50, 660, 200, "description", $group->description);
helpbutton("text", get_string("helptext"));
if (isset($err["description"])) formerr($err["description"]);
?>
</td>
</tr>
2004-09-12 12:21:27 +00:00
<tr valign="top">
<td align="right"><p><?php print_string("hidepicture") ?>:</td>
<td><?php
$options = NULL;
$options[0] = get_string("no");
$options[1] = get_string("yes");
choose_from_menu ($options, "hidepicture", $group->hidepicture, "");
?>
</td>
</tr>
2004-02-10 14:25:20 +00:00
<?php
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
if (!empty($CFG->gdversion) and $maxbytes) {
?>
2004-09-12 12:21:27 +00:00
<tr valign="top">
2004-02-10 14:25:20 +00:00
<td align="right"><p><?php print_string("newpicture") ?>:</td>
<td>
<?php helpbutton("picture", get_string("helppicture"));
require_once($CFG->dirroot.'/lib/uploadlib.php');
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
2004-02-10 14:25:20 +00:00
print_string("maxsize", "", display_size($maxbytes));
if (isset($err["imagefile"])) formerr($err["imagefile"]);
?>
</td>
</tr>
<?php } ?>
<tr>
<td></td>
2004-09-12 12:21:27 +00:00
<td><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
2004-02-10 14:25:20 +00:00
</table>
2004-09-12 12:21:27 +00:00
<input type="hidden" name="group" value="<?php p($group->id) ?>" />
<input type="hidden" name="id" value="<?php p($course->id) ?>" />
<input type="hidden" name="sesskey" value="<?php p($sesskey) ?>" />
2004-02-10 14:25:20 +00:00
</form>