Standardisation de l'interface web d'AlternC, qui passe maintenant la

validation du w3c

Refonte de certains styles et couleurs, tel que discuté sur la liste de
discussion.

Des modifications locales peuvent maintenant être faites dans
styles/custom.css qui n'est pas distribué avec AlternC et donc jamais
remplacé.

Contribution de Marc Angles
Sponsorisé par Koumbit
This commit is contained in:
Antoine Beaupré 2008-04-10 18:05:51 +00:00
parent aad2d5ef0d
commit 9517d27d78
33 changed files with 456 additions and 338 deletions

3
.gitattributes vendored
View File

@ -202,7 +202,7 @@ bureau/admin/sta2_doedit_raw.php -text
bureau/admin/sta2_edit_raw.php -text bureau/admin/sta2_edit_raw.php -text
bureau/admin/sta2_list.php -text bureau/admin/sta2_list.php -text
bureau/admin/stats_members.php -text bureau/admin/stats_members.php -text
bureau/admin/styles/style.css -text bureau/admin/styles/base.css -text
bureau/admin/template.php -text bureau/admin/template.php -text
bureau/admin/web_list.php -text bureau/admin/web_list.php -text
bureau/admin/webmail/.htaccess -text bureau/admin/webmail/.htaccess -text
@ -243,7 +243,6 @@ bureau/locales/fr_FR/LC_MESSAGES/messages.po -text
bureau/locales/manual.pot -text bureau/locales/manual.pot -text
bureau/locales/messages.pot -text bureau/locales/messages.pot -text
bureau/locales/pt_BR/LC_MESSAGES/messages.po -text bureau/locales/pt_BR/LC_MESSAGES/messages.po -text
bureau/style.css -text
debian/.cvsignore -text debian/.cvsignore -text
debian/README.Debian -text debian/README.Debian -text
debian/alternc.cron.d -text debian/alternc.cron.d -text

View File

