$form_extra .= '<input type="hidden" name="fyr_extref" value="' . htmlentities($ref) . '">'; } $cocode = get_http_var('cocode'); if ($cocode) { $form_extra .= '<input type="hidden" name="cocode" value="' . htmlentities($cocode) . '">'; } $values = array("title" => "Email or fax a member of the House of Lords in the UK Parliament"); template_draw('header', $values); ?> <div class="content"> <div class="row"> <div class="large-10 large-centered columns flow-breadcrumbs"> <?php echo fyr_breadcrumbs(1, 'lords'); ?> </div> </div> <div class="row write-header"> <div class="large-8 large-centered columns"> <h2>Which Lord would you like to write to?</h2> </div> </div> <div class="row"> <div class="large-12 columns">
// Front page form $ref = fyr_external_referrer(); $form_extra = ''; if (isset($ref)) $form_extra .= '<input type="hidden" name="fyr_extref" value="'.htmlentities($ref).'">'; $cocode = get_http_var('cocode'); if ($cocode) $form_extra .= '<input type="hidden" name="cocode" value="'.htmlentities($cocode).'">'; $values = array( "title" => "Email or fax a member of the House of Lords in the UK Parliament", ); template_draw('header', $values); print fyr_breadcrumbs(1, 'lords'); // Date of birth if ($date = get_http_var('d')) { $date = parse_date($date); if (isset($date['epoch'])) { $f = file('../phplib/DoBsP.bsv'); $matches = array(); foreach ($f as $r) { list($id, $dob) = explode('|', $r); $dob = preg_replace('# \d+$#', '', $dob); if (!$dob) continue; $d = strtotime($dob); if (date('d/m', $date['epoch']) == date('d/m', strtotime($dob))) { $ids = dadem_get_same_person('uk.org.publicwhip/person/'.$id); if (dadem_get_error($ids)) continue;