From f94a1581fe4c2ec6c5e79fea3d3191917838d781 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Sat, 20 Oct 2007 14:10:16 +0000 Subject: [PATCH] improved inet conf screen : altern rows --- webcit/inetconf.c | 12 ++++++++++-- webcit/static/webcit.css | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/webcit/inetconf.c b/webcit/inetconf.c index af104ac76..0c03995d2 100644 --- a/webcit/inetconf.c +++ b/webcit/inetconf.c @@ -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(""); escputs(ic_desc[which]); wprintf("
"); - wprintf("\n"); + wprintf("
\n"); + bg = 0; if (!IsEmptyStr(ic_spec[which])) { for (i=0; i", + (bg ? "even" : "odd") + ); + wprintf("\n"); } + } wprintf("\n"); wprintf("\n", WC->nonce); diff --git a/webcit/static/webcit.css b/webcit/static/webcit.css index c56e4bb5d..86b2746bd 100644 --- a/webcit/static/webcit.css +++ b/webcit/static/webcit.css @@ -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; } -- 2.30.2
"); + bg = 1 - bg; + wprintf("
"); extract_token(buf, ic_spec[which], i, '\n', sizeof buf); escputs(buf); wprintf("" @@ -130,6 +137,7 @@ void display_inetconf(void) wprintf(_("Delete")); wprintf("