@ -56,7 +56,8 @@ if (!$mem->setid($id)) {
<html> <html>
<head> <head>
<title><?php __("AlternC Desktop"); ?></title> <title><?php __("AlternC Desktop"); ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<frameset cols="225px,*"> <frameset cols="225px,*">

View File

@ -44,17 +44,16 @@ include("head.php");
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p></body></html>";
} }
?> ?>
<blockquote> <ul id="adm_panel">
<table border="0" cellpadding="4" cellspacing="0"> <li class="lst1"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
<tr class="lst1"><td><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></td></tr> <li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
<tr class="lst2"><td><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></td></tr> <li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
<tr class="lst1"><td><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></td></tr> <li class="lst2"><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></li>
<tr class="lst2"><td><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></td></tr> <li class="lst1"><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></li>
<tr class="lst1"><td><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></td></tr> <li class="lst1"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
<tr class="lst1"><td><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></td></tr> <li class="lst2"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
<tr class="lst2"><td><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></td></tr> <li class="lst1"><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></li>
<tr class="lst1"><td><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></td></tr> <li class="lst1"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li>
<tr class="lst1"><td><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></td></tr>
<?php <?php
// here we include any "adminmenu_*" file content // here we include any "adminmenu_*" file content
@ -73,9 +72,7 @@ if ($d) {
closedir($d); closedir($d);
?> ?>
</ul>
</table>
</blockquote>
</body> </body>
</html> </html>

View File

@ -42,7 +42,7 @@ if (!$hlist[$hid]) {
<html> <html>
<head> <head>
<title>Aide en ligne <?php echo $host ?></title> <title>Aide en ligne <?php echo $host ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css"> <link rel="stylesheet" href="/admin/styles/base.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> </head>
<frameset cols="30%,*" onload="window.focus(); return true;"> <frameset cols="30%,*" onload="window.focus(); return true;">
@ -54,7 +54,3 @@ if (!$hlist[$hid]) {
Your browser must support frames Your browser must support frames
</noframes> </noframes>
</html> </html>
ames
</noframes>
</html>

View File

@ -129,20 +129,18 @@ include("head.php");
</head> </head>
<body> <body>
<table border="0" width="100%" cellspacing="0"> <div id="browser">
<tr><td> <h3><?php __("File browser"); ?></h3>
<hr /> <hr />
<table width="100%"><tr><td valign="top"> <table width="100%"><tr><td valign="top">
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br /> <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br />
<small> <small>
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?> <?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
</td><td valign="top" align="right"> </td><td valign="top" align="right">
<h3><?php __("File browser"); ?></h3>
<form action="bro_main.php" method="post" name="nn" id="nn"> <form action="bro_main.php" method="post" name="nn" id="nn">
<input type="hidden" name="R" value="<?php echo $R; ?>" /> <input type="hidden" name="R" value="<?php echo $R; ?>" />
<table><tr> <table id="add-file"><tr>
<td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td> <td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td>
<td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td> <td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td>
</tr><tr><td> </tr><tr><td>

View File

@ -82,7 +82,8 @@ if ($select) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Browser for folder</title> <title>Browser for folder</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php <?php
@ -100,7 +101,8 @@ if ($select) {
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Recherche d'un dossier</title> <title>Recherche d'un dossier</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript"> <script type="text/javascript">
/* Fonction appellée lors du lancement d'un popup Fichier : */ /* Fonction appellée lors du lancement d'un popup Fichier : */

View File

@ -41,7 +41,8 @@ if (!$mem->checkid()) {
<html> <html>
<head> <head>
<title>Administration de <?php echo $host ?></title> <title>Administration de <?php echo $host ?></title>
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
</head> </head>
<frameset cols="225px,*"> <frameset cols="225px,*">
<frame src="menu.php" name="left"> <frame src="menu.php" name="left">

View File

@ -45,9 +45,16 @@ exit();
if ($error) echo "<p class=\"error\">$error</p>"; if ($error) echo "<p class=\"error\">$error</p>";
?> ?>
<form method="post" action="dom_doadd.php" id="main"> <form method="post" action="dom_doadd.php" id="main">
<table><tr><td> <table><thead><?php __("Domain hosting"); ?></thead><tbody>
<b><label for="newdomain"><?php __("Domain name"); ?> : www.</label></b></td><td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /> <tr>
</td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td></tr> <th><label for="newdomain"><?php __("Domain name"); ?> : www.</label></th>
<td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /></td>
</tr>
<tr>
<th></th>
<td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td>
</tr>
</tbody>
</table> </table>
<p> <p>
<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br /> <input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br />

View File

@ -48,7 +48,8 @@ include("head.php");
} }
?> ?>
<form method="post" action="ftp_doadd.php" name="main"> <form method="post" action="ftp_doadd.php" name="main">
<table border="1" cellspacing="0" cellpadding="4"> <table><thead><?php __("Create a new ftp account"); ?></thead>
<tbody>
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
<label for="login"><?php __("Username"); ?></label></th><td> <label for="login"><?php __("Username"); ?></label></th><td>
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" /> <select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" />
@ -63,7 +64,7 @@ include("head.php");
</script> </script>
</td></tr> </td></tr>
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></td></tr> <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></td></tr>
</table> </tbody></table>
</form> </form>
<?php $mem->show_help("ftp_add"); ?> <?php $mem->show_help("ftp_add"); ?>
</body> </body>

View File

@ -56,8 +56,7 @@ if ($error) {
<p class="error"><?php echo $error ?></p> <p class="error"><?php echo $error ?></p>
<?php } ?> <?php } ?>
<form method="post" action="ftp_del.php"> <form method="post" action="ftp_del.php">
<table cellspacing="0" cellpadding="4">
<tr><th colspan="2">&nbsp;</th><th><?php __("Username"); ?></th><th><?php __("Folder"); ?></th></tr>
<?php <?php
reset($r); reset($r);
$col=1; $col=1;
@ -65,25 +64,24 @@ while (list($key,$val)=each($r))
{ {
$col=3-$col; $col=3-$col;
?> ?>
<tr class="lst<?php echo $col; ?>"> <dl>
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td> <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>
<td><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></td> <dd><span><?php __("Folder"); ?></span> <code>/<?php echo $val["dir"] ?></code></dd>
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td> <dd><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></dd>
<td><code>/<?php echo $val["dir"] ?></code></td> <dd><span></span></dd>
</tr> </dl>
<?php <?php
} }
?> ?>
<tr><td colspan="5"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></td></tr> <div class="delete"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></div>
</table>
</form> </form>
<?php if ($quota->cancreate("ftp")) { ?> <?php if ($quota->cancreate("ftp")) { ?>
<p> <p class="add">
<a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a> <a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a>
</p> </p>
<?php } <?php }
$mem->show_help("ftp_list"); $mem->show_help("ftp_list");
?> ?>
</body> </body>

View File

@ -32,7 +32,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Bureau</title> <title>Bureau</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" language="javascript" src="/admin/js/alternc.js"> <script type="text/javascript" language="javascript" src="/admin/js/alternc.js">
</script> </script>

View File

@ -56,7 +56,7 @@ include("head.php");
// --> // -->
</script></td> </script></td>
</tr> </tr>
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Protect this folder"); ?>" /></td></tr> <tr><td class="add" colspan="2"><input type="submit" class="inb" value="<?php __("Protect this folder"); ?>" /></td></tr>
</table> </table>
</form> </form>

View File

@ -41,39 +41,48 @@ $H=getenv("HTTP_HOST");
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>AlternC Desktop</title> <title>AlternC Desktop</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<body onload="document.forms['fmain'].username.focus();"> <body class="login" onload="document.forms['fmain'].username.focus();">
<h1><?php echo _("Administration of")." ".$H ?></h1>
<?php if ($error) echo "<font color=red>$error</font>"; ?> <?php if ($error) echo "<font color=red>$error</font>"; ?>
<p><?php echo _("Enter your username and password to connect to the virtual desktop")." [ ".$H." ]" ?></p> <p id="logo"><a href="http://alternc.org">
<img src="alternc.png" width="120" height="82" border="0" alt="<?php __("AlternC, Opensource hosting control panel"); ?>" title="<?php __("AlternC, Opensource hosting control panel"); ?>" /></a>
</p>
<div id="wrapper">
<form action="login.php" method="post" target="_top" id="fmain" name="fmain"> <form action="login.php" method="post" target="_top" id="fmain" name="fmain">
<div class="dlogin"> <table>
<table border="1" cellspacing="0" cellpadding="4" width="300" class="login"> <thead>
<tr><th align="right"><label for="username"><?php echo _("Username"); ?></label></th><td><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="20" autocomplete="off" /></td></tr> <tr><td colspan="2"><?php echo _("Administration of")." ".$H ?></td></tr>
<tr><th align="right"><label for="password"><?php echo _("Password"); ?></label></th><td><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="20" autocomplete="off" /></td></tr> </thead>
<tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /></td></tr> <tfoot>
<tr><td colspan="2" align="right"><label><input type="checkbox" class="inc" id="restrictip" name="restrictip" value="1" checked="checked"><?php __("Restrict this session to my ip address"); ?></label></td></tr> <tr><td colspan="2">
</table> <p><?php __("You must accept the session cookie to log-in"); ?></p>
</div> <p><?php __("You can use a different language: "); ?>
</form>
<p>&nbsp;</p>
<table width="100%" style="border: 0">
<tr><td style="text-align: left">
<?php __("You must accept the session cookie to log-in"); ?>
<br />
<?php __("You can use a different language: "); ?>
<?php <?php
foreach($locales as $l) { foreach($locales as $l) {
?> ?>
<a href="?setlang=<?php echo $l; ?>"><?php __($l); ?></a>&nbsp; <a href="?setlang=<?php echo $l; ?>"><?php __($l); ?></a>
<?php } ?> <?php } ?>
</td> </p>
<td style="text-align: right"> </td></tr>
<p> <a href="http://alternc.org"><img src="alternc.png" width="120" height="82" border="0" alt="<?php __("AlternC, Opensource hosting control panel"); ?>" title="<?php __("AlternC, Opensource hosting control panel"); ?>" /></a></p> </tfoot>
</td> <tbody>
<tr><td class="forminfo" colspan="2"><?php echo _("Enter your username and password to connect to the virtual desktop")."<br />[ ".$H." ]" ?></td></tr>
<tr>
<td class="username"><label for="username"><?php echo _("Username"); ?></label></td>
<td class="input_username"><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="20" /></td>
</tr> </tr>
<tr>
<td class="pass"><label for="password"><?php echo _("Password"); ?></label></td>
<td class="input_pass"><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="20" /></td>
</tr>
<tr><td class="login" colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /></td></tr>
<tr><td class="cookie_ack" colspan="2"><label><input type="checkbox" class="inc" id="restrictip" name="restrictip" value="1" checked="checked" /><?php __("Restrict this session to my ip address"); ?></label></td></tr>
</tbody>
</table> </table>
</form>
</div>
</body> </body>
</html> </html>

View File

@ -40,10 +40,11 @@ if (!$mem->checkid()) {
<html> <html>
<head> <head>
<title><?php __("AlternC Desktop"); ?></title> <title><?php __("AlternC Desktop"); ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<frameset cols="225px,*"> <frameset frameborder="0" cols="225px,*">
<frame src="menu.php" name="left" /> <frame src="menu.php" name="left" />
<frame src="main.php" name="right" /> <frame src="main.php" name="right" />
<noframes> <noframes>

View File

@ -33,7 +33,10 @@ include("head.php");
?> ?>
</head> </head>
<body> <body>
<?php
<h3>Ce bureau est un lieu de développement pour arranger minimalement alterc dans l'objectif d'y faire un "theme" plus joli et personnalisable</h3>
<div id="info"><?php
// Show last login information : // Show last login information :
__("Last Login: "); __("Last Login: ");
@ -87,14 +90,8 @@ if($admin->enabled) {
} }
} }
/* ?></div>
<h3>
Le bureau AlternC de ce serveur est en travaux actuellement.<br />
Il se peut que certaines parties du bureau soient inaccessibles ponctuellement.<br />
Si une partie du bureau ne fonctionne pas pendant longtemps, n'hésitez pas, contactez le
mainteneur par mail : <a href="mailto:root@heberge.info">root@heberge.info</a>
</h3>
*/
?>
</body> </body>
</html> </html>

