PHP Classes

File: templates/users.php

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

Contents

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