aboutsummaryrefslogtreecommitdiff
path: root/lib/admin_search.inc.php
blob: 93a45385e156f05af1e091713a63ec33f8b1f3d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
# Lifter002: TEST
# Lifter007: TEST

/**
 * admin_search_form.inc.php - Suche fuer die Verwaltungsseiten von Stud.IP.
 *
 * @author Stefan Suchi <suchi@gmx.de>
 * @author Ralf Stockmann <rstockm@gwdg.de>
 * @author Cornelis Kater <ckater@gwdg.de>
 * @copyright 2001
 * @license GPL2 or any later version
 */

if (!Institute::findCurrent()) {
    $template = $GLOBALS['template_factory']->open('admin/institute_search.php');
    $template->set_layout('layouts/base.php');
    $template->institutes = Institute::getMyInstitutes($GLOBALS['user']->id);
    echo $template->render();

    sess()->save();
    die;
}