Show
Ignore:
Timestamp:
04/02/08 13:51:48 (8 months ago)
Author:
aarkerio
Message:

Locale and test improvements

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/questions/questions.ctp

    r269 r362  
    11<?php 
    2 //var_dump($data); 
     2//die(debug($data)); 
     3 
     4$i = 0; 
     5 
    36foreach ($data as $val)  
    47{       
    5     echo "Question: "    . $val["Question"]["question"]       . "<br />"; 
    6     echo "Hint: "        . $val["Question"]["hint"]           . "<br />"; 
    7     echo "Explanation: " . $val["Question"]["explanation"]    . "<br />"; 
    8     echo "Worth: "       . $val["Question"]["worth"]          . "<br /><br />"; 
    9     echo $html->link('View answers', '/admin/questions/answers/'.$val["Question"]["id"]) .'<br /><br />'; 
     8    $answers = count($val["Answer"]); 
     9    $i++; 
     10    echo '<div style="padding:5px;border:1px dotted gray;margin:auto;width:60%"><b>' . $i . '.-</b> '; 
     11    echo $html->div('butonright', $gags->sendEdit($val['id'],   'Question')); 
     12    echo $html->div('butonright', $gags->confirmDel($val['id'], 'Question')); 
     13       echo "Question: "    . $val["question"]       . "<br />"; 
     14       echo "Hint: "        . $val["hint"]           . "<br />"; 
     15       echo "Explanation: " . $val["explanation"]    . "<br />"; 
     16       echo "Worth: "       . $val["worth"]          . "<br /><br />"; 
     17       echo $html->link('View answers ('.$answers.')', '/admin/questions/answers/'.$val["id"]); 
     18    echo '</div>'; 
    1019} 
    11  
    1220?>