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

<%
DOCTYPE_Disable = true;
%>

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

<%
// Maak een contracten lijst
//var autfunction = getQParam("autfunction", ""); // Check of user rechten heeft op meegegeven artikelen
var loc_key = getQParamInt("loc_key", "-1"); // Locatie key
var srttype = getQParamInt("srttype", "-1"); // Contractsoort
var cnt_key = getQParamInt("cnt_key", "-1"); // Initiele waarde contract key

sql = "SELECT cnt_contract_key"
    + ", cnt_contract_omschrijving"
    + " FROM cnt_v_contract_locatie_geg"
    + " WHERE" + (loc_key == -1 && srttype == -1? " 1 = 2" : " 1 = 1")
    + (loc_key != -1? " AND alg_locatie_key = " + loc_key : "")
    + (srttype != -1? " AND ins_discipline_key = " + srttype : "")
    + " ORDER BY 2"

FCLTselectorOptions(sql,
                    { initKey: cnt_key,
                      moreinfo: true,
                      emptyOption: ""
                    });
%>

