cacert-webdb/pages/wot/5.php

120 lines
4.3 KiB
PHP
Raw Permalink Normal View History

2004-10-16 00:28:17 +00:00
<? /*
2008-04-06 19:45:09 +00:00
LibreSSL - CAcert web application
Copyright (C) 2004-2008 CAcert Inc.
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2006-08-16 00:00:01 +00:00
*/
include_once("../includes/shutdown.php");
require_once("../includes/lib/l10n.php");
2006-08-16 00:00:01 +00:00
?>
<?
if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "")
{
?><font color="orange" size="+1">
<? echo _("ERROR").": ".$_SESSION['_config']['error'] ?>
</font>
<?unset($_SESSION['_config']['error']);
}
if (!isset($_SESSION['assuresomeone']['year'])) {
$_SESSION['assuresomeone']['year'] = 0;
}
if (!isset($_SESSION['assuresomeone']['month'])) {
$_SESSION['assuresomeone']['month'] = 0;
}
if (!isset($_SESSION['assuresomeone']['day'])) {
$_SESSION['assuresomeone']['day'] = 0;
}
?>
2008-09-19 18:20:36 +00:00
<? if(array_key_exists('noemailfound',$_SESSION['_config']) && $_SESSION['_config']['noemailfound'] == 1) { ?>
2005-03-20 17:07:33 +00:00
<form method="post" action="wot.php">
2007-07-03 19:59:30 +00:00
<input type="hidden" name="email" value="<?=sanitizeHTML($_POST['email'])?>"><br>
2005-07-24 13:56:10 +00:00
<select name="reminder-lang">
<?
if($_SESSION['_config']['reminder-lang'] == "")
$_SESSION['_config']['reminder-lang'] = L10n::get_translation();
foreach(L10n::$translations as $key => $val)
2005-07-24 13:56:10 +00:00
{
echo "<option value='$key'";
if($key == $_SESSION['_config']['reminder-lang'])
echo " selected";
echo ">$val</option>\n";
}
?>
</select><br>
2005-03-20 17:07:33 +00:00
<input type="hidden" name="oldid" value="<?=$id?>">
<input type="submit" name="reminder" value="<?=_("Send reminder notice")?>">
</form>
<? unset($_SESSION['_config']['noemailfound']); } ?>
2006-08-15 19:00:15 +00:00
<form method="post" action="wot.php" name="form1">
2004-10-16 00:28:17 +00:00
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
2004-10-24 01:46:49 +00:00
<td colspan="2" class="title"><?=_("Assure Someone")?></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><?=_("Email")?>:</td>
2008-09-19 18:20:36 +00:00
<? if(array_key_exists('remindersent',$_SESSION['_config']) && $_SESSION['_config']['remindersent'] == 1) { unset($_SESSION['_config']['remindersent']) ?>
2006-11-23 22:22:31 +00:00
<td class="DataTD"><input type="text" name="email" id="email" value=""></td>
2005-03-20 17:07:33 +00:00
<? } else { ?>
2008-09-19 18:20:36 +00:00
<td class="DataTD"><input type="text" name="email" id="email" value="<?=array_key_exists('email',$_POST)?sanitizeHTML($_POST['email']):""?>"></td>
2005-03-20 17:07:33 +00:00
<? } ?>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD">
<?=_("Date of Birth")?><br/>
(<?=_("yyyy/mm/dd")?>)</td>
<td class="DataTD">
<input type="text" name="year" value="<?=array_key_exists('year',$_SESSION['assuresomeone']) && intval($_SESSION['assuresomeone']['year']) >= 1900 ? intval($_SESSION['assuresomeone']['year']):''?>" size="4" autocomplete="off"></nobr>
<select name="month">
<?
for($i = 1; $i <= 12; $i++)
{
echo "<option value='$i'";
if(array_key_exists('month',$_SESSION['assuresomeone']) && intval($_SESSION['assuresomeone']['month']) === $i)
echo " selected=\"selected\"";
echo ">".ucwords(strftime("%B", mktime(0,0,0,$i,1,date("Y"))))." ($i)</option>\n";
}
?>
</select>
<select name="day">
<?
for($i = 1; $i <= 31; $i++)
{
echo "<option";
if(array_key_exists('day',$_SESSION['assuresomeone']) && intval($_SESSION['assuresomeone']['day']) === $i)
echo " selected=\"selected\"";
echo ">$i</option>";
}
?>
</select>
</td>
</tr>
2004-10-16 00:28:17 +00:00
<tr>
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Next")?>"></td>
</tr>
</table>
<input type="hidden" name="oldid" value="<?=$id?>">
</form>
2006-08-15 19:00:15 +00:00
<SCRIPT LANGUAGE="JavaScript">
2006-11-23 22:22:31 +00:00
//<![CDATA[
function my_init()
2006-08-15 19:00:15 +00:00
{
2006-11-23 22:22:31 +00:00
document.getElementById("email").focus();
2006-08-15 19:00:15 +00:00
}
2006-11-23 22:22:31 +00:00
window.onload = my_init();
//]]>
2006-08-15 19:00:15 +00:00
</script>