<?php
// set title
// should support multiple languages
$GLOBALS['CLN_PAGE_TITLE'] = 'Edit Group';
?>
<form name="groupEdit" action="<?php echo appendToURL(cleanURL($GLOBALS['path']), 'editKoId=' . $this->koId . '&editProcess=editGroup'); ?>" method="post">
<p>You can change the name of your group here. If you want to add new members, click on the "Add Group Members" button below. To remove a group member, just uncheck the box next to their name. To give a group member the ability to edit the members of the group, check the box on the right side of their name (marked 'Editing Rights')</p>
<span class="clnFormLine">
<label class="clnFormLabel" for="groupEditTitle"><b>Group Name:</b></label>
<input class="clnFormInput" type="text" id="groupEditTitle" name="groupEditTitle" size="30" maxlength="30" value="<?php echo $this->editGroup->name; ?>" />
</span>
<p><b>Group Members:</b></p>
<table border="0" cellspacing="0" cellpadding="0" width="50%">
<tr>
<td width="10%"><p> </p></td>
<td width="70%"><p><b>Name</b></p></td>
<td width="20%" align="center"><p><b>Editing Rights?</b></p></td>
</tr>
<?php
foreach ($this->editGroup->users as $userId => $userData) {
?>
<tr>
<td align="center"><p><input type="checkbox" name="groupUsers[]" value="<?php echo $userId; ?>" checked="checked" /></p></td>
<td><p><?php echo $userData['name']; ?></p></td>
<td align="center"><p><input type="checkbox" name="groupEditors[<?php echo $userId; ?>]" value="1" <?php
if ($userData['editor']) {
echo ' checked="checked" ';
}
?> /></p></td>
</tr>
<?php
}
?>
</table>
<span class="clnFormLine">
<label class="clnFormLabel" for="selectUsers"></label>
<input class="clnFormInput" id="editGroup" type="submit" name="editGroup" value="Save and Return" />
<input class="clnFormInput" id="selectUsers" type="submit" name="selectUsers" value="Add Group Members" />
</span>
</form>