Bugfixes panel

This commit is contained in:
Steven Mondji-Lerider 2012-06-20 09:56:25 +00:00
parent 2d2fef0363
commit 851beb3244
3 changed files with 14 additions and 10 deletions

View File

@ -56,21 +56,26 @@ include_once ("head.php");
</p>
</form>
<?php
?>
<form method="post" action="adm_dodefquotas.php">
<table border="0" cellpadding="4" cellspacing="0">
<p>
<input type="hidden" name="action" value="delete" />
<tr class="lst1">
<td>
<select name="type" id="type" class="inl">
<?php
$db->query("SELECT distinct(type) FROM defquotas WHERE TYPE != 'default' ORDER by type");
while($db->next_record()) {
$type = $db->f("type");
echo "<option value=\"$type\">$type</option>";
echo "<option value=\"$type\">$type</option>\n";
}
?></select>
<input type="submit" class="inb" value="<?php __("Delete account type"); ?>" />
</p>
</td><td><input type="submit" class="inb" value="<?php __("Delete account type"); ?>" /></td>
</tr>
</table>
</form>
<p>
<?php __("Here is the list of the quotas on the server for the new accounts. If you want to change them, enter new values"); ?>
</p>
@ -93,7 +98,6 @@ foreach($qlist as $type => $q) {
foreach($q as $name => $value) {
$key = $type . ":" . $name;
$col=3-$col;
//TODO fix notice
?>
<tr class="lst<?php echo $col; ?>">

View File

@ -52,17 +52,17 @@ if (!$quota->cancreate("ftp")) {
<table>
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
<label for="login"><?php __("Username"); ?></label></th><td>
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php ehe($login); ?>" size="20" maxlength="64" />
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="" size="20" maxlength="64" />
</td></tr>
<tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php ehe($dir); ?>" size="20" maxlength="255" />
<tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="" size="20" maxlength="255" />
<script type="text/javascript">
<!--
document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.dir');\" value=\" <?php __("Choose a folder..."); ?> \" class=\"bff\">");
// -->
</script>
</td></tr>
<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="<?php ehe($pass); ?>" size="20" maxlength="64" /></td></tr>
<tr><th><label for="passconf"><?php __("Confirm password"); ?></label></th><td><input type="password" class="int" name="passconf" id="passconf" value="<?php ehe($passconf); ?>" size="20" maxlength="64" /></td></tr>
<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="" size="20" maxlength="64" /></td></tr>
<tr><th><label for="passconf"><?php __("Confirm password"); ?></label></th><td><input type="password" class="int" name="passconf" id="passconf" value="" size="20" maxlength="64" /></td></tr>
<tr class="trbtn"><td colspan="2">
<input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='ftp_list.php'"/>

View File

@ -82,7 +82,7 @@ while (list($key,$val)=each($r))
<td><div class="ina"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td>
<td><code>/<?php echo $val["dir"] ?></code></td>
<td><code><?php echo $val["dir"] ?></code></td>
</tr>
<?php
}