Commit 33732a5d authored by Alan Garcia's avatar Alan Garcia

Ajout d'une fleche sur les menu

parent 6cb836c4
......@@ -35,7 +35,10 @@ if (isset($q["t"]) && isset($r["u"]) && $q["t"] > 0 && $r["u"] > 0) {
?>
<div class="menu-box">
<a href="aws_list.php">
<div class="menu-title"><img src="images/stat.png" alt="<?php __("Web Statistics"); ?>" />&nbsp;<?php __("Web Statistics"); ?> (<?= $q["u"]; ?>/<?= $q["t"]; ?>)</div>
<div class="menu-title">
<img src="images/stat.png" alt="<?php __("Web Statistics"); ?>" />&nbsp;<?php __("Web Statistics"); ?> (<?= $q["u"]; ?>/<?= $q["t"]; ?>)
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
<?php } ?>
......@@ -138,11 +138,11 @@ for($i=0;$i<$r["nsub"];$i++) {
<td><div class="retour-auto"><?php __($r['sub'][$i]['type_desc']); ?>
<?php
//if ($r["sub"][$i]['type'] === 'VHOST') {
if ( $dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {
if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {
$iidir=$r["sub"][$i]["dest"];
if ($iidir=='') $iidir='/';
echo '<br /><a href="bro_main.php?R='.urlencode($iidir).'">'.htmlspecialchars($iidir).'</a>';
if ( ! file_exists($bro->convertabsolute($iidir,0))) { echo " <i style='color:red;'>"._("Directory not found")."</i>"; }
if ( ! file_exists($bro->convertabsolute($iidir,0))) { echo " <span class=\"alerte\">"._("Directory not found")."</span>"; }
} else {
if ($r["sub"][$i]['type']) echo "<br />".htmlspecialchars($r["sub"][$i]["dest"]);
}
......
bureau/admin/images/menu_right.png

455 Bytes | W: | H:

bureau/admin/images/menu_right.png

417 Bytes | W: | H:

bureau/admin/images/menu_right.png
bureau/admin/images/menu_right.png
bureau/admin/images/menu_right.png
bureau/admin/images/menu_right.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -23,6 +23,9 @@
?>
<div class="menu-box">
<a href="<?php echo $help_baseurl; ?>" target="help">
<div class="menu-title"><img src="images/help.png" alt="<?php __("Online help"); ?>" />&nbsp;<?php __("Online help"); ?></div>
<div class="menu-title">
<img src="images/help.png" alt="<?php __("Online help"); ?>" />&nbsp;<?php __("Online help"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
......@@ -24,6 +24,9 @@
?>
<div class="menu-box">
<a href="bro_main.php">
<div class="menu-title"><img src="images/folder.png" alt="<?php __("File browser"); ?>" />&nbsp;<?php __("File browser"); ?></div>
<div class="menu-title">
<img src="images/folder.png" alt="<?php __("File browser"); ?>" />&nbsp;<?php __("File browser"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
......@@ -30,7 +30,8 @@ if ($q['t'] > 0 || $q['u'] > 0) {
<div class="menu-box">
<a href="cron.php">
<div class="menu-title">
<img src="images/schedule.png" alt="<?php __("Scheduled tasks"); ?>" width=16px height=16px/>&nbsp;<?php __("Scheduled tasks"); ?> (<?php echo $q["u"].'/'.$q["t"]; ?>)
<img src="images/schedule.png" alt="<?php __("Scheduled tasks"); ?>" width=16px height=16px/>&nbsp;<?php __("Scheduled tasks"); ?> (<?php echo $q["u"].'/'.$q["t"]; ?>)
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
......
......@@ -28,6 +28,7 @@
<a href="ip_main.php">
<div class="menu-title">
<img src="images/ip.png" alt="<?php __("Access security"); ?>" width="16" height="16" />&nbsp;<?php __("Access security"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
......@@ -26,7 +26,10 @@
?>
<div class="menu-box">
<a href="logs_list.php">
<div class="menu-title"><img src="images/logs.png" alt="<?php __("Logs"); ?>" width="16" height="16" />&nbsp;<?php __("Logs"); ?></div>
<div class="menu-title">
<img src="images/logs.png" alt="<?php __("Logs"); ?>" width="16" height="16" />&nbsp;<?php __("Logs"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
......
......@@ -32,8 +32,8 @@ if ($q["u"] > 0 || ( $r["u"] > 0 && $q['t'] > 0 )) {
<div class="menu-box">
<a href="javascript:menu_toggle('menu-mail');">
<div class="menu-title">
<img src="images/mail.png" alt="<?php __("Email Addresses"); ?>" />&nbsp;<?php __("Email Addresses"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-mail-img"/>
<img src="images/mail.png" alt="<?php __("Email Addresses"); ?>" />&nbsp;<?php __("Email Addresses"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-mail-img"/>
</div>
</a>
<div class="menu-content" id="menu-mail">
......
......@@ -23,7 +23,10 @@
?>
<div class="menu-box">
<a href="mem_param.php">
<div class="menu-title"><img src="images/config.png" alt="<?php __("Settings"); ?>" />&nbsp;<?php __("Settings"); ?></div>
<div class="menu-title">
<img src="images/config.png" alt="<?php __("Settings"); ?>" />&nbsp;<?php __("Settings"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
<div class="menu-box">
......
......@@ -28,7 +28,8 @@ if (!empty($piwik->piwik_server_uri) && ($q["t"] > 0 || $r["u"] > 0)) {
<div class="menu-box">
<a href="javascript:menu_toggle('menu-piwik');">
<div class="menu-title">
<img src="images/stat.png" alt="<?php __("Piwik statistics"); ?>" />&nbsp;<?php __("Piwik statistics"); ?>&nbsp;(<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="images/stat.png" alt="<?php __("Piwik statistics"); ?>" />&nbsp;<?php __("Piwik statistics"); ?>&nbsp;(<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
<div class="menu-content" id="menu-piwik">
......
......@@ -25,6 +25,7 @@
<a href="quota_show.php">
<div class="menu-title">
<img src="images/quota.png" alt="<?php __("Show my quotas"); ?>" />&nbsp;<?php __("Show my quotas"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
<?php
......@@ -66,7 +67,7 @@
$url = ($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php');
echo "<dd>";
echo '<div><a href="' . $url . '">' . /* _($val) */ _("quota_".$key) . ' ' . $usage_percent . '%' . ' (' . format_size($q[$key]["u"]) . ' / ' . format_size($q[$key]["t"]) . ')</a></div>';
echo '<div><a href="' . $url . '">' . /* _($val) */ _("quota_".$key) . ' ' . $usage_percent . '%' . ' <small>(' . format_size($q[$key]["u"],true) . '&nbsp;/&nbsp;' . format_size($q[$key]["t"],true) . ')</small></a></div>';
echo "</dd>";
echo "<dd>";
echo '<div class="progress-bar">';
......
......@@ -71,6 +71,16 @@ hr {
border-width: 1px 0 0 0;
}
a {
text-decoration: none;
color: #0D5689;
}
a:hover {
text-decoration: underline;
color: #000000;
}
fieldset {
border: 1px solid #555;
}
......@@ -93,23 +103,35 @@ fieldset {
}
.inb {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
border: 1px solid #999;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
padding: 4px;
padding-left: 6px;
padding-right: 6px;
padding: 4px 6px;
color: black;
background-color: #CFE3F1;
cursor: pointer;
margin-right: 4px;
height: 25px;
vertical-align: middle;
}
.inb:hover {
background-color: #BFD3E1;
}
.ina a, .ina a:hover, .inb a, .inb a:hover {
color: #000;
text-decoration: none;
vertical-align: middle;
line-height: 15px;
}
span.inb {
display: inline-block;
height: 15px;
padding: 4px 6px;
}
input.ina:hover, input.ina, input.inav, input.inav:hover {
border: 1px solid #999;
......@@ -147,12 +169,17 @@ input.inav:hover, .inav a:hover, a.inav:hover {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
display: inline-block;
vertical-align: middle;
line-height: 15px;
height: 15px;
}
input[type=button],
input[type=submit] {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
height: 25px;
}
.ina a:hover, a.ina:hover, .inav a:hover, a.inav:hover {
text-decoration: none;
......@@ -161,7 +188,8 @@ input[type=submit] {
.ina img, .ina img {
vertical-align: middle;
padding: 2px 2px 5px 0;
padding: 0 2px 0 0;
float: left;
}
.bff {
border: 1px solid #999;
......@@ -220,6 +248,11 @@ img {
text-align: left;
}
.alerte {
color: #A00;
font-style: italic;
}
/* Over quota class */
.over {
color: red;
......@@ -408,16 +441,6 @@ table.searchtable td {
margin-right: auto;
}
a {
text-decoration: none;
color: #0D5689;
}
a:hover {
text-decoration: underline;
color: #000000;
}
.border {
border: 1px solid #C0DCF0;
}
......
......@@ -269,7 +269,7 @@ function ife($test,$tr,$fa="") {
return $fa;
}
function format_size($size) {
function format_size($size,$html=0) {
// Retourne une taille formatte en Octets, Kilo-octets, Mga-octets ou Giga-Octets, avec 2 dcimales.
if ("-" == $size) {
return $size;
......@@ -300,7 +300,11 @@ function format_size($size) {
}
}
}
return $r;
if ($html) {
return str_replace(" ","&nbsp;",$r);
}else{
return $r;
}
}
function getlinkhelp($hid) {
......@@ -635,7 +639,7 @@ function display_browser($dir="", $caller="main.dir", $width=350, $height=450) {
open: function()
{
$('.ui-widget-overlay').css('opacity', .70);
$('.ui-dialog-content').css('background-color', '#F0F0F4');
$('.ui-dialog-content').css('background-color', '#F0F0FA');
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment