Ignore:
Timestamp:
2006/12/12 23:50:20 (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/pollnew.php

    r773 r774  
    3333include_once XOOPS_ROOT_PATH."/modules/xoopspoll/class/xoopspollrenderer.php"; 
    3434 
     35$poll_id = $_GET['poll_id']; 
     36if(empty($poll_id)) $poll_id = $_POST['poll_id']; 
    3537 
    3638switch($_POST['mode']) { 
     
    5254} 
    5355 
    54  
    5556$xoopsOption['template_main'] = 'xoopspoll_new.html'; 
    5657include XOOPS_ROOT_PATH."/header.php"; 
     
    5859$xoopsTpl->assign('arrStatus', $arrStatus); 
    5960$xoopsTpl->assign('arrCat', $arrCategory); 
    60 $xoopsTpl->assign('arrRating', $arrRating); 
     61$xoopsTpl->assign('poll_id', $poll_id); 
    6162 
    6263include XOOPS_ROOT_PATH."/footer.php"; 
  • temp/test-xoops.ec-cube.net/html/modules/xoopspoll/templates/xoopspoll_new.html

    r773 r774  
    2525    <form name="form1" id="form1" method="post" action="./pollnew.php"> 
    2626    <input type="hidden" name="mode" value="regist"> 
     27    <input type="hidden" name="poll_id" value="<{$poll_id}>"> 
    2728        <tr><td height="20"></td></tr> 
    2829        <tr> 
Note: See TracChangeset for help on using the changeset viewer.