Update code using new css class

This commit is contained in:
philippe grand
2017-04-12 17:44:01 +02:00
parent d74baea1d3
commit edaa3ae672
7 changed files with 49 additions and 111 deletions

View File

@@ -170,8 +170,7 @@ foreach($configfileparameters as $key)
continue;
}
$var=!$var;
print "<tr ".$bc[$var].">";
print '<tr class="oddeven">';
if ($newkey == 'separator')
{
print '<td colspan="3">&nbsp;</td>';
@@ -233,14 +232,12 @@ if ($resql)
{
$num = $db->num_rows($resql);
$i = 0;
$var=True;
while ($i < $num)
{
$obj = $db->fetch_object($resql);
$var=!$var;
print '<tr '.$bc[$var].'>';
print '<tr class="oddeven">';
print '<td>'.$obj->name.'</td>'."\n";
print '<td>'.$obj->value.'</td>'."\n";
if (empty($conf->multicompany->enabled) || !$user->entity) print '<td>'.$obj->entity.'</td>'."\n"; // If superadmin or multicompany disabled