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