<fieldset>
<legend>Create new Group</legend>
<input type="text" name="groupname" value="" id="groupname">: Groupname<br>
<input type="submit" name="submit" value="Create new user" onclick="$.get('index.php?func=groups&action=create&group='+$('#groupname').val(), function(data) {loadCurrentTab();});return false;">
</fieldset>
<table border="1">
<?php
foreach($data['svn']->svnPermissions['groups'] as $group=>$users){
$arrUsers = explode(',',$users);
echo '<tr>';
echo '<td width="500" valign="top">'.$group.'</td>';
?>
<td>
<table width="100%">
<?php
foreach($arrUsers as $user){
if(!strlen(trim($user))){continue;}
?>
<tr>
<td width="300"><?php echo $user;?></td>
<td><a href="javscript:" onclick="$.get('index.php?func=groups&action=removeuser&group=<?php echo $group;?>&username=<?php echo $user;?>', function(data) {loadCurrentTab();});return false;">Remove</a></td>
</tr>
<?php
}
?>
<tr>
<td width="300">
<?php echo genHtmlSelectTag('user'.$group,$data['svn']->svnUsers,true);?>
</td>
<td><a href="javscript:" onclick="$.get('index.php?func=groups&action=adduser&group=<?php echo $group;?>&username='+$('#user<?php echo $group;?>').val(), function(data) {loadCurrentTab();});return false;">Add</a></td>
</tr>
</table>
</td>
<?php
echo '</tr>';
}
?>
</table>
|