Esempio n. 1
0
function createPage($smarty)
{
    $smarty->assign('exams', Tables::exams(true));
    $smarty->assign('planning', Tables::planning(true, 'exams'));
    $smarty->assign('schedule', Queries::article('exams'));
    return $smarty;
}
Esempio n. 2
0
function createPage($smarty)
{
    $item = Queries::examWithId(Input::get('id', 'get'));
    if (empty($item->id)) {
        Redirect::error(404);
    }
    $smarty->assign('item', $item);
    $smarty->assign('table_parentT', 'exams');
    $smarty->assign('table_parentI', $item->id);
    $smarty->assign('planning', Tables::planning(true, 'exams', $item->id));
    return $smarty;
}
Esempio n. 3
0
function createPage($smarty)
{
    $subject = DB::instance()->get("subjects", array("", "abbreviation", "=", Input::get('subject', 'get')))->first();
    if (empty($subject->id)) {
        Redirect::error(404);
    }
    $smarty->assign('subject', $subject);
    $smarty->assign('links', json_decode($subject->links));
    $smarty->assign('events', Tables::events(true, $subject->abbreviation));
    $smarty->assign('table_parentT', 'subjects');
    $smarty->assign('table_parentI', $subject->id);
    $smarty->assign('planning', Tables::planning(true, 'subjects', $subject->id));
    return $smarty;
}
Esempio n. 4
0
function createPage($smarty)
{
    $smarty->assign('assignments', Tables::assignments(true));
    $smarty->assign('planning', Tables::planning(true, 'assignments'));
    return $smarty;
}
Esempio n. 5
0
function createPage($smarty)
{
    $smarty->assign('planning', Tables::planning(true));
    return $smarty;
}