Modif affcihage suivant login

This commit is contained in:
Rodolphe Quiedeville 2005-09-14 14:38:08 +00:00
parent 1dc54515f9
commit 8771469501

View File

@ -135,7 +135,8 @@ if ($_GET["id"])
print $db->error() . ' ' . $sql; print $db->error() . ' ' . $sql;
} }
if ($user->distributeur_id == 0 || $user->responsable_distributeur_id > 0)
{
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td colspan="2">Total commission</td></tr>'; print '<tr class="liste_titre"><td colspan="2">Total commission</td></tr>';
@ -169,10 +170,16 @@ if ($_GET["id"])
print $db->error() . ' ' . $sql; print $db->error() . ' ' . $sql;
} }
print '</table><br />'; print '</table><br />';
}
if ($user->distributeur_id == 0 || $user->responsable_distributeur_id > 0)
{
print '</td><td valign="top" width="30%">'; print '</td><td valign="top" width="30%">';
/* PO */ /* comm */
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
@ -211,6 +218,7 @@ if ($_GET["id"])
} }
print '</table><br />'; print '</table><br />';
print '</td><td valign="top" width="30%">'; print '</td><td valign="top" width="30%">';
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">'; print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
@ -250,7 +258,7 @@ if ($_GET["id"])
print $db->error() . ' ' . $sql; print $db->error() . ' ' . $sql;
} }
print '</table><br />'; print '</table><br />';
}
print '</td></tr>'; print '</td></tr>';
print '</table></div>'; print '</table></div>';