<%@ LANGUAGE = JavaScript %>
<% /*
     $Revision$
     $Id$

    File:        alg_srtruimte_search.asp
    Description: Zoekscherm ruimtesoort
    Parameters:
    Context:
    Note:

*/ %>

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

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

var autosearch = getQParamInt("autosearch", 0) == 1;

var authparams = user.checkAutorisation("WEB_ALGMSU");
%>

<html>
  <head>
<%
FCLTHeader.Generate();
%>

<script type="text/javascript">
    function doSubmit()
    {
        document.forms.u2.submit();
    }

    $(document).ready(function()
    {
      <% if (autosearch) { %> document.forms.u2.submit();<%}%>
    });

</script>
  </head>

  <body id="searchbody">
    <div id="search">
<%    BLOCK_START("searchtable", L("lcl_filterblok"));%>
      <form name="u2" target="workFrame" action="alg_srtruimte_search_list.asp" method="get">
          <tr>
            <td class="searchkolom1">
              <table><!-- x rijen, 2 kolommen: label + veld -->
                <tr class="primsearch">
                  <td class="label"><label for="searchtext"><%=L("lcl_descr")%>:</label></td>
                  <td><input type="text" class="fldsrch wildcard" name="searchtext" id="searchtext"></td>
                </tr>
              </table>
            </td><!-- end column 1 -->

            <td class="searchkolom2">
              <table><!-- x rijen, 2 kolommen: label + veld -->
<%
%>
              </table>
            </td><!-- end column 2 -->
          </tr>
<%    BLOCK_END();

      var buttons =  [ {title: L("lcl_search"), action: "doSubmit()", id: "bSearch" } ];
      CreateButtons(buttons, { entersubmit: true});
%>
      </form>
    </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>
