Ignore:
Timestamp:
2006/12/11 22:08:05 (20 years ago)
Author:
uehara
Message:
 
Location:
temp/test-xoops.ec-cube.net/html/modules/xoopspoll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/class/xoopspollrenderer.php

    r713 r716  
    151151     
    152152     
    153     function assignOptions(&$tpl) 
     153    function assignOptions(&$tpl, $option) 
    154154    { 
    155         $arrOption =& XoopsPollOption::getOptionByOptionId($this->poll->getVar("option_id")); 
     155        $arrOption =& XoopsPollOption::getOptionByOptionId($option); 
     156print_r($arrOption); 
    156157        $tpl->assign('arrOption', $arrOption); 
    157158    } 
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollregist.php

    r715 r716  
    4343include XOOPS_ROOT_PATH."/header.php"; 
    4444 
    45 $poll = new XoopsPoll(array('option_id' => $option_id)); 
     45$poll = new XoopsPoll(); 
    4646$renderer = new XoopsPollRenderer($poll); 
    4747$renderer->assignOptions($xoopsTpl); 
Note: See TracChangeset for help on using the changeset viewer.