Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php	(revision 691)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php	(revision 692)
@@ -149,4 +149,13 @@
 		$tpl->assign('poll', array('question' => $this->poll->getVar("question"),'end_text' => $end_text,'totalVotes' => sprintf(_PL_TOTALVOTES, $total), 'totalVoters' => sprintf(_PL_TOTALVOTERS, $this->poll->getVar("voters")),'vote' => $vote, 'options' => $options));
     }
+	
+	
+    function assignOptions(&$tpl)
+    {
+		$options_arr =& XoopsPollOption::getAllOption();
+print_R($options_arr);
+        $i = 0;
+		$tpl->assign('poll', $options_arr);
+    }	
 }
 ?>
Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php	(revision 678)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php	(revision 692)
@@ -120,4 +120,19 @@
 
 	// public static
+	function &getAllOption()
+	{
+		$db =& Database::getInstance();
+		$ret = array();
+		$sql = "SELECT * FROM ".$db->prefix("xoopspoll_option") . " ORDER BY option_count DESC";
+		$result = $db->query($sql);
+		while ( $myrow = $db->fetchArray($result) ) {
+			$ret[] = new XoopsPollOption($myrow);
+		}
+		//echo $sql;
+		return $ret;
+	}
+	
+	
+	// public static
 	function deleteByPollId($poll_id)
 	{
