Commit 142e45f2 authored by chris's avatar chris Committed by fred

misc menu changes

parent bb03bbe7
......@@ -34,14 +34,14 @@ include("head.php");
</head>
<body>
<h3>Bienvenue sur votre bureau</h3>
<h3>Bienvenue <?php echo $mem->user["login"]; ?> sur votre bureau</h3>
<div id="info"><?php
// Show last login information :
__("Last Login: ");
echo format_date('the %3$d-%2$02d-%1$02d at %4$d:%5$02d',$mem->user["lastlogin"]);
printf("&nbsp;"._('from: <code> %1$s </code>')."<br />",$mem->user["lastip"]);
echo format_date('le %3$d-%2$02d-%1$02d &aacute; %4$dh%5$02d',$mem->user["lastlogin"]);
printf("&nbsp;"._('depuis %1$s ')."<br />",$mem->user["lastip"]);
if ($mem->user["lastfail"]) {
printf(_("%1\$d login failed since last login")."<br />",$mem->user["lastfail"]);
......@@ -59,12 +59,10 @@ if ($inc && $rss_url) {
$rss = fetch_rss($rss_url);
if ($rss) {
echo "<h2>" . _("Latest news") . "</h2>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "<h3><a href=$href>$title</a></h3>";
echo '<span class="date">'.$item['pubdate'] .'</span> - ';
echo $item['summary'];
}
}
......
......@@ -36,10 +36,13 @@ include("head.php");
<body id="menu">
<div id="alternc-logo"><a href="http://www.domainepublic.net">Domaine Public</a>
</div>
<h3>Menu <?php echo $mem->user["login"]; ?></h3>
<dl id="menu-list">
<dt id="home"><?php __("Front page") ?></dt>
<dd class="link"><a href="main.php"><?php __("Front page") ?></a></dd>
<dd class="link"><a href="/transat/profile#account">Profil</a></dd>
<dd><a href="quota_show.php"><?php __("Show my quotas"); ?></a></dd>
<dd><a href="http://www.aide-alternc.org/" target="help"><?php __("Online help"); ?></a></dd>
<?php
$MENUPATH="/var/alternc/bureau/admin/";
$tt=fopen("menulist.txt","rb");
......
......@@ -42,7 +42,6 @@ if ($mem->checkRight())
<dt id="reseller">Transat</dt>
<dd><a href="../transat/accounts/list/">Membres</a></dd>
<dd><a href="../transat/accounts/adherents/">Adh&eacute;rents</a></dd>
<dd><a href="../transat/logviewer/">Visualiseur de logs</a></dd>
<?php
}
?>
......@@ -30,5 +30,7 @@
/* ############# BROUTEUR ############# */
?>
<dt id="browser"><?php __("File browser"); ?></dt>
<dt id="browser">Fichiers</dt>
<dd><a href="bro_main.php"><?php __("File browser"); ?></a></dd>
<dd><a href="ftp_list.php"><?php __("FTP accounts"); ?></a></dd>
<dd><a href="hta_list.php"><?php __("Protected folders"); ?></a></dd>
......@@ -30,7 +30,7 @@
$r=$quota->getquota("mysql");
if ($r["t"]) {
?>
<dt id="mysql">MySQL</dt>
<dt id="mysql">Bases de donn&eacute;es</dt>
<dd><a href="sql_users_list.php"><?php __("MySQL Users") ?></a></dd>
<dd><a href="sql_list.php"><?php __("Databases"); ?></a></dd>
<dd><a target="_blank" href="sql_admin.php"><?php __("SQL Admin"); ?></a></dd>
......
......@@ -5,7 +5,7 @@ $r=$quota->getquota("dom");
if ($q["t"]>0 && $r["u"]>0) {
?>
<dt id="webalizer"><?php __("Web Statistics"); ?></dt>
<dt id="webalizer">Statistiques</dt>
<dd><a href="webalizer_list.php"><?php __("Web Statistics"); ?></a></dd>
<?php } ?>
......@@ -20,5 +20,5 @@ if ($q["t"]>0 && $r["u"]>0) {
<?php } ?>
<dd><a href="../transat/webstats/">Webstats (beta)</a></dd>
<dd><a href="../transat/logviewer/">Visualiseur de logs</a></dd>
<dd><a href="../transat/webstats/">Webstats</a></dd>
<dd><a href="../transat/profile#logviewer">Visualiseur de logs</a></dd>
......@@ -138,19 +138,19 @@ body#menu h3 {
padding:0;
margin:0;
font-size: 1em;
border-bottom: 1px solid #ccc;
}
#alternc-logo {
padding: .5em ;
padding: .5em;
text-align: center;
background-color: #CB781A;
}
#alternc-logo a {
color: #fff;
font-weight:bold;
text-decoration: none;
}
#menu-list dd a {
padding: 0 0 0 15px;
padding: 1px 0 1px 15px;
text-decoration: none;
}
......
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