Minor edit to sieve screen
[citadel.git] / webcit / sieve.c
1 /* 
2  * $Id: $
3  */
4 /**
5  * \defgroup Sieve view/edit sieve config
6  * \ingroup WebcitDisplayItems
7  */
8 /*@{*/
9 #include "webcit.h"
10
11
12 /**
13  * \brief view/edit sieve config
14  */
15 void display_sieve(void)
16 {
17         output_headers(1, 1, 2, 0, 0, 0);
18
19         wprintf("<div id=\"banner\">\n");
20         wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
21         wprintf("<SPAN CLASS=\"titlebar\">");
22         wprintf(_("View/edit server-side mail filters"));
23         wprintf("</SPAN>\n");
24         wprintf("</TD></TR></TABLE>\n");
25         wprintf("</div>\n<div id=\"content\">\n");
26
27         wprintf("<div class=\"fix_scrollbar_bug\">"
28                 "<table border=0 width=100%% bgcolor=\"#FFFFFF\">"
29                 "<tr><td valign=top>\n");
30
31
32         wprintf("<form method=\"post\" action=\"save_sieve\">\n");
33
34         wprintf("</form>\n");
35
36         wprintf(_("When new mail arrives: "));
37         wprintf("<select name=\"bigaction\" size=1>\n");
38
39         wprintf("<option value=\"0\">");
40         wprintf(_("Leave it in my inbox without filtering"));
41         wprintf("</option>\n");
42
43         wprintf("<option value=\"1\">");
44         wprintf(_("Filter it according to rules selected below"));
45         wprintf("</option>\n");
46
47         wprintf("<option value=\"2\">");
48         wprintf(_("Filter it through a manually edited script (advanced users only)"));
49         wprintf("</option>\n");
50
51         wprintf("</select>");
52
53         wprintf("<div align=\"center\"><br>");
54         wprintf("<input type=\"submit\" name=\"ok_button\" value=\"%s\">", _("Save changes"));
55         wprintf("&nbsp;");
56         wprintf("<input type=\"submit\" name=\"cancel_button\" value=\"%s\">\n", _("Cancel"));
57         wprintf("</div></form>\n");
58
59         wprintf("</td></tr></table></div>\n");
60         wDumpContent(1);
61
62 }
63
64
65
66
67 /*@}*/