45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
<%@ language="javascript"%>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: cad/rap_ins.asp
|
|
Description: Inhoud van het INS-tabblad van FG
|
|
Parameters: floorKey (required)
|
|
highlight (optional list of room-keys to filter)
|
|
Context: -
|
|
Note: Als S("fg_ins_symbols") (CAD-module) dan wordt gefiltered op discipline
|
|
Zonder S("fg_ins_symbols") wordt altijd alles getoond
|
|
*/%>
|
|
<!--#include file="../Shared/common.inc"-->
|
|
<!--#include file="../ins/ins_list.inc" -->
|
|
<!--#include file="FGII.inc" -->
|
|
<%
|
|
|
|
var floorKey = getQParamInt("vKey", -1);
|
|
var highlight_arr = getQParamIntArray("highlight", []); // Comma-separated room_key_list (terrains). Optional
|
|
var disc_key_arr = getQParamIntArray("discs", []);
|
|
var obj = getQParamInt("obj", -1); // Aangewezen object
|
|
var wp_key = getQParamInt("wp_key", -1); // Aangewezen werkplek
|
|
|
|
var outputmode = getQParam("outputmode", 0);
|
|
var showall = getQParam("showall", 0) == 1;
|
|
|
|
if (floorKey != -1)
|
|
{
|
|
ins_list("WEB_INSUSE",
|
|
{ urole: "bo",
|
|
embedded: 1,
|
|
fgraph: 1,
|
|
disc_key_arr:disc_key_arr,
|
|
ins_key_arr: obj>0?[obj]:null,
|
|
wpl_key: wp_key>0?wp_key:null,
|
|
flr_key_arr: [floorKey],
|
|
room_key_arr: highlight_arr.length > 0 && highlight_arr.join(",").indexOf("-1") == -1? highlight_arr : [],
|
|
// TODO nagaan of we dit nu wel of niet wensen: disc_key: discs,
|
|
outputmode: outputmode,
|
|
showAll: showall
|
|
});
|
|
}
|
|
%><% ASPPAGE_END(); %>
|