Beispiel #1
0
$cpu = new Cpu();
$mon = new Monitor();
$per = new Peripheral();
$key = new Key();
$furniture = new Furniture();
$equip = new Grouping();
//============================================================================================
// Load the page requested by the user
//============================================================================================
if (!isset($_GET['page'])) {
    $data = $equip->listItems();
    for ($i = 0; $i < count($data); $i++) {
        $z = $equip->countItems($data[$i]['group_id']);
        $data[$i]['noi'] = $z[0]['count'];
    }
    $employees = $equip->listEmployees();
    $allCpu = $equip->listcpuUG();
    $allMon = $equip->listmonUG();
    $allPer = $equip->listperUG();
    $allKey = $equip->listkeyUG();
    $allFurn = $equip->listfurnUG();
    $listStatus = $equip->listStatus();
    //Shared tags
    $allTags = $cpu->listAllTags();
    $allConns = $cpu->listAllConn();
    //For furniture edit dialog
    $furn_types = $furniture->listTypes();
    $furn_departments = $furniture->listDepartments();
    //For key edit dialog
    $key_makes = $key->listMakes();
    $key_locktypes = $key->listLockTypes();