9b701614b7e517efe5ab9bdbdb1c75bfd1153268
[privoxy.git] / templates / edit-actions-add-url-form
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-add-url-form,v $
4 #
5 # Purpose     :  Template used to add a URL pattern to 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-add-url-form,v $
34 #    Revision 1.12  2002/04/08 17:08:14  oes
35 #    Cosmetic: make status in title lowercase
36 #
37 #    Revision 1.11  2002/04/05 16:01:33  oes
38 #    Correct HTML, external Stylesheets, eye candy, some fixes
39 #
40 #    Revision 1.10  2002/03/26 22:29:56  swa
41 #    we have a new homepage!
42 #
43 #    Revision 1.9  2002/03/24 15:23:33  jongfoster
44 #    Name changes
45 #
46 #    Revision 1.8  2002/03/24 11:01:06  swa
47 #    name change
48 #
49 #    Revision 1.7  2002/03/23 16:18:15  swa
50 #    renamed every reference to the old name with foobar.
51 #    fixed "application foobar application" tag, fixed
52 #    "the foobar" with "foobar". left junkbuster in cvs
53 #    comments and remarks to history untouched. should
54 #    make final rename easier.
55 #
56 #    Revision 1.6  2002/03/16 15:22:19  jongfoster
57 #    Moving 'alpha' warning to the end of the page
58 #
59 #    Revision 1.5  2002/03/03 10:29:12  swa
60 #    point users to the right feedback forms,
61 #    not necessarily the developer list.
62 #
63 #    Revision 1.4  2002/01/23 00:26:45  jongfoster
64 #    Reducing length of URLs
65 #    Where encoded and unencoded versions of a string existed, removing
66 #    the unencoded one.
67 #
68 #    Revision 1.3  2002/01/17 21:33:00  jongfoster
69 #    Replacing all references to the URL of the config interface
70 #    with @default-cgi@
71 #
72 #    Revision 1.2  2002/01/17 21:21:03  jongfoster
73 #    DOS->Unix line endings
74 #
75 #    Revision 1.1  2001/11/13 00:58:18  jongfoster
76 #    New version of actions file editor templates
77 #
78 #
79 ##############################################################################
80 #
81 # Standard support:
82 #
83 # This file currently produces valid HTML 4.01 Strict.
84 #
85 # If you change it, please save the generated page from your web browser
86 # and then upload it to http://validator.w3.org/ for checking.
87 #
88 #############################################################################
89 #
90 # Available variables include:
91 #
92 # filename
93 # ver
94 # section
95 #
96 #############################################################################
97 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
98 <html>
99 <head>
100   <meta http-equiv="Content-Style-Type" content="text/css">
101   <meta http-equiv="Content-Script-Type" content="text/javascript">
102   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
103   <meta name="robots" content="noindex,nofollow">
104   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
105
106   <title>Privoxy@@my-hostname@: Edit URL Pattern</title>
107
108   <script type="text/javascript">
109 <!--
110   function validate(text)
111   {
112   if (text=="")
113   {
114     alert("You need to type a pattern in order to continue!");
115     return false;
116   }
117
118   return true;
119 }
120 //-->
121   </script>
122 </head>
123
124 <body>
125
126   <table cellpadding="20" cellspacing="10" border="0" width="100%">
127     <tr>
128       <td class="title">
129
130 #include mod-title
131
132       </td>
133     </tr>
134
135 <!-- @if-unstable-start -->
136 # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
137     <tr>
138       <td class="warning">
139
140 #include mod-unstable-warning
141
142       </td>
143     </tr>
144 <!-- if-unstable-end@ -->
145
146     <tr>
147       <td class="box">
148         <h2>Add URL Pattern</h2>
149         <form method="GET" action="edit-actions-add-url"
150               onSubmit="return validate(u.value);">
151           <p>
152             <input type="hidden" name="f" value="@f@">
153             <input type="hidden" name="v" value="@v@">
154             <input type="hidden" name="s" value="@s@">
155             <input type="text" name="u" value="" size="78"><br>
156             <input type="submit" value="Submit"> &nbsp;
157             <input type="reset" value="Reset"> &nbsp;
158             <a href="edit-actions-list?f=@f@">Cancel</a>
159           </p>
160         </form>
161       </td>
162     </tr>
163
164     <tr>
165       <td class="box">
166         <h2>More Privoxy:</h2>
167         <ul>@menu@</ul>
168       </td>
169     </tr>
170
171     <tr>
172       <td class="info">
173
174 #include mod-support-and-service
175
176       </td>
177     </tr>
178
179 <!-- @if-have-help-info-start -->
180     <tr>
181       <td class="info">
182
183 #include mod-local-help
184
185       </td>
186     </tr>
187 <!-- if-have-help-info-end@ -->
188
189     <tr>
190       <td>
191         <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
192       </td>
193     </tr>
194
195   </table>
196
197 </body>
198 </html>
199