Changeset 719 for trunk/app/views
- Timestamp:
- 08/11/08 16:29:08 (4 months ago)
- Location:
- trunk/app/views
- Files:
-
- 3 modified
-
forums/display.ctp (modified) (4 diffs)
-
shares/display.ctp (modified) (1 diff)
-
users/portfolio.ctp (modified) (1 diff)
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 ?> -
trunk/app/views/shares/display.ctp
r557 r719 2 2 //die(print_r($data)); 3 3 4 echo $html->div(null, $blog['User']['username'] . '\'s Files', array('style'=>'font-size:18pt;padding:5px;boder:1px solid #c0c0c0'));4 echo $html->div(null, $blog['User']['username'] . '\'s '. __('Shared files', true), array('style'=>'font-size:18pt;padding:5px;boder:1px solid #c0c0c0')); 5 5 6 6 if ( 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)); 8 8 endif; 9 9 10 10 foreach ($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 />'; 12 12 $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); 14 14 15 15 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 2 echo $html->div(null, $blog["User"]["username"].' '. __('resources', true), array('style'=>'padding:4px;margin:3px;border-bottom:1px solid black;font-size:15pt;')); 3 4 echo $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)); 10 5 11 <div style="padding:4px;margin:3px;border-bottom:1px solid black;font-size:15pt;"><?php echo $blog["User"]["username"] ?> resources</div> 6 echo $html->div('portfolio',$html->link($html->image('ipod.png', array('title'=>'Podcast', 'alt'=>'Podcast')), '/podcasts/display/' . $blog["User"]["id"], null, null, false) . ' Podcasts'); 12 7 13 <div style="margin:0 auto;padding:18px;width:80%;background-color:white;height:250px;"> 8 echo $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)); 14 9 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> 10 echo $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 12 echo $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)); 19 13 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> 14 echo $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 ?> 24 16 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 FAQs28 </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 Glossaries33 </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 Shared38 </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 Links43 </div>44 </div>
