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:
		
							parent
							
								
									0658cd7f63
								
							
						
					
					
						commit
						9a7638fe41
					
				
					 4 changed files with 11 additions and 3 deletions
				
			
		|  | @ -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> | 2005-10-25  Vincent Untz  <vuntz@gnome.org> | ||||||
| 
 | 
 | ||||||
| 	* foundation.gnome.org/vote/include/election-sql.php: use correct name | 	* foundation.gnome.org/vote/include/election-sql.php: use correct name | ||||||
|  |  | ||||||
|  | @ -215,7 +215,7 @@ function elec_election_has_ended ($election) { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function elec_election_get_type ($election) { | function elec_election_get_type ($election) { | ||||||
|   if ($election["type"] == "1") |   if ($election["type"] == "referendum") | ||||||
|     return "referendum"; |     return "referendum"; | ||||||
|   else |   else | ||||||
|     return "election"; |     return "election"; | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ function step1_do () { | ||||||
| 
 | 
 | ||||||
|   $result = "<h2>Step 1/4 - Login</h2>\n"; |   $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 .= "<div class=\"votedata\">\n"; | ||||||
|   $result .= "<p><label for=\"email\">E-mail: </label><input type=\"text\" name=\"email\" value=\"".htmlspecialchars ($email)."\" /></p>\n"; |   $result .= "<p><label for=\"email\">E-mail: </label><input type=\"text\" name=\"email\" value=\"".htmlspecialchars ($email)."\" /></p>\n"; | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ function step3_do () { | ||||||
|   $result = "<h2>Step 3/4 - Confirm your vote</h2>\n"; |   $result = "<h2>Step 3/4 - Confirm your vote</h2>\n"; | ||||||
| 
 | 
 | ||||||
|   $result .= "<p><strong>".$election["question"]."</strong></p>\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)) { |       ($choices_nb > 1 && count ($votes_array) >= 1)) { | ||||||
|     $result .= "<p>You choose to vote for:</p>\n"; |     $result .= "<p>You choose to vote for:</p>\n"; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Vincent Untz
						Vincent Untz