summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gummi <martin.gummi@gmx.net>2013-09-09 01:58:46 +0200
committerMartin Gummi <martin.gummi@gmx.net>2013-09-09 01:58:46 +0200
commit606b59798febe667d0fa1d9a295159b74fbc8582 (patch)
treea803f35dcbb4cec683704519834881fecc7d0c7f
parent18a9f2205edaaf42ab15f48c2165c31883bba8e5 (diff)
downloadcacert-devel-606b59798febe667d0fa1d9a295159b74fbc8582.tar.gz
cacert-devel-606b59798febe667d0fa1d9a295159b74fbc8582.tar.xz
cacert-devel-606b59798febe667d0fa1d9a295159b74fbc8582.zip
bug-1208: prepare Name and DoB for highlighting
-rw-r--r--pages/wot/6.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/pages/wot/6.php b/pages/wot/6.php
index 1031090..698ebe4 100644
--- a/pages/wot/6.php
+++ b/pages/wot/6.php
@@ -37,14 +37,17 @@
$lname = $row['lname'];
$suffix = $row['suffix'];
$dob = $row['dob'];
- $name = $fname." ".$mname." ".$lname." ".$suffix;
+ $name = $fname." ".$mname." ".$lname." ".$suffix; //needed?
+ $mnames = array('01' => _('January'), '02' => _('February'), '03' => _('March'), '04' => _('April'), '05' => _('May'), '06' => _('June'), '07' => _('July'), '08' => _('August'), '09' => _('September'), '10' => _('October'), '11' => _('November'), '12' => _('December'));
+ $dob_date = explode( '-', $dob);
+ $dob_print = sprintf("<tt>%s-%s-%s</tt> (%d %s %d)", $dob_date[0], $dob_date[1], $dob_date[2], intval($dob_date[2], 10), $mnames[$dob_date[1]], intval($dob_date[0], 10));
$_SESSION['_config']['wothash'] = md5($name."-".$dob);
require_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
AssureHead(_("Assurance Confirmation"),sprintf(_("Please check the following details match against what you witnessed when you met %s in person. You MUST NOT proceed unless you are sure the details are correct. You may be held responsible by the CAcert Arbitrator for any issues with this Assurance."), $fname));
- AssureTextLine(_("Name"),$name);
- AssureTextLine(_("Date of Birth"),$dob." ("._("YYYY-MM-DD").")");
+ AssureTextLine(_("Name"),sprintf("<span class=\"name\"><span class=\"fname\">%s</span> <span class=\"mname\">%s</span> <span class=\"lname\">%s</span> <span class=\"lname\">%s</span> <span class=\"suffix\">%s</span></span>", $fname, $mname, $lname, $suffix);
+ AssureTextLine(_("Date of Birth"),$dob_print);
AssureMethodLine(_("Method"),$methods,'');
AssureBoxLine("certify",sprintf(_("I certify that %s %s %s has appeared in person."), $fname, $mname, $lname),array_key_exists('certify',$_POST) && $_POST['certify'] == 1);
AssureBoxLine("CCAAgreed",sprintf(_("I verify that %s %s %s has accepted the CAcert Community Agreement."), $fname, $mname, $lname),array_key_exists('CCAAgreed',$_POST) && $_POST['CCAAgreed'] == 1);