Esempio n. 1
0
$title = "Counting votes on your behalf";
pw_header_notitle();
?>

<?php 
require_once "db.inc";
$db = new DB();
require_once "decodeids.inc";
require_once "tablemake.inc";
require_once "tablepeop.inc";
require_once "tableoth.inc";
require_once "dream.inc";
update_dreammp_votemeasures($db, null, 0);
# for all
$random_mp = searchtip_random_mp($db, "commons");
$random_lord = searchtip_random_mp($db, "lords");
$random_topic = searchtip_random_topic($db);
$random_topic2 = searchtip_random_topic($db);
$random_topic3 = searchtip_random_topic($db);
?>

<div class="homeintro">
<h1>Forums unavailable</h1></div>
<div class="homevideo">
<p>As a security measure we have removed the forum software from the server. We are currently considering whether to replace it with a more secure version of the software, or to close down the forums and replace it with a simplified changelog for divisions and policies.</p>
<p>For more details please see the blog post <a href="http://blog.publicwhip.org.uk/2011/09/weekend-work-security-patches-and-forum-access/">Security patches and forum access</a>.</p>
<p>If you have an view on the future of the forum, please let us know via email to <a href="mailto:team@publicwhip.org.uk">team@publicwhip.org.uk</a>, or tweet us <a href="http://twitter.com/publicwhip">@PublicWhip</a>.</p>
</div>

<div class="homesearch">
<h2>Search the Whip</h2>
Esempio n. 2
0
        ?>
 '<?php 
        echo $prettyquery;
        ?>
'.
<?php 
    }
    ?>
<p>Also try browsing the list of <a href="mps.php">all MPs</a>,
<a href="mps.php?house=lords">all Lords</a>
or <a href="divisions.php">all divisions</a>.
<?php 
} else {
    pw_header();
}
$random_mp = searchtip_random_mp($db);
$random_constituency = searchtip_random_constituency($db);
$random_topic = searchtip_random_topic($db);
?>

<p class="search">Enter your postcode, MP name, constituency or debate topic:</p>
<form class="search" action="search.php" name=pw>
<input maxLength=256 size=25 name="query" id="query" value=""> <input type="submit" value="Search" name="button">
</form>

<p class="search"><i>Example: "OX1 3DR", "<?php 
echo $random_mp;
?>
"<?php 
echo $random_constituency;
?>