]> code.citadel.org Git - citadel.git/commitdiff
* Mailbox summary view -- headers are now ever-present; they do not scroll
authorArt Cancro <ajc@citadel.org>
Mon, 7 Nov 2005 04:28:14 +0000 (04:28 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 7 Nov 2005 04:28:14 +0000 (04:28 +0000)
  with the table.

webcit/ChangeLog
webcit/messages.c
webcit/static/webcit.css

index 5005e18aa89ca0dd451b366a992773e743d9c4a5..bf097c1f00f04d799a3af95e5fed6caddae8f6cf 100644 (file)
@@ -1,10 +1,14 @@
 $Id$
 
-Sun Nov  6 22:30:54 EST 2005
+Sun Nov  6 23:27:21 EST 2005 ajc
+* Mailbox summary view -- headers are now ever-present; they do not scroll
+  with the table.
+
+Sun Nov  6 22:30:54 EST 2005 ajc
 * Changed keypress handling so that it works not only in web browsers, but in
   Internet Explorer as well.
 
-Sun Nov  6 12:26:43 EST 2005
+Sun Nov  6 12:26:43 EST 2005 ajc
 * Message delete: table row delete is now handled by a script.aculo.us effect
   instead of by just clearing out the innerHTML of the table row div, because
   IE barfs on the latter.
index a88dbf545f94bb8497c457bcd21d4d813c3282e8..455207e75bc26014546a7102389c7e02266e7ab5 100644 (file)
@@ -10,6 +10,9 @@
 #include "webserver.h"
 #include "groupdav.h"
 
+#define SUBJ_COL_WIDTH_PCT             50
+#define SENDER_COL_WIDTH_PCT           30
+#define DATE_PLUS_BUTTONS_WIDTH_PCT    20
 
 /* Address book entry (keep it short and sweet, it's just a quickie lookup
  * which we can use to get to the real meat and bones later)
@@ -1341,15 +1344,15 @@ void display_summarized(int num) {
                WC->summ[num].msgnum
        );
 
-       wprintf("<td>");
+       wprintf("<td width=%d%%>", SUBJ_COL_WIDTH_PCT);
        escputs(WC->summ[num].subj);
        wprintf("</td>");
 
-       wprintf("<td>");
+       wprintf("<td width=%d%%>", SENDER_COL_WIDTH_PCT);
        escputs(WC->summ[num].from);
        wprintf("</td>");
 
-       wprintf("<td>");
+       wprintf("<td width=%d%%>", DATE_PLUS_BUTTONS_WIDTH_PCT);
        fmt_date(datebuf, WC->summ[num].date, 1);       /* brief */
        escputs(datebuf);
        wprintf("</td>");
@@ -2013,15 +2016,14 @@ void readloop(char *oper)
                );
 
                /* note that Date and Delete are now in the same column */
-               wprintf("<div id=\"message_list\">"
-
-                       "<div id=\"fix_scrollbar_bug\">\n"
-
-                       "<span class=\"mailbox_summary\">"
-                       "<table id=\"summary_headers\" rules=rows cellspacing=0 style=\"width:100%%\"><tr>"
-                       "<td><b><i>%s</i></b> %s</td>"
-                       "<td><b><i>%s</i></b> %s</td>"
-                       "<td><b><i>%s</i></b> %s"
+               wprintf("<div id=\"message_list_hdr\">"
+                       "<div id=\"fix_scrollbar_bug\">"
+                       "<table cellspacing=0 style=\"width:100%%\">"
+                       "<tr>"
+               );
+               wprintf("<td width=%d%%><b><i>%s</i></b> %s</td>"
+                       "<td width=%d%%><b><i>%s</i></b> %s</td>"
+                       "<td width=%d%%><b><i>%s</i></b> %s"
                        "&nbsp;"
                        "<input type=\"submit\" name=\"delete_button\" style=\"font-size:6pt\" "
                        " onClick=\"CtdlDeleteSelectedMessages(event)\" "
@@ -2029,11 +2031,23 @@ void readloop(char *oper)
                        "</td>"
                        "</tr>\n"
                        ,
+                       SUBJ_COL_WIDTH_PCT,
                        _("Subject"),   subjsort_button,
+                       SENDER_COL_WIDTH_PCT,
                        _("Sender"),    sendsort_button,
+                       DATE_PLUS_BUTTONS_WIDTH_PCT,
                        _("Date"),      datesort_button,
                        _("Delete")
                );
+               wprintf("</table></div></div>\n");
+
+               wprintf("<div id=\"message_list\">"
+
+                       "<div id=\"fix_scrollbar_bug\">\n"
+
+                       "<span class=\"mailbox_summary\">"
+                       "<table id=\"summary_headers\" rules=rows cellspacing=0 style=\"width:100%%\">"
+               );
        }
 
        for (a = 0; a < nummsgs; ++a) {
index 732d6609a55b0da4eb572ee09dc695fcca1fbc41..cd387ed283f482db3a6d59de72ae00a3ee1cb10c 100644 (file)
@@ -92,23 +92,43 @@ body {
        /* overflow-x: hidden; */
 }
 
-#message_list {
+#message_list_hdr {
        position:fixed;
        display:block;
        top: 15%;
        left: 15%;
        width: 85%;
-       height: 25%;
+       height: 5%;
+       overflow: none;
+}
+
+* html #message_list_hdr {
+       position:absolute;
+       display:block;
+       top: 15%;
+       left: 15%;
+       width: 85%;
+       height: 5%;
+       overflow: none;
+}
+
+#message_list {
+       position:fixed;
+       display:block;
+       top: 20%;
+       left: 15%;
+       width: 85%;
+       height: 20%;
        overflow: auto;
 }
 
 * html #message_list {
        position:absolute;
        display:block;
-       top: 15%;
+       top: 20%;
        left: 15%;
        width: 85%;
-       height: 25%;
+       height: 20%;
        overflow: auto;
 }