root/trunk/app/views/lessons/display.ctp

Revision 637, 0.9 kB (checked in by aarkerio, 4 months ago)

Litle changes

Line 
1<?php
2//die(debug($blog));
3echo $html->div('title_section', __('Lessons', true));
4
5if ( count($data) < 1 ):
6      echo $html->div(null, 'This teacher has not yet published lessons');
7endif;
8
9foreach ($data as $v):
10  echo $html->para(null, $html->link($v['Lesson']['title'], '/lessons/view/'.$blog['User']['username'].'/'.$v['Lesson']['id'], array("class"=>"title")));
11endforeach;
12
13$paginator->options(array('url' => $blog['User']['username']));
14
15$t  = $html->div(null,$paginator->prev('« '.__('Previous', true),null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left'));
16$t .= $html->div(null,$paginator->next(__('Next', true).' »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right'));
17$t .= $html->div(null,$paginator->counter(), array('style'=>'width:200px;float:center'));
18echo  $html->div(null,$t, array('style'=>'font-size:9pt;width:400px;margin:15px auto;'));
19?>
Note: See TracBrowser for help on using the browser.