MDL-10234
[moodle-linuxchix.git] / course / group-edit.html
blob2c3cd954e20a3557385e4ec67d9b010e00402b1d
1 <form method="post" enctype="multipart/form-data" action="group.php">
2 <table cellpadding="9" cellspacing="0" align="center">
3 <tr valign="top">
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"]); ?>
7 </td>
8 </tr>
9 <tr valign="top">
10 <td align="right"><?php print_string("description") ?>:<br />
11 <?php helpbutton("text", get_string("helptext")) ?>
12 </td>
13 <td><?php
14 print_textarea($usehtmleditor, 8, 35, 660, 200, "description", $group->description);
15 if (isset($err["description"])) formerr($err["description"]);
17 </td>
18 </tr>
20 <tr valign="top">
21 <td align="right"><?php print_string('enrolmentkey') ?>:</td>
22 <td><input type="text" name="password" size="25" value="<?php echo $group->password ?>" alt="<?php print_string('enrolmentkey') ?>" /></td>
23 </tr>
25 <tr valign="top">
26 <td align="right"><?php print_string("hidepicture") ?>:</td>
27 <td><?php
28 $options = NULL;
29 $options[0] = get_string("no");
30 $options[1] = get_string("yes");
31 choose_from_menu ($options, "hidepicture", $group->hidepicture, "");
33 </td>
34 </tr>
36 <?php
37 $maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
38 if (!empty($CFG->gdversion) and $maxbytes) {
40 <tr valign="top">
41 <td align="right"><?php print_string("newpicture") ?>:<br />(<?php
42 print_string("maxsize", "", display_size($maxbytes));
43 echo ') ';
44 helpbutton("picture", get_string("helppicture"));
45 ?></td>
46 <td>
47 <?php
48 require_once($CFG->dirroot.'/lib/uploadlib.php');
49 upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
50 if (isset($err["imagefile"])) formerr($err["imagefile"]);
52 </td>
53 </tr>
54 <?php } ?>
55 <tr>
56 <td></td>
57 <td><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
58 </table>
60 <input type="hidden" name="group" value="<?php p($group->id) ?>" />
61 <input type="hidden" name="id" value="<?php p($course->id) ?>" />
62 <input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
63 </form>