//get html $latest_html = major_summary($last_dates, false); echo $latest_html; ?> </div> <div> <?php //Latest activity (column 3) $WRANSLIST = new WRANSLIST(); $last_dates = array(); $last_dates[3] = $WRANSLIST->most_recent_day(); /* foreach (array_keys($hansardmajors) as $major) { if (array_key_exists($major, $data)) { unset($data[$major]['listurl']); if (count($data[$major]) == 0) unset($data[$major]); } } */ //get debates html $latest_html = major_summary($last_dates, false); echo $latest_html; ?> </div> <br class="clear"> </div> <?php $PAGE->stripe_end(); $PAGE->page_end();
function comment_on_recent_bullet_point() { global $hansardmajors; ?> <li><p><strong>Read and comment on:</strong></p> <?php $DEBATELIST = new DEBATELIST(); $data[1] = $DEBATELIST->most_recent_day(); $WRANSLIST = new WRANSLIST(); $data[3] = $WRANSLIST->most_recent_day(); $WHALLLIST = new WHALLLIST(); $data[2] = $WHALLLIST->most_recent_day(); $WMSLIST = new WMSLIST(); $data[4] = $WMSLIST->most_recent_day(); $LORDSDEBATELIST = new LORDSDEBATELIST(); $data[101] = $LORDSDEBATELIST->most_recent_day(); $NILIST = new NILIST(); $data[5] = $NILIST->most_recent_day(); foreach (array_keys($hansardmajors) as $major) { if (array_key_exists($major, $data)) { unset($data[$major]['listurl']); if (count($data[$major]) == 0) { unset($data[$major]); } } } major_summary($data); ?> </li> <?php }
include_once INCLUDESPATH . 'easyparliament/recess.php'; $time = strtotime($date); $dayofweek = date('w', $time); $recess = recess_prettify(date('j', $time), date('n', $time), date('Y', $time), 1); if ($recess[0]) { print '<p>The Houses of Parliament are in ' . $recess[0] . ' at this time.</p>'; } elseif ($dayofweek == 0 || $dayofweek == 6) { print '<p>The Houses of Parliament do not meet at weekends.</p>'; } else { $data = array('date' => $date); foreach (array_keys($hansardmajors) as $major) { $URL = new URL($hansardmajors[$major]['page_all']); $URL->insert(array('d' => $date)); $data[$major] = array('listurl' => $URL->generate()); } major_summary($data); } $PAGE->stripe_end(array(array('type' => 'nextprev'))); $PAGE->page_end(); exit; } $this_page = 'hansard'; $PAGE->page_start(); // Page title will appear here. $PAGE->stripe_start('head-1'); $message = $PAGE->recess_message(); if ($message != '') { print "<p><strong>{$message}</strong></p>\n"; } $PAGE->stripe_end(); $PAGE->stripe_start();