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

    File:        fac_kenmerkdomein_search.asp
    Description: Zoekscherm kenmerken
    Parameters:  fkdmodule (modulecode), optioneel
    Context:
    Note:

*/ %>

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

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

var authparams = user.checkAutorisation("WEB_PRSSYS");
var fkdmodule = getQParamSafe("fkdmodule", "");  // "ALG" enz
%>

<html>
  <head>
    <%  FCLTHeader.Generate(); %>
      <script type="text/javascript">
<% if (fkdmodule != "") {
         var sql = "SELECT lcl.l(fac_module_remark) module"
                 + "  FROM fac_module"
                 + " WHERE fac_module_name = " + safe.quoted_sql(fkdmodule);
          var oRs = Oracle.Execute(sql);
          var tabtitle = L("lcl_kenmerkdomeinen") + " " + oRs(0).Value;
          oRs.Close();
          %>
          FcltMgr.setTitle("<%=safe.jsstring(tabtitle)%>", {hot: false});
 <% } %>
          function doSubmit()
            {
                document.forms.u2.submit();
            }
      </script>
  </head>
  <body id="searchbody">
    <form name="u2" target="workFrame" action="fac_kenmerkdomein_search_list.asp" method="get">
      <% SEARCH_PAGE_START({ header: L("lcl_filterblok") });
      SEARCH_BLOCK_START();%>
              <tr class="primsearch">
                <td class="label"><label for="searchtext"><%=L("lcl_kenmerkdomein_omschrijving")%></label></td>
                <td><input type="text" class="fld" name="searchtext" id="searchtext"></td>
              </tr>
<%

    if (fkdmodule != "")
    {
    %><input type="hidden" name="fkdmodule" value="<%= fkdmodule %>"><%
    }
    else
    {
      sql = "select fac_module_name module1, fac_module_name || ' - ' || lcl.l(fac_module_remark) module2"
          + "  FROM fac_module"
          + " WHERE fac_module_name IN ('ALG','PRS','INS','MLD','RES','BES','CNT','FIN','BEZ','FAQ')"
          + " ORDER BY fac_module_name";
      FCLTselector("fkdmodule",
                   sql,
                   { label: L("lcl_fac_module"),
                     trclass: "primsearch",
                     emptyOption: ""
                   });
    }
    SEARCH_BLOCK_END();

  var buttons =  [ {title: L("lcl_overview_list"), action: "doSubmit()", 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(); %>
