Changeset 853 for temp/test-xoops.ec-cube.net
- Timestamp:
- 2006/12/13 11:19:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollrating.php
r846 r853 34 34 include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php"; 35 35 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; 37 if(!is_array($arrForm)) $arrForm = $_GET; 38 39 $poll_id = $arrForm['poll_id']; 40 $option_id = $arrForm['option_id']; 39 41 40 42 // ¥ª¥×¥·¥ç¥óID¤¬Èô¤ó¤Ç¤¤Æ¤¤¤ë¤«¥Á¥§¥Ã¥¯ … … 48 50 switch($_POST['mode']) { 49 51 case 'rating': 50 $poll_id = $_POST['poll_id'];51 52 $arrErr = lfErrCheck($_POST); 52 53 if(count($arrErr) <= 0) { … … 76 77 $count = $renderer->assignComment($xoopsTpl, $option_id, $start, POLL_COMMENT_VIEW); 77 78 78 $nav = new XoopsPageNav($count, POLL_OPTION_VIEW, $start, "start", 'poll_id='.$poll_id.'&option_id='.$option_id );79 $nav = new XoopsPageNav($count, POLL_OPTION_VIEW, $start, "start", 'poll_id='.$poll_id.'&option_id='.$option_id.'&rating_id='.$arrForm['option_id'].'&comment='.$arrForm['comment']); 79 80 $xoopsTpl->assign('forum_pagenav', $nav->renderNav(4)); 80 81 81 $xoopsTpl->assign('arrForm', $ _POST);82 $xoopsTpl->assign('arrForm', $arrForm); 82 83 $xoopsTpl->assign('arrStatus', $arrStatus); 83 84 $xoopsTpl->assign('arrCat', $arrCategory);
Note: See TracChangeset
for help on using the changeset viewer.
