Changeset 719 for trunk/app/views/forums

Show
Ignore:
Timestamp:
08/11/08 16:29:08 (4 months ago)
Author:
aarkerio
Message:

Quick bugs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/forums/display.ctp

    r468 r719  
    33 
    44if ( $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;')); 
    66 
    77 echo  $html->div('titentry', $data["Forum"]["title"]); 
    88 echo  $html->para(null, $data["Forum"]["description"]); 
    99 
    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))),  
    1111'/topics/add/'.$data['Forum']['vclassroom_id'].'/'.$data['Forum']['id'], 
    1212                                array("update" => "qn", 
     
    1717                               ); 
    1818    
    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>'; 
    2020                 
    2121 $tmp .= $ajax->div('qn', array("style"=>"padding:3px")) . $ajax->divEnd('qn'); 
     
    2323 echo $html->div(null, $tmp); 
    2424   
    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"])); 
    3334             
    34       foreach ($data["Topic"] as $val) 
    35       { 
    36          
    37        $tr = array ( 
     35 foreach ($data["Topic"] as $val):        
     36    $tr = array ( 
    3837         $html->image('static/folder.gif'),  
    3938         $html->link($val['subject'], '/topics/display/'.$data['Forum']['user_id'].'/'.$val['forum_id'].'/'.$val['id']), 
     
    4241                   count($val['Visitor']), 
    4342                   '<span style="font-size:6pt">'.$time->timeAgoInWords($val["created"]) .'</span>' 
    44                  ); 
     43                ); 
    4544                
    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; 
    5048               
    51        echo '</table>';  
     49 echo '</table>';  
    5250  
    53   echo $html->para(null, 'Legend:'); 
     51 echo $html->para(null, __('Legend', true).':'); 
    5452 
    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 />'; 
    5856 
    59   echo $html->para(null, $tmp); 
     57 echo $html->para(null, $tmp); 
    6058else: 
    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))); 
    6260endif; 
    6361?>