91 lines
2.3 KiB
Plaintext
91 lines
2.3 KiB
Plaintext
<%@language = "javascript" %>
|
|
<%
|
|
/* $Revision: 3 $
|
|
$Modtime: 10/14/09 3:17p $
|
|
|
|
File:
|
|
Status:
|
|
Description:
|
|
|
|
Parameters:
|
|
|
|
Context:
|
|
Note:
|
|
|
|
*/ %>
|
|
<!--#include file="../../cust/install.inc" -->
|
|
<!--#include file="../Shared/iface.inc" -->
|
|
|
|
<%
|
|
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js"]})
|
|
|
|
var autfunction = "WEB_ALGMAN";
|
|
var authparams = user.checkAutorisation(autfunction); //Wat weet ik dan nou van disciplines???
|
|
var loc_key = getQParamInt("key", -1);
|
|
|
|
// dit lijkt mij de enige gehele readonlyverklaring, de rest is localer
|
|
var readonly = !(authparams.PRSwritelevel< 9 || authparams.ALGwritelevel < 9);
|
|
|
|
if (loc_key > 0)
|
|
{
|
|
sql = " select alg_locatie_code "
|
|
+ " FROM alg_locatie "
|
|
+ " WHERE alg_locatie_key = " + loc_key;
|
|
|
|
oRsMes = Oracle.Execute(sql);
|
|
|
|
var loc_name = " " + oRsMes("alg_locatie_code").value;
|
|
}
|
|
else
|
|
{
|
|
var loc_name = "";
|
|
}
|
|
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<%
|
|
FCLTHeader.Generate();
|
|
%>
|
|
<script type="text/javascript" >
|
|
FcltMgr.setTitle("<%=lcl_location%> <%=loc_name%> ", {hot:false});
|
|
function algClose(params)
|
|
{
|
|
<% if (loc_key == -1)
|
|
{ %>
|
|
if (params.cancel)
|
|
{
|
|
FcltMgr.closeDetail(window, params );
|
|
return true;
|
|
}
|
|
if (!params.keepForm)
|
|
window.location.href = "alg_locatie.asp?verynew=1&key=" + params.loc_key;
|
|
<% } else { // Bestaande melding bewerkt, switch naar show-mode %>
|
|
if (params.close)
|
|
{
|
|
FcltMgr.closeDetail(window, { close: true})
|
|
}
|
|
if (!params.keepForm)
|
|
$("#algFrame")[0].src = "alg_show_locatie.asp?loc_key=<%=loc_key%>";
|
|
<% } %>
|
|
}
|
|
</script>
|
|
</head>
|
|
<body id="editbody">
|
|
<%
|
|
if (loc_key == -1)
|
|
var page="alg_edit_locatie.asp"; // Maak een nieuw
|
|
else
|
|
var page="alg_show_locatie.asp";
|
|
page += "?loc_key="+loc_key;
|
|
|
|
IFRAMER("algFrame", page, { title: lcl_alg_locatie_frame,
|
|
initHeight: "450px",
|
|
FcltClose: "algClose" } );
|
|
|
|
%>
|
|
|
|
</body>
|
|
</html>
|