1d3121ddce9e7d2e5d4f6e9656fd20dd21152714
[privoxy.git] / templates / edit-actions-list
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-list,v $
4 #
5 # Purpose     :  Template used to edit the actions file.
6
7 #
8 # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
9 #                Privoxy team. http://www.privoxy.org/
10 #
11 #                Original Author: Copyright (C) 2001 Jonathan Foster
12 #                http://www.jon-foster.co.uk/
13 #
14 #                This program is free software; you can redistribute it 
15 #                and/or modify it under the terms of the GNU General
16 #                Public License as published by the Free Software
17 #                Foundation; either version 2 of the License, or (at
18 #                your option) any later version.
19 #
20 #                This program is distributed in the hope that it will
21 #                be useful, but WITHOUT ANY WARRANTY; without even the
22 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
23 #                PARTICULAR PURPOSE.  See the GNU General Public
24 #                License for more details.
25 #
26 #                The GNU General Public License should be included with
27 #                this file.  If not, you can view it at
28 #                http://www.gnu.org/copyleft/gpl.html
29 #                or write to the Free Software Foundation, Inc., 59
30 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
31 #
32 # Revisions   :
33 #    $Log: edit-actions-list,v $
34 #    Revision 1.17  2002/04/10 13:32:53  oes
35 #    Made templates modular
36 #
37 #    Revision 1.16  2002/04/08 17:08:14  oes
38 #    Cosmetic: make status in title lowercase
39 #
40 #    Revision 1.15  2002/04/05 16:01:32  oes
41 #    Correct HTML, external Stylesheets, eye candy, some fixes
42 #
43 #    Revision 1.14  2002/03/26 22:29:56  swa
44 #    we have a new homepage!
45 #
46 #    Revision 1.13  2002/03/24 15:23:33  jongfoster
47 #    Name changes
48 #
49 #    Revision 1.12  2002/03/24 11:01:06  swa
50 #    name change
51 #
52 #    Revision 1.11  2002/03/23 16:18:15  swa
53 #    renamed every reference to the old name with foobar.
54 #    fixed "application foobar application" tag, fixed
55 #    "the foobar" with "foobar". left junkbuster in cvs
56 #    comments and remarks to history untouched. should
57 #    make final rename easier.
58 #
59 #    Revision 1.10  2002/03/16 15:22:19  jongfoster
60 #    Moving 'alpha' warning to the end of the page
61 #
62 #    Revision 1.9  2002/03/05 00:24:51  jongfoster
63 #    Patch to always edit the current actions file.
64 #
65 #    Revision 1.8  2002/03/03 10:29:12  swa
66 #    point users to the right feedback forms,
67 #    not necessarily the developer list.
68 #
69 #    Revision 1.7  2002/01/23 00:26:45  jongfoster
70 #    Reducing length of URLs
71 #    Where encoded and unencoded versions of a string existed, removing
72 #    the unencoded one.
73 #
74 #    Revision 1.6  2002/01/17 21:33:00  jongfoster
75 #    Replacing all references to the URL of the config interface
76 #    with @default-cgi@
77 #
78 #    Revision 1.5  2002/01/17 21:21:05  jongfoster
79 #    DOS->Unix line endings
80 #
81 #    Revision 1.4  2001/11/13 00:58:18  jongfoster
82 #    New version of actions file editor templates
83 #
84 #
85 ##############################################################################
86 #
87 # Browser support for the CSS on this page:
88 #   MS Internet Explorer 5.5 - Yes - everything works.
89 #   Netscape 6.2             - Yes - everything works.
90 #   Netscape 4.75            - No  - CSS buttons look really bad, but they are
91 #                                    usable.  Everything else works.
92 #   Opera 5.12               - Yes - everything works.
93 #   MS Internet Explorer 4+  - Untested
94 #   MS IE 3.x, NS3.x         - Untested (Don't support CSS, so everything
95 #                              should work, but will look ugly).
96 #   Mozilla >=0.6            - Untested
97 #
98 # All browsers should work, you just might not get the pretty CSS buttons.
99 #
100 # If you're favorite browser isn't listed/tested, please test and add it.
101 #
102 #
103 #############################################################################
104 #
105 # Standard support:
106 #
107 # This file currently produces valid HTML 4.01 Strict.
108 #
109 # If you change it, please save the generated page from your web browser
110 # and then upload it to http://validator.w3.org/ for checking.
111 #
112 #############################################################################
113 #
114 # Available variables include:
115 #
116 # filename
117 # ver
118 #
119 #
120 #############################################################################
121 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
122 <html>
123
124 <head>
125   <meta http-equiv="Content-Style-Type" content="text/css">
126   <meta http-equiv="Content-Script-Type" content="text/javascript">
127   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
128   <meta name="robots" content="noindex,nofollow">
129   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
130
131   <title>Privoxy: Edit actions file</title>
132
133   <style type="text/css">
134
135 table.wide {
136   padding: 5px;
137 }
138 table.framed {
139   border: solid black 1px;
140   margin: 10px 0px;
141 }
142 tr.actions {
143   background-color: #eeffee;
144 }
145 tr.url1 {
146   background-color: #d0d0ff;
147 }
148 tr.url2 {
149   background-color: #eeeeff;
150 }
151 tr.rule {
152   background-color: #c0c0c0;
153   height: 3px;
154   max-height: 3px;
155   font-size: 1px
156 }
157 tr.adv {
158   background-color: #FFFFD0;
159 }
160 td.header {
161   font-weight: bold;
162 }
163 td.url {
164   font-weight: bold;
165 }
166 td.action {
167   font-weight: bold;
168   font-style: italic;
169 }
170 td.nbr {
171   white-space: nowrap;
172 }
173 a.cmd, div.buttons a {
174   white-space: nowrap;
175   width: auto;
176   padding: 2px;
177   background-color: #dddddd;
178   color:            #000000;
179   text-decoration: none;
180   border-top:    1px solid #ffffff;
181   border-left:   1px solid #ffffff;
182   border-bottom: 1px solid #000000;
183   border-right:  1px solid #000000;
184 }
185 a.cmd:hover, div.buttons a:hover {
186   background-color: #eeeeee;
187 }
188 a.cmd:active, div.buttons a:active {
189   border-top:    1px solid #000000;
190   border-left:   1px solid #000000;
191   border-bottom: 1px solid #ffffff;
192   border-right:  1px solid #ffffff;
193 }
194
195 </style>
196
197 <script type="text/javascript">
198 <!--
199 function not_yet()
200 {
201    window.alert("The feature you are trying to use has not been implemented yet.");
202 }
203
204 // Non-JS capable browsers will follow the link to a HTML "are you sure?" page
205 // JavaScript-capable browsers will call this function, which does a
206 // client-side prompt for speed.  It may kick off the delete directly.
207 // It always returns false to cancel following the link.
208 function rm_p(pattern,curtext)
209 {
210    if (window.confirm("Are you sure you want to delete this URL pattern?\nPattern is: "+unescape(curtext)))
211    { window.location.href="edit-actions-remove-url?f=@f@&v=@v@&p="+pattern+"#l"+pattern; }
212    return false;
213 }
214
215 //-->
216 </script>
217 </head>
218
219 <body>
220
221   <table cellpadding="20" cellspacing="10" border="0" width="100%">
222     <tr>
223       <td class="title">
224
225 #include mod-title
226
227       </td>
228     </tr>
229
230 <!-- @if-unstable-start -->
231 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
232     <tr>
233       <td class="warning">
234
235 #include mod-unstable-warning
236
237       </td>
238     </tr>
239 <!-- if-unstable-end@ -->
240
241
242     <tr>
243       <td class="box">
244         <div class="buttons">
245           <h2>Editing Actions File</h2>
246           <!-- @if-all-urls-present-then@@else-not-all-urls-present@ -->
247           <p><a class="cmd" href="edit-actions-section-add?f=@f@&amp;v=@v@&amp;s=0">Insert new section at top</a></p>
248           <!-- @endif-all-urls-present@ -->
249         </div>
250       </td>
251     </tr>
252
253     <!-- @if-all-urls-present-then@ -->
254     <tr>
255       <td class="container">
256         <div class="buttons">
257 <table border="0" width="100%" cellspacing="0" cellpadding="3" class="framed">
258 <tr class="actions" valign="top">
259  <td class="header" align="right">Actions:</td>
260  <td align="center"><a name="l@s@" href="eas?f=@f@&amp;v=@v@&amp;s=@all-urls-s@">Edit</a></td>
261  <td class="action" align="left">@all-urls-actions@</td>
262 </tr>
263 <tr class="rule">
264  <td colspan="3"><img src="t" width="2" height="1" alt="----"></td>
265 </tr>
266 <tr class="url1" valign="top">
267  <td class="header" align="right">URLs:</td>
268  <td align="center">&nbsp;</td>
269  <td align="left"><b>These actions affect all URLs</b></td>
270 </tr>
271 <tr class="rule">
272  <td colspan="3"><img src="t" width="2" height="1" alt="-"></td>
273 </tr>
274 <tr class="adv" valign="top">
275  <td class="header" align="right"><b>Advanced:</b></td>
276  <td colspan="2">
277   <table border="0" cellspacing="0" cellpadding="4">
278    <tr valign="middle" align="center">
279     <td class="nbr"> &nbsp; </td>
280     <td class="nbr"> &nbsp; <a href="easa?f=@f@&amp;v=@v@&amp;s=@all-urls-s@#l@all-urls-s-next@">Insert new section below</a> &nbsp; </td>
281    </tr>
282    <tr valign="middle" align="center">
283     <td class="nbr"> &nbsp; </td>
284     <td class="nbr"> &nbsp; </td>
285    </tr>
286   </table>
287  </td>
288 </tr>
289 </table>
290 </div>
291       </td>
292     </tr>
293     <!-- @else-not-all-urls-present@@endif-all-urls-present@ -->
294
295     <tr>
296       <td class="container">
297         <div class="buttons">@sections@</div>
298       </td>
299     </tr>
300
301     <tr>
302       <td class="box">
303         <h2>More Privoxy:</h2>
304         <ul>@menu@</ul>
305       </td>
306     </tr>
307
308     <tr>
309       <td class="info">
310
311 #include mod-support-and-service
312
313       </td>
314     </tr>
315
316 <!-- @if-have-help-info-start -->
317     <tr>
318       <td class="info">
319
320 #include mod-local-help
321
322       </td>
323     </tr>
324 <!-- if-have-help-info-end@ -->
325
326     <tr>
327       <td>
328         <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
329       </td>
330     </tr>
331
332   </table>
333 </body>
334
335 </html>