Commit f5fbcedd authored by Alan Garcia's avatar Alan Garcia

Fix #1441

parent 27254771
......@@ -222,6 +222,8 @@ bureau/admin/images/ip.png -text
bureau/admin/images/lang.png -text
bureau/admin/images/logs.png -text
bureau/admin/images/mail.png -text
bureau/admin/images/menu_moins.png -text
bureau/admin/images/menu_plus.png -text
bureau/admin/images/minus.png -text
bureau/admin/images/mysql.png -text
bureau/admin/images/new.png -text
......
......@@ -52,7 +52,7 @@ if (!$charset) $charset="UTF-8";
<body>
<div id="global">
<div id="content" style="width:100%;">
<div id="content" style="width:1000px;">
<p id="logo"> <img src="logo.png" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" /></a>
</p>
......
......@@ -201,7 +201,14 @@ function is_valid_mail(arg) {
}
function menu_toggle(id) {
$("#"+id).toggle();
$("#"+id).toggle(200, function() {
// Animation complete.
if ($("#"+id).is(":hidden")) {
$("#"+id+"-img").attr("src","images/menu_plus.png");
} else {
$("#"+id+"-img").attr("src","images/menu_moins.png");
}
});
/* Pour quand on voudra enregistrer l'etat du menu ;)
var tmp = {};
......
......@@ -43,9 +43,15 @@ if (!$charset) $charset="UTF-8";
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
</head>
<body style="margin: 20px;">
<h3 style="text-align: center"><?php __("Disconnected"); ?></h3>
<div id="global">
<?php __("You have been logged out of your administration desktop."); ?><br />
<a href="../index.php"><?php __("Click here to log in"); ?></a>
<div id="content" style="width:1000px;">
<h3 style="text-align: center"><?php __("Disconnected"); ?></h3>
<?php __("You have been logged out of your administration desktop."); ?><br />
<p><a href="../index.php"><?php __("Click here to log in"); ?></a></p>
<p>&nbsp;</p>
</div>
</div>
</body>
</html>
\ No newline at end of file
</html>
......@@ -30,7 +30,7 @@ if ($mem->checkRight()) { ?>
<a href="javascript:menu_toggle('menu-adm');">
<div class="menu-title">
<img src="images/admin.png" alt="Administration" />&nbsp;<span class="adminmenu"><?php __("Administration"); ?></span>
<img src="images/row-down.png" alt="" style="float:right;"/>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-adm-img"/>
</div>
</a>
<div class="menu-content" id ="menu-adm">
......
......@@ -32,7 +32,7 @@ if ($q["t"] > 0 || $q['u'] > 0)
<a href="javascript:menu_toggle('menu-dom');">
<div class="menu-title" id="test">
<img src="images/dom.png" alt="<?php __("Domains"); ?>" />&nbsp;<?php __("Domains"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="images/row-down.png" alt="" style="float:right;"/>
<img src="images/menu_moins.png" alt="" style="float:right;" id="menu-dom-img"/>
</div>
</a>
<div class="menu-content" id="menu-dom">
......
......@@ -31,7 +31,7 @@ if ($q["t"] > 0 || $q['u'] > 0) {
<a href="javascript:menu_toggle('menu-ftp');">
<div class="menu-title">
<img src="images/ftp.png" alt="<?php __("FTP accounts"); ?>" />&nbsp;<?php __("FTP accounts"); ?> <?php if (!$quota->cancreate("ftp")) { echo '<span class="full">'; } ?>(<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)<?php if (!$quota->cancreate("ftp")) { echo '</span>'; } ?>
<img src="images/row-down.png" alt="" style="float:right;"/>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-ftp-img"/>
</div>
</a>
<div class="menu-content" id="menu-ftp">
......
......@@ -2,7 +2,7 @@
<a href="javascript:menu_toggle('menu-lang');">
<div class="menu-title">
<img src="/images/lang.png" alt="<?php __("Languages"); ?>" />&nbsp;<?php __("Languages"); ?>
<img src="/images/row-down.png" alt="" style="float:right;"/>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-lang-img"/>
</div>
</a>
<div class="menu-content" id="menu-lang">
......
......@@ -33,7 +33,7 @@ if ($q["u"] > 0 || ( $r["u"] > 0 && $q['t'] > 0 )) {
<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/row-down.png" alt="" style="float:right;"/>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-mail-img"/>
</div>
</a>
<div class="menu-content" id="menu-mail">
......
......@@ -27,7 +27,7 @@ if ($q["t"] > 0 || $q['u'] >0) {
<a href="javascript:menu_toggle('menu-sql');">
<div class="menu-title">
<img src="images/mysql.png" alt="MySQL" />&nbsp;MySQL (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="/images/row-down.png" alt="" style="float:right;"/>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-sql-img"/>
</div>
</a>
<div class="menu-content" id="menu-sql">
......
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