Conditionnement de l'accs au droit user->admin.

Remplacement des border=0/1 par class="noborder/border"
This commit is contained in:
Laurent Destailleur
2004-02-15 00:05:21 +00:00
parent 3e2d08bbb2
commit ecf819ea2c
11 changed files with 131 additions and 33 deletions

View File

@@ -21,6 +21,9 @@
*/
require("./pre.inc.php");
if (!$user->admin)
accessforbidden();
//
// TODO mettre cette section dans la base de donn<6E>es
//
@@ -80,8 +83,9 @@ if (!$user->admin)
print_titre("Modules");
print '<table class="border" cellpadding="3" cellspacing="0">';
print '<TR class="liste_titre">';
print '<br>';
print '<table class="noborder" cellpadding="3" cellspacing="0">';
print '<tr class="liste_titre">';
print '<td>Nom</td>';
print '<td>Info</td>';
print '<td align="center">Activ<69></td>';
@@ -124,9 +128,12 @@ while (($file = readdir($handle))!==false)
}
sort($orders);
$var=True;
foreach ($orders as $key => $value)
{
$var=!$var;
$modName = $modules[$orders[$key]];
if ($modName)
@@ -137,7 +144,7 @@ foreach ($orders as $key => $value)
$const_name = $objMod->const_name;
$const_value = $objMod->const_config;
print '<tr class="pair"><td>';
print "<tr $bc[$var]><td>";
echo $objMod->name;
print "</td><td>\n";
print $objMod->description;