Changeset 157 for trunk/app/views/questions
- Timestamp:
- 09/25/07 21:49:05 (15 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/questions/admin_answers.thtml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/questions/admin_answers.thtml
r137 r157 19 19 20 20 <p> 21 <?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add new answer", "title"=>"Add new answer")), '#', array("onclick"=>"hU()"), false, false); ?>21 <?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add new answer", "title"=>"Add new answer")), '#', array("onclick"=>"hU()"), false, false); ?> 22 22 </p> 23 23 24 24 <div id="addquestion" style="display:none"> 25 25 26 <?php echo $html->formTag('#','post', array("onsubmit"=>"return null")); ?> 27 <?php echo $html->hiddenTag('Answer/question_id', $data['Question']['id']); ?> 26 <?php 27 echo $ajax->form(null,'post'); 28 echo $html->hiddenTag('Answer/question_id', $data['Question']['id']); 29 ?> 28 30 <fieldset> 29 31 <legend>New answer</legend> … … 54 56 <?php 55 57 foreach ($data['Answer'] as $val) 56 { 58 { 59 $st = ($val["correct"]==1) ? 'Yes' : 'No'; 57 60 echo '<div style="padding:5px;border:1px dotted gray;margin:4px;">'; 58 61 echo "Answer: " . $val["answer"] . "<br />"; 59 echo "Correct: " . $ val["correct"]. "<br />";62 echo "Correct: " . $st . "<br />"; 60 63 echo '</div>'; 61 64 }
