45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
<%@ language = "JavaScript" %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: api_flex.asp
|
|
Description: API voor opvragen van flexfiles
|
|
|
|
Parameters: Een xml
|
|
Status:
|
|
Context: (alleen) door Putorders
|
|
Notes: Zie flexfiles.inc/flexProps2 voor ondersteunde coderingen
|
|
*/
|
|
JSON_Result = true;
|
|
THIS_FILE = "appl/api/api_flex.asp";
|
|
%>
|
|
<!-- #include file="../Shared/common.inc" -->
|
|
<!-- #include file="../Shared/flexfiles.inc" -->
|
|
<!-- #include file="../api/api.inc" -->
|
|
<%
|
|
|
|
var API = new API_func();
|
|
|
|
// TODO checkAuthorization("WEB_PUOxxx") ?
|
|
|
|
var flexcode = getQParam("flexcode");
|
|
if (flexcode.match(/^M=CAD/))
|
|
{
|
|
// <xsl:element name="img">
|
|
// <xsl:attribute name="frc">M=CAD&labelPos=2&vKey=<xsl:value-of select="//afspraak/plaats/regio/district/locatie/gebouw/verdieping/key"/>&highlight=<xsl:value-of select="//afspraak/plaats/regio/district/locatie/gebouw/verdieping/ruimte/key"/>&mode=0&discs=981&sizeX=700&sizeY=400&offsetX=10&offsetY=10&scale=950&paperColor=16777215
|
|
// </xsl:attribute>
|
|
// </xsl:element>
|
|
Server.Transfer(rooturl + "/APPL/CAD/mySlnk2IMG.asp"); // Die kan het ook wel oplossen
|
|
}
|
|
|
|
// Else gewone flexfiles
|
|
var props = flexProps2(flexcode);
|
|
|
|
__Log(props);
|
|
|
|
Response.Write(JSON.stringify(props));
|
|
Response.End;
|
|
%>
|
|
<% ASPPAGE_END(); %>
|