Changeset 719 for trunk/app/views

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

Quick bugs

Location:
trunk/app/views
Files:
3 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?> 
  • trunk/app/views/shares/display.ctp

    r557 r719  
    22//die(print_r($data)); 
    33 
    4 echo $html->div(null, $blog['User']['username'] . '\'s Files', array('style'=>'font-size:18pt;padding:5px;boder:1px solid #c0c0c0')); 
     4echo $html->div(null, $blog['User']['username'] . '\'s '. __('Shared files', true), array('style'=>'font-size:18pt;padding:5px;boder:1px solid #c0c0c0')); 
    55 
    66if ( count($data) < 1): 
    7   echo $html->para('title', 'Teacher does not have any resource');  
     7  echo $html->para('title', __('Teacher does not have any resource yet', true));  
    88endif; 
    99 
    1010foreach ($data as $v): 
    11   $tmp  = $html->link($html->image('static/shares-icon.png', array('alt'=>'Download', 'title'=>'Download')),'/shares/download/'.$v["Share"]["secret"], null, null, false).'<br />'; 
     11  $tmp  = $html->link($html->image('static/shares-icon.png', array('alt'=>__('Download', true), 'title'=>__('Download', true))),'/shares/download/'.$v["Share"]["secret"], null, null, false).'<br />'; 
    1212  $tmp .= $html->link($v["Share"]["description"], '/shares/download/'.$v["Share"]["secret"]); 
    13   $tmp .= $html->link($html->image('static/button_download.gif', array("alt"=>$v["Share"]["description"], "alt"=>$v["Share"]["description"])), '/shares/download/'.$v["Share"]["secret"], null, null, false);  
     13  $tmp .= $html->link($html->image('static/button_download.gif', array('alt'=>$v["Share"]["description"], 'title'=>$v["Share"]["description"])), '/shares/download/'.$v["Share"]["secret"], null, null, false);  
    1414 
    1515  echo $html->div(null,$tmp,array('style'=>'padding:6px;margin:4px;border:1px dotted orange;vertical-align:middle;width:90%;'));  
  • trunk/app/views/users/portfolio.ctp

    r641 r719  
    1 <script type="text/javascript"> 
    2 <!-- 
    3 function changecolor(id, color)  
    4 { 
    5   element = document.getElementById(id); 
    6   element.style.background = color; 
    7 } 
    8 --> 
    9 </script> 
     1<?php 
     2echo $html->div(null, $blog["User"]["username"].' '. __('resources', true), array('style'=>'padding:4px;margin:3px;border-bottom:1px solid black;font-size:15pt;'));  
     3  
     4echo $html->div('portfolio',$html->link($html->image('static_pages.png', array('title'=>__('Lessons', true), 'alt'=>__('Lessons', true))), '/lessons/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false).' '. __('Lessons', true)); 
    105 
    11 <div style="padding:4px;margin:3px;border-bottom:1px solid black;font-size:15pt;"><?php echo $blog["User"]["username"] ?> resources</div> 
     6echo $html->div('portfolio',$html->link($html->image('ipod.png', array('title'=>'Podcast', 'alt'=>'Podcast')), '/podcasts/display/' . $blog["User"]["id"], null, null, false) . ' Podcasts');  
    127 
    13 <div style="margin:0 auto;padding:18px;width:80%;background-color:white;height:250px;"> 
     8echo $html->div('portfolio',$html->link($html->image('faq.png', array('title'=>'FAQs', 'alt'=>'FAQs')), '/catfaqs/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false) .' '.__('FAQs', true));  
    149 
    15 <div class="portfolio" id="lessons"  onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 
    16       <?php echo $html->link($html->image('static_pages.png', array("title"=>"Lessons", "alt"=>"Lessons")), '/lessons/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false); ?><br /> 
    17       Lessons 
    18 </div> 
     10echo $html->div('portfolio',$html->link($html->image('Glossary.png', array('title'=>__('Glossaries', true), 'alt'=>__('Glossaries', true))), '/catglossaries/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false).' ' .__('Glossaries', true)); 
     11  
     12echo $html->div('portfolio', $html->link($html->image('mmultimedia.png', array('title'=>__('Shared', true), 'alt'=>__('Shared', true))), '/shares/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false) .' '. __('Shared files', true)); 
    1913 
    20 <div class="portfolio" id="podcast"  onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 
    21      <?php echo $html->link($html->image('ipod.png', array("title"=>"Podcast", "alt"=>"Podcast")), '/podcasts/display/' . $blog["User"]["id"], null, null, false); ?><br /> 
    22        Podcast 
    23 </div> 
     14echo $html->div('portfolio', $html->link($html->image('ylinks.png', array('title'=>'Links', 'alt'=>'Links')), '/acquaintances/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false) . ' '.__('Usefull links', true));  
     15?> 
    2416 
    25 <div class="portfolio" id="catfaqs"  onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 
    26      <?php echo $html->link($html->image('faq.png', array("title"=>"FAQs", "alt"=>"FAQs")), '/catfaqs/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false); ?><br /> 
    27       FAQs 
    28 </div> 
    29  
    30 <div class="portfolio" id="glossaries"  onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 
    31      <?php echo $html->link($html->image('Glossary.png', array("title"=>"Glossary", "alt"=>"Glossary")), '/catglossaries/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false); ?><br /> 
    32      Glossaries 
    33 </div> 
    34  
    35 <div class="portfolio" id="shares"  onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 
    36      <?php echo $html->link($html->image('mmultimedia.png', array("title"=>"Shared", "alt"=>"Shared")), '/shares/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false); ?><br /> 
    37      Files Shared 
    38 </div> 
    39  
    40 <div class="portfolio" id="links"  onmouseover="changecolor(this.id, 'yellow');" onMouseOut="changecolor(this.id, '#ffcc00');"> 
    41      <?php echo $html->link($html->image('ylinks.png', array("title"=>"Links", "alt"=>"Links")), '/acquaintances/display/'.$blog["User"]["username"] .'/'. $blog["User"]["id"], null, null, false); ?><br /> 
    42       Usefull Links 
    43      </div> 
    44 </div>