updated for SQL change fix grammar accept votes :-)

2005-10-25  Vincent Untz  <vuntz@gnome.org>

	* foundation.gnome.org/vote/include/election-sql.php: updated for SQL
	change
	* foundation.gnome.org/vote/include/step1-login.php: fix grammar
	* foundation.gnome.org/vote/include/step3-confirm.php: accept votes
	:-)
This commit is contained in:
Vincent Untz 2005-10-25 12:43:11 +00:00 committed by Vincent Untz
parent 0658cd7f63
commit 9a7638fe41
4 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2005-10-25 Vincent Untz <vuntz@gnome.org>
* foundation.gnome.org/vote/include/election-sql.php: updated for SQL
change
* foundation.gnome.org/vote/include/step1-login.php: fix grammar
* foundation.gnome.org/vote/include/step3-confirm.php: accept votes
:-)
2005-10-25 Vincent Untz <vuntz@gnome.org>
* foundation.gnome.org/vote/include/election-sql.php: use correct name

View file

@ -215,7 +215,7 @@ function elec_election_has_ended ($election) {
}
function elec_election_get_type ($election) {
if ($election["type"] == "1")
if ($election["type"] == "referendum")
return "referendum";
else
return "election";

View file

@ -6,7 +6,7 @@ function step1_do () {
$result = "<h2>Step 1/4 - Login</h2>\n";
$result .= "<p>Please login using the informations that was sent to you in a ballot by e-mail.</p>\n";
$result .= "<p>Please login using the informations that were sent to you by e-mail.</p>\n";
$result .= "<div class=\"votedata\">\n";
$result .= "<p><label for=\"email\">E-mail: </label><input type=\"text\" name=\"email\" value=\"".htmlspecialchars ($email)."\" /></p>\n";

View file

@ -10,7 +10,7 @@ function step3_do () {
$result = "<h2>Step 3/4 - Confirm your vote</h2>\n";
$result .= "<p><strong>".$election["question"]."</strong></p>\n";
if (($choices_nb == 1 && $vote < 0) ||
if (($choices_nb == 1 && $vote >= 0) ||
($choices_nb > 1 && count ($votes_array) >= 1)) {
$result .= "<p>You choose to vote for:</p>\n";