View File

@ -36,7 +36,8 @@ $mem->del_session();
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title><?php __("Disconnected"); ?></title> <title><?php __("Disconnected"); ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<body> <body>

View File

@ -38,8 +38,8 @@ if ($help_setting) {
?> ?>
</head> </head>
<body> <body id="mem_param">
<div align="center"><h3><?php __("Settings of your account"); ?></h3></div> <h3><?php __("Settings of your account"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<font color=red>$error</font></body></html>"; echo "<font color=red>$error</font></body></html>";
@ -47,66 +47,57 @@ if ($help_setting) {
} }
?> ?>
<hr /> <hr />
<p>
<?php __("Password change"); ?> : <br />
<?php
if (!$mem->user["canpass"]) {
__("You cannot change your password");
echo "</p>";
} else {
__("help_chg_passwd"); ?>
</p>
<form method="post" action="mem_passwd.php"> <form method="post" action="mem_passwd.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<thead><tr><td colspan="2"><?php __("Password change"); ?></td></tr></thead>
<tr><td colspan="2">
<?php
if (!$mem->user["canpass"]) {
__("You cannot change your password");
}
else {
__("help_chg_passwd");
?>
</td></tr>
<tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php echo $oldpass; ?>" size="20" maxlength="128" /></td></tr> <tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php echo $oldpass; ?>" size="20" maxlength="128" /></td></tr>
<tr><th><?php __("New password"); ?> (1)</th><td><input type="password" class="int" name="newpass" value="<?php echo $newpass; ?>" size="20" maxlength="60" /></td></tr> <tr><th><?php __("New password"); ?> (1)</th><td><input type="password" class="int" name="newpass" value="<?php echo $newpass; ?>" size="20" maxlength="60" /></td></tr>
<tr><th><?php __("New password"); ?> (2)</th><td><input type="password" class="int" name="newpass2" value="<?php echo $newpass2; ?>" size="20" maxlength="61" /></td></tr> <tr><th><?php __("New password"); ?> (2)</th><td><input type="password" class="int" name="newpass2" value="<?php echo $newpass2; ?>" size="20" maxlength="61" /></td></tr>
<tr><td align="center" colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my password"); ?>" /></td></tr> <tr><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my password"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p>&nbsp;</p>
<?php } ?> <?php } ?>
<hr />
<form method="post" action="mem_chgmail.php"> <form method="post" action="mem_chgmail.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<tr><td colspan="2"><?php __("Change the email of the account"); ?><br /> <thead><tr><td colspan="2"><?php __("Change the email of the account"); ?></td></tr></thead>
<?php __("help_chg_mail"); ?></td></tr> <tr><td colspan="2"><?php __("help_chg_mail"); ?></td></tr>
<tr><th><?php __("Current mailbox"); ?></th><td><big><code><?php echo $mem->user["mail"]; ?></code></big></td></tr> <tr><th><?php __("Current mailbox"); ?></th><td><big><code><?php echo $mem->user["mail"]; ?></code></big></td></tr>
<tr><th><?php __("New mailbox"); ?></th><td><input type="text" class="int" name="newmail" value="<?php echo $newmail; ?>" size="40" maxlength="128" /></td></tr> <tr><th><?php __("New mailbox"); ?></th><td><input type="text" class="int" name="newmail" value="<?php echo $newmail; ?>" size="40" maxlength="128" /></td></tr>
<tr><td style="text-align: center" colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my mail"); ?>" /></td></tr> <tr><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my mail"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p>&nbsp;</p>
<hr />
<form method="post" action="mem_param.php"> <form method="post" action="mem_param.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<tr><td colspan="2"><?php __("Online help settings"); ?><br /> <thead><tr><td colspan="2"><?php __("Online help settings");?></td></tr></thead>
<?php __("help_help_settings"); ?></td></tr> <tr><td colspan="2"><?php __("help_help_settings"); ?></td></tr>
<tr><th><label for="showhelp"><?php __("Do you want to see the help texts and links on each page?"); ?></label></th><td><input type="checkbox" class="inc" id="showhelp" name="showhelp" value="1" <?php if ($mem->get_help_param()) echo "checked=\"checked\""; ?> /></td></tr> <tr><th><label for="showhelp"><?php __("Do you want to see the help texts and links on each page?"); ?></label></th><td><input type="checkbox" class="inc" id="showhelp" name="showhelp" value="1" <?php if ($mem->get_help_param()) echo "checked=\"checked\""; ?> /></td></tr>
<tr><td align="center" colspan="3"><input type="submit" class="inb" name="help_setting" value="<?php __("Change these settings"); ?>" /></td></tr> <tr><td colspan="3"><input type="submit" class="inb" name="help_setting" value="<?php __("Change these settings"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p>&nbsp;</p>
<?php <?php
if ($mem->user["su"]) { if ($mem->user["su"]) {
?> ?>
<hr />
<p>
<?php __("Admin preferences"); ?> :
</p>
<form method="post" action="mem_admin.php"> <form method="post" action="mem_admin.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<thead><tr><td colspan="2"><?php __("Admin preferences"); ?></td></tr></thead>
<tr><th><?php __("Members list view"); ?></th><td><select name="admlist" class="inl"> <tr><th><?php __("Members list view"); ?></th><td><select name="admlist" class="inl">
<option value="0"<?php if ($mem->user["admlist"]==0) echo " selected=\"selected\""; ?>><?php __("Large view"); ?></option> <option value="0"<?php if ($mem->user["admlist"]==0) echo " selected=\"selected\""; ?>><?php __("Large view"); ?></option>
<option value="1"<?php if ($mem->user["admlist"]==1) echo " selected=\"selected\""; ?>><?php __("Short view"); ?></option> <option value="1"<?php if ($mem->user["admlist"]==1) echo " selected=\"selected\""; ?>><?php __("Short view"); ?></option>
</select></td></tr> </select></td></tr>
<tr><td align="center" colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change my admin preferences"); ?>" /></td></tr> <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change my admin preferences"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p>&nbsp;</p>
<?php } ?> <?php } ?>
<hr /> <hr />
</body> </body>

View File

@ -33,11 +33,14 @@ include("head.php");
?> ?>
<base target="right" /> <base target="right" />
</head> </head>
<body> <body id="menu">
<div id="alternc-logo"><a href="http://alternc.org"><!-- img src="alternc.png" width="120" height="82" border="0" alt="AlternC" / -->AlternC</a>
<span><?php echo "$L_VERSION"; ?></span>
</div>
<h3>Menu <?php echo $mem->user["login"]; ?></h3> <h3>Menu <?php echo $mem->user["login"]; ?></h3>
<dl id="menu-list">
<table border="1" cellspacing="0" cellpadding="4"> <dt id="home"><?php __("Front page") ?></dt>
<tr><td nowrap="nowrap"><a href="main.php"><?php __("Front page") ?></a><br/></td></tr> <dd class="link"><a href="main.php"><?php __("Front page") ?></a></dd>
<?php <?php
$MENUPATH="/var/alternc/bureau/admin/"; $MENUPATH="/var/alternc/bureau/admin/";
$tt=fopen("menulist.txt","rb"); $tt=fopen("menulist.txt","rb");
@ -51,10 +54,5 @@ fclose($tt);
?> ?>
</table>
<p> <a href="http://alternc.org"><img src="alternc.png" width="120" height="82" border="0" alt="AlternC" /></a></p>
<p><?php echo "$L_VERSION"; ?>
</p>
</body> </body>
</html> </html>

View File

@ -35,12 +35,10 @@
if ($mem->checkRight()) if ($mem->checkRight())
{ ?> { ?>
<tr><td nowrap> <dt id="reseller">Reseller</dt>
<a href="adm_list.php"><font color="red"><?php __("Manage the members"); ?></font></a><br> <dd><a href="adm_list.php"><?php __("Manage the members"); ?></a></dd>
<a href="adm_panel.php"><font color="red"><?php __("Admin Control Panel"); ?></font></a><br> <dd><a href="adm_panel.php"><?php __("Admin Control Panel"); ?></a></dd>
<a href="/admin/sql/?server=2"><font color="red"><?php __("General SQL Admin"); ?></font></a><br> <dd><a href="/admin/sql/?server=2"><?php __("General SQL Admin"); ?></a></dd>
</td></tr>
<?php <?php
} }
?> ?>

View File

@ -29,6 +29,5 @@
*/ */
?> ?>
<tr><td nowrap="nowrap"> <dt id="help"><?php __("Online help"); ?></dt>
<a href="http://doc.alternc.org/user/" target="help"><?php __("Online help"); ?></a><br /> <dd><a href="http://doc.alternc.org/user/" target="help"><?php __("Online help"); ?></a></dd>
</td></tr>

View File

@ -30,6 +30,5 @@
/* ############# BROUTEUR ############# */ /* ############# BROUTEUR ############# */
?> ?>
<tr><td nowrap="nowrap"> <dt id="browser"><?php __("File browser"); ?></dt>
<a href="bro_main.php"><?php __("File browser"); ?></a><br /> <dd><a href="bro_main.php"><?php __("File browser"); ?></a></dd>
</td></tr>

View File

@ -32,17 +32,16 @@
$q=$quota->getquota("dom"); $q=$quota->getquota("dom");
if ($q["t"]>0) { if ($q["t"]>0) {
?> ?>
<tr><td nowrap="nowrap"> <dt><?php __("Domains"); ?></dt>
<?php __("Domains"); ?><br />
<?php if ($quota->cancreate("dom")) { ?> <?php if ($quota->cancreate("dom")) { ?>
- <a href="dom_add.php"><?php __("Add a domain"); ?></a><br /> <dd class="action"><a href="dom_add.php"><?php __("Add a domain"); ?></a></dd>
<?php } <?php }
/* Enumeration des domaines : */ /* Enumeration des domaines : */
$domain=$dom->enum_domains(); $domain=$dom->enum_domains();
reset($domain); reset($domain);
while (list($key,$val)=each($domain)) { while (list($key,$val)=each($domain)) {
?> ?>
- <a href="dom_edit.php?domain=<?php echo urlencode($val) ?>"><?php echo $val ?></a><br /> <dd class="element"><a href="dom_edit.php?domain=<?php echo urlencode($val) ?>"><?php echo $val ?></a></dd>
<?php } ?> <?php } ?>
</td></tr> </dd></dt>
<?php } ?> <?php } ?>

View File

@ -32,7 +32,6 @@
$q=$quota->getquota("ftp"); $q=$quota->getquota("ftp");
if ($q["t"]>0) { if ($q["t"]>0) {
?> ?>
<tr><td nowrap="nowrap"> <dt id="ftp"><?php __("FTP accounts"); ?></dt>
<a href="ftp_list.php"><?php __("FTP accounts"); ?></a><br /> <dd><a href="ftp_list.php"><?php __("FTP accounts"); ?></a></dd>
</td></tr>
<?php } ?> <?php } ?>

View File

@ -28,7 +28,7 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
?> ?>
<tr><td nowrap="nowrap"> <dt id="settings"><?php __("Settings"); ?></dt>
<a href="mem_param.php"><?php __("Settings"); ?></a><br /> <dd><a href="mem_param.php"><?php __("Settings"); ?></a></dd>
<a href="mem_logout.php" target="_parent"><?php __("Logout"); ?></a><br /> <dt id="logout"><?php __("Logout"); ?></dt>
</td></tr> <dd><a href="mem_logout.php" target="_parent"><?php __("Logout"); ?></a></dd>

View File

@ -28,6 +28,5 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
?> ?>
<tr><td nowrap="nowrap"> <dt id="quota"><?php __("Show my quotas"); ?></dt>
<a href="quota_show.php"><?php __("Show my quotas"); ?></a><br /> <dd><a href="quota_show.php"><?php __("Show my quotas"); ?></a></dd>
</td></tr>

View File

@ -30,12 +30,10 @@
$r=$quota->getquota("mysql"); $r=$quota->getquota("mysql");
if ($r["t"]) { if ($r["t"]) {
?> ?>
<tr><td nowrap="nowrap"> <dt id="mysql">MySQL</dt>
MySQL<br /> <dd><a href="sql_users_list.php"><?php __("MySQL Users") ?></a></dd>
- <a href="sql_users_list.php"><?php __("MySQL Users") ?></a><br /> <dd><a href="sql_list.php"><?php __("Databases"); ?></a></dd>
- <a href="sql_list.php"><?php __("Databases"); ?></a><br /> <dd><a target="_blank" href="sql_admin.php"><?php __("SQL Admin"); ?></a></dd>
- <a target="_blank" href="sql_admin.php"><?php __("SQL Admin"); ?></a><br />
</td></tr>
<?php <?php
} }
?> ?>

View File

@ -33,7 +33,6 @@ $q=$quota->getquota("sta2");
$r=$quota->getquota("dom"); $r=$quota->getquota("dom");
if ($q["t"]>0 && $r["u"]>0) { if ($q["t"]>0 && $r["u"]>0) {
?> ?>
<tr><td nowrap="nowrap"> <dt id="stats"><?php __("Raw web statistics"); ?></dt>
<a href="sta2_list.php"><?php __("Raw web statistics"); ?></a><br /> <dd><a href="sta2_list.php"><?php __("Raw web statistics"); ?></a></dd>
</td></tr>
<?php } ?> <?php } ?>

View File

@ -30,6 +30,5 @@
/* ############# WEB ACCESS ############# */ /* ############# WEB ACCESS ############# */
?> ?>
<tr><td nowrap="nowrap"> <dt id="web-access"><?php __("Protected folders"); ?></dt>
<a href="hta_list.php"><?php __("Protected folders"); ?></a><br /> <dd><a href="hta_list.php"><?php __("Protected folders"); ?></a></dd>
</td></tr>

View File

@ -0,0 +1,285 @@
body {
font-family: sans-serif;
font-size: 85%;
}
.hlp {
color: #202020;
}
td {
color: #000000;
}
th {
/* color: #007799;*/
}
h3 {
color: #CB781A;
}
h4 {
color: #007777;
}
hr {
border: none;
border-top: 1px solid #000;
}
.inp {
/* Should not be use anymore !!! */
border-color: blue;
border-width: 5px;
background-color: #500000;
color: white;
}
.inc, .inl {
border-style: none;
color: black;
}
.inb {
border: 1px solid #aaa;
color: black;
}
.int {
border: 1px solid #aaa;
color: black;
}
.lst1 {
background-color: #FFFFFF;
}
.lst2 {
background-color: #EEEEEE;
}
.dlogin {
text-align: center;
}
.login {
margin-left: auto;
margin-right: auto;
}
img {
border: 0px;
vertical-align: middle;
}
.error {
color: red;
font-weight: bold;
}
/* Over quota class */
.over {
color: red;
}
.code {
font-size: 16px;
font-family: Courier New, Fixed;
font-weight: bold;
text-align: center;
}
a {
color:#333;
}
a:hover {
color:#CB781A;
}
a:visited {
color:#985B16;
}
body#menu {
border-right:1px solid #000;
font-size: .9em;
padding-bottom: 2em;
margin:0;
}
body#menu img {
padding: 5px;
}
body#menu h3 {
padding-left: 5px;
margin: .5em 0;
}
#menu-list a {
display:block;
padding: 2px;
margin:0;
}
#menu-list a:hover {
color: #000;
background-color: #EBE0D0;
}
#menu dl {
margin: .5em 0;
}
#menu-list dt {
font-weight:bold;
color:#777;
font-size:.9em;
/*margin: 4px 0 2px 0;*/
padding: 7px .1em 0 5px;
/*background-color: #ccc;*/
border-bottom: 2px solid #ccc;
}
#menu-list dd {
padding:0;
margin:0;
font-size: 1em;
border-bottom: 1px solid #ccc;
}
#alternc-logo {
padding: .5em ;
text-align: center;
background-color: #CB781A;
}
#alternc-logo a {
color: #fff;
font-weight:bold;
}
#menu-list dd a {
padding: 0 0 0 15px;
text-decoration: none;
}
/**** Login ****/
body.login {
text-align:center;
margin: 2em 10em;
}
#wrapper {
margin: 0 auto;
}
body.login form {
}
.login img {
padding: 3em 1em 1em;;
}
.login form table {
width: 100%;
border: 1px solid #CB781A;
border-collapse:collapse;
}
.login form table thead {
font-weight: bold;
font-size: 1.5em;
padding: 1em;
background-color:#CB781A;
}
.login form table thead td{
color: white;
}
.login form table td.forminfo {
padding: 1em;
border-top: 1px solid #CB781A;
border-bottom: 1px solid #CB781A;
font-size: 110%;
}
td.username,
td.pass {
text-align: right;
padding: 0 0 0 .5em;
width: 50%;
font-weight: bold;
font-size: 1.2em;
letter-spacing: 2px;
}
td.input_username,
td.input_pass {
text-align: left;
width: 50%;
padding: 0 1em;
}
td.input_username input,
td.input_pass input {
/* width: 100%;*/
border-color:#CB781A;
font-family: Courrier New, fixed;
padding: 2px;
font-size: 110%;
}
td.input_username input:hover,
td.input_pass input:hover {
background-color:yellow;
}
td.username,
td.input_username {
padding-top: 1em;
}
td.pass,
td.input_pass {
padding-bottom: 1em;
}
.cookie_ack {
font-size: 85%;
padding-bottom: 1em;
font-weight: bold;
}
.login form table tfoot {
background-color:#F4D9B9;
border-top: 1px solid #CB781A;
margin-top: 2em;
font-size: 85%;
}
.login form table tfoot p {
margin: .3em;
}
input.inb {
font-weight: bold;
font-size: 100%;
letter-spacing: 2px;
padding: 1px 1em;
background-color:#fff;
}
input.inb:hover {
background-color:yellow;
}
input.inb:active {
background-color:red;
color: #fff;
}
/** menu param (intend to be the style of all the tables) **/
#mem_param table {
width: 70%;
border-collapse:collapse;
margin-bottom: 1em;
}
#mem_param table thead {
background-color:#CB781A;
}
#mem_param table thead td {
color: #fff;
font-weight: bold;
}
#mem_param table th {
width: 50%;
text-align: right;
}
#mem_param table input {
}
#mem_param table input.inb {
float: right;
}
#mem_param input.inb {
font-size: .8em
}

