4 * \defgroup AjaxAutoCompletion ajax-powered autocompletion...
13 * \brief Address book popup window
15 void display_address_book_middle_div(void) {
19 begin_ajax_response();
21 wprintf("<table border=0 width=100%%><tr valign=middle>");
22 wprintf("<td align=left><img src=\"static/viewcontacts_32x.gif\"></td>");
23 wprintf("<td align=center>");
25 wprintf("<form><select class=\"address_book_popup_title\" size=1>");
27 serv_getln(buf, sizeof buf);
28 if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
29 if (extract_int(buf, 6) == VIEW_ADDRESSBOOK) {
30 extract_token(ebuf, buf, 0, '|', sizeof ebuf);
31 wprintf("<option value=\"");
35 wprintf("</option>\n");
38 wprintf("</select></form>");
41 wprintf("<td align=right "
42 "onclick=\"javascript:$('address_book_popup').style.display='none';\" "
43 "><img src=\"static/closewindow.gif\">");
44 wprintf("</td></tr></table>");
52 * \brief Address book popup results
54 void display_address_book_inner_div(void) {
57 begin_ajax_response();
59 wprintf("<div align=center><form>"
60 "<select name=\"whichaddr\" size=\"15\">\n");
62 for (i=0; i<100; ++i) {
63 wprintf("<option>Contact %d <contact%d@example.com></option>\n", i, i);
66 wprintf("</select></form></div>\n");