<%@language = "javascript" %>
<%

/*  $Revision$
    $Id$

    File:               fac_user.asp
    Description:        Details van een user aka persoon
    Parameters:         prs_key (default user_key)
    Context:
    Note:

*/ %>

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

<%
FCLTHeader.Requires({ plugins:["suggest", "jQuery"],
                      js: ["jquery-ui.js"]
                    });

// AUTORISATIEPARAMETERS
var prs_key = getQParamInt("prs_key", user_key);

// Autorisaties checken
// In ieder geval deze
var pfe = user.func_enabled("PRS", null, null, prs_key);

// OVERIGE PARAMETERS
%>
<html>
  <head>
<%  FCLTHeader.Generate(); %>
  </head>
  <body>
<%
    PAGE_START();
    var hasINSUSE = user.has("WEB_INSUSE");
    var hasMLDFOBO = user.has(["WEB_MLDFOF","WEB_MLDBOF"]);

    var page="../fac/fac_show_user_info.asp?prs_key=" + prs_key;
    IFRAMER("prsframe",
            page,
            { title: L("lcl_prs_frame_algemeen"),
              refreshOnClose: true
            });

    if (hasMLDFOBO)
    {
      page = "../fac/fac_list.asp?embedded=1&prs_key=" + prs_key;
      IFRAMER("faclistframe", page, { title: L("lcl_prs_frame_facilities"), refreshOnClose: true, icon: "fa-list" } );
    }

    if (hasINSUSE)
    {
      page = "../ins/ins_list.asp?tiny=1&inacObjIncl=1&sName_key=" + prs_key;
      IFRAMER("deellistframe", page, { refreshOnClose: true, icon: "fa-list" } );
    }

    if (hasMLDFOBO)
    {
      // De meldingen waarbij deze persoon de aanvrager is.
      page = "../mld/mld_search_list.asp?full=1&sName_key="+prs_key;
      IFRAMER("mldlistframe", page, { refreshOnClose: true, icon: "fa-list" } );
    }
    PAGE_END();
%>
  </body>
</html>
<% ASPPAGE_END(); %>
