svn path=/Website/trunk/; revision=18

This commit is contained in:
Ruud Lipper
2009-10-05 13:28:14 +00:00
parent 33527b1ada
commit eca90905ae

View File

@@ -1,8 +1,8 @@
<%@language = "javascript" %>
<% // testing: bes_key=1251054
/* $Revision: 1 $
$Modtime: 22-09-09 14:00 $
/* $Revision: 2 $
$Modtime: 10/05/09 2:58p $
File: bes_edit.asp
Status: 40% (new style)
@@ -23,33 +23,11 @@
<!--#include file="../Shared/algautlevel.inc" -->
<!--#include file="../Shared/cmenuFn.inc"-->
<%
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "FCLTMgr.js", "jquery-ui.js"]})
/* AUTORISATIEPARAMETERS
var urole = getQParam("urole");
// Om nog even compatible te blijven zodat alles nog even blijft werken. Moet er straks uit, natuurlijk.
var fronto = urole == "fo";
var backo = urole == "bo";
var minfo = urole == "mi";
var frontend = (!fronto & !backo & !minfo);
// de melding waar het over gaat, kan leeg zijn voor nieuwe, maar dat mag niet met bo of mi
var autfunction = '';
if (fronto)
autfunction = 'WEB_BESFOF';
else if (backo)
autfunction = 'WEB_BESBOF';
else
autfunction = 'WEB_BESUSE'; */
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "jquery-ui.js"]})
var autfunction = "WEB_ALGMAN";
var authparams = user.checkAutorisation(autfunction); //Wat weet ik dan nou van disciplines???
var dis_key = getQParamInt("key", -1);
// OVERIGE PARAMETERS
// dit lijkt mij de enige gehele readonlyverklaring, de rest is localer
var readonly = !(authparams.PRSwritelevel< 9 || authparams.ALGwritelevel < 9);
@@ -61,12 +39,23 @@ FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "FCLT
<%
FCLTHeader.Generate();
%>
<%
//======================================
%>
<script type="text/javascript" >
function algClose(params)
{
<% if (dis_key == -1)
{ %>
if (params.cancel)
{
FcltMgr.closeDetail(window, params );
return true;
}
FcltMgr.setTitle("<%=lcl_district%> " + params.dis_key, {hot:false});
window.location.href = "alg_district.asp?verynew=1&key=" + params.dis_key;
<% } else { // Bestaande melding bewerkt, switch naar show-mode %>
$("#algFrame")[0].src = "alg_show_district.asp?dis_key=<%=dis_key%>";
<% } %>
}
</script>
</head>
<body id="editbody">
@@ -75,11 +64,11 @@ if (dis_key == -1)
var page="alg_edit_district.asp"; // Maak een nieuw
else
var page="alg_show_district.asp";
page += "?urole=bo&bld_key="+dis_key;
page += "?dis_key="+dis_key;
IFRAMER("algFrame", page, { title: lcl_alg_district_frame,
initHeight: "450px"
} );
initHeight: "450px",
FcltClose: "algClose" } );
// AKZA#88 don not allow printing if call isn't saved yet.
// UWVA#427 also print for FE