<%@language = "javascript" %>
<% /*
     $Revision$
     $Id$
*/ %>

<%
DOCTYPE_Disable = true;
var useAsAjaxLoad = true;
%>

<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/plaatsselector.inc" -->

<%
// Build a suggestbox voor parkeerplaatsen (gebouw/terrein)

var locatie_key = getQParamInt("locatie_key");
var next_vis = getQParamInt("next_vis");
var prktype = getQParamSafe("prktype");
var algwritelevel = getQParamInt("algwritelevel");


%>
<!--Gebouw/Terrein-->
<div id="selectprkdiv<%=next_vis%>" name="selectprkdiv<%=next_vis%>" style="display: <%=prktype == "C"? "block" : "none"%>">
  <input type="checkbox" id="prk<%=next_vis%>" name="prk<%=next_vis%>">
</div>
<div id="selectgebterdiv<%=next_vis%>" name="selectgebterdiv<%=next_vis%>" style="display: <%=prktype == "S"? "block" : "none"%>">
  <!--Gebouw/Terrein-->
<%
  FCLTplaatsselector(algwritelevel, { locatiekey: locatie_key,
                                      gebouwkey: -1,
                                      nolabel: true,
                                      terrein: true,
                                      onGebChange: "setPrk(" + next_vis + ");",
                                      filtercode: "PRK",
                                      urlAdd: [{ urlParam: "date_from", field: "date_from" }, { urlParam: "date_to", field: "date_to" }, { urlParam: "lockey", field: "locatiekey" }],
                                      startlevel: 3, // Gebouw
                                      eindlevel: 3, // Gebouw
                                      idadd: next_vis,
                                      whenEmpty: L("lcl_search_generic")  // want filter
                                    }); // Gebouw
%>
</div>
<div style="display: none">
  <input type="text" id="prkselect<%=next_vis%>" class="fld" name="prkselect<%=next_vis%>" value="<%=prktype%>"> <% /* "S"=suggestboxen, "C"=checkboxen */ %>
</div>
<% ASPPAGE_END(); %> 
