[enh] fontawesome css everywhere (almost)

This commit is contained in:
Benjamin Sonntag 2018-06-23 11:46:45 +02:00
parent 2f00c01b48
commit 0f59614372
11 changed files with 181 additions and 198 deletions

View File

@ -51,7 +51,7 @@ echo $msg->msg_html_all();
<form method="post" action="dom_doadd.php" id="main">
<?php csrf_get(); ?>
<p>
<label for="newdomain"><b><?php __("Domain name"); ?> :</b></label> <span class="int" id="newdomwww">www.</span><input type="text" class="int" id="newdomain" name="newdomain" value="<?php ehe($newdomain); ?>" size="32" maxlength="255" /> <a class="inb configure" href="dom_import.php"><?php __("Advanced import"); ?></a>
<label for="newdomain"><b><?php __("Domain name"); ?> :</b></label> <span class="int" id="newdomwww">www.</span><input type="text" class="int" id="newdomain" name="newdomain" value="<?php ehe($newdomain); ?>" size="32" maxlength="255" /> <a class="inb settings" href="dom_import.php"><?php __("Advanced import"); ?></a>
</p>
<p>
<input type="checkbox" name="dns" class="inc" value="1" id="yndns"<?php cbox($dns=="1"); ?>/>&nbsp;<label for="yndns"><?php __("host my dns here"); ?></label>

View File

@ -76,7 +76,7 @@ for($i=0;$i<count($r);$i++){
?>
</table>
<br />
<input type="submit" class="ina up" name="submit" value="<?php __("Unprotect the checked folders"); ?>" />
<input type="submit" class="ina unlock" name="submit" value="<?php __("Unprotect the checked folders"); ?>" />
<span class="ina add"><a href="hta_add.php"><?php __("Protect a folder"); ?></a></span>
</form>

View File

@ -75,7 +75,7 @@ echo $msg->msg_html_all(true, true);
<?php } // $quota->cancreate("mail") ?>
</td>
<td>
<span class="inb configure" valign='bottom'><a href="mail_manage_catchall.php?domain_id=<?php echo $domain_id?>"><?php __("Manage Catch-all for this domain");?></a></span>
<span class="inb settings" valign='bottom'><a href="mail_manage_catchall.php?domain_id=<?php echo $domain_id?>"><?php __("Manage Catch-all for this domain");?></a></span>
</td>
</tr>
</table>

View File

