layout and 'tutoiement'
[old-projects.git] / philter / philter / index.php
index 447a12f..4ba4396 100644 (file)
@@ -52,14 +52,17 @@ if(count($philter->config['global_plugins'])) {
     echo "<form action=\"{$_SERVER['REQUEST_URI']}\" method=\"post\">\n"
         ."<table width=\"95%\" class=\"bicol\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n";
 
+    $pair = 0;
     foreach($philter->config['global_plugins'] as $id=>$g_plugin) {
-        echo "<tr><td>\n";
+        echo "<tr><td class='".($pair ? 'pair':'impair')."'>\n";
         echo $g_plugin->to_form($filter->get_global_data($id));
         echo "</td></tr>\n";
-        
+        $pair = 1 - $pair;
     }
-    echo "<tr><td align='center'><input type='submit' name='global[submit]' value='"._i18n('apply_changes')."'/></td></tr>\n"
-        ."</table>\n"
+
+    echo "</table><br />\n"
+        ."<center><input type='submit' name='global[submit]' value='"
+        ._i18n('apply_changes')."'/></center\n"
         ."</form>\n";
 }