Merge branch 'bug-1341' into release
[cacert-devel.git] / www / coap.html.php
1 <?php /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 Version: $Id: coap.html.php,v 1.2 2011-06-10 18:30:41 wytze Exp $
18 */
19 ?>
20 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
21 <html>
22
23 <head>
24 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
25 <?php
26 echo '<title>'._("Organisation Information (COAP) form").'</title>', "\n";
27 ?>
28 </head>
29
30 <body>
31
32 <style type="text/css">
33 table#TAB1 {border-color: rgb(173,197,215); border-top: solid 5px rgb(173,197,215); border-left: solid 5px rgb(173,197,215);}
34 table#TAB1 td { border: 0 }
35 </style>
36
37 <p>
38 <div style="text-align: right;"><img align="absbottum" style="width: 30%; float: none;" alt="CAcert logo" src="http://www.cacert.org/logos/CAcert-logo-colour-1000.png" vspace="3" /></div>
39 </div>
40 </p>
41 <p>
42 <div style="text-align: right;">
43 <?php
44 echo '<big><big><span style="font-weight: bold;">'._("CAcert Organisation Assurance Programme").'</span></big></big><br>', "\n";
45 ?>
46 </div>
47 <div style="text-align: right;">
48 <?php
49 echo '<big><big><span style="font-weight: bold;">'._("Organisation Information (COAP) form").'</span></big></big><br>', "\n";
50 ?>
51 </div>
52 <div style="text-align: right;">CAcert Inc. - P.O. Box 4107 - Denistone East NSW 2112 - Australia - <a href="http://www.cacert.org/">http://www.cacert.org</a><br></div>
53 <br>
54 <table style="border-bottom: solid; border-color: rgb(17, 86, 140)" cellspacing="0" cellpadding="0" width="100%">
55 <tbody>
56 <tr>
57 <?php
58 echo ' <td border=0 align="left"><font size=-7>'._("CAcert's Root Certificate sha1 fingerprints").'</font></td>', "\n";
59 ?>
60 <td border=0 align="right"><font size=-7>class 1: 135C EC36 F49C B8E9 3B1A B270 CD80 8846 76CE 8F33</font></td>
61 </tr>
62 <tr>
63 <td border=0></td>
64 <td border=0 align="right"><font size=-7>class 3: AD7C 3F64 FC44 39FE F4E9 0BE8 F47C 6CFA 8AAD FDCE</font></td>
65 <tr>
66 </font>
67 </td>
68 </tr>
69 </tbody>
70 </table>
71 <p>
72 <?php
73 echo _("The CAcert Organisation Programme (COAP) aims to verify the identity of the organisation."), "<br>\n";
74 echo _("The Applicant asks the Organisation Assurer to verify to CAcert Community that the information provided by the Applicant is correct, and according to the official trade office registration bodies."), "<br>\n";
75 echo _("For more information about the CAcert Organisation Assurance Programme, including detailed guides to CAcert Organisation Assurers, please visit:"), ' ';
76 echo ' <a href="http://www.cacert.org/">http://www.cacert.org</a><br>';
77 echo _("A CAcert Arbitrator can require the Organisation Assurer to deliver the completed forms and accompanying documents in the event of a dispute."), "<br>\n";
78 echo _("For the CAcert Individual Assurance Programme there is a separate special CAP form.");
79 ?>
80
81 <form target="_blank" enctype="application/x-www-form-urlencoded" method="get" action="https://www.cacert.org/coapnew.php" name="COAP form">
82
83 <br>
84 <table border="1" id="TAB1" cellpadding="2" cellspacing="0" width="100%" rules="groups">
85 <thead>
86 <tr style="background-color: rgb(17, 86, 140); color: white;">
87 <?php
88 echo ' <th colspan="4" align="left"><big><big>'._("Organisation Identity Information").'</big></big></th>', "\n";
89 ?>
90 </tr>
91 </thead>
92 <tbody>
93 <tr>
94 <?php
95 echo ' <td nowrap>'. _("Name of the organisation").'</td>', "\n";
96 echo ' <td colspan="3"><input size=\"60\" maxlength=\"80\" name=\"name\"></td>', "\n";
97 echo '</tr>', "\n";
98 echo '<tr>', "\n";
99 echo ' <td nowrap>'. _("Address").' ('. _("comma separated"). ')';
100 echo ' <td colspan="3"><input size=\"60\" maxlength=\"80\" name=\"address\"></td>', "\n";
101 echo '</tr>', "\n";
102 ?>
103 </tbody>
104 <tbody>
105 <tr>
106 <?php
107 echo ' <td>'. _("Jurisdiction info"). '</td>', "\n";
108 echo ' <td align="left"><i>'. _("type"). '</td></i>', "\n";
109 echo ' <td align="left"><i>'. _("state"). '</td></i>', "\n";
110 echo ' <td align="right"><i>'. _("country code"). '</td></i>', "\n";
111 echo '</tr>', "\n";
112 echo '<tr>', "\n";
113 echo ' <td></td>', "\n";
114 echo ' <td align="left"><input size=\"25\" maxlength=\"80\" name=\"type\"></td>', "\n";
115 echo ' <td align="left"><input size=\"25\" maxlength=\"80\" name=\"state\"></td>', "\n";
116 echo ' <td align="right"><input size=\"3\" maxlength=\"80\" name=\"country\"></td>', "\n";
117 ?>
118 </tr>
119 </tbody>
120 <tbody>
121 <?php
122 for ( $i = 0; $i < 2; $i++ ) {
123 echo '<tr>', "\n", ' <td>';
124 if ( $i < 1 ) { echo _("Registered Trade Names");}
125 echo '</td>', "\n";
126 for ( $j = 1; $j <= 3; $j++ ) {
127 printf(" <td align=\"%s\"><input size=\"25\" maxlength=\"80\" name=\"dba%d\"></td>\n", $j > 2 ? "right" : ($j > 2 ? "center" : "left") , $i * 3 + $j);
128 }
129 echo '</tr>', "\n";
130 }
131 ?>
132 </tbody>
133 <tbody>
134 <tr>
135 <?php
136 echo ' <td>'. _("Trade Office info"). '</td>', "\n";
137 echo ' <td align="left"><i>'. _("reg. number"). '</td></i>', "\n";
138 echo ' <td align="left"><i>'. _("trade office"). '</td></i>', "\n";
139 echo ' <td align="right"><i>'. _("region"). '</td></i>', "\n";
140 echo '</tr>', "\n";
141 echo '<tr>', "\n";
142 echo ' <td></td>', "\n";
143 echo ' <td align="left"><input size=\"25\" maxlength=\"80\" name=\"identity\"></td>', "\n";
144 echo ' <td align="left"><input size=\"25\" maxlength=\"80\" name=\"tor\"></td>', "\n";
145 echo ' <td align="right"><input size=\"25\" maxlength=\"80\" name=\"torregion\"></td>', "\n";
146 ?>
147 </tr>
148 </tbody>
149 <tbody>
150 <?php
151 for ( $i = 0; $i < 2; $i++ ) {
152 echo '<tr>', "\n", ' <td>';
153 if ( $i < 1 ) { echo _("Internet Domain(s)");}
154 echo '</td>', "\n";
155 for ( $j = 1; $j <= 3; $j++ ) {
156 printf(" <td align=\"%s\"><input size=\"25\" maxlength=\"80\" name=\"domain%d\"></td>\n", $j > 2 ? "right" : ($j > 2 ? "center" : "left"), $i * 3 + $j);
157 }
158 echo '</tr>', "\n";
159 }
160 ?>
161 </tbody>
162 <tbody>
163 <?php
164 for ( $i = 1; $i <=2; $i++ ) {
165 echo '<tr>', "\n", ' <td>';
166 if( $i < 2 ) { echo _("Organisation Administrator(s)"); }
167 echo '</td>', "\n";
168 printf(" <td colspan=\"3\"<input size=\"65\" maxlength=\"80\" name=\"admin%d\"></td>\n</tr>\n",$i);
169 echo "<tr>\n <td></td><td colspan=\"2\" align=\"left\"><i>". _("email") . "</i> ";
170 printf("<input size=\"45\" maxlength=\"80\" name=\"admin%demail\"></td>\n", $i);
171 echo " <td align=\"right\"><i>". _("phone") . "</i> ";
172 printf("<input size=\"15\" maxlength=\"80\" name=\"admin%dphone\"></td>\n</tr>\n", $i);
173 }
174 ?>
175 </tbody>
176 </table>
177
178 <table border="1" id="TAB1" cellpadding="2" cellspacing="0" width="100%" rules="groups">
179 <tr style="background-color: rgb(17, 86, 140); color: white;">
180 <th colspan="3" align="left"><big><big>
181 <?php
182 echo _("Organisation's Statement");
183 ?>
184 </big></big></th>
185 </thead>
186 <tbody>
187 <tr>
188 <td colspan="2"><i>
189 <?php
190 echo _("Make sure you have read and agreed with the CAcert Community Agreement");
191 ?>
192 (<a href="http://www.cacert.org/policy/CAcertCommunityAgreement.html">CCA</a>)</i><br></td>
193 </tr>
194 <tr><td colspan=2><p></td></tr>
195 <tr>
196 <?php
197 echo ' <td colspan="2"><i>'. _("director") . '</i>', "\n";
198 echo '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="80" size="65" name="director"></td>', "\n";
199 echo '</tr><tr>', "\n";
200 echo ' <td><i>'. _("email");
201 echo ' <small><small>(optional)</small></small>';
202 echo '</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="80" size="40" name="email"></td>', "\n";
203 echo ' <td align="right"><i>'. _("phone");
204 echo ' <small><small>(optional)</small></small>';
205 echo '</i> <input maxlength="80" size="15" name="phone"></td>', "\n";
206 ?>
207 </tr>
208 <tr>
209 <td colspan="2"><input type="checkbox" checked name="checked" value="1">
210 <?php
211 echo ' '. _("I agree to the CAcert Community Agreement.").' (';
212 ?>
213 <a href="http://www.cacert.org/policy/CAcertCommunityAgreement.html">CCA</a>)</dd></td>
214 </tr>
215 <tr>
216 <td colspan="2"><input type="checkbox" checked name="checked" value="2">
217 <?php
218 echo _("I hereby confirm that all information is complete and accurate and will notify CAcert of any updates or changes thereof."). "</td>\n</tr>\n";
219 echo "<tr>\n", ' <td colspan="2"><input type="checkbox" checked name="checked" value="3">';
220 echo _("I am duly authorised to act on behalf of the organisation, I grant operational certificate administrative privileges to the specified Organisation Administrator and, I request the Organisation Assurer to verify the organisation information according to the Assurance Policies."). "</td>\n";
221 ?>
222 <tr><td colspan="2"></td></tr>
223 <tr>
224 <?php
225 echo ' <td>'. _("Date"). ' <small><small>(<i>'. _("yyyy-mm-dd"). '</i>)</small></small>';
226 echo '<br><input maxlength="10" size="11" name="date"></td>', "\n";
227 echo ' <td align="right">'. _("Signature") .'<br> ('._("and organisation stamp") . ")</td>\n";
228 echo "</tr><tr>\n";
229 ?>
230 </tr>
231 <tr><td colspan="2"><p></td></tr>
232 </tbody>
233 </table>
234 <br>
235
236 <table border="1" id="TAB1" cellpadding="2" cellspacing="0" width="100%" rules="groups">
237 <thead>
238 <tr style="background-color: rgb(17, 86, 140); color: white;">
239 <?php
240 echo ' <th colspan="2" align="left"><big><big>'._("Organisation Assurer's Statement").'</big></big></td>', "\n";
241 ?>
242 </tr>
243 </thead>
244 <tbody>
245 <tr><td colspan="2"><p></td></tr>
246 <tr>
247 <?php
248 echo ' <td colspan="2"><i>'. _("organisation assurer") . '</i> ', "\n";
249 echo '<input maxlength="80" size="60" name="assurer"></td>', "\n";
250 echo '</tr><tr>', "\n";
251 echo ' <td><i>'. _("email");
252 echo ' <small><small>(optional)</small></small>';
253 echo '</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="80" size="40" name="assureremail"></td>', "\n";
254 echo ' <td align="right"><i>'. _("phone");
255 echo ' <small><small>(optional)</small></small>';
256 echo '</i> <input maxlength="80" size="15" name="assurerphone"></td>', "\n";
257 ?>
258 </tr>
259 <tr>
260 <td colspan="2"><input type="checkbox" checked name="checked" value="3">
261 <?php
262 echo _("I, the Assurer, hereby confirm that I have verified the official Information for the organisation, I will witness the organisation's identity in the CAcert Organisation Assurance Programme, and complete the Assurance.") . "</td>\n";
263 ?>
264 </tr>
265 <tr>
266 <td colspan="2"><input type="checkbox" checked name="checked" value="4">
267 <?php
268 echo _("I am a CAcert Community Member, have passed the Organisation Assurance Challenge, and have been appointed for Organisation Assurances within the country where the organisation is registered."). "</td>\n";
269 ?>
270 </tr>
271 <tr><td colspan=2><p></td></tr>
272 <tr>
273 <?php
274 echo ' <td>'._("Date").' <small><small>(<i>'._("yyyy-mm-dd").'</i>)</small></small>';
275 ?>
276 <br><input maxlength="10" size="11" name="assurerdate"></td>
277 <?php
278 echo ' <td align="right" valign="top">'._("Signature").'</td>', "\n";
279 ?>
280 </tr>
281 <tr><td colspan="2"></td><tr>
282 </tbody>
283 </table>
284 <div style="text-align: right;"><small><small><span>&copy;
285 <?php
286 echo date('Y').' CAcert Inc., V2, '.date('Y-n-j');
287 ?>
288 </small></small></span></div>
289 <br>
290 <p>
291
292 <table border="0" cellpadding="2" cellspacing="0" width="100%" rules="groups">
293 <thead>
294 <tr style="background-color: rgb(112, 154, 186); color: white;">
295 <th colspan="2" align="left"><big><big>
296 <?php
297 echo _("How To Print this CAP form");
298 ?>
299 </big></big></td>
300 </tr>
301 </thead>
302 </table>
303 <p>
304 <?php
305 echo _("A printer ready file with the form and attachments can be generated as follows:");
306 ?>
307 <dl>
308 <dd><input type="radio" name="orientation" value="landscape">
309 <?php
310 echo ' '._("2-up");
311 echo ' <input type="radio" checked="checked" name="orientation" value="portrait"> '._("portrait").' '._("1-up").')';
312 ?>
313 </dd>
314 <dd><input type="radio" checked="checked" name="format" value="A4"> A4
315 <input type="radio" name="format" value="A5"> A5
316 <?php
317 echo ' <input type="radio" name="format" value="letter"> Letter '._("paper format");
318 echo "</dd>\n";
319 echo ' <p><dd><input type="radio" name="nocca" value="false"> '._("no");
320 echo ' <input type="radio" checked="checked" name="nocca" value="true"> '._("yes, the CCA is attached to the form."), "</dd>\n";
321 $policies = array(
322 'Organisation Assurance Policy' =>
323 'http://svn.cacert.org/CAcert/Policies/OrganisationAssurancePolicy/OrganisationAssurancePolicy.html',
324 'Organisation Assurance Subpolicy for Australia' =>
325 'http://svn.cacert.org/CAcert/Policies/OrganisationAssurancePolicy/OrganisationAssuranceSubPolicyAustralia.html',
326 'Organisation Assurance Subpolicy for Europe' =>
327 'http://svn.cacert.org/CAcert/Policies/OrganisationAssurancePolicy/OrganisationAssuranceSubPolicyEurope.html',
328 'Organisation Assurance Subpolicy for the United States' =>
329 'http://svn.cacert.org/CAcert/Policies/OrganisationAssurancePolicy/OrganizationAssuranceSubPolicyUnitedStates.html',
330 );
331 $cnt = 0;
332 while( list($key, $ref) = each($policies) ) {
333 $cnt++;
334 if( $cnt < 2 ) {
335 echo '<p><dd>'. _("Applicable Organisation Policy documents and information can be attached to the pdf output file. Mark those documents, which need to be attached") . ":<br>\n";
336 }
337 printf("<dd><input type=\"checkbox\" name=\"policy%d\" value=\"%s\"> <a href=\"%s\">%s</a></dd>\n", $cnt, $ref, $ref, $key);
338 }
339 if( $cnt > 0 ) {
340 echo "</dd>\n";
341 }
342 echo "</dl>\n";
343 echo _("Submit the form").': <button type="submit" style="background-color: rgb(112, 154, 186); color: white;"> '._("generate PDF file");
344 echo "</button>\n";
345 ?>
346 </p>
347 </form>
348
349 </body>
350 </html>