Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php	(revision 707)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php	(revision 709)
@@ -33,8 +33,8 @@
 include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php";
 
-$poll_id = $_GET['poll_id'];
+$option_id = $_GET['option_id'];
 
-$poll_id = (!empty($poll_id)) ? intval($poll_id) : 0;
-if (empty($poll_id)) {
+$option_id = (!empty($option_id)) ? intval($option_id) : 0;
+if (empty($option_id)) {
 	redirect_header("index.php",0);
 	exit();
@@ -42,9 +42,9 @@
 $xoopsOption['template_main'] = 'xoopspoll_regist.html';
 include XOOPS_ROOT_PATH."/header.php";
-/*
-$poll = new XoopsPoll($poll_id);
+
+$poll = new XoopsPoll($option_id);
 $renderer = new XoopsPollRenderer($poll);
-$renderer->assignResults($xoopsTpl);
-*/
+$renderer->assignOptions($xoopsTpl);
+
 include XOOPS_ROOT_PATH.'/include/comment_view.php';
 
Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspoll.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspoll.php	(revision 405)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspoll.php	(revision 709)
@@ -40,4 +40,5 @@
 		$this->db =& Database::getInstance();
 		$this->initVar("poll_id", XOBJ_DTYPE_INT, null, false);
+		$this->initVar("option_id", XOBJ_DTYPE_INT, null, false);
 		$this->initVar("question", XOBJ_DTYPE_TXTBOX, null, true, 255);
 		$this->initVar("description", XOBJ_DTYPE_TXTBOX, null, false, 255);
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 695)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php	(revision 709)
@@ -153,8 +153,15 @@
     function assignOptions(&$tpl)
     {
-		$options_arr =& XoopsPollOption::getAllOption();
+		$arrOption =& XoopsPollOption::getOptionByOptionId($this->poll->getVar("option_id"));
+        $i = 0;
+		$tpl->assign('arrOption', $arrOption);
+    }
+	
+    function assignPoll(&$tpl)
+    {
+		$options_arr =& XoopsPollOption::getAllByPollId($this->poll->getVar("poll_id"));
         $i = 0;
 		$tpl->assign('option_list', $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 699)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspolloption.php	(revision 709)
@@ -120,4 +120,18 @@
 
 	// public static
+	function &getOptionByOptionId($option_id)
+	{
+		$db =& Database::getInstance();
+		$ret = array();
+		$sql = "SELECT * FROM ".$db->prefix("xoopspoll_option")." WHERE option_id=".intval($option_id)."";
+		$result = $db->query($sql);
+		while ( $myrow = $db->fetchArray($result) ) {
+			$ret[] = new XoopsPollOption($myrow);
+		}
+		//echo $sql;
+		return $ret;
+	}
+		
+	// public static
 	function &getAllOption()
 	{
