Improve css example and fix notices again
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sun, 16 Jul 2006 09:15:55 +0000 (09:15 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:02 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@114 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/spool.inc.php
css/banana.css

index ef3e36f..b2e04f6 100644 (file)
@@ -186,11 +186,16 @@ class BananaSpool
 
         foreach ($msgids as $id=>$msgid) {
             $msg                = new BananaSpoolHead($dates[$id], $subjects[$id], $froms[$id]);
-            $refs[$id]          = str_replace('><', '> <', $refs[$id]);
-            $msgrefs            = preg_split("/[ \t]/", strtr($refs[$id], $this->ids));
-            $parents            = preg_grep('/^\d+$/', $msgrefs);
-            $msg->parent        = array_pop($parents);
-            $msg->parent_direct = preg_match('/^\d+$/', array_pop($msgrefs));
+            if (isset($ref[$id])) {
+                $refs[$id]          = str_replace('><', '> <', $refs[$id]);
+                $msgrefs            = preg_split("/[ \t]/", strtr($refs[$id], $this->ids));
+                $parents            = preg_grep('/^\d+$/', $msgrefs);
+                $msg->parent        = array_pop($parents);
+                $msg->parent_direct = preg_match('/^\d+$/', array_pop($msgrefs));
+            } else {
+                $msg->parent        = null;
+                $msg->parent_direct = null;
+            }
 
             if (isset($this->overview[$id])) {
                 $msg->desc     = $this->overview[$id]->desc;
index c432901..fd7f852 100644 (file)
@@ -49,6 +49,10 @@ h1 {
     margin: 1em 0em;
 }
 
+/****
+ * Bicolor table
+ */
+
 table.bicol {
     border-collapse: collapse;
     border: 1px solid #a2c2e1;
@@ -66,7 +70,11 @@ table.bicol th {
 
 table.bicol td { padding: 0px 4px; }
 
-table.cadre_a_onglet{
+/****
+ * Tabs
+ */
+
+table.cadre_a_onglet {
     width: 100%;
     border-width: 0;
     padding : 0;
@@ -84,6 +92,7 @@ td.conteneur_tab {
     display : block;
     margin : 0;
     padding : 0;
+    margin-left: 3px;
 }
 
 #onglet li {
@@ -97,19 +106,21 @@ td.conteneur_tab {
     border-color : #a2c2e1;
     border-bottom-color : #a2c2e1;
     width: auto;
-    height: 5ex;
+    height: 3.5ex;
     text-align: center;
+    font-size: 80%;
+    vertical-align: middle;
 }
 
 #onglet li:hover { background : #d6e1ec; }
 
 #onglet li.actif {
+    font-weight: bold;
     background-color: #fff;
-    border-bottom-color : #eceade;
+    border-bottom-color : #fff;
 }
 
 #onglet li a {
-    font-size: 80%;
     font-weight : normal;
     text-decoration : none;
 }