1 <form method=
"post" enctype=
"multipart/form-data" action=
"group.php">
2 <table cellpadding=
"9" cellspacing=
"0" align=
"center">
4 <td align=
"right"><?php print_string("name") ?>:
</td>
5 <td><input type=
"text" name=
"name" size=
"30" value=
"<?php p($group->name) ?>" />
6 <?php
if (isset($err["name"])) formerr($err["name"]); ?>
10 <td align=
"right"><?php print_string("description") ?>:
<br />
11 <?php helpbutton("text", get_string("helptext")) ?>
14 print_textarea($usehtmleditor, 8, 35, 660, 200, "description", $group->description
);
15 if (isset($err["description"])) formerr($err["description"]);
21 <td align=
"right"><?php print_string('enrolmentkey') ?>:
</td>
22 <td><input type=
"text" name=
"password" size=
"25" value=
"<?php echo $group->password ?>" alt
="<?print_string('enrolmentkey') ?>" /></td
>
26 <td align
="right"><?php
print_string("hidepicture") ?>:
</td>
29 $options[0] = get_string("no");
30 $options[1] = get_string("yes");
31 choose_from_menu ($options, "hidepicture", $group->hidepicture
, "");
37 $maxbytes = get_max_upload_file_size($CFG->maxbytes
, $course->maxbytes
);
38 if (!empty($CFG->gdversion
) and $maxbytes) {
41 <td align=
"right"><?php print_string("newpicture") ?>:
</td>
44 require_once($CFG->dirroot
.'/lib/uploadlib.php');
45 upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
46 helpbutton("picture", get_string("helppicture"));
47 print_string("maxsize", "", display_size($maxbytes));
48 if (isset($err["imagefile"])) formerr($err["imagefile"]);
55 <td><input type=
"submit" value=
"<?php print_string("savechanges
") ?>" /></td
>
58 <input type
="hidden" name
="group" value
="<?php p($group->id) ?>" />
59 <input type
="hidden" name
="id" value
="<?php p($course->id) ?>" />
60 <input type
="hidden" name
="sesskey" value
="<?php p($sesskey) ?>" />