Changeset 668
- Timestamp:
- 07/22/08 18:25:30 (3 months ago)
- Location:
- trunk/app
- Files:
-
- 2 added
- 2 modified
-
views/answers/questions.ctp (modified) (1 diff)
-
views/questions/admin_answers.ctp (modified) (1 diff)
-
webroot/img/static/delete_icon.png (added)
-
webroot/img/static/edit_icon.gif (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/answers/questions.ctp
r666 r668 6 6 $url = '/admin/answers/change/'.$val['Answer']['id'].'/'.$val['Answer']['correct'].'/'.$val['Answer']['question_id']; 7 7 $tmp .= __('Correct', true). ': '. $html->link($st, $url) . '<br /><br />'; 8 $tmp .= $html->div(null,$html->link(__('Delete', true),'/admin/answers/delete/'.$val['Answer']['id'].'/'.$val['Answer']['question_id'])); 9 $tmp .= $html->div(null, $html->link(__('Edit', true), '/admin/answers/edit/'.$val['Answer']['id'])); 8 9 10 $tmp .= $html->div(null, $html->link($html->image('static/delete_icon.png', array('title'=>__('Delete', true), 'alt'=>__('Delete', true))), '/admin/answers/delete/'.$val['Answer']['id'].'/'.$val['Answer']['question_id'], array('onclick'=>"return confirm('".__('Are you sure to want to delete this?', true)."')"), null, false).' '.$html->link($html->image('static/edit_icon.gif', array('title'=>__('Edit', true), 'alt'=>__('Edit', true))), '/admin/answers/edit/' .$val['Answer']['id'], null, null, false)); 10 11 11 12 echo $html->div('adminblock', $tmp); -
trunk/app/views/questions/admin_answers.ctp
r667 r668 40 40 $tmp = __('Answer', true) .': ' . $val['answer'] . '<br />'; 41 41 $tmp .= __('Correct', true).': ' . $html->link($st, '/admin/answers/change/'.$val['id'].'/'.$val['correct'] .'/'.$val['question_id']) . "<br /><br />"; 42 $tmp .= $html->div(null, $html->link(__('Delete', true), '/admin/answers/delete/'.$val['id'].'/'.$val['question_id'])); 43 $tmp .= $html->div(null, $html->link(__('Edit', true), '/admin/answers/edit/' .$val['id'])); 42 $tmp .= $html->div(null, $html->link($html->image('static/delete_icon.png', array('title'=>__('Delete', true), 'alt'=>__('Delete', true))), '/admin/answers/delete/'.$val['id'].'/'.$val['question_id'], array('onclick'=>"return confirm('".__('Are you sure to want to delete this?', true)."')"), null, false).' '.$html->link($html->image('static/edit_icon.gif', array('title'=>__('Edit', true), 'alt'=>__('Edit', true))), '/admin/answers/edit/' .$val['id'], null, null, false)); 44 43 45 44 echo $html->div('adminblock', $tmp);
