Ejemplo n.º 1
0
        }
        break;
    case 2:
        if ($tasks = $model->getTodayTasksByUser()) {
            echo Layout_View::listTasks($tasks);
        } else {
            ?>
			<div class="alert alert-dismissible alert-info">
				<button type="button" class="close" data-dismiss="alert">×</button>
				<strong>Great! </strong>  There are no tasks for today!
			</div>
			<?php 
        }
        break;
    case 3:
        if ($tasks = $model->getFutureTasksByUser()) {
            echo Layout_View::listTasks($tasks);
        } else {
            ?>
			<div class="alert alert-dismissible alert-info">
				<button type="button" class="close" data-dismiss="alert">×</button>
				<strong>Great! </strong>  The tasks are up to date!
			</div>
			<?php 
        }
        break;
    case 4:
        if ($tasks = $model->getCompletedTasksByUser()) {
            echo Layout_View::listTasks($tasks);
        } else {
            ?>