15e2716b4a
This is accompanied by the following MySQL commands: INSERT INTO elections ( type, name, voting_start, voting_end, choices_nb, question) VALUES ( 'referendum', 'Anonymous Voting Referendum', '2004-09-27', '2004-10-08 25:59:59', 1, 'Do you agree with an anonymous voting process for any future GNOME Foundation elections and referenda?' ); INSERT INTO election_results (election_id, result) VALUES ( LAST_INSERT_ID(), '<p><strong>Yes</strong>: all future GNOME Foundation elections and referenda will use an anonymous voting process.</p><p>Please see the original <a href="2004-10/">referendum site</a> for more information on the results.</p>' ); This commit will be followed by some cleaning up actions like fixing old references and finally removing the referenda directory.
74 lines
2.3 KiB
Text
74 lines
2.3 KiB
Text
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html>
|
|
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="vote.css" />
|
|
<title>The GNOME Foundation - Votes</title>
|
|
<meta name="cvsdate" content="$Date$" />
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
</head>
|
|
|
|
<body>
|
|
<?php
|
|
require_once ("include/election-sql.php");
|
|
?>
|
|
|
|
<h1>GNOME Foundation Voting System</h1>
|
|
|
|
<p>Welcome to the anonymous voting system of the GNOME Foundation. This system is maintained by the Membership and Elections Committee, which can be reached at <a href="mailto:elections@gnome.org">elections@gnome.org</a>.</p>
|
|
|
|
<p>
|
|
Any member of the GNOME Foundation can suggest a referendum. To be
|
|
accepted, a request for a referendum must be endorsed by 10% of the
|
|
Membership. The overall referendum process is overseen by the
|
|
Membership and Elections Committee, which can be reached at <a
|
|
href="mailto:elections@gnome.org">elections@gnome.org</a>.
|
|
</p>
|
|
|
|
|
|
<?php
|
|
$handle = elec_sql_open ();
|
|
if ($handle === FALSE) {
|
|
echo "<div class=\"error\">Can not open the database.</div>\n";
|
|
$current_elections = array ();
|
|
$previous_elections = array ();
|
|
} else {
|
|
$current_elections = elec_get_current_by_date_desc ($handle);
|
|
$previous_elections = elec_get_previous_by_date_desc ($handle);
|
|
elec_sql_close ($handle);
|
|
}
|
|
|
|
if (count ($current_elections) > 0) {
|
|
?>
|
|
|
|
<h2>Current elections & referenda</h2>
|
|
|
|
<p>Please click on one of the following links in order to vote for the corresponding election or referendum.</p>
|
|
|
|
<ul>
|
|
<?php
|
|
foreach ($current_elections as $election) {
|
|
echo " <li><a href=\"vote.php?election_id=".rawurlencode($election["id"])."\">".htmlspecialchars($election["name"])."</a></li>\n";
|
|
}
|
|
?>
|
|
</ul>
|
|
<?php
|
|
}
|
|
|
|
if (count ($previous_elections) > 0) {
|
|
?>
|
|
|
|
<h2>Archives of previous elections & referenda</h2>
|
|
|
|
<p>Please click on one of the following links in order to see the results for the corresponding election or referendum.</p>
|
|
|
|
<ul>
|
|
<?php
|
|
foreach ($previous_elections as $election) {
|
|
echo " <li><a href=\"results.php?election_id=".rawurlencode($election["id"])."\">".htmlspecialchars($election["name"])."</a></li>\n";
|
|
}
|
|
?>
|
|
</ul>
|
|
<?php
|
|
}
|
|
?>
|