97 lines
3.8 KiB
Plaintext
97 lines
3.8 KiB
Plaintext
<%@ LANGUAGE = JavaScript %>
|
|
<% /*
|
|
$Revision$
|
|
$Id$
|
|
|
|
File: alg_search.asp
|
|
Generieke vastgoedbrowser zonder specifieke filters
|
|
Het eenvoudiger alternatief
|
|
|
|
*/ %>
|
|
|
|
<!-- #include file="../Shared/common.inc" -->
|
|
<!-- #include file="../Shared/iface.inc" -->
|
|
<!-- #include file="../Shared/selector.inc" -->
|
|
<!-- #include file="../Shared/plaatsselector.inc" -->
|
|
<!-- #include file="alg.inc" -->
|
|
|
|
<%
|
|
FCLTHeader.Requires({ plugins:["jQuery"],
|
|
js: ["jQuery-ui.js"]
|
|
});
|
|
|
|
var district_key = getQParamInt("district_key", -1);
|
|
var locatie_key = getQParamInt("locatie_key", -1); // Locatie
|
|
var gebouw_key = getQParamInt("gebouw_key", -1); // Gebouw
|
|
var verdieping_key = getQParamInt("verdieping_key", -1); // Verdieping
|
|
var ruimte_key = getQParamInt("ruimte_key", -1); // ruimte
|
|
var authparams = alg.checkAutorisation();
|
|
|
|
%>
|
|
<html>
|
|
<head>
|
|
<% FCLTHeader.Generate(); %>
|
|
<script type="text/javascript">
|
|
function doSubmit(plevel)
|
|
{ // $("#my_form").attr("action",$(this).val());
|
|
switch (plevel) {
|
|
case "R" : $("#algform").attr("action", "alg_ruimte_search_list.asp"); break;
|
|
case "V" : $("#algform").attr("action", "alg_verdieping_search_list.asp"); break;
|
|
case "G" : $("#algform").attr("action", "alg_gebouw_search_list.asp"); break;
|
|
case "T" : $("#algform").attr("action", "alg_terreinsector_search_list.asp"); break;
|
|
case "L" : $("#algform").attr("action", "alg_locatie_search_list.asp"); break;
|
|
//default: $("#algform").attr("action", ""); break;
|
|
}
|
|
document.forms.u2.submit();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body id="searchbody">
|
|
<div id="search">
|
|
<% BLOCK_START("searchtable", L("lcl_filterblok"));%>
|
|
<form name="u2" id="algform" target="workFrame" action="dynamischbepaald" method="get">
|
|
<tr>
|
|
<td class="searchkolom1">
|
|
<table>
|
|
<%
|
|
FCLTplaatsselector(authparams.ALGreadlevel, {
|
|
districtkey: district_key,
|
|
locatiekey: locatie_key,
|
|
gebouwkey: gebouw_key,
|
|
verdiepingkey: verdieping_key,
|
|
ruimtekey: ruimte_key,
|
|
startlevel: 0, // regio
|
|
eindlevel: 5, // ruimte
|
|
whenEmpty: L("lcl_search_generic") // want filter
|
|
});
|
|
%>
|
|
</table>
|
|
</td><!-- end column 1 -->
|
|
<td class="searchkolom2"><input type="hidden" name="noref" value="1">
|
|
</td><!-- end column 1 -->
|
|
</tr>
|
|
</form>
|
|
<% BLOCK_END();
|
|
|
|
var buttons = [
|
|
{title: L("lcl_menu_alg_locatie"), action: "doSubmit('L')"},
|
|
{title: L("lcl_menu_alg_gebouw"), action: "doSubmit('G')"},
|
|
{title: L("lcl_menu_alg_verdieping"), action: "doSubmit('V')"},
|
|
{title: L("lcl_menu_alg_ruimte"), action: "doSubmit('R')"},
|
|
{title: L("lcl_menu_alg_terreinsector"), action: "doSubmit('T')"}
|
|
];
|
|
CreateButtons(buttons, { entersubmit: true });
|
|
%></div> <!-- search -->
|
|
|
|
<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>
|