From: Pierre Habouzit Date: Tue, 9 Sep 2003 15:21:42 +0000 (+0000) Subject: relooking X-Git-Tag: procmail~55 X-Git-Url: http://git.polytechnique.org/?p=old-projects.git;a=commitdiff_plain;h=86b5093c27b4c24bf77edd715ed30967e89ff08f relooking --- diff --git a/philter/philter/css/default.css b/philter/philter/css/default.css index 72d20e5..9d1b45b 100644 --- a/philter/philter/css/default.css +++ b/philter/philter/css/default.css @@ -47,12 +47,16 @@ table.bicol tr.impair { background-color: #cccccc; } -/********** DIV **********/ - -div.row { - padding: 2px; +table.bicol div { + padding: 3px; + border-bottom: 1px solid; } +div.rubrique { + border-top: 1px solid #000080; + border-bottom: 1px solid #000080; + background: #cccccc; +} /******************************************************************************** * $id: header.inc.php,v 1.2 2003/08/03 16:02:41 madcoder exp $ * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100 nocin: diff --git a/philter/philter/include/emails.inc.php b/philter/philter/include/emails.inc.php index 766d91c..e83b5b4 100644 --- a/philter/philter/include/emails.inc.php +++ b/philter/philter/include/emails.inc.php @@ -98,33 +98,38 @@ class EmailPool { */ function to_form() { $res = "
\n" - . "\n"; + . "
\n" + . "\n" + . " \n" + . " \n" + . "\n"; $pair = true; + foreach($this->emails as $id => $email) { - $res .= "\n" + $res .= "\n" + . "\n" + . "\n" + . "\n" . "\n"; $pair = !$pair; } - $res .= "\n" - . "\n" - . "
EmailActive 
\n" - . " is_active() ? " checked=\"checked\"" : "")." /> ".$email->email."\n" - . "
".$email->email."\n" + . " is_active() ? " checked=\"checked\"" : "")." />
\n" - . "
\n
\n"; + $res .= "\n" + . "
\n" + . " \n" + . "
\n" + . "\n"; $val = 'your email ...'; $res .= "
\n" - . "\n" - . "\n" - . "
\n" - . " \n" - . " \n" - . "
\n
\n"; + . "\n" + . "\n" + . "\n"; return $res; } diff --git a/philter/philter/include/plugin_bogofilter.inc.php b/philter/philter/include/plugin_bogofilter.inc.php index 4e2efe4..cb0243a 100644 --- a/philter/philter/include/plugin_bogofilter.inc.php +++ b/philter/philter/include/plugin_bogofilter.inc.php @@ -42,7 +42,7 @@ class BogoPlugin extends MatchPlugin { } function to_form() { - $res = "\n" + $res = "
\n" . "\n"; $res .= "\n"; diff --git a/philter/philter/index.php b/philter/philter/index.php index cb7a870..bdddba1 100644 --- a/philter/philter/index.php +++ b/philter/philter/index.php @@ -38,11 +38,13 @@ if(count($_POST)) { // a FORM has been submitted require("include/js_factory.inc.php"); /********** globals plugins **********/ - +?> +
The global configuration +
+config['global_plugin'])) { echo "\n" - ."
BogoFilterTODO
\n" - ."\n"; + ."
Global rules
\n"; foreach($philter->config['global_plugin'] as $g_plugin) { echo "
\n"; @@ -57,24 +59,23 @@ if(count($philter->config['global_plugin'])) { /********** emails **********/ ?> - - - -
Emails pool
+
+
The redirection address pool +
to_form(); -?> -
- - - -
Filtering rules
+
+
The individuals rules +
+ +
- +
+
Filter List
rules as $id=>$rule) @@ -95,7 +96,7 @@ echo $mail_pool->to_form();
- +
@@ -105,9 +106,9 @@ echo $mail_pool->to_form();
- -
Rule Configuration -
+ +
Rule Configuration +
Name of this rule : to_form(); One match
Blocking Rule -
Matches List -
-
Actions List -
+
Matches List +
+
Actions List +
diff --git a/philter/philter/philter.js b/philter/philter/philter.js index f3686bd..4205314 100644 --- a/philter/philter/philter.js +++ b/philter/philter/philter.js @@ -120,7 +120,6 @@ function createActionSelect(data,base) { function createActionRow(Node,data) { var div = document.createElement("div"); - div.className = 'row'; div.name = 'rule[actions]['+actions_i+']'; actions_i++; Node.appendChild(div); @@ -164,7 +163,6 @@ function createMatchSelect(data,base) { function createMatchRow(Node,data) { var div = document.createElement("div"); - div.className = 'row'; div.name = 'rule[matches]['+actions_i+']'; actions_i++; Node.appendChild(div);