View File

@ -1,128 +0,0 @@
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
background-color: white;
}
.hlp {
font-family: Helvetica, Tahoma, sans-serif;
font-size: 10px;
color: #202020;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #007799;
font-weight: bold;
}
h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
color: #007777;
text-align: center;
}
h4 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: bold;
color: #007777;
}
hr {
color: #007799;
border-color: #007799;
}
.inp {
/* Should not be use anymore !!! */
border-color: blue;
border-width: 5px;
background-color: #500000;
color: white;
}
.inc, .inl {
background-color: #FFFFF0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
border-style: none;
color: black;
}
.inb {
background-color: #FFFFF0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: black;
}
.int {
background-color: #FFFFF0;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: black;
border-width: 1px;
border-color: black;
border-style: solid;
}
.lst1 {
background-color: #FFFFFF;
}
.lst2 {
background-color: #EEEEEE;
}
.dlogin {
text-align: center;
}
.login {
margin-left: auto;
margin-right: auto;
}
img {
border: 0px;
vertical-align: middle;
}
.error {
color: red;
font-weight: bold;
}
/* Over quota class */
.over {
color: red;
}
.code {
font-size: 16px;
font-family: Courier New, Fixed;
font-weight: bold;
text-align: center;
}
.exp1 {
background-color: #6284F3;
}
.exp2 {
background-color: #62F37A;
}
.exp3 {
background-color: #F36262;
}

