FALSE ), // registration array( 'text' => FALSE ), // (empty space) array( 'text' => FALSE ), // change status array( 'text' => $wo_count['inschrijving'], 'tip' => _("Number of lances ready for in-take") ), // in-take array( 'text' => FALSE ), // production supervision array( 'text' => $wo_count['bezig'] + $wo_count['goedgekeurd'], 'tip' => _("Number of lances waiting to be repaired") ), // repair process array( 'text' => FALSE ), // awaiting approval (so must be changed) array( 'text' => FALSE ), // client receipt array( 'text' => $wo_count['gereedgemeld'], 'tip' => _("Number of lances waiting for calibration") ), // ready => must be calibrated array( 'text' => FALSE ), // view workorder array( 'text' => FALSE ), // (empty space) array( 'text' => $wo_count['elek. test'], 'tip' => _("Number of lances waiting for endcontrol") ), // calibration successful => endcontrol testing array( 'text' => FALSE ), // (empty space) array( 'text' => FALSE ), // (empty space) array( 'text' => FALSE ), // (empty space) array( 'text' => FALSE ), // workorder list array( 'text' => FALSE ), // repair summary array( 'text' => FALSE )); // service limits } $menu_title = _("Service and repair"); } else { $_PAGE_INFO['page_title'] = _("equipment menu"); $_PAGE_INFO['history_menu_buttons'] = array(_("Project overview"), $_PAGE_INFO['HIST_MAIN']); $_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu"); //=========================================== //Button text //Page (including next action) // Rights needed $_PAGE_INFO['menu_items'] = array( array(_("Last known status") , "page/menu_lance_search&action=lance_info" , "menu:lansen:root,menu:lansen&menu:lansen:offline_status,menu:service:productie" ), array(_("Add equipment") , "page/menu_lance_search&action=lance_new" , "menu:lansen:root,menu:service:productie" ), array(_("Change equipment") , "page/menu_lance_search&action=lance_change" , "menu:lansen:root,menu:service:productie" ), array(_("Delete equipment") , "page/menu_lance_search&action=lance_delete" , "menu:lansen:root" ), array(_("Service and repair") , "page/menu_lance&action=service_repair_overview" , "menu:lansen:root,menu:service:productie" ), array(_("Maintenance report") , "page/menu_lance_search&action=lance_main_report" , "menu:lansen:root,menu:lansen&menu:lansen:onderhoudsrapporten,menu:service" ), array(_("Equipment documentation"), "page/menu_lance_search&action=lance_doc" , "menu:lansen:root,menu:lansen&menu:lansen:onderhoudsrapporten,menu:service" ), array(_("Change status") , "page/menu_lance_search&action=lance_change_status", "menu:lansen:root,menu:lansen,menu:service:productie" ), array(_("Emergency numbers") , "page/menu_lance_search&action=lance_alarmnr" , "menu:lansen:root,menu:lansen&menu:lansen:alarmnummers,menu:service:productie" ), array(_("Design location") , "" , "menu:lansen:root,menu:lansen&menu:lansen:ontwerp" )); $menu_title = _("Equipment maintenance"); } // Clear previous session info unset($_SESSION[$_PAGE_INFO['id']]['action']); unset($_SESSION[$_PAGE_INFO['id']]['recall']); // Verify project/rights and log if (Ver_Rights_Project_Log("menu:lansen:root,menu:lansen,menu:service:productie,menu:lansen&administratie", "menu:lansen", $_SESSION[$_PAGE_INFO['id']]['login']['project']['name'])) { // Store title $_SESSION[$_PAGE_INFO['id']]['title'] = $menu_title; // Show page header print_page_header(); // Collect menu items for ($i = 0; $i < (sizeof($_PAGE_INFO['menu_items'])); $i++) { // Retrieve button text $menu_items[$i] = $_PAGE_INFO['menu_items'][$i][0]; // Verify menu rights and available link => enable/disable if ((db_ver_rights_user_one_valid($_SESSION[$_PAGE_INFO['id']]['login']['user']['id'], $_PAGE_INFO['menu_items'][$i][2])) && (!empty($_PAGE_INFO['menu_items'][$i][1]))) { $menu_rights[$i] = 1; } else { $menu_rights[$i] = 0; } // Retrieve button link $menu_links[$i] = "?id=" . $_PAGE_INFO['id'] . "&href=" . $_PAGE_INFO['menu_items'][$i][1]; } // Display main menu print_menu($menu_title, $menu_items, $menu_links, $menu_rights, array('extra_info' => $menu_extra_info)); // Show page footer print_page_footer(); } ?>