* split boxes into beginbox_1 + 2, and put title directly. remove svput of boxtitle.
authorWilfried Göesgens <willi@citadel.org>
Sun, 29 Aug 2010 16:56:31 +0000 (16:56 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 29 Aug 2010 16:56:31 +0000 (16:56 +0000)
webcit/listsub.c
webcit/openid.c
webcit/sieve.c
webcit/vcard_edit.c

index 01a567bd6466fc3aa29387667126234a1affff37..1a6b992e451566a309ebb34c754a8c5084afd86b 100644 (file)
@@ -48,8 +48,9 @@ void do_listsub(void)
        wc_printf("<div align=center>");
        wc_printf("<table border=0 width=75%%><tr><td>");
 
-       svput("BOXTITLE", WCS_STRING, _("List subscribe/unsubscribe"));
-       do_template("beginboxx", NULL);
+       do_template("beginbox_1", NULL);
+       StrBufAppendBufPlain(WC->WBuf, _("List subscribe/unsubscribe"), -1, 0);
+       do_template("beginbox_2", NULL);
        wc_printf("<div align=center><br>");
 
        /*
index b489a55c484af1ba6124e4aefb31bb6e7b244e68..c5842112cee0640213ede07089abd23d938cf741 100644 (file)
@@ -18,8 +18,9 @@ void display_openids(void)
 
        wc_printf("<div class=\"fix_scrollbar_bug\">");
 
-       svput("BOXTITLE", WCS_STRING, _("Manage Account/OpenID Associations"));
-       do_template("beginboxx", NULL);
+       do_template("beginbox_1", NULL);
+       StrBufAppendBufPlain(WCC->WBuf, _("Manage Account/OpenID Associations"), -1, 0);
+       do_template("beginbox_2", NULL);
 
        if (WCC->serv_info->serv_supports_openid) {
 
index 8e333031b13f53236b34ba6619657bd32e28a12c..b048b6b3018ee2426901a206702d07ae637413f1 100644 (file)
@@ -657,8 +657,9 @@ void display_add_remove_scripts(char *message)
 
        wc_printf("<table border=0 cellspacing=10><tr valign=top><td>\n");
 
-       svput("BOXTITLE", WCS_STRING, _("Add a new script"));
-       do_template("beginboxx", NULL);
+       do_template("beginbox_1", NULL);
+       StrBufAppendBufPlain(WC->WBuf, _("Add a new script"), -1, 0);
+       do_template("beginbox_2", NULL);
 
        wc_printf(_("To create a new script, enter the desired "
                "script name in the box below and click 'Create'."));
@@ -673,8 +674,9 @@ void display_add_remove_scripts(char *message)
 
        do_template("endbox", NULL);
 
-       svput("BOXTITLE", WCS_STRING, _("Edit scripts"));
-       do_template("beginboxx", NULL);
+       do_template("beginbox_1", NULL);
+       StrBufAppendBufPlain(WC->WBuf, _("Edit scripts"), -1, 0);
+       do_template("beginbox_2", NULL);
        wc_printf("<br /><div align=center><a href=\"display_sieve\">%s</a><br /><br />\n",
                _("Return to the script editing screen")
        );
@@ -682,8 +684,9 @@ void display_add_remove_scripts(char *message)
 
        wc_printf("</td><td>");
 
-       svput("BOXTITLE", WCS_STRING, _("Delete scripts"));
-       do_template("beginboxx", NULL);
+       do_template("beginbox_1", NULL);
+       StrBufAppendBufPlain(WC->WBuf, _("Delete scripts"), -1, 0);
+       do_template("beginbox_2", NULL);
 
        wc_printf(_("To delete an existing script, select the script "
                "name from the list and click 'Delete'."));
index 7cea1b7fec1e9ffe004ea2b504134ed8effcfb6a..64061d7badc870500df637a2236e17689688971a 100644 (file)
@@ -831,8 +831,9 @@ void do_edit_vcard(long msgnum, char *partnum,
        /* Display the form */
        output_headers(1, 1, 1, 0, 0, 0);
 
-       svput("BOXTITLE", WCS_STRING, _("Edit contact information"));
-       do_template("beginboxx", NULL);
+       do_template("beginbox_1", NULL);
+       StrBufAppendBufPlain(WC->WBuf, _("Edit contact information"), -1, 0);
+       do_template("beginbox_2", NULL);
 
        wc_printf("<form method=\"POST\" action=\"submit_vcard\">\n");
        wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);