forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
group-edit.html
53 lines (50 loc) · 1.79 KB
/
group-edit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<form method="post" enctype="multipart/form-data" action="group.php">
<table cellpadding=9 cellspacing="0" align="center">
<tr valign="top">
<td align="right"><p><?php print_string("name") ?>:</td>
<td><input type="text" name="name" size=30 value="<?php p($group->name) ?>">
<?php if (isset($err["name"])) formerr($err["name"]); ?>
</td>
</tr>
<tr valign=top>
<td align="right"><P><?php print_string("description") ?>:</td>
<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>
<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>
<?php
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
if (!empty($CFG->gdversion) and $maxbytes) {
?>
<tr valign=top>
<td align="right"><p><?php print_string("newpicture") ?>:</td>
<td>
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $maxbytes ?>">
<input type="file" name="imagefile" size=40>
<?php helpbutton("picture", get_string("helppicture"));
print_string("maxsize", "", display_size($maxbytes));
if (isset($err["imagefile"])) formerr($err["imagefile"]);
?>
</td>
</tr>
<?php } ?>
<tr>
<td></td>
<td><input type="submit" value="<?php print_string("savechanges") ?>"></td>
</table>
<input type="hidden" name="group" value="<?php p($group->id) ?>">
<input type="hidden" name="id" value="<?php p($course->id) ?>">
</form>