fix a few style issues, mainly with the buttons, FTP accounts and
Mailbox displays. Contributed by: Marc Angles Sponsored by: Koumbit
This commit is contained in:
parent
81295909f5
commit
47958a8922
|
@ -38,7 +38,7 @@ if (!$r=$ftp->get_list($domain)) {
|
|||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<body id="ftp-account-list">
|
||||
<h3><?php __("FTP accounts list"); ?></h3>
|
||||
<?php
|
||||
if ($noftp) {
|
||||
|
@ -55,6 +55,15 @@ if ($error) {
|
|||
?>
|
||||
<p class="error"><?php echo $error ?></p>
|
||||
<?php } ?>
|
||||
<?php if ($quota->cancreate("ftp")) { ?>
|
||||
<p class="add">
|
||||
<a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a>
|
||||
</p>
|
||||
<div id="help">
|
||||
<?php }
|
||||
$mem->show_help("ftp_list");
|
||||
?></div>
|
||||
<div class="delete"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></div>
|
||||
<form method="post" action="ftp_del.php">
|
||||
|
||||
<?php
|
||||
|
@ -64,10 +73,14 @@ while (list($key,$val)=each($r))
|
|||
{
|
||||
$col=3-$col;
|
||||
?>
|
||||
<dl>
|
||||
<dt><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /><strong><?php __("Username"); ?>:</strong> <label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></dt>
|
||||
<dd><span><?php __("Folder"); ?></span> <code>/<?php echo $val["dir"] ?></code></dd>
|
||||
<dd><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></dd>
|
||||
<dl class="ftp-account">
|
||||
<dt><input type="checkbox" class="inc" id="del_<?php echo
|
||||
$val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php
|
||||
echo $val["id"]; ?>" /><?php __("Username"); ?>:<strong> <label
|
||||
for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"]
|
||||
?></label></strong></dt>
|
||||
<dd><span><?php __("Folder"); ?>: <code>/<?php echo $val["dir"] ?></code></span</dd>
|
||||
<dd class="edit"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></dd>
|
||||
<dd><span></span></dd>
|
||||
</dl>
|
||||
|
||||
|
@ -76,13 +89,5 @@ while (list($key,$val)=each($r))
|
|||
?>
|
||||
<div class="delete"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></div>
|
||||
</form>
|
||||
|
||||
<?php if ($quota->cancreate("ftp")) { ?>
|
||||
<p class="add">
|
||||
<a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a>
|
||||
</p>
|
||||
<?php }
|
||||
$mem->show_help("ftp_list");
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -33,15 +33,14 @@ $q=$quota->getquota("mail");
|
|||
$r=$quota->getquota("dom");
|
||||
if ($q["t"]>0 && $r["u"]>0) {
|
||||
?>
|
||||
<tr><td nowrap="nowrap">
|
||||
<?php __("Mailboxes"); ?><br />
|
||||
<dt><?php __("Mailboxes"); ?></dt>
|
||||
<?php
|
||||
/* Enumeration des domaines en mail : */
|
||||
$domain=$mail->enum_domains();
|
||||
reset($domain);
|
||||
while (list($key,$val)=each($domain)) {
|
||||
?>
|
||||
- <a href="mail_list.php?domain=<?php echo urlencode($val) ?>"><?php echo $val ?></a><br />
|
||||
<dd><a href="mail_list.php?domain=<?php echo urlencode($val)
|
||||
?>"><?php echo $val ?></a></dd>
|
||||
<?php } ?>
|
||||
</td></tr>
|
||||
<?php } ?>
|
||||
|
|
|
@ -245,8 +245,7 @@ td.input_pass {
|
|||
input.inb {
|
||||
font-weight: bold;
|
||||
font-size: 100%;
|
||||
letter-spacing: 2px;
|
||||
padding: 1px 1em;
|
||||
padding: 1px .1em;
|
||||
background-color:#fff;
|
||||
}
|
||||
input.inb:hover {
|
||||
|
@ -282,4 +281,57 @@ input.inb:active {
|
|||
}
|
||||
#mem_param input.inb {
|
||||
font-size: .8em
|
||||
}
|
||||
}
|
||||
|
||||
/** ftp accounts list **/
|
||||
body#ftp-account-list input .inc {
|
||||
clear:both;
|
||||
}
|
||||
body#ftp-account-list div.delete {
|
||||
clear: both;
|
||||
margin: 1em 0;
|
||||
}
|
||||
body#ftp-account-list label {
|
||||
font-weight: bold;
|
||||
color: #CB781A;
|
||||
font-size: 120%;
|
||||
}
|
||||
body#ftp-account-list dt {
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: .2em 0 .3em;
|
||||
margin: 0 0 .3em
|
||||
}
|
||||
body#ftp-account-list dd {
|
||||
margin-left: .3em;
|
||||
font-size: 120%;
|
||||
float: left;
|
||||
}
|
||||
body#ftp-account-list dd code {
|
||||
margin-left: .3em;
|
||||
color: #CB781A;
|
||||
}
|
||||
dl.ftp-account {
|
||||
border: 1px solid #eee;
|
||||
display: block;
|
||||
float: left;
|
||||
margin: 0 1em 1em 0;
|
||||
padding: .4em;
|
||||
background-color: #fdfcfc;
|
||||
width: 45%;
|
||||
}
|
||||
body#ftp-account-list .edit {
|
||||
border: 1px solid #aaa;
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
font-size: 100%;
|
||||
padding: 0 .2em;
|
||||
background-color:#fff;
|
||||
float: right;
|
||||
}
|
||||
body#ftp-account-list .edit:hover {
|
||||
background-color:yellow;
|
||||
}
|
||||
body#ftp-account-list .edit:active {
|
||||
background-color:red;
|
||||
color: #fff;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue