modifs liste des admins, debut d'ergo pour cette partie

This commit is contained in:
Chantal Bernard-Putz 2010-04-29 10:43:32 +00:00
parent 7643b87534
commit b4eaf9b086
6 changed files with 44 additions and 36 deletions

View File

@ -56,8 +56,9 @@ if (! ($confirmed = ($_GET['submit'] == _("Confirm")) ) ) {
?>
<form action="<?=$PHP_SELF?>" method="GET">
<input type="hidden" name="uid" value="<?=$uid?>" />
<? __("Redirection URL:") ?> <input type="text" name="redirect" value="http://example.com/" />
<input type="submit" name="submit" value="<?=_("Confirm")?>" />
<? __("Redirection URL:") ?> <input type="text" name="redirect" class="int" value="http://example.com/" />
<input type="submit" name="submit" class="inb" value="<?=_("Confirm")?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='adm_list.php'"/>
</form><?php
print "<h3>" . _("Domains of user: ") . $r["login"] . "</h3>";
@ -96,6 +97,7 @@ foreach ($domains as $key => $domain) {
}
$dom->unlock();
# 2. for each subdomain
if (is_array($r['sub'])) {
foreach ($r['sub'] as $k => $sub) {
# shortcuts
$type = $sub['type'];
@ -125,6 +127,7 @@ foreach ($domains as $key => $domain) {
}
}
}
}
if (!$confirmed) print '</ul>';
}

View File

@ -100,15 +100,15 @@ if ($mem->user["admlist"]==0) { // Normal (large) mode
?>
<table cellspacing="0" cellpadding="4">
<tr>
<th colspan="5">&nbsp;</th>
<th colspan="5"><?php echo __("Actions"); ?></th>
<th><?php __("Username"); ?></th>
<th><?php echo _("Surname")." "._("First Name")."<br />("._("Email address").")"; ?></th>
<th><?php __("Created by") ?></th>
<th><?php __("Created on") ?></th>
<th><?php __("Account type") ?></th>
<th><?php __("Last login"); ?></th>
<th><?php __("Last fail"); ?></th>
<th><?php __("Last ip"); ?></th>
<th><?php __("Recent fail"); ?></th>
<th><?php __('Expiry') ?></th>
</tr>
<?php
@ -144,8 +144,8 @@ while (list($key,$val)=each($r))
<td><?php echo format_date('%3$d-%2$d-%1$d',$val["created"]); ?></td>
<td><?php echo $val["type"] ?></td>
<td><?php echo $val["lastlogin"] ?></td>
<td><?php echo $val["lastfail"] ?></td>
<td><?php echo $val["lastip"] ?></td>
<td><?php echo $val["lastfail"] ?></td>
<td><div class="<?php echo 'exp' . $admin->renew_get_status($val['uid']) ?>"><?php echo $admin->renew_get_expiry($val['uid']) ?></div></td>
</tr>
<?php

View File

@ -42,7 +42,7 @@ if ($submit) {
while (list($key,$val)=each($qlist)) {
$var="q_".$key;
$quota->setquota($key,$$var);
$quota->setquota($key,$_REQUEST[$var]);
}
$mem->unsu();
$error=_("The quotas has been successfully edited");

View File

@ -61,10 +61,10 @@ $mem->unsu();
}
?>
<form method="post" action="adm_quotadoedit.php">
<table border="1" cellspacing="0" cellpadding="6">
<table class="tedit">
<tr><th><input type="hidden" name="uid" value="<?php echo $uid ?>" />
<?php __("Username"); ?></th><td colspan="3"><code><big><?php echo $us["login"]; ?></big></code>&nbsp;</td></tr>
<tr><th><?php __("Quota"); ?></th><th><?php __("Total"); ?></th><th><?php __("Used"); ?></th></tr>
<tr><th><?php __("Quota"); ?></th><th style="text-align: right"><?php __("Total"); ?></th><th><?php __("Used"); ?></th></tr>
<?php
$ql=$quota->qlist();
reset($ql);
@ -80,7 +80,10 @@ while (list($key,$val)=each($ql)) {
echo "</tr>";
}
?>
<tr><td colspan="4" align="center"><input class="inb" type="submit" name="submit" value="<?php __("Edit the quotas"); ?>" />
<tr class="trbtn"><td colspan="3">
<input class="inb" type="submit" name="submit" value="<?php __("Edit the quotas"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='adm_list.php'" />
</td></tr>
</table>
</form>

View File

@ -772,7 +772,7 @@ msgstr "%1$d/%2$d/%3$d %4$d:%5$d"
#. 1 2 3
#. eg: english : %3$d/%1$d/%2$d
msgid "%3$d-%2$d-%1$d"
msgstr "%1$d/%2$d/%3$d"
msgstr "%1$02d/%2$02d/%3$04d"
msgid "AlternC's account password"
msgstr "Mots de passe des comptes AlternC"

View File

@ -394,8 +394,8 @@ msgid "Last login"
msgstr "Dernière connexion"
#: ../admin/adm_list.php:78 ../admin/adm_list.php:76 ../admin/adm_list.php:106
msgid "Last fail"
msgstr "Dernier échec"
msgid "Recent fail"
msgstr "Échec récent"
#: ../admin/adm_list.php:78 ../admin/adm_list.php:76 ../admin/adm_list.php:107
msgid "Last ip"
@ -2845,3 +2845,5 @@ msgstr "qui existe dans ce r
msgid "Create this new MySQL user"
msgstr "Créer ce nouvel utilisateur MySQL"
msgid "Created on"
msgstr "Créé le"