PHP Classes

File: templates/groups.php

Recommend this page to a friend!
  Classes of Jaswinder   PHP My SVN Admin   templates/groups.php   Download  
File: templates/groups.php
Role: Sample output
Content type: text/plain
Description: Sample output
Class: PHP My SVN Admin
Manage SubVersion repositories
Author: By
Last change:
Date: 12 years ago
Size: 1,361 bytes
 

Contents

Class file image Download
<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>