summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-04 18:24:39 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-04 18:24:39 +0000
commit355d25e73d90f3174db459a5a380193e0505ada4 (patch)
treee7b2a531a259bbd83bdd1d482384bb753084bed5 /modules/poll.module
parent3151a1cb71b972bc70aa083b2fd6a90ab36b7921 (diff)
downloadbrdo-355d25e73d90f3174db459a5a380193e0505ada4.tar.gz
brdo-355d25e73d90f3174db459a5a380193e0505ada4.tar.bz2
- Bugfix: renamed the SQL field 'types' to 'nodes' because 'types' is a reserved keyword in MySQL 4. This fixes critical bug #1618. Patch by Marco.
==> This fix requires to run update.php! - Bugfix: made sessions work without warnings when register_globals is turned off. The solution is to use $_SESSION instead of session_register(). This fixes critical bug #1797. Patch by Marco. - Bugfix: sometimes error messages where being discarded when previewing a node. Patch by Craig Courtney. - Bugfix: fixed charset problems. This fixes critical bug #1549. Patch '0023.charset.patch' by Al. - Code improvements: removed some dead code from the comment module. Patch by Marco. - Documentation improvements: polished the node module help texts and form descriptions. Patch '0019.node.module.help.patch' by Al. - CSS improvements all over the map! Patch '0021.more.css.patch' by Al. - GUI improvements: improved the position of Druplicon in the admin menu. Patch '0020.admin.logo.patch' by Al. - GUI improvements: new logos for theme Marvin and theme UnConeD. Logos by Kristjan Jansen. - GUI improvements: small changes to the output emitted by the profile module. Suggestions by Steven Wittens. - GUI improvements: small fixes to Xtemplate. Patch '0022.xtemplate.css.patch' by Al. TODO: - Some modules such as the buddy list module and the annotation module in the contributions repository are also using session_register(). They should be updated. We should setup a task on Drupal. - There is code emitting '<div align="right">' which doesn't validate. - Does our XML feeds validate with the charset changes? - The forum module's SQL doesn't work properly on PostgreSQL.
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module20
1 files changed, 7 insertions, 13 deletions
diff --git a/modules/poll.module b/modules/poll.module
index d58dae7f2..f3c9e6d2e 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -256,26 +256,20 @@ function poll_view_voting(&$node, $main, $block, $links) {
$url = request_uri();
- $output .= "<form action=\"$url\" method=\"post\">";
- $output .= "<table border=\"0\" align=\"center\"><tr><td>";
+ $output .= "<div class=\"poll\"><form action=\"$url\" method=\"post\">";
+ $output .= "<div class=\"vote-form\">";
+ $output .= "<div class=\"choices\">";
if ($node->choice) {
foreach ($node->choice as $key => $value) {
if ($value != "") {
- $output .= "<input type=\"radio\" name=\"pollvote[$node->nid]\" value=\"$key\" />". filter($value) ."<br />";
+ $output .= "<div><input type=\"radio\" name=\"pollvote[$node->nid]\" value=\"$key\" />". filter($value) ."</div>";
}
}
}
-
- if ($block) {
- $output .= "</td></tr><tr><td><div align=\"center\">". form_submit(t("Vote")) ."</div></td></tr></table>";
- }
- else {
- $output .= "</td><td valign=\"middle\"><div align=\"right\">&nbsp;&nbsp;&nbsp;". form_submit(t("Vote")) ."</div></td></tr></table>";
- }
-
- $output .= $block ? "<div align=\"center\">". theme("links", $links) ."</div>" : "";
- $output .= "</form>";
+ $output .= "</div>". form_submit(t("Vote")) ."</div>";
+ $output .= $block ? "<div class=\"links\">". theme("links", $links) ."</div>" : "";
+ $output .= "</form></div>";
return $output;
}