Beispiel #1
0
$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>
        <?php 
$MPURL = new URL('yourmp');
global $THEUSER;
$pc_form = true;
if ($THEUSER->isloggedin() && $THEUSER->postcode() != '' || $THEUSER->postcode_is_set()) {
    // User is logged in and has a postcode, or not logged in with a cookied postcode.