Ignore:
Timestamp:
2006/12/11 21:53:47 (20 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

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

    r707 r709  
    3333include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php"; 
    3434 
    35 $poll_id = $_GET['poll_id']; 
     35$option_id = $_GET['option_id']; 
    3636 
    37 $poll_id = (!empty($poll_id)) ? intval($poll_id) : 0; 
    38 if (empty($poll_id)) { 
     37$option_id = (!empty($option_id)) ? intval($option_id) : 0; 
     38if (empty($option_id)) { 
    3939    redirect_header("index.php",0); 
    4040    exit(); 
     
    4242$xoopsOption['template_main'] = 'xoopspoll_regist.html'; 
    4343include XOOPS_ROOT_PATH."/header.php"; 
    44 /* 
    45 $poll = new XoopsPoll($poll_id); 
     44 
     45$poll = new XoopsPoll($option_id); 
    4646$renderer = new XoopsPollRenderer($poll); 
    47 $renderer->assignResults($xoopsTpl); 
    48 */ 
     47$renderer->assignOptions($xoopsTpl); 
     48 
    4949include XOOPS_ROOT_PATH.'/include/comment_view.php'; 
    5050 
Note: See TracChangeset for help on using the changeset viewer.