$motion_data_a = get_wiki_current_value("motion", array($divattr["division_date"], $divattr["division_number"], $divattr['house'])); $titlea = "<a href=\"" . $divattr["divhref"] . "\">" . extract_title_from_wiki_text($motion_data_a["text_body"]) . " - " . $divattr["prettydate"] . " at {$clock_time} - Division No. " . $divattr["division_number"] . "</a>"; print "<h2><a name=\"motion\">Vote (a) " . ($motion_data_a['user_id'] == 0 ? " (unedited)" : "") . "</a>: {$titlea}</h2>"; print "<div class=\"motion\">" . extract_motion_text_from_wiki_text($motion_data_a['text_body']) . "</div>\n"; $motion_data_b = get_wiki_current_value("motion", array($divattr2["division_date"], $divattr2["division_number"], $divattr2['house'])); $titleb = "<a href=\"" . $divattr2["divhref"] . "\">" . extract_title_from_wiki_text($motion_data_b["text_body"]) . " - " . $divattr2["prettydate"] . " at {$clock_time2} - Division No. " . $divattr2["division_number"] . "</a>"; print "<h2>Vote (b) " . ($motion_data_b['user_id'] == 0 ? " (unedited)" : "") . ": {$titleb}</h2>"; print "<div class=\"motion\">" . extract_motion_text_from_wiki_text($motion_data_b['text_body']) . "</div>\n"; } } if (true === function_exists('advertisement')) { advertisement('division'); } # Work out proportions for party voting (todo: cache) if ($dismode["partysummary"]) { print_party_summary_division($div_id, "", $divattr['house']); } # Division votes table if ($dismode["showwhich"]) { if ($singlemotionpage) { # title for the division table (with explanation and links to the other cases) if ($display == "summary") { print "<h2><a name=\"votes\">Rebel Voters - sorted by {$sort}</a></h2>\n"; print "<p>" . ($house == "lords" ? "Lords" : "MPs") . "\n\t\t\t\t\t\tfor which their vote in this division differed from the majority vote of their party.\n\t\t\t\t\t\tYou can see <a href=\"{$thispage}&display=allvotes{$tpsort}\">all votes</a> in this division,\n\t\t\t\t\t\tor <a href=\"{$thispage}&display=allpossible{$tpsort}\">every eligible " . ($house == "lords" ? "lord" : "MP") . "</a> who could have\n\t\t\t\t\t\tvoted in this division</p>\n"; } elseif ($display == "allvotes") { print "<h2><a name=\"votes\">All Votes Cast - sorted by {$sort}</a></h2>\n"; print "<p>" . ($house == "lords" ? "Lords" : "MPs") . "\n\t\t\t\t\t\tfor which their vote in this division differed\n\t\t\t\t\t\tfrom the majority vote of their party are marked in red.\n\t\t\t\t\t\tAlso shows which " . ($house == "lords" ? "lords" : "MPs") . "\n\t\t\t\t\t\twere ministers at the time of this vote.\n\t\t\t\t\t\tYou can also see <a href=\"{$thispage}&display=allpossible{$tpsort}\">every eligible " . ($house == "lords" ? "lord" : "MP") . "</a>\n\t\t\t\t\t\tincluding those who did not vote in this division.</p>\n"; } elseif ($display == "slab") { #print "<h2><a name=\"votes\">All ".($house == "lords" ? "lords" : "MPs")." eligible to vote in this division</a></h2>\n"; print '<p class="votekey">Key: <span class="favour">Vote in majority</span> | <span class="against">Vote against majority</span> | '; if ($house == "scotland") {
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <?php require_once "common.inc"; # $Id: twfydivinsert.php,v 1.3 2005/12/22 18:22:28 publicwhip Exp $ # vim:sw=4:ts=4:et:nowrap # The Public Whip, Copyright (C) 2003 Francis Irving and Julian Todd # This is free software, and you are welcome to redistribute it under # certain conditions. However, it comes with ABSOLUTELY NO WARRANTY. # For details see the file LICENSE.html in the top level of the source. require_once "db.inc"; $db = new DB(); require_once "decodeids.inc"; require_once "tablepeop.inc"; require_once "tablemake.inc"; require_once "tableoth.inc"; require_once "pretty.inc"; # decode the attributes $divattr = get_division_attr_decode(""); $div_id = $divattr["division_id"]; print_party_summary_division($div_id, "www.publicwhip.org.uk/", $divattr["house"]); ?> </html>