Merge branch 'bug-1394' into testserver-stable
[cacert-devel.git] / pages / wot / 17.php
1 <? /*
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 */
18 include_once("../includes/shutdown.php");
19 require_once("../includes/lib/l10n.php");
20
21 if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "")
22 {
23 ?><font color="orange" size="+1">
24 <? echo _("ERROR").": ".$_SESSION['_config']['error'] ?>
25 </font>
26 <?unset($_SESSION['_config']['error']);
27 }
28
29 if(array_key_exists('noemailfound',$_SESSION['_config']) && $_SESSION['_config']['noemailfound'] == 1) {
30 unset($_SESSION['_config']['noemailfound']);
31 }
32
33 ?>
34 <form method="post" action="wot.php" name="form1">
35 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
36 <tr>
37 <td colspan="2" class="title"><?=_('Check Assurer Status')?></td>
38 </tr>
39 <tr>
40 <td class="DataTD"><?=_('Email to check')?>:</td>
41 <? if(array_key_exists('remindersent',$_SESSION['_config']) && $_SESSION['_config']['remindersent'] == 1) { unset($_SESSION['_config']['remindersent']) ?>
42 <td class="DataTD"><input type="text" name="email" id="email" value=""></td>
43 <? } else { ?>
44 <td class="DataTD"><input type="text" name="email" id="email" value="<?=array_key_exists('email',$_POST)?sanitizeHTML($_POST['email']):""?>"></td>
45 <? } ?>
46 </tr>
47 <tr>
48 <td class="DataTD"><?=_('Reason why the assurer status is needed')?>:</td>
49 <td class="DataTD"><select name="reason"><option>--</option>
50 <option><?=_('Assurance')?></option>
51 <option><?=_('Event Preparation')?></option>
52 <option><?=_('Arbitration')?></option>
53 <option><?=_('CARS check')?></option>
54 <option><?=_('CATS certificate creation')?></option>
55 <option><?=_('Organisation Assurance')?></option>
56 </select></td>
57 </tr>
58 <tr>
59 <td class="DataTD" colspan="2"><?=_('If you request the assurer status the result is send via mail to the person of whom you request the status of.')?></td>
60 </tr>
61 <tr>
62 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Next")?>"></td>
63 </tr>
64 </table>
65 <input type="hidden" name="oldid" value="<?=$id?>">
66 </form>
67 <SCRIPT LANGUAGE="JavaScript">
68 //<![CDATA[
69 function my_init()
70 {
71 document.getElementById("email").focus();
72 }
73
74 window.onload = my_init();
75 //]]>
76 </script>