Changeset 274 for trunk/app/views/elements/poll.ctp
- Timestamp:
- 02/22/08 22:39:23 (9 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/elements/poll.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/poll.ctp
r240 r274 42 42 else // the user has voted, just print the poll result 43 43 { 44 echo $html->formTag('#','post', array("onsubmit"=>"return false;"));44 echo $ajax->form(); 45 45 46 46 $array = array(); … … 48 48 echo "<p><b>" . $Element["Poll"]['Poll']['question'] ."</b></p>"; 49 49 50 echo $ html->hiddenTag('Pollrow/poll_id', $Element["Poll"]['Poll']['id']); // Poll_id50 echo $form->hidden('Pollrow.poll_id', $Element["Poll"]['Poll']['id']); // Poll_id 51 51 52 52 foreach ($Element["Poll"]['Pollrow'] as $key=>$val) … … 56 56 57 57 echo '<span style="font-size:7pt">'; 58 echo $ html->radio('Pollrow/id', $array, '<br />'); //print the answers58 echo $form->radio('Pollrow.id', $array, array('separator'=>'<br />')); //print the answers 59 59 echo '<br />'; 60 60
