]> code.citadel.org Git - citadel.git/commitdiff
Address book popup title is now replaced by a big selector
authorArt Cancro <ajc@citadel.org>
Fri, 13 Apr 2007 02:56:14 +0000 (02:56 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 13 Apr 2007 02:56:14 +0000 (02:56 +0000)
of all available VIEW_ADDRESSBOOK rooms.

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

index 4c5a0b3e77c6d52ed8841b45148eb1c84be5d3a3..cc7674a91420d44e4c88b438ddb28986e6fcd569 100644 (file)
@@ -3207,7 +3207,24 @@ void display_enter(void)
        wprintf("<div id=\"address_book_popup_middle_div\">");
        wprintf("<table border=0 width=100%%><tr valign=middle>");
        wprintf("<td align=left><img src=\"static/viewcontacts_32x.gif\"></td>");
-       wprintf("<td align=center><span class=\"address_book_popup_title\">%s</span></td>", _("Contacts") );
+       wprintf("<td align=center>");
+
+       wprintf("<form><select class=\"address_book_popup_title\" size=1>");
+       serv_puts("LKRA");
+       serv_getln(buf, sizeof buf);
+       if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
+               if (extract_int(buf, 6) == VIEW_ADDRESSBOOK) {
+                       extract_token(ebuf, buf, 0, '|', sizeof ebuf);
+                       wprintf("<option value=\"");
+                       urlescputs(ebuf);
+                       wprintf("\">");
+                       escputs(ebuf);
+                       wprintf("</option>\n");
+               }
+       }
+       wprintf("</select></form>");
+
+       wprintf("</td>");
        wprintf("<td align=right "
                "onclick=\"javascript:$('address_book_popup').style.display='none';\" "
                "><img src=\"static/closewindow.gif\">");
index 54b3ef2a6527cad665020da1d98be47f551a4a29..c18ef59973979aa45a4fe6bc8782ae2a5432d278 100644 (file)
@@ -888,6 +888,6 @@ div.auto_complete ul strong.highlight {
 
 .address_book_popup_title {
         font-size: 14pt;
-        font-weight: bold;
+       background-color: #ffd;
         color: #000;
 }