Beispiel #1
0
		<div class="summary">
			<span class="total"><strong><?php 
echo $total_flashcards;
?>
</strong> kanji flashcards</span>&nbsp;
			( <?php 
echo link_to('browse detailed list', 'review/flashcardlist');
?>
 - <a href="@manage">manage flashcards</a> )
		</div>

		<div class="filterstop">

			<?php 
$links = array(array('ALL', '#', array('class' => 'uiFilterStd-all')), array('RTK1', '#', array('class' => 'uiFilterStd-rtk1')));
if (ReviewsPeer::getCountRtK3($_user->getUserId()) > 0) {
    $links[] = array('RTK3', '#', array('class' => 'uiFilterStd-rtk3'));
}
switch ($filter) {
    case 'rtk1':
        $active = 1;
        break;
    case 'rtk3':
        $active = 2;
        break;
    default:
        $active = 0;
        break;
}
echo ui_filter_std('Filter:', $links, array('id' => 'rtk-filter', 'active' => $active));
?>