Show
Ignore:
Timestamp:
09/25/07 21:49:05 (15 months ago)
Author:
aarkerio
Message:

New blog layout

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/questions/admin_answers.thtml

    r137 r157  
    1919 
    2020<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); ?> 
    2222</p> 
    2323 
    2424<div id="addquestion" style="display:none"> 
    2525 
    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 ?> 
    2830<fieldset> 
    2931<legend>New answer</legend> 
     
    5456<?php 
    5557foreach ($data['Answer'] as $val)  
    56 {       
     58{ 
     59  $st = ($val["correct"]==1) ? 'Yes' : 'No';       
    5760    echo '<div style="padding:5px;border:1px dotted gray;margin:4px;">'; 
    5861       echo "Answer: "      . $val["answer"]       . "<br />"; 
    59        echo "Correct: "     . $val["correct"]      . "<br />"; 
     62       echo "Correct: "     . $st                  . "<br />"; 
    6063    echo '</div>'; 
    6164}