stresc(&buf[strlen(buf)], WC->wc_roomname, 1, 1);
/* begin message entry screen */
-
-
- wprintf(
- "<style> div.auto_complete { width: 350px; background: #fff; } div.auto_complete ul { border:1px solid #888; margin:0; padding:0; width:100%; list-style-type:none; } div.auto_complete ul li { margin:0; padding:3px; } div.auto_complete ul li.selected { background-color: #ffc; } div.auto_complete ul strong.highlight { color: #800; margin:0; padding:0; } </style> \n "
- );
-
wprintf("<form enctype=\"multipart/form-data\" "
"method=\"POST\" action=\"/post\" "
"name=\"enterform\""
wprintf(_("To:"));
wprintf("</font>");
wprintf("</td><td>"
- "<input autocomplete=\"off\" type=\"text\" name=\"recp\" id=\"recp_name\" value=\"");
+ "<input autocomplete=\"off\" type=\"text\" name=\"recp\" id=\"recp_id\" value=\"");
escputs(bstr("recp"));
- wprintf("\" size=50 maxlength=1000>");
+ wprintf("\" size=50 maxlength=1000 />");
wprintf("<div class=\"auto_complete\" id=\"recp_name_choices\"></div>");
- wprintf("<script type=\"text/javascript\"> "
- " new Ajax.Autocompleter('recp_name', 'recp_name_choices', "
- " '/recp_autocomplete', {} ); "
- "</script>\n "
- );
wprintf("</td><td></td></tr>\n");
wprintf("<tr><td>");
wprintf(_("CC:"));
wprintf("</font>");
wprintf("</td><td>"
- "<input autocomplete=\"off\" type=\"text\" name=\"cc\" id=\"cc_name\" value=\"");
+ "<input autocomplete=\"off\" type=\"text\" name=\"cc\" id=\"cc_id\" value=\"");
escputs(bstr("cc"));
- wprintf("\" size=50 maxlength=1000>");
+ wprintf("\" size=50 maxlength=1000 />");
wprintf("<div class=\"auto_complete\" id=\"cc_name_choices\"></div>");
- wprintf("<script type=\"text/javascript\"> "
- " new Ajax.Autocompleter('cc_name', 'cc_name_choices', "
- " '/recp_autocomplete', {} ); "
- "</script>\n "
- );
wprintf("</td><td></td></tr>\n");
wprintf("<tr><td>");
wprintf(_("BCC:"));
wprintf("</font>");
wprintf("</td><td>"
- "<input autocomplete=\"off\" type=\"text\" name=\"bcc\" id=\"bcc_name\" value=\"");
+ "<input autocomplete=\"off\" type=\"text\" name=\"bcc\" id=\"bcc_id\" value=\"");
escputs(bstr("bcc"));
- wprintf("\" size=50 maxlength=1000>");
+ wprintf("\" size=50 maxlength=1000 />");
wprintf("<div class=\"auto_complete\" id=\"bcc_name_choices\"></div>");
- wprintf("<script type=\"text/javascript\"> "
- " new Ajax.Autocompleter('cc_name', 'bcc_name_choices', "
- " '/recp_autocomplete', {} ); "
- "</script>\n "
- );
wprintf("</td><td></td></tr>\n");
+ /* Initialize the autocomplete ajax helpers */
+ wprintf("<script type=\"text/javascript\"> \n"
+ " new Ajax.Autocompleter('cc_id', 'cc_name_choices', \n"
+ " '/cc_autocomplete', {} ); \n"
+ " new Ajax.Autocompleter('bcc_id', 'bcc_name_choices', \n"
+ " '/bcc_autocomplete', {} ); \n"
+ " new Ajax.Autocompleter('recp_id', 'recp_name_choices', \n"
+ " '/recp_autocomplete', {} ); \n"
+ "</script> \n"
+ );
+
}
wprintf("<tr><td>");
padding: 0 0 0 0;
height: 100%;
overflow: auto;
- background-image:url(/static/body-background.gif);
+ background-image: url(/static/body-background.gif);
color: #000000;
font-family: "Bitstream Vera Sans",Arial,Helvetica,sans-serif;
font-weight: normal;
<!-- end nanotree styles -->
+<!-- begin address autocompleter styles -->
+
+div.auto_complete {
+ width: 350px;
+ background: #fff;
+}
+
+div.auto_complete ul {
+ border:1px solid #888;
+ margin:0;
+ padding:0;
+ width:100%;
+ list-style-type: none;
+ background: #fff;
+}
+
+div.auto_complete ul li {
+ margin:0;
+ padding:3px;
+}
+
+div.auto_complete ul li.selected {
+ background-color: #ffc;
+}
+
+div.auto_complete ul strong.highlight {
+ color: #800;
+ margin:0;
+ padding:0;
+}
+
+<!-- end address autocompleter styles -->
+
</style>
} else if (!strcasecmp(action, "set_preferences")) {
set_preferences();
} else if (!strcasecmp(action, "recp_autocomplete")) {
- recp_autocomplete();
+ recp_autocomplete(bstr("recp"));
+ } else if (!strcasecmp(action, "cc_autocomplete")) {
+ recp_autocomplete(bstr("cc"));
+ } else if (!strcasecmp(action, "bcc_autocomplete")) {
+ recp_autocomplete(bstr("bcc"));
} else if (!strcasecmp(action, "diagnostics")) {
output_headers(1, 1, 1, 0, 0, 0, 0);
wprintf("Session: %d<hr />\n", WC->wc_session);