@ -42,13 +42,11 @@ echo "</div>";
$obj_menu = $menu->getmenu();
foreach ($obj_menu as $k => $m ) {
echo "<style>.$k-menu .menu-title { background-image: url('".$m['ico']."'); background-repeat: no-repeat; background-position: 8px 3px; padding-left: 30px;} </style>";
echo "<div class='menu-box {$k}-menu ".(!empty($m['divclass'])?$m['divclass']:'')."'>\n";
echo " <a href=\"".$m['link']."\"";
if (!empty($m['target'])) echo " target='". $m['target']."' ";
echo ">\n";
echo " <span class='menu-title'>\n";
//echo " <img src='".$m['ico']."' alt=\"".$m['title']."\" width='16px' height='16px' />&nbsp;";
echo " <span class='";
if (!empty($m['class'])) echo $m['class']." ";
echo "'>"; // fin span ouvrant
@ -58,17 +56,6 @@ foreach ($obj_menu as $k => $m ) {
echo " (".$m['quota_used']."/".$m['quota_total'].")";
echo "</span>\n";
} // if there are some quota
if ( empty($m['links'])) {
$i = "images/menu_right.png";
// img machin
} else {
if ( $m['visibility'] ) {
$i="/images/menu_moins.png";
} else {
$i="/images/menu_plus.png";
}
}
echo " <img src='$i' alt='' style='float:right;' width='16px' height='16px' id='menu-$k-img'/>\n";
echo " </span>";
echo " </span>\n";
echo " </a>\n";

View File

@ -187,12 +187,14 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")."&nbsp;<a hre
function sortlink($txt,$asc,$desc) {
global $order,$mode,$sd,$usr;
if ($order==$asc) $neworder=$desc; else $neworder=$asc;
echo "<th";
if ($order==$asc) echo " class=\"headerSortUp\"";
if ($order==$desc) echo " class=\"headerSortDown\"";
echo ">";
echo "<a href=\"quotas_users.php?order=".$neworder."&mode=".$mode."&sd=".$sd."&usr=".$usr."\">";
echo $txt;
echo "</a>";
echo " &nbsp; &nbsp; ";
if ($order==$asc) echo "<img src=\"icon/sort0.png\" alt=\"sorted up\" title=\"sorted up\" />";
if ($order==$desc) echo "<img src=\"icon/sort1.png\" alt=\"sorted down\" title=\"sorted down\" />";
echo "</th>";
}
?>
@ -203,14 +205,14 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")."&nbsp;<a hre
<thead>
<tr><th rowspan="2"><?php sortlink(_("Account"),0,1); ?></th><th colspan="3"><?php __("Count"); ?></th><th colspan="5"><?php __("Space"); ?></th></tr>
<tr>
<th><?php sortlink(_("Dom"),2,3); ?></th>
<th><?php sortlink(_("Mails"),4,5); ?></th>
<th><?php sortlink(_("Lists"),6,7); ?></th>
<th><?php sortlink(_("Web"),8,9); ?></th>
<th><?php sortlink(_("Mails"),10,11); ?></th>
<th><?php sortlink(_("Lists"),12,13); ?></th>
<th><?php sortlink(_("DB"),14,15); ?></th>
<th><?php sortlink(_("Total"),16,17); ?></th>
<?php sortlink(_("Dom"),2,3); ?>
<?php sortlink(_("Mails"),4,5); ?>
<?php sortlink(_("Lists"),6,7); ?>
<?php sortlink(_("Web"),8,9); ?>
<?php sortlink(_("Mails"),10,11); ?>
<?php sortlink(_("Lists"),12,13); ?>
<?php sortlink(_("DB"),14,15); ?>
<?php sortlink(_("Total"),16,17); ?>
</tr>
</thead>
<tbody>

View File

@ -27,7 +27,7 @@ require_once("../class/config.php");
include_once("head.php");
?>
<h3><?php __("MySQL Databases - Configure backups"); ?></h3>
<h3 class="backup"><?php __("MySQL Databases - Configure backups"); ?></h3>
<hr id="topbar"/>
<br />
<?php

View File

@ -55,11 +55,10 @@ if ($msg->has_msgs("ERROR")) {
$i = 0;
foreach ($res as $r) {
$i++;
$title = (count($res) > 1)?"Paramètres ".$i:"Paramètres";
?>
<table class="tedit">
<tr>
<th colspan="2" style='text-align:center;'><?php echo '<h1>'.$title.'</h1>'; ?></th>
<th colspan="2" style='text-align:center;'><?php echo '<h1>'._("Database Settings").'</h1>'; ?></th>
</tr>
<tr>
<th><?php __("Mysql Server"); ?></th>
@ -86,22 +85,28 @@ if(isset($r['user'])){
// We test the 'Rights' value to know if this user have all or only specific rights.
if ($r["Rights"] == 'All') {
$rights = "Tous";
$rights = _("All permissions");
} else {
$rights = "<span style='color:orange;'>Sélectifs</span>";
$rights = "<span style='color:orange;'>"._("Specific permissions")."</span>";
}
?>
<td><?php echo $rights; ?>&nbsp;&nbsp;<span class="ina configure"><a href="sql_users_rights.php?id=<?php echo $r["user"] ?>"><?php __("Manage the rights"); ?></a></span></td>
</tr>
<tr>
<td colspan="2" align="center">
<a href="/sql_pma_sso.php?db=<?php echo $dbname; ?>" target="_blank"><?php __("Click here to access PhpMyAdmin interface"); ?></a>
</td>
<td>
<?php echo $rights; ?>
&nbsp;
<a class="inb permissions" href="sql_users_rights.php?id=<?php echo $r["user"] ?>"><?php __("Manage the rights"); ?></a>
</td>
</tr>
<?php
}
?>
</table>
<p>
<a class="inb settings" href="/sql_pma_sso.php?db=<?php echo $dbname; ?>" target="_blank"><?php __("Access PhpMyAdmin interface"); ?></a>
</p>
<p>
<?php
if(!isset($r['user'])){
echo "<p class=\"alert alert-warning\">";__("You changed the MySQL User base configuration. Please refer to your configuration");echo"</p><p>&nbsp;</p>";

View File

@ -61,10 +61,10 @@ for($i=0;$i<count($rdb);$i++) {
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["db"]; ?>" name="del_<?php echo $val["db"]; ?>" value="<?php echo ($val["db"]); ?>" /></td>
<td><label for="del_<?php echo $val["db"]; ?>"><?php echo $val["db"]; ?></label></td>
<?php if ( variable_get('sql_allow_users_backups') ) { ?>
<td><div class="ina down"><a href="sql_bck.php?id=<?php echo $val["db"] ?>"><?php __("Backup"); ?></a></div></td>
<td><div class="ina backup"><a href="sql_bck.php?id=<?php echo $val["db"] ?>"><?php __("Backup"); ?></a></div></td>
<?php } // sql_allow_users_backups ?>
<td><div class="ina up"><a href="sql_restore.php?id=<?php echo $val["db"] ?>"><?php __("Restore"); ?></a></div></td>
<td><div class="ina configure"><a href="sql_getparam.php?dbname=<?php echo $val["db"] ?>"><?php __("Show Settings"); ?></a></div></td>
<td><div class="ina restore"><a href="sql_restore.php?id=<?php echo $val["db"] ?>"><?php __("Restore"); ?></a></div></td>
<td><div class="ina settings"><a href="sql_getparam.php?dbname=<?php echo $val["db"] ?>"><?php __("Show Settings"); ?></a></div></td>
<td><code><?php echo format_size($val["size"]); ?></code></td>
</tr>
<?php
@ -73,7 +73,7 @@ for($i=0;$i<count($rdb);$i++) {
}
?>
<tr><td colspan="6">
<input type="submit" name="sub" value="<?php __("Delete the checked databases"); ?>" class="inb delete" />
<button type="submit" name="sub" class="inb delete"><?php __("Delete the checked databases"); ?></button>
</td></tr>
</table>
</form>

View File

@ -47,7 +47,7 @@ if (!is_array($r)) {
exit;
}
?>
<h3><?php printf(_("Restore a MySQL backup for database %s"),$r["db"]); ?></h3>
<h3 class="restore"><?php printf(_("Restore a MySQL backup for database %s"),$r["db"]); ?></h3>
<?php
echo "<p>";
__("Warning: Write the complete path and the filename. <br />For example if your backups are in the directory /Backups,<br />write /Backups/file.sql.gz (where file.sql.gz is the filename).");

View File

@ -51,7 +51,7 @@ for($i=0;$i<count($r);$i++) {
<input type="checkbox" class="inc" id="del_<?php echo $val["name"]; ?>" name="del_<?php echo $val["name"]; ?>" value="<?php echo $val["name"]; ?>" />
</td>
<td><label for="del_<?php echo $val["name"]; ?>"><?php echo $val["name"]; ?></label></td>
<td><span class="ina configure"><a href="sql_users_rights.php?id=<?php echo $val["name"] ?>"><?php __("Manage the rights"); ?></a></span></td>
<td><span class="ina permissions"><a href="sql_users_rights.php?id=<?php echo $val["name"] ?>"><?php __("Manage the rights"); ?></a></span></td>
<td><span class="ina lock"><a href="sql_users_password.php?id=<?php echo $val["name"] ?>"><?php __("Password change"); ?></a></span></td>
</tr>
<?php
@ -62,8 +62,9 @@ for($i=0;$i<count($r);$i++) {
</table>
<br/>
<input type="submit" name="sub" value="<?php __("Delete the checked users"); ?>" class="inb delete" />
<p>
<button type="submit" name="sub" class="inb delete"><?php __("Delete the checked users"); ?></button>
</p>
</form>
<?php

View File

@ -714,7 +714,8 @@ form[action="mman_edit.php"] > table > tbody > tr.lst1:hover, form[action="mman_
}
.menu-box a .menu-title {
border-bottom: 1px solid #e7e7e7;
border-bottom: 1px solid #e7e7e7;
padding-left: 10px;
}
.menu-box li:last-child {
@ -1120,10 +1121,6 @@ div > .add a:hover, p > a.add:hover {
}
input.add:hover, input.add:focus, button.add:focus {
background-image: url(../icon/add.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
color: #fff;
background-color: #449d44;
border-color: #398439;
@ -1144,10 +1141,6 @@ div > .delete a:hover, p > a.delete:hover {
}
input.delete:hover, input.delete:focus {
background-image: url(../icon/delete.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
color: #fff;
background-color: #d9534f;
border-color: #d43f3a;
@ -1185,43 +1178,49 @@ input.cancel:active, button.cancel:active {
background-color: #dff0d8;
}
.configure a, a.configure, input.configure {
background-image: url(../icon/configure.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
.input.unlock:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f09c";
padding-right: 6px;
}
.save a, a.save, input.save {
background-image: url(../icon/save.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
.save a:before, a.save:before, input.save:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f0c7";
padding-right: 6px;
}
.down a, a.down, input.down {
background-image: url(../icon/save.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
h3.backup:before, .backup a:before, a.backup:before, input.backup:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f0a0 \f104";
padding-right: 6px;
}
.up a, a.up, input.up {
background-image: url(../icon/up.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
padding-top: 5px;
padding-bottom: 5px;
h3.restore:before, .restore a:before, a.restore:before, input.restore:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f0a0 \f105";
padding-right: 6px;
}
.up a:hover, a.up:hover, input.up:hover {
background-image: url(../icon/up.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
padding-top: 5px;
padding-bottom: 5px;
th.headerSortUp:before, .sortup:before a, a.sortup:before, input.sortup:before {
cursor: pointer;
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f15e";
padding-right: 6px;
}
th.headerSortDown:before, .sortdown:before a, a.sortdown:before, input.sortdown:before {
cursor: pointer;
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f15d";
padding-right: 6px;
}
#btb1.ina {
@ -1229,137 +1228,143 @@ input.cancel:active, button.cancel:active {
padding-bottom: 4px;
}
.back a, a.back, input.back {
background-image: url(../icon/back.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
.back a:before, a.back:before, input.back:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f04a";
padding-right: 6px;
}
.admin a, a.admin, input.admin, .admin-menu .menu-title {
background-image: url(../images/admin.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.permissions a:before, a.permissions:before, input.permissions:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f2bb";
padding-right: 6px;
}
.home a, a.home, input.home, .home-menu .menu-title {
background-image: url(../images/home.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
margin-top: 10px;
border-top: 1px solid #ddd;
.admin a:before, a.admin:before, input.admin:before, .admin-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f552";
padding-right: 6px;
}
.home a:before, a.home:before, input.home:before, .home-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f015";
padding-right: 6px;
}
.dom-edit-table td {
height: 2.4em;
}
.dom a, a.dom, input.dom, .dom-menu .menu-title {
background-image: url(../images/dom.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.dom a:before, a.dom:before, input.dom:before, .dom-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f57c";
padding-right: 6px;
}
.mail a, a.mail, input.mail, .mail-menu .menu-title {
background-image: url(../images/mail.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.mail a:before, a.mail:before, input.mail:before, .mail-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f0e0";
padding-right: 6px;
}
.bro a, a.bro, input.bro, .bro-menu .menu-title {
background-image: url(../images/folder.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.bro a:before, a.bro:before, input.bro:before, .bro-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f07c";
padding-right: 6px;
}
.hta a, a.hta, input.hta, .hta-menu .menu-title {
background-image: url(../images/password.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.hta a:before, a.hta:before, input.hta:before, .hta-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f084";
padding-right: 6px;
}
.ftp a, a.ftp, input.ftp, .ftp-menu .menu-title {
background-image: url(../images/ftp.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.ftp a:before, a.ftp:before, input.ftp:before, .ftp-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f0a0";
padding-right: 6px;
}
.cron a, a.cron, input.cron, .cron-menu .menu-title {
background-image: url(../images/schedule.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.cron a:before, a.cron:before, input.cron:before, .cron-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f017";
padding-right: 6px;
}
.lxc a, a.lxc, input.lxc, .lxc-menu .menu-title {
background-image: url(../images/ssh.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.lxc a:before, a.lxc:before, input.lxc:before, .lxc-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f120";
padding-right: 6px;
}
.mysql a, a.mysql, input.mysql, .mysql-menu .menu-title {
background-image: url(../images/mysql.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.mysql a:before, a.mysql:before, input.mysql:before, .mysql-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f1c0";
padding-right: 6px;
}
.quota a, a.quota, input.quota, .quota-menu .menu-title {
background-image: url(../images/quota.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.quota a:before, a.quota:before, input.quota:before, .quota-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f200";
padding-right: 6px;
}
.authip a, a.authip, input.authip, .authip-menu .menu-title {
background-image: url(../images/ip.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.authip a:before, a.authip:before, input.authip:before, .authip-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f5ab";
padding-right: 6px;
}
.log a, a.log, input.log, .log-menu .menu-title {
background-image: url(../images/logs.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.log a:before, a.log:before, input.log:before, .log-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f1da";
padding-right: 6px;
}
.help a, a.help, input.help, .help-menu .menu-title {
background-image: url(../images/help.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.help a:before, a.help:before, input.help:before, .help-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f128";
padding-right: 6px;
}
.lang a, a.lang, input.lang, .lang-menu .menu-title {
background-image: url(../images/lang.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.lang a:before, a.lang:before, input.lang:before, .lang-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f1ab";
padding-right: 6px;
}
.mem a, a.mem, input.mem, .mem-menu .menu-title {
background-image: url(../images/settings.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
.mem a:before, a.mem:before, input.mem:before, .mem-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f1de";
padding-right: 6px;
}
.filter a, a.edit, input.filter {
background-image: url(../icon/filter.png);
background-repeat: no-repeat;
background-position: 8px 5px;
padding-left: 30px;
.filter a:before, a.edit:before, input.filter:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f0b0";
padding-right: 6px;
}
@ -1466,22 +1471,6 @@ li.ui-state-active[role='tab'] {
padding: 0 16px;
}
th.headerSortUp {
background-image: url(../images/asc.gif);
background-repeat: no-repeat;
background-position: right;
cursor: pointer;
background-color: #3399FF;
}
th.headerSortDown {
background-image: url(../images/desc.gif);
background-repeat: no-repeat;
background-position: right;
cursor: pointer;
background-color: #3399FF;
}
.sub-disabled {
text-decoration: line-through;
}
@ -1674,12 +1663,11 @@ small > i {
}
}
.logout a, a.logout, input.logout, .logout-menu .menu-title {
background-image: url(../images/exit.png);
background-repeat: no-repeat;
background-position: 8px 10px;
padding-left: 30px;
text-align: center;
.logout a:before, a.logout:before, input.logout:before, .logout-menu .menu-title:before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content:"\f2f5";
padding-right: 6px;
}
.alternc_powered {