Changeset 629 for trunk/app/views/elements
- Timestamp:
- 07/07/08 18:00:27 (5 months ago)
- Location:
- trunk/app/views/elements
- Files:
-
- 2 modified
-
lesson.ctp (modified) (1 diff)
-
podcast.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/elements/lesson.ctp
r242 r629 1 <div class="temas">Lessons</div>2 1 <?php 3 2 //die(var_dump($blog[0]["Lesson"])); 3 echo $html->div('temas', __('Lessons', true)); 4 4 5 foreach ($blog["Lesson"] as $key => $val) 6 { 7 echo $html->link($val['title'], '/lessons/view/'.$blog["User"]["username"].'/'.$val['id'], array("class"=>"petit")) . '<br />'; 8 } 5 foreach ($blog["Lesson"] as $val): 6 echo $html->link($val['title'], '/lessons/view/'.$blog['User']['username'].'/'.$val['id'], array('class'=>'petit')) . '<br />'; 7 endforeach; 9 8 10 echo '<p>'. $html->link('View all Lessons', '/lessons/display/'.$blog['User']['username'], array("class"=>"petit")) . '</p>';9 echo $html->para(null, $html->link('View all Lessons', '/lessons/display/'.$blog['User']['username'], array("class"=>"petit"))); 11 10 12 11 ?> -
trunk/app/views/elements/podcast.ctp
r313 r629 1 <div class="temas">Podcasts</div>2 1 <?php 3 foreach ($blog["Podcast"] as $key => $val) 4 { 5 echo '<a class="petit" href="/podcasts/show/'.$val['user_id'].'/'. $val['id'] . '">>'. $val['title'] . '</a><br />'; 6 } 2 echo $html->div('temas', 'Podcasts'); 7 3 4 foreach ($blog["Podcast"] as $val): 5 echo $html->link('>>'. $val['title'], '/podcasts/show/'.$val['user_id'].'/'.$val['id'], array('class'=>'petit')) . '<br />'; 6 endforeach; 8 7 9 echo '<p><a class="petit" href="/podcasts/display/'.$val['user_id'].'">View all podcast</a></p>';8 echo $html->para(null, $html->link(__('View all podcast', true), '/podcasts/display/'.$val['user_id'], aa('class', 'petit'))'; 10 9 11 10 ?>
