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

index 7fa0f3b9c5118329bbd09a8f695c4604b0ff51b8..af104ac765c01650eebf94a92046c926c61bba6e 100644 (file)
@@ -103,42 +103,44 @@ void display_inetconf(void)
        wprintf("<div id=\"content\" class=\"service\">\n");
 
        wprintf("<div class=\"fix_scrollbar_bug\">"
-               "<table border=0 width=100%%><tr><td valign=top>\n");
+               "<table border=0 width=100%% cellspacing=\"10px\" cellpadding=\"10px\"> "
+               "<tr><td valign=top width=50%%>\n");
        for (which=0; which<ic_max; ++which) {
                if (which == (ic_max / 2)) {
-                       wprintf("</TD><TD VALIGN=TOP>");
+                       wprintf("</td><td valign=top>");
                }
                svprintf("BOXTITLE", WCS_STRING, ic_boxtitle[which]);
                do_template("beginbox");
                wprintf("<span class=\"menudesc\">");
                escputs(ic_desc[which]);
                wprintf("</span><br />");
-               wprintf("<TABLE border=0 cellspacing=0 cellpadding=0 width=100%%>\n");
+               wprintf("<table border=0 cellspacing=\"2px\" cellpadding=\"2px\" width=94%%>\n");
                if (!IsEmptyStr(ic_spec[which])) {
                        for (i=0; i<num_tokens(ic_spec[which], '\n'); ++i) {
-                               wprintf("<TR><TD ALIGN=LEFT>");
+                               wprintf("<tr><td align=left>");
                                extract_token(buf, ic_spec[which], i, '\n', sizeof buf);
                                escputs(buf);
-                               wprintf("</TD><TD ALIGN=RIGHT>"
+                               wprintf("</td><td align=left>"
+                                       "<span class=\"button_link\">"
                                        "<a href=\"save_inetconf?oper=delete&ename=");
                                escputs(buf);
                                wprintf("&etype=%s\" ", ic_keyword[which]);
                                wprintf("onClick=\"return confirm('%s');\">",
                                        _("Delete this entry?"));
-                               wprintf("<font size=-1>");
-                               wprintf(_("(Delete)"));
-                               wprintf("</font></a></TD></TR>\n");
+                               wprintf(_("Delete"));
+                               wprintf("</a></span></td></tr>\n");
                        }
                }
-               wprintf("<FORM METHOD=\"POST\" action=\"save_inetconf\">\n");
+               wprintf("<form method=\"post\" action=\"save_inetconf\">\n");
                wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
-               wprintf("<TR><TD>"
-                       "<INPUT TYPE=\"text\" NAME=\"ename\" MAXLENGTH=\"64\">"
-                       "<INPUT TYPE=\"hidden\" NAME=\"etype\" VALUE=\"%s\">", ic_keyword[which]);
-               wprintf("</TD><TD ALIGN=RIGHT>"
-                       "<INPUT TYPE=\"submit\" NAME=\"oper\" VALUE=\"Add\">"
-                       "</TD></TR></TABLE></FORM>\n");
+               wprintf("<tr><td>"
+                       "<input type=\"text\" name=\"ename\" maxlength=\"64\">"
+                       "<input type=\"hidden\" name=\"etype\" VALUE=\"%s\">", ic_keyword[which]);
+               wprintf("</td><td align=left>"
+                       "<input type=\"submit\" name=\"oper\" value=\"Add\">"
+                       "</td></tr></table></form>\n");
                do_template("endbox");
+               wprintf("<br />");
        }
        wprintf("</td></tr></table></div>\n");
        wDumpContent(1);
index 2a252ad96624d599003e40b21e9f05562c7eb05f..c56e4bb5de60d11aa86bdd34b0d6732cbc6d7a98 100644 (file)
@@ -14,7 +14,7 @@ body { font-size: 11pt}
        font-size: 13pt;
 }
 
-#button, #content .msgbuttons a,input#delbutton,.attachfile,.logbuttons input,.buttons input, #wholist li, .buttons a, .customize, .mailbox_summary, .menubar_link, .roomlist_floor, .ib_roomlist_floor, .roomlist_new, .ib_roomlist_new, .roomlist_old, .ib_roomlist_old, #banner ul.room_actions li, #navbar, .selector_top, .selector_bottom, .room_banner .infos,.room_banner .nummsgs,li.search,li.view, .room_actions form select option, .selectbox, #message_list_hdr table, .message_header, ul.adminitems li span {
+#button, #content .msgbuttons a, .button_link a, input#delbutton,.attachfile,.logbuttons input,.buttons input, #wholist li, .buttons a, .customize, .mailbox_summary, .menubar_link, .roomlist_floor, .ib_roomlist_floor, .roomlist_new, .ib_roomlist_new, .roomlist_old, .ib_roomlist_old, #banner ul.room_actions li, #navbar, .selector_top, .selector_bottom, .room_banner .infos,.room_banner .nummsgs,li.search,li.view, .room_actions form select option, .selectbox, #message_list_hdr table, .message_header, ul.adminitems li span {
        font-size: 10pt;
 }
 
@@ -44,11 +44,11 @@ body {
        cursor: help;
 }
 
-input, select, #login_form #uname, #login_form #pname, #wholist li.activeuser a, .room_actions form select, .room_actions li.search input, .address_book_popup_title {
+.button_link, input, select, #login_form #uname, #login_form #pname, #wholist li.activeuser a, .room_actions form select, .room_actions li.search input, .address_book_popup_title {
        background-color: #fbf4ca;
 }
 
-input, select, #login_form #uname, #login_form #pname, .room_actions form select, .room_actions li.search input, .address_book_popup_title {
+.button_link, input, select, #login_form #uname, #login_form #pname, .room_actions form select, .room_actions li.search input, .address_book_popup_title {
        border: 1px solid #999;
        color: #333;
 }
@@ -448,6 +448,10 @@ a:visited { color: purple; }
 }
 
 
+.button_link a {
+       color: #333;
+}
+
 /* Layout */
 
 * html {
@@ -820,6 +824,12 @@ html>body #button li a {
        padding: 0;
 }
 
+
+
+.button_link {
+       padding: 0 2px 0 2px;
+}
+
 .msgbuttons a {
        margin: 0 2px 0 2px;
        padding: 1px;
@@ -1087,10 +1097,7 @@ table.advanced {
 
 /* Tabs */
 
-
-#TheTabs {
-       margin: 3% auto 0 auto;
-       width: 94%;
+.tab_cell_label, .tab_cell, .tab_cell_edit {
 }
 
 ul.tabbed_dialog {
@@ -1110,19 +1117,12 @@ ul.tabbed_dialog li {
 }
 
 .tabcontent {
-       margin: 0 auto 0 auto;
+       margin: 3% auto 0 auto;
        width: 96%;
        padding: 10px;
        clear: both;
 }
 
-.tabcontent_submit {
-       margin: 0 auto 0 auto;
-       width: 50%;
-       padding: 10px;
-       text-align: center;
-}
-
 /* Calendar view */
 
 .calendar {