<fieldset>
<legend>Create new Account</legend>
<input type="text" name="username" value="" id="newusername">: Username<br>
<input type="text" name="password" value="" id="newpasword">: Password<br>
<input type="submit" name="submit" value="Create new user" onclick="$.get('index.php?func=users&action=create&username='+$('#newusername').val()+'&password='+$('#newpasword').val(), function(data) {loadCurrentTab();});return false;">
</fieldset>
<table border="0">
<?php
$i=0;
foreach($data['svn']->svnUsers as $user=>$pass){
$i++;
echo '<tr>';
echo '<td>'.$user.'</td><td><input type="text" name="password'.$i.'" value="'.$pass.'" id="password'.$i.'"></td>';
?>
<td><a href="javascript:" onclick="$.get('index.php?func=users&action=update&username=<?php echo $user;?>&password='+$('#password<?php echo $i;?>').val() +'', function(data) {loadCurrentTab();});">Update</a></td>
<td><a href="javascript:" onclick="$.get('index.php?func=users&action=remove&username=<?php echo $user;?>', function(data) {loadCurrentTab();});">Remove</a></td>
<?php
echo '</tr>';
}
?>
</table>
|