mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
64 lines
2.2 KiB
HTML
64 lines
2.2 KiB
HTML
<form method="post" enctype="multipart/form-data" action="group.php">
|
|
<table cellpadding="9" cellspacing="0" align="center">
|
|
<tr valign="top">
|
|
<td align="right"><?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"><?php print_string("description") ?>:<br />
|
|
<?php helpbutton("text", get_string("helptext")) ?>
|
|
</td>
|
|
<td><?php
|
|
print_textarea($usehtmleditor, 8, 35, 660, 200, "description", $group->description);
|
|
if (isset($err["description"])) formerr($err["description"]);
|
|
?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
<td align="right"><?php print_string('enrolmentkey') ?>:</td>
|
|
<td><input type="text" name="password" size="25" value="<?php echo $group->password ?>" alt="<?php print_string('enrolmentkey') ?>" /></td>
|
|
</tr>
|
|
|
|
<tr valign="top">
|
|
<td align="right"><?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"><?php print_string("newpicture") ?>:<br />(<?php
|
|
print_string("maxsize", "", display_size($maxbytes));
|
|
echo ') ';
|
|
helpbutton("picture", get_string("helppicture"));
|
|
?></td>
|
|
<td>
|
|
<?php
|
|
require_once($CFG->dirroot.'/lib/uploadlib.php');
|
|
upload_print_form_fragment(1,array('imagefile'),null,false,null,0,0,false);
|
|
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) ?>" />
|
|
<input type="hidden" name="sesskey" value="<?php p(sesskey()) ?>" />
|
|
</form>
|