Changeset 719 for trunk/app/views/forums
- Timestamp:
- 08/11/08 16:29:08 (4 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/forums/display.ctp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/forums/display.ctp
r468 r719 3 3 4 4 if ( $belongs === true ): 5 echo $html->div(null, 'Category: ' . $data['Catforum']['title'], array('style'=>'font-weight:bold;'));5 echo $html->div(null, __('Category', true).': ' . $data['Catforum']['title'], array('style'=>'font-weight:bold;')); 6 6 7 7 echo $html->div('titentry', $data["Forum"]["title"]); 8 8 echo $html->para(null, $data["Forum"]["description"]); 9 9 10 $tmp = $ajax->link($html->image("static/new_post.gif", array( "alt"=>"New Topic", "title"=>"New Topic")),10 $tmp = $ajax->link($html->image("static/new_post.gif", array('alt'=>__('New topic', true), 'title'=>__('New topic', true))), 11 11 '/topics/add/'.$data['Forum']['vclassroom_id'].'/'.$data['Forum']['id'], 12 12 array("update" => "qn", … … 17 17 ); 18 18 19 $tmp .= '<div id="loading3" style="display: none;">'.$html->image( "static/loading.gif", array("alt"=>"Loading")).'</div>';19 $tmp .= '<div id="loading3" style="display: none;">'.$html->image('static/loading.gif', array('alt'=>'Loading')).'</div>'; 20 20 21 21 $tmp .= $ajax->div('qn', array("style"=>"padding:3px")) . $ajax->divEnd('qn'); … … 23 23 echo $html->div(null, $tmp); 24 24 25 //Topics 26 echo '<table style="border-collapse:collapse;width:100%">'; 27 if ( count($data["Topic"]) == 0): 28 echo '<tr><td colspan="6"><br /><h4>There is not topic on this forum yet</h4></td></tr>'; 29 else: 30 $th = array('Read', 'Topics', 'Replies', 'Author', 'Views', 'Last Post'); echo $html->tableHeaders($th); 31 endif; 32 //die(print_r($data["Topic"])); 25 //Topics 26 echo '<table style="border-collapse:collapse;width:100%">'; 27 if ( count($data["Topic"]) == 0): 28 echo '<tr><td colspan="6"><br /><h4>'.__('There is not topic on this forum yet', true).'</h4></td></tr>'; 29 else: 30 $th = array(__('Read', true), __('Topics', true), __('Replies', true), __('Author', true), __('Views', true), __('Last Post', true)); 31 echo $html->tableHeaders($th); 32 endif; 33 //die(print_r($data["Topic"])); 33 34 34 foreach ($data["Topic"] as $val) 35 { 36 37 $tr = array ( 35 foreach ($data["Topic"] as $val): 36 $tr = array ( 38 37 $html->image('static/folder.gif'), 39 38 $html->link($val['subject'], '/topics/display/'.$data['Forum']['user_id'].'/'.$val['forum_id'].'/'.$val['id']), … … 42 41 count($val['Visitor']), 43 42 '<span style="font-size:6pt">'.$time->timeAgoInWords($val["created"]) .'</span>' 44 );43 ); 45 44 46 echo $html->tableCells($tr, array("style"=>"border:1px solid gray;padding:6px;background-color:#e8f6fe"), 47 array("style"=>"border:1px solid gray;padding:6px;background-color:#c0c0c0")); 48 49 } 45 echo $html->tableCells($tr, array("style"=>"border:1px solid gray;padding:6px;background-color:#e8f6fe"), 46 array("style"=>"border:1px solid gray;padding:6px;background-color:#c0c0c0")); 47 endforeach; 50 48 51 echo '</table>';49 echo '</table>'; 52 50 53 echo $html->para(null, 'Legend:');51 echo $html->para(null, __('Legend', true).':'); 54 52 55 $tmp = $html->image('static/board.gif', array("alt"=>"Tema normal", "title"=>"Tema normal")) . ' Tema normal <br />';56 $tmp .= $html->image('static/locked.gif', array("alt"=>"Tema bloqueado", "title"=>"Tema bloqueado")) . ' Tema bloqueado<br />';57 $tmp .= $html->image('static/new.gif', array("alt"=>"Comentario nuevo", "title"=>"Comentario nuevo")). ' Comentario nuevo<br />';53 $tmp = $html->image('static/board.gif', array('alt'=>'Tema normal', 'title'=>'Tema normal')) . ' Tema normal <br />'; 54 $tmp .= $html->image('static/locked.gif', array('alt'=>'Tema bloqueado', 'title'=>'Tema bloqueado')) . ' Tema bloqueado<br />'; 55 $tmp .= $html->image('static/new.gif', array('alt'=>'Comentario nuevo', 'title'=>'Comentario nuevo')). ' Comentario nuevo<br />'; 58 56 59 echo $html->para(null, $tmp);57 echo $html->para(null, $tmp); 60 58 else: 61 e($html->para(null, 'You must be logged and belogs to this class to see the forum'));59 e($html->para(null, __('You must be logged in and belongs to this class to see this section', true))); 62 60 endif; 63 61 ?>
