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

    File:        fac_adres_list.asp (formerly part of mld_adres_search.asp)
    Description: Filtervelden voor adressen
    Parameters:  - (non supported yet)
    Context:     Vanuit menu
*/ %>

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

<%
FCLTHeader.Requires({ plugins:["jQuery"] });

autfunction = "WEB_ALGMSU";  // PF: was eerder en onlogisch PRSMAN, dus gewijzigd met 5i!
authparams=user.checkAutorisation(autfunction);
%>
<html>
  <head>
<%  FCLTHeader.Generate(); %>
    <script type="text/javascript">
      function doSubmit()
      {
        document.forms.u2.submit();
      }
    </script>
  </head>

  <body id="searchbody">
    <form name="u2" method="get" action="fac_adres_list.asp" target="workFrame">
      <% SEARCH_PAGE_START({ header: L("lcl_filterblok") });
        SEARCH_BLOCK_START();%>
            <!-- Meldingnummer -->
            <tr class="primsearch">
              <td class="label"><label for="adressName"><%=L("lcl_prs_address_naam")%></label></td>
              <td><input type="text" class="fld wildcard" name="adressName" id="adressName"></td>
            </tr>

<%          FCLTplaatsselector(authparams.ALGreadlevel, { startlevel: 1, // district
                                                          eindlevel: 2, // locatie
                                                          whenEmpty: L("lcl_search_generic"),  // want filter
                                                          filtercode: "FAC"
                                                        });
SEARCH_BLOCK_END();
SEARCH_BLOCK_START();
%>
            <!-- Meldingnummer -->
            <tr class="primsearch">
              <td class="label"><label for="bezoekPostcode"><%=L("lcl_prs_address_bezoek_postcode")%></label></td>
              <td><input type="text" class="fld wildcard" name="bezoekPostcode" id="bezoekPostcode"></td>
            </tr>
            <tr class="primsearch">
              <td class="label"><label for="bezoekPlaats"><%=L("lcl_prs_address_bezoek_plaats")%></label></td>
              <td><input type="text" class="fld wildcard" name="bezoekPlaats" id="bezoekPlaats"></td>
            </tr>
            </table>
          </td>
        </tr>
<%    SEARCH_BLOCK_END();
      var buttons =  [ {title: L("lcl_overview_list"), action: "doSubmit()", 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(); %>