View File

@ -40,5 +40,5 @@
sur serveurs mutualisés, d'Altern.org et de Lautre Net" /> sur serveurs mutualisés, d'Altern.org et de Lautre Net" />
<meta name="keywords" content="Hébergement, Logiciel d'hébergement, Altern, Lautre Net, GPL, Développement" /> <meta name="keywords" content="Hébergement, Logiciel d'hébergement, Altern, Lautre Net, GPL, Développement" />
<link rel="stylesheet" href="/style.css" type="text/css" /> <link rel="stylesheet" href="/admin/styles/base.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

View File

@ -1,34 +0,0 @@
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #000000
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #000000
}
th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 0.9em;
color: #007799;
font-weight: bold
}
h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 1.2em;
font-weight: bold;
color: #007777
}
hr {
color: #007799;
border-color: #007799;
}
.inp {
background-color: #C0C0FF;
}

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
alternc (0.9.7+dev) stable; urgency=low UNRELEASED
* standardisation of the web interface, along with some esthetic changes, by
Marc Angles, sponsored by Koumbit
* styles can now be changed locally in admin/styles/base.css
-- Antoine Beaupré <anarcat@koumbit.org> Thu, 10 Apr 2008 13:56:22 -0400
alternc (0.9.7) stable; urgency=low alternc (0.9.7) stable; urgency=low
* major release, closing more than 40 bugs, including... * major release, closing more than 40 bugs, including...