+/*
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software. You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
#include "webcit.h"
#define MAX_SCRIPTS 100
output_headers(1, 1, 2, 0, 0, 0);
wc_printf("<div id=\"banner\">\n");
- wc_printf("<img src=\"static/advanpage2_48x.gif\">");
+ wc_printf("<img src=\"static/icons/essen/32x32/config.png\">");
wc_printf("<h1>");
wc_printf(_("View/edit server-side mail filters"));
wc_printf("</h1>\n");
);
wc_printf("<div id=\"banner\">\n");
- wc_printf("<img src=\"static/advanpage2_48x.gif\">");
+ wc_printf("<img src=\"static/icons/essen/32x32/config.png\">");
wc_printf("<h1>");
wc_printf(_("View/edit server-side mail filters"));
wc_printf("</h1>\n");
output_headers(1, 1, 2, 0, 0, 0);
wc_printf("<div id=\"banner\">\n");
- wc_printf("<img src=\"static/advanpage2_48x.gif\">");
+ wc_printf("<img src=\"static/icons/essen/32x32/config.png\">");
wc_printf(_("Add or delete scripts"));
wc_printf("</h1>\n");
wc_printf("</div>\n");
wc_printf("<table border=0 cellspacing=10><tr valign=top><td>\n");
- do_template("beginbox_1", NULL);
+ do_template("beginbox_1");
StrBufAppendBufPlain(WC->WBuf, _("Add a new script"), -1, 0);
- do_template("beginbox_2", NULL);
+ do_template("beginbox_2");
wc_printf(_("To create a new script, enter the desired "
"script name in the box below and click 'Create'."));
"<input type=\"submit\" name=\"create_button\" value=\"%s\">"
"</form></center>\n", _("Create"));
- do_template("endbox", NULL);
+ do_template("endbox");
- do_template("beginbox_1", NULL);
+ do_template("beginbox_1");
StrBufAppendBufPlain(WC->WBuf, _("Edit scripts"), -1, 0);
- do_template("beginbox_2", NULL);
+ do_template("beginbox_2");
wc_printf("<br><div align=center><a href=\"display_sieve\">%s</a><br><br>\n",
_("Return to the script editing screen")
);
- do_template("endbox", NULL);
+ do_template("endbox");
wc_printf("</td><td>");
- do_template("beginbox_1", NULL);
+ do_template("beginbox_1");
StrBufAppendBufPlain(WC->WBuf, _("Delete scripts"), -1, 0);
- do_template("beginbox_2", NULL);
+ do_template("beginbox_2");
wc_printf(_("To delete an existing script, select the script "
"name from the list and click 'Delete'."));
wc_printf("<input type=\"submit\" name=\"delete_button\" value=\"%s\" "
"onClick=\"return confirm('%s');\">", _("Delete script"), _("Delete this script?"));
wc_printf("</form></center>\n");
- do_template("endbox", NULL);
+ do_template("endbox");
wc_printf("</td></tr></table>\n");
wc_printf("</div>");
if (i>0) wc_printf("<a href=\"javascript:SwapRules(%d,%d);UpdateRules();\">"
- "<img border=\"0\" src=\"static/up_pointer.gif\" "
+ "<img border=\"0\" src=\"static/icons/up_pointer.gif\" "
"title=\"%s\"/></a>",
i-1, i, _("Move rule up") );
wc_printf("<a href=\"javascript:SwapRules(%d,%d);UpdateRules();\">"
- "<img id=\"movedown%d\" border=\"0\" src=\"static/down_pointer.gif\" "
+ "<img id=\"movedown%d\" border=\"0\" src=\"static/icons/down_pointer.gif\" "
"title=\"%s\"/></a>",
i, i+1, i, _("Move rule down") );
wc_printf("<a href=\"javascript:DeleteRule(%d);UpdateRules();\">"
- "<img id=\"delete%d\" border=\"0\" src=\"static/delete.gif\" "
+ "<img id=\"delete%d\" border=\"0\" src=\"static/icons/delete.gif\" "
"title=\"%s\"/></a>",
i, i, _("Delete rule") );