846af13392ce8b46c57293c07a2d31320140cbd2
[privoxy.git] / templates / edit-actions-list
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3
4 <head>
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <meta http-equiv="Content-Script-Type" content="text/javascript">
7 <meta name="robots" content="noindex,nofollow">
8
9 <title>JunkBuster: Edit actions list</title>
10
11 <style type="text/css">
12 body         { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif }
13 tr.actions   { background-color: #EEFFEE }
14 tr.url1      { background-color: #D0D0FF }
15 tr.url2      { background-color: #EEEEFF }
16 tr.rule      { background-color: #C0C0C0; height: 3 }
17 tr.adv       { background-color: #FFFFD0 }
18 td.header    { font-weight: bold }
19 td.url       { font-weight: bold }
20 td.action    { font-weight: bold; font-style: italic }
21 </style>
22
23 <script type="text/javascript">
24 <!--
25 function not_yet()
26 {
27    window.alert("The feature you are trying to use has not been implemented yet.");
28 }
29
30 function edit_pattern(b,p,ct)
31 {
32    ct=unescape(ct);
33    nt=window.prompt("Edit this URL pattern:",ct);
34    if ((nt!=null)&&(nt!=ct)&&(nt!=""))
35    { window.location.href="http://i.j.b/edit-actions-url?filename=@filename@&ver=@ver@&section="+b+"&pattern="+p+"&newval="+escape(nt)+"#s"+b+"url"+p; }
36 }
37
38 function remove_pattern(b,p,ct)
39 {
40    if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(ct)))
41    { window.location.href="http://i.j.b/edit-actions-remove-url?filename=@filename@&ver=@ver@&section="+b+"&pattern="+p+"#s"+b+"urls"; }
42 }
43
44 function add_pattern(b)
45 {
46    nt=window.prompt("Enter URL pattern to add:", "");
47    if ((nt!=null)&&(nt!=""))
48    { window.location.href="http://i.j.b/edit-actions-add-url?filename=@filename@&ver=@ver@&section="+b+"&newval="+escape(nt)+"#s"+b+"urls"; }
49 }
50
51 function edit_actions(b)
52 {
53    window.location.href="http://i.j.b/edit-actions-for-url?filename=@filename@&ver=@ver@&section="+b;
54 }
55
56 function section_down(b)
57 {
58    not_yet();
59    //window.location.href="http://i.j.b/edit-actions-section-down?filename=@filename@&ver=@ver@&section="+b+"#s"+b+"urls";
60 }
61
62 function section_up(b)
63 {
64    not_yet();
65    //window.location.href="http://i.j.b/edit-actions-section-up?filename=@filename@&ver=@ver@&section="+b+"#s"+b+"urls";
66 }
67
68 function section_add(b)
69 {
70    window.location.href="http://i.j.b/edit-actions-section-add?filename=@filename@&ver=@ver@&section="+b+"#s"+b+"urls";
71 }
72
73 function section_remove(b)
74 {
75    if (window.confirm("Are you REALLY sure you want to delete this empty section?"))
76    window.location.href="http://i.j.b/edit-actions-section-remove?filename=@filename@&ver=@ver@&section="+b+"#s"+b+"urls";
77 }
78 //-->
79 </script>
80 </head>
81
82 <body>
83 <h1>Editing @filename@.action</h1>
84
85 <p>
86 <form action="http://i.j.b/">
87 <input type="button" onclick="section_add(0)" value="Insert new section at top">
88 </form>
89 </p>
90
91 @sections@
92
93 </body>
94
95 </html>