Ignore:
Timestamp:
2006/12/13 11:19:03 (19 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

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

    r846 r853  
    3434include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php"; 
    3535 
    36 $poll_id = $_GET['poll_id']; 
    37 $option_id = $_GET['option_id']; 
    38 if(empty($option_id)) $option_id = $_POST['option_id']; 
     36$arrForm = $_POST; 
     37if(!is_array($arrForm)) $arrForm = $_GET; 
     38 
     39$poll_id = $arrForm['poll_id']; 
     40$option_id = $arrForm['option_id']; 
    3941 
    4042// ¥ª¥×¥·¥ç¥óID¤¬Èô¤ó¤Ç¤­¤Æ¤¤¤ë¤«¥Á¥§¥Ã¥¯ 
     
    4850switch($_POST['mode']) { 
    4951    case 'rating': 
    50         $poll_id = $_POST['poll_id']; 
    5152        $arrErr = lfErrCheck($_POST); 
    5253        if(count($arrErr) <= 0) { 
     
    7677$count = $renderer->assignComment($xoopsTpl, $option_id, $start, POLL_COMMENT_VIEW); 
    7778 
    78 $nav = new XoopsPageNav($count, POLL_OPTION_VIEW, $start, "start", 'poll_id='.$poll_id.'&amp;option_id='.$option_id); 
     79$nav = new XoopsPageNav($count, POLL_OPTION_VIEW, $start, "start", 'poll_id='.$poll_id.'&amp;option_id='.$option_id.'&amp;rating_id='.$arrForm['option_id'].'&amp;comment='.$arrForm['comment']); 
    7980$xoopsTpl->assign('forum_pagenav', $nav->renderNav(4)); 
    8081 
    81 $xoopsTpl->assign('arrForm', $_POST); 
     82$xoopsTpl->assign('arrForm', $arrForm); 
    8283$xoopsTpl->assign('arrStatus', $arrStatus); 
    8384$xoopsTpl->assign('arrCat', $arrCategory); 
Note: See TracChangeset for help on using the changeset viewer.