function page_search()
{
    $q = params('keyword');
    $result = array();
    foreach (model_get_all() as $b) {
        if (bookmark_matches($q, $b)) {
            $result[] = $b;
        }
    }
    set('title', 'Výsledky hledání');
    set('bookmarks', $result);
    return html('list.html.php');
}
Exemple #2
0
function page_index()
{
    set('title', 'Volba seminářů');
    set('bookmarks', model_get_all());
    return html('main.html.php');
}