improved inet conf screen : altern rows
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Sat, 20 Oct 2007 14:10:16 +0000 (14:10 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Sat, 20 Oct 2007 14:10:16 +0000 (14:10 +0000)
webcit/inetconf.c
webcit/static/webcit.css

index af104ac765c01650eebf94a92046c926c61bba6e..0c03995d29e189d725f9aedab22e659a9b5795a0 100644 (file)
@@ -19,6 +19,7 @@ void display_inetconf(void)
        char etype[SIZ];
        int i;
        int which;
+       int bg = 0;
 
        enum {
                ic_localhost,
@@ -114,10 +115,16 @@ void display_inetconf(void)
                wprintf("<span class=\"menudesc\">");
                escputs(ic_desc[which]);
                wprintf("</span><br />");
-               wprintf("<table border=0 cellspacing=\"2px\" cellpadding=\"2px\" width=94%%>\n");
+               wprintf("<table border=0 cellspacing=\"2px\" cellpadding=\"2px\" width=94%% "
+                       "class=\"altern\" >\n");
+               bg = 0;
                if (!IsEmptyStr(ic_spec[which])) {
                        for (i=0; i<num_tokens(ic_spec[which], '\n'); ++i) {
-                               wprintf("<tr><td align=left>");
+                               bg = 1 - bg;
+                               wprintf("<tr class=\"%s\">",
+                                       (bg ? "even" : "odd")
+                               );
+                               wprintf("<td align=left>");
                                extract_token(buf, ic_spec[which], i, '\n', sizeof buf);
                                escputs(buf);
                                wprintf("</td><td align=left>"
@@ -130,6 +137,7 @@ void display_inetconf(void)
                                wprintf(_("Delete"));
                                wprintf("</a></span></td></tr>\n");
                        }
+
                }
                wprintf("<form method=\"post\" action=\"save_inetconf\">\n");
                wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
index c56e4bb5de60d11aa86bdd34b0d6732cbc6d7a98..86b2746bd95ab6ddc9ff21a0137a304afc58a1a9 100644 (file)
@@ -1236,4 +1236,10 @@ li.event span, a.event_title {
 .mini_calendar td a:hover,.mini_calendar td a:active {
    color: #fff;
    background-color: #AD1C00;
+
+}
+
+.menudesc {
+       margin: 4px;
+       padding: 4px;
 }