# For displaying Standing Committee debates. I know they're Public Bill # Committees now, but I've called them standing committees everywhere $bill = get_http_var('bill'); $session = get_http_var('session'); $id = get_http_var('id'); $bill_id = null; if ($bill && $session) { $db = new ParlDB(); $q = $db->query('select id,standingprefix from bills where title="' . mysql_real_escape_string($bill) . '" and session = "' . mysql_real_escape_string($session) . '"'); if ($q->rows()) { $bill_id = $q->field(0, 'id'); $standingprefix = $q->field(0, 'standingprefix'); } } $committee = new StandingCommittee($session, $bill); if ($bill_id && !$id) { $this_page = 'pbc_bill'; $args = array('id' => $bill_id, 'title' => $bill, 'session' => $session); $committee->display('bill', $args); } elseif ($bill_id && $id) { $this_page = 'pbc_clause'; $args = array('gid' => $standingprefix . $id, 's' => get_http_var('s'), 'member_id' => get_http_var('m'), 'glossarise' => 1, 'sort' => 'regexp_replace', 'bill_id' => $bill_id, 'bill_title' => $bill, 'bill_session' => $session); $GLOSSARY = new GLOSSARY($args); # Why a global? if (preg_match('/speaker:(\\d+)/', get_http_var('s'), $mmm)) { $args['person_id'] = $mmm[1]; } $result = $committee->display('gid', $args); /* This section below is shared between here and everywhere else - factor it out! */ if ($committee->htype() == '12' || $committee->htype() == '13') {
<?php include_once "../includes/easyparliament/init.php"; //set page name (selects relevant bottom menu item) $this_page = 'overview'; $PAGE->page_start(); $PAGE->supress_heading = true; $PAGE->stripe_start("full"); $last_dates = array(); // holds the most recent data there is data for, indexed by type $DEBATELIST = new DEBATELIST(); $LORDSDEBATELIST = new LORDSDEBATELIST(); $WHALLLIST = new WHALLLIST(); $WMSLIST = new WMSLIST(); $WRANSLIST = new WRANSLIST(); $COMMITTEE = new StandingCommittee(); $last_dates[1] = $DEBATELIST->most_recent_day(); $last_dates[101] = $LORDSDEBATELIST->most_recent_day(); $last_dates[4] = $WMSLIST->most_recent_day(); $last_dates[2] = $WHALLLIST->most_recent_day(); $last_dates[3] = $WRANSLIST->most_recent_day(); $last_dates[6] = $COMMITTEE->most_recent_day(); ?> <div class="welcome_col1"> <!-- Actions --> <div id="welcome_uk" class="welcome_actions"> <div> <h2>Your representative</h2>