<%@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);

// TODO autorisaties checken

// OVERIGE PARAMETERS
%>

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

  <body id="showbody">
<%
    var hasINSUSE = (user.checkAutorisation("WEB_INSUSE", true));

    var page="../fac/fac_user_info.asp?prs_key=" + prs_key;
    if (hasINSUSE)
        page += "&no_ins=1";

    IFRAMER("prsFrame",
            page,
            { title: L("lcl_prs_frame_algemeen"),
              initHeight: "450px",
              refreshOnClose: true
            });

    page = "../fac/fac_list.asp?embedded=1&prs_key=" + prs_key;
    IFRAMER("prsfacFrame", page, { title: L("lcl_prs_frame_facilities"), refreshOnClose: true, initHide: false } );

    if (user.checkAutorisation("WEB_INSUSE", true))
    {
      page = "../ins/ins_list.asp?tiny=1&sName_key=" + prs_key;
      IFRAMER("insdeel", page, { refreshOnClose: true, initHide: false } );
    }
%>
  </body>
</html>
