urlbuf[end - start] = 0;
strncpy(outbuf, buf, start);
- sprintf(&outbuf[start], "%cA HREF=%c%s%c TARGET=%c%s%c%c%s%c/A%c",
+ sprintf(&outbuf[start], "%ca href=%c%s%c TARGET=%c%s%c%c%s%c/A%c",
LB, QU, urlbuf, QU, QU, TARGET, QU, RB, urlbuf, LB, RB);
strcat(outbuf, &buf[end]);
if ( strlen(outbuf) < 250 )
else if (!strcasecmp(firsttoken, "email")) {
if (strlen(mailto) > 0) strcat(mailto, "<br />");
strcat(mailto,
- "<A HREF=\"/display_enter"
+ "<a href=\"/display_enter"
"?force_room=_MAIL_?recp=");
urlesc(&mailto[strlen(mailto)], displayname);
if (pass == 1) {
wprintf("<TR BGCOLOR=\"#AAAAAA\">"
"<TD COLSPAN=2 BGCOLOR=\"#FFFFFF\">"
- "<IMG ALIGN=CENTER SRC=\"/static/viewcontacts_48x.gif\">"
+ "<IMG ALIGN=CENTER src=\"/static/viewcontacts_48x.gif\">"
"<FONT SIZE=+1><B>");
escputs(displayname);
wprintf("</B></FONT>");
if (!strncasecmp(buf, "from=", 5)) {
strcpy(from, &buf[5]);
wprintf(_("from "));
- wprintf("<A HREF=\"/showuser?who=");
+ wprintf("<a href=\"/showuser?who=");
#ifdef HAVE_ICONV
utf8ify_rfc822_string(from);
#endif
&& (!strncasecmp(mime_content_type, "image/", 6)) ){
snprintf(&mime_http[strlen(mime_http)],
(sizeof(mime_http) - strlen(mime_http) - 1),
- "<IMG SRC=\"/mimepart/%ld/%s/%s\">",
+ "<img src=\"/mimepart/%ld/%s/%s\">",
msgnum, mime_partnum, mime_filename);
}
else if ( (!strcasecmp(mime_disposition, "attachment"))
|| (!strcasecmp(mime_disposition, "inline")) ) {
snprintf(&mime_http[strlen(mime_http)],
(sizeof(mime_http) - strlen(mime_http) - 1),
- "<A HREF=\"/mimepart/%ld/%s/%s\" "
+ "<a href=\"/mimepart/%ld/%s/%s\" "
"TARGET=\"wc.%ld.%s\">"
- "<IMG SRC=\"/static/diskette_24x.gif\" "
+ "<img src=\"/static/diskette_24x.gif\" "
"BORDER=0 ALIGN=MIDDLE>\n"
"%s (%s, %d bytes)</A><br />\n",
msgnum, mime_partnum, mime_filename,
|| (!strcasecmp(&WC->wc_roomname[11], USERCONFIGROOM))
|| (WC->wc_view == VIEW_ADDRESSBOOK)
) {
- wprintf("<A HREF=\"/edit_vcard?"
+ wprintf("<a href=\"/edit_vcard?"
"msgnum=%ld?partnum=%s\">",
msgnum, vcard_partnum);
wprintf("[%s]</A>", _("edit"));
}
-
-
-
void display_summarized(int num) {
char datebuf[64];
- wprintf("<span "
- "id=\"m%ld\" style=\"float:left;width:100%%;font-weight:%s;background-color:#fff\" "
- "onClick=\" new Ajax.Updater('preview_pane', '/msg/%d', { method: 'get' } ); \">",
+ wprintf("<tr id=\"m%ld\" style=\"width:100%%;font-weight:%s;background-color:#fff\" "
+ "onClick=\"CtdlSingleClickMsg(%ld)\">",
WC->summ[num].msgnum,
(WC->summ[num].is_new ? "bold" : "normal"),
WC->summ[num].msgnum
);
- wprintf("<span style=\"float:left;width:50%%\">");
+ wprintf("<td>");
escputs(WC->summ[num].subj);
- wprintf("</span>");
+ wprintf("</td>");
- wprintf("<span style=\"float:left;width:30%%\">");
+ wprintf("<td>");
escputs(WC->summ[num].from);
- wprintf("</span>");
+ wprintf("</td>");
- wprintf("<span style=\"float:left;width:15%%\">");
+ wprintf("<td>");
fmt_date(datebuf, WC->summ[num].date, 1); /* brief */
escputs(datebuf);
- wprintf("</span>");
+ wprintf("</td>");
- wprintf("<span style=\"float:left;width:5%%\">");
- wprintf("<INPUT TYPE=\"checkbox\" NAME=\"msg_%ld\" VALUE=\"yes\">",
+ wprintf("<td><input type=\"checkbox\" name=\"msg_%ld\" value=\"yes\">",
WC->summ[num].msgnum
);
- wprintf("</span>");
+ wprintf("</td>");
- wprintf("</span>\n");
+ wprintf("</tr>\n");
}
|| (!strcasecmp(&WC->wc_roomname[11], USERCONFIGROOM))
|| (WC->wc_view == VIEW_ADDRESSBOOK)
) {
- wprintf("<A HREF=\"/edit_vcard?"
+ wprintf("<a href=\"/edit_vcard?"
"msgnum=%ld?partnum=%s\">",
msgnum, vcard_partnum);
wprintf("[%s]</A>", _("edit"));
wprintf("Page: ");
for (i=0; i<=num_pages; ++i) {
if (i != page) {
- wprintf("<A HREF=\"/readfwd?page=%d\">", i);
+ wprintf("<a href=\"/readfwd?page=%d\">", i);
}
else {
wprintf("<B>");
wprintf("<TD>");
- wprintf("<A HREF=\"/readfwd?startmsg=%ld&is_singlecard=1",
+ wprintf("<a href=\"/readfwd?startmsg=%ld&is_singlecard=1",
addrbook[i].ab_msgnum);
wprintf("?maxmsgs=1?summary=0?alpha=%s\">", bstr("alpha"));
vcard_n_prettyize(addrbook[i].ab_name);
"method=\"POST\" action=\"/do_stuff_to_msgs\">\n"
"<span class=\"mailbox_summary\">"
- "<div id=\"summary_headers\" style=\"width:100%%\">"
- "<span style=\"float:left;width:50%%\"><b><i>%s</i></b> %s</span>"
- "<span style=\"float:left;width:30%%\"><b><i>%s</i></b> %s</span>"
- "<span style=\"float:left;width:10%%\"><b><i>%s</i></b> %s</span>"
- "<span style=\"float:left;width:10%%\">"
- "<INPUT type=\"submit\" name=\"delete_button\" style=\"font-size:6pt\" value=\"%s\"></span>"
- "</div>\n"
+ "<table id=\"summary_headers\" rules=rows cellspacing=0 style=\"width:100%%\"><tr>"
+ "<td><b><i>%s</i></b> %s</td>"
+ "<td><b><i>%s</i></b> %s</td>"
+ "<td><b><i>%s</i></b> %s</td>"
+ "<td><input type=\"submit\" name=\"delete_button\" style=\"font-size:6pt\" value=\"%s\"></td>"
+ "</tr>\n"
,
_("Subject"), subjsort_button,
_("Sender"), sendsort_button,
}
if (is_summary) {
- wprintf("</span></form>"
+ wprintf("</table></span></form>"
"</div>\n"); /* end of 'fix_scrollbar_bug' div */
wprintf("</div>"); /* end of 'message_list' div */
- wprintf("<div id=\"ml_slider\"></div>"); /* slider */
-
wprintf("<div id=\"preview_pane\">"); /* The preview pane will initially be empty */
/* Now register each message (whose element ID is "m9999",
WC->num_summ = 0;
free(WC->summ);
}
-
- /* If we got here via a mailbox view and are reading a single
- * message, mark it as "seen." We do this after rendering the web page
- * so it doesn't keep the user waiting.
- */
- if ( (maxmsgs == 1) && (WC->wc_view == VIEW_MAILBOX) ) {
- serv_printf("SEEN %ld|1", startmsg);
- serv_getln(buf, sizeof buf);
- }
}
wprintf(_("Move this message to:"));
wprintf("<br />\n");
- wprintf("<form METHOD=\"POST\" ACTION=\"/move_msg\">\n");
+ wprintf("<form METHOD=\"POST\" action=\"/move_msg\">\n");
wprintf("<INPUT TYPE=\"hidden\" NAME=\"msgid\" VALUE=\"%s\">\n", bstr("msgid"));
wprintf("<SELECT NAME=\"target_room\" SIZE=5>\n");