</table> <table border="0" cellpadding="0" cellspacing="0" width="700"> <?php if (strlen($errMsg) > 0) { ?> <tr> <td><?php echo $errMsg; ?> </td> </tr> <?php } ?> <tr> <td align="center"> <?php $fstruct = array(array("paction", "", "hidden", "insertList", false), array("filterDate", "", "hidden", $filter_date, false), array("list_type", "List Type", "radio", array(array(0, "Private List", false), array(1, "Public List", true)), true), array("list_title", "List Title", "text", $ltitle_in, true), array("list_description", "List Description", "textarea", $ldesc_in, true)); createForm($fstruct, "field", "addList", "lists.php", true, "Create List", ""); ?> </td> </tr> </table> </td> </tr> </table> <?php WriteFooter(); $application->save();
function WriteFrontPage() { print "<html>\n"; print "<head>\n"; print "<title>The Public Whip - How They Voted 2008</title>\n"; print "<link href=\"quiz/election2008.css\" type=\"text/css\" rel=\"stylesheet\"/>\n"; print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; print "<body>\n"; print "<script type=\"text/javascript\" src=\"walterzorn/wz_tooltip.js\"></script>\n"; print "<script type=\"text/javascript\" src=\"quiz/election_glenrothes2008.js\"></script>\n"; print "<div id=\"divcrewebyelection\">\n"; print "<a href=\"/\"><h1 id=\"th1\"><a href=\"/\"><img src=\"/thepublicwhip.gif\" ></h1></a>\n"; #print "<h2 id=\"howtheyvoted\">How They Voted 2008</h2>\n"; #print "<h3 id=\"th3\">(...and so should you)</h3>\n"; print "<h4 id=\"th4a\">The party candidate calculator</h4>\n"; print "<h4 id=\"th4b\">for the Glenrothes by-election</h4>\n"; print "<h4 id=\"th4c\">6 November 2008</h4>\n"; print "<div id=\"opform\">"; print "<form action=\"\" method=\"get\">"; print "<div class=\"frontpostcodesec\">To find out how your views compare to the main political parties, type in <em>either</em>:\n"; print "<ul>\n"; print "<li>Your postcode: <input type=\"text\" name=\"mppc\" id=\"mppc\" size=\"8\" onKeyDown=\"if(event.keyCode==13)event.keyCode=0\"> </input>, <em>or</em> </li>\n <li>Your parliamentary constituency: <input type=\"text\" name=\"mpc\" id=\"mpc\"> </input> </li>\n </ul>\n (It works even if you do not live in Glenrothes.) </div>\n"; print "<div class=\"frontpostcodesec\">\n"; print "<div id=\"checkmpbutton\"><input type=\"submit\" style=\"font-size:40px\" value=\"Go to the votes \"></div>\n"; print "</div>"; print "</form></div>\n"; WriteFooter(); }
function WriteFrontPage($triedpostcode, $vrand) { print "<html>\n"; print "<head>\n"; print "<title>The Public Whip - How They Voted 2008</title>\n"; print "<link href=\"quiz/election2008.css\" type=\"text/css\" rel=\"stylesheet\"/>\n"; print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"; print "<body style=\"text-align:center\">\n"; print "<script type=\"text/javascript\" src=\"walterzorn/wz_tooltip.js\"></script>\n"; print "<script type=\"text/javascript\" src=\"quiz/election_glenrothes2008.js\"></script>\n"; print "<div id=\"divcrewebyelection\">\n"; print "<a href=\"/\"><h1 id=\"th1\"><a href=\"/\"><img src=\"/thepublicwhip.gif\" ></h1></a>\n"; #print "<h2 id=\"howtheyvoted\">How They Voted 2008</h2>\n"; #print "<h3 id=\"th3\">(...and so should you)</h3>\n"; print "<h4 id=\"th4a\">The party candidate calculator</h4>\n"; print "<h4 id=\"th4b\">for the Glenrothes by-election</h4>\n"; print "<h4 id=\"th4c\">6 November 2008</h4>\n"; print "<p style=\"color:red; font-size: 100%;\">send feedback: team@publicwhip.org.uk \n - download Glenrothes flier <a href=\"quiz/glenrothesflier.pdf\">here</a></p>\n"; print "<div id=\"opform\">"; if ($triedpostcode) { print "<p style=\"color:red\">Postcode: '{$triedpostcode}' doesn't work</p>\n"; } print "<form action=\"/byelection\" method=\"get\">"; print "<div class=\"frontpostcodesec\">To find out how your views compare to the main political parties, type in <em>either</em>:\n"; print "<ul>\n"; print "<li>Your postcode: <input type=\"text\" name=\"mppc\" id=\"mppc\" size=\"8\" onKeyDown=\"if(event.keyCode==13)event.keyCode=0\"> </input>, <em>or</em> </li>\n <li>Your parliamentary constituency: <input type=\"text\" name=\"mpc\" id=\"mpc\"> </input> </li>\n </ul>\n (It works even if you do not live in Glenrothes.) </div>\n"; print "<div class=\"frontpostcodesec\">\n"; print "<div id=\"checkmpbutton\"><input type=\"submit\" style=\"font-size:40px\" value=\"Go to the votes \"></div>\n"; print "</div>"; print "<div id=\"dynamicpage\" style=\"display:none\"><img src=\"/smileys/mad.gif\">\n"; print "<p>Random number:</td><td><input type=\"text\" name=\"vrand\" id=\"vrand\" value=\"{$vrand}\" readonly></p>\n"; print "</div>\n"; print "</form></div>\n"; WriteFooter(); }
echo '</div>'; } if ($xml['serversite'][0]['downloads']['0 attr']['enable'] == "1") { WriteDownloads($xml); } if ($xml['serversite'][0]['serverdata'][0]['text']['0 attr']['enable'] == "1") { WriteTextServerStats($xml); } if ($xml['serversite'][0]['serverdata'][0]['graphic']['0 attr']['enable'] == "1") { WriteGraphicServerStats($xml); } if ($xml['serversite'][0]['screenshots']['0 attr']['enable'] == "1") { WriteRenderScreenshots($xml); } ?> </div> <!-- Page Content End --> <!-- Page Footer Start --> <div id="pagefooter"> <?php global $xml; WriteFooter($xml); ?> </div> <!-- Page Footer End --> </body> </html>