function shalouka_generate_impayes_table($impayerData) { if (empty($impayerData)) return ""; $html = ''; $html .= ''; $odd = true; foreach ($impayerData as $row) { $bg = $odd ? "#fff" : "#eee"; $html .= ""; $odd = !$odd; } $html .= "
No commande Nom Courriel Total ($)
{$row['no']} {$row['nom']} {$row['email']} {$row['total']} \$
"; return $html; }