From b235b7ce57a8714553dbba2f2f81793abea73cb1 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sat, 27 Oct 2007 07:30:11 +0000 Subject: [PATCH] un peu mieux pour le statut spam --- ecrire/exec/controle_forum.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ecrire/exec/controle_forum.php b/ecrire/exec/controle_forum.php index ce73855e6e..b77dcdf0ea 100644 --- a/ecrire/exec/controle_forum.php +++ b/ecrire/exec/controle_forum.php @@ -138,16 +138,22 @@ function controle_un_forum($row) { $controle .= debut_cadre_thread_forum("", true, "", typo($forum_titre)); - if ($forum_stat=="off" OR $forum_stat == "privoff") { - $controle .= "<div style='border: 2px #ff0000 dashed;'>"; + switch($forum_stat) { + case 'off': + case 'privoff': + $controle .= "<div style='border: 2px #ff0000 dashed;'>"; + break; + case 'prop': + $controle .= "<div style='border: 2px yellow solid; background-color: white;'>"; + break; + case 'spam': + $controle .= "<div style='border: 2px black dotted;'>"; + break; + default: + $controle .= "<div>"; + break; } - else if ($forum_stat=="prop") { - $controle .= "<div style='border: 2px yellow solid; background-color: white;'>"; - } - else { - $controle .= "<div>"; - } - + $controle .= "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n<tr><td style='width: 100%' valign='top'><table width='100%' cellpadding='5' cellspacing='0'>\n<tr><td class='serif'><span class='arial2'>" . date_interface($forum_date_heure) . "</span>"; -- GitLab