f3766b43aa8aab3eefd5b25aac5d58f1503051f1
[privoxy.git] / templates / edit-actions-url-form
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/edit-actions-url-form,v $
4 #
5 # Purpose     :  Template used to edit a URL pattern in an 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-url-form,v $
34 #    Revision 1.9  2002/03/24 15:23:33  jongfoster
35 #    Name changes
36 #
37 #    Revision 1.8  2002/03/24 11:01:06  swa
38 #    name change
39 #
40 #    Revision 1.7  2002/03/23 16:18:15  swa
41 #    renamed every reference to the old name with foobar.
42 #    fixed "application foobar application" tag, fixed
43 #    "the foobar" with "foobar". left junkbuster in cvs
44 #    comments and remarks to history untouched. should
45 #    make final rename easier.
46 #
47 #    Revision 1.6  2002/03/16 15:22:19  jongfoster
48 #    Moving 'alpha' warning to the end of the page
49 #
50 #    Revision 1.5  2002/03/03 10:29:13  swa
51 #    point users to the right feedback forms,
52 #    not necessarily the developer list.
53 #
54 #    Revision 1.4  2002/01/23 00:26:45  jongfoster
55 #    Reducing length of URLs
56 #    Where encoded and unencoded versions of a string existed, removing
57 #    the unencoded one.
58 #
59 #    Revision 1.3  2002/01/17 21:33:00  jongfoster
60 #    Replacing all references to the URL of the config interface
61 #    with @default-cgi@
62 #
63 #    Revision 1.2  2002/01/17 21:21:05  jongfoster
64 #    DOS->Unix line endings
65 #
66 #    Revision 1.1  2001/11/13 00:58:18  jongfoster
67 #    New version of actions file editor templates
68 #
69 #
70 ##############################################################################
71 #
72 # Standard support:
73 #
74 # This file currently produces valid HTML 4.01 Strict.
75 #
76 # If you change it, please save the generated page from your web browser
77 # and then upload it to http://validator.w3.org/ for checking.
78 #
79 #############################################################################
80 #
81 # Available variables include:
82 #
83 # f - filename
84 # v - version
85 # s - section
86 # p - pattern
87 # u - old value of URL
88 #
89 #############################################################################
90 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
91 <html>
92
93 <head>
94 <meta http-equiv="Content-Style-Type" content="text/css">
95 <meta http-equiv="Content-Script-Type" content="text/javascript">
96 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
97 <meta name="robots" content="noindex,nofollow">
98
99 <title>Privoxy: Edit URL Pattern</title>
100
101 <style type="text/css">
102 body         { font-family: Helvetica, Helv, Arial, Sans-Serif, sans-serif;
103                background-color: #ffffff;
104                color: #000000            }
105 td.light     { background-color: #eeeeee }
106 td.dark      { background-color: #dddddd }
107 </style>
108
109 <script type="text/javascript">
110 <!--
111 function validate(text)
112 {
113   if (text=="")
114   {
115     alert("You need to type a pattern in order to continue!");
116     return false;
117   }
118
119   return true;
120 }
121 //-->
122 </script>
123
124 </head>
125
126 <body>
127
128 <table cellpadding="20" cellspacing="10" border="0" width="100%">
129   <tr>
130     <td class="dark">
131       <p><big><big><b>This is Privoxy (privacy enhancing proxy) @version@ on @my-hostname@ (@my-ip-address@), port @my-port@, @if-enabled-display-then@Enabled@else-not-enabled-display@Disabled@endif-enabled-display@</b></big></big></p>
132     </td>
133   </tr>
134
135   <tr>
136     <td class="light">
137       <h2>Edit URL Pattern</h2>
138       <form method="GET" action="edit-actions-url"
139             onSubmit="return validate(u.value);">
140         <p>
141           <input type="hidden" name="f" value="@f@">
142           <input type="hidden" name="v" value="@v@">
143           <input type="hidden" name="p" value="@p@">
144           <input type="text" name="u" value="@u@" size="78"><br>
145           <input type="submit" value="Submit"> &nbsp;
146           <input type="reset" value="Reset"> &nbsp;
147           <a href="edit-actions-list?f=@f@">Cancel</a>
148         </p>
149       </form>
150     </td>
151   </tr>
152
153   <tr>
154     <td class="dark">
155       <h2>More Privoxy:</h2>
156       <ul>@menu@</ul>
157     </td>
158   </tr>
159
160   <tr>
161     <td>
162       <small><small>Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></small></small>
163     </td>
164   </tr>
165
166 </table>
167
168 </body>
169
170 </html>
171