Files
Facilitor/APPL/CAD/tekening_search.asp
Koen Reefman 699f4c2028 FCLT#64018 diverse class en layout fixes
svn path=/Website/trunk/; revision=51946
2021-06-16 07:48:20 +00:00

75 lines
2.7 KiB
Plaintext

<%@ LANGUAGE = JavaScript %>
<% /*
$Revision$
$Id$
*/ %>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/iface.inc" -->
<!-- #include file="../Shared/plaatsselector.inc" -->
<%
FCLTHeader.Requires({ plugins:["jQuery"],
js: ["jQuery-ui.js"]
});
var locatie_key = getQParamInt("locatie_key", -1); // Locatie
var gebouw_key = getQParamInt("gebouw_key", -1); // Gebouw/Terrein
var bestandsnaam = getQParam("bestandsnaam", "");
var autosearch = getQParamInt("autosearch", 0) == 1;
autfunction = "WEB_CADFOF";
var authparams = user.checkAutorisation(autfunction);
%>
<html>
<head>
<% FCLTHeader.Generate(); %>
<script>
$(function() {<% if (autosearch) { %> document.forms.u2.submit();<%}%>});
</script>
</head>
<body id="searchbody">
<form name="u2" target="workFrame" action="cad_tekening_search_list.asp" method="get">
<% SEARCH_PAGE_START({ header: L("lcl_filterblok") });
SEARCH_BLOCK_START();
FCLTplaatsselector(authparams.ALGreadlevel, {
locatiekey: locatie_key,
gebouwkey: gebouw_key,
terrein: true,
startlevel: 2, // locatie
eindlevel: 3, // Gebouw
whenEmpty: L("lcl_search_generic"), // want filter
filtercode: "EXP"
});
%>
<tr>
<td class="label"><label for="bestandsnaam"><%=L("lcl_fg_tek_file")%></label></td>
<td><input type="text" class="fld" name="bestandsnaam" value="<%=safe.htmlattr(bestandsnaam)%>"></td>
</tr>
<% SEARCH_BLOCK_END();
var buttons = [];
buttons.push({title: L("lcl_overview_list"), action:"document.forms.u2.submit();", id:"bSearch", icon: "fa-clipboard-list" });
SIMPLE_BLOCK_START();
CreateButtons(buttons, { entersubmit: true, showIcons: true });
SIMPLE_BLOCK_END();
SEARCH_PAGE_END();
%>
</form>
<div id="result">
<iframe width="100%" height="100%"
src="../Shared/empty.asp"
name="workFrame" id="workFrame"
onload="FcltMgr.iframeLoaded(this)"
frameborder="0" scrolling="no">
</iframe>
</div>
</body>
</html>
<% ASPPAGE_END(); %>