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