"Ädd DoB to selection of assuree"
This commit is contained in:
Wytze van der Raay 2014-07-16 10:37:57 +00:00
parent f032d1f013
commit 5c7e14e915
3 changed files with 48 additions and 4 deletions

View file

@ -1055,7 +1055,7 @@ function get_user_agreements($memid, $type=null, $active=null){
<?
} else {
?>
<input type="hidden" name="<?=$val?>" value="<?=$methods[0]?>" />
<input type="hidden" name="method" value="<?=$methods[0]?>" />
<?
}
}

View file

@ -18,14 +18,24 @@
include_once("../includes/shutdown.php");
require_once("../includes/lib/l10n.php");
?>
<?
if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "")
<?
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;
}
?>
<? if(array_key_exists('noemailfound',$_SESSION['_config']) && $_SESSION['_config']['noemailfound'] == 1) { ?>
<form method="post" action="wot.php">
@ -60,6 +70,37 @@
<td class="DataTD"><input type="text" name="email" id="email" value="<?=array_key_exists('email',$_POST)?sanitizeHTML($_POST['email']):""?>"></td>
<? } ?>
</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>
<tr>
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Next")?>"></td>
</tr>

View file

@ -24,6 +24,9 @@
}
$row = $_SESSION['_config']['notarise'];
$_SESSION['assuresomeone']['year'] = 0;
$_SESSION['assuresomeone']['month'] = 0;
$_SESSION['assuresomeone']['day'] = 0;
if($_SESSION['profile']['ttpadmin'] == 1)
// $methods = array("Face to Face Meeting", "Trusted 3rd Parties", "TopUP");