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

This commit is contained in:
Ruud Lipper
2009-10-05 09:28:42 +00:00
parent 8024418341
commit 9e99d404bb
2 changed files with 25 additions and 39 deletions

View File

@@ -1,8 +1,8 @@
<%@language = "javascript" %>
<% // testing: bes_key=1251054
/* $Revision: 1 $
$Modtime: 21-09-09 10:32 $
/* $Revision: 2 $
$Modtime: 10/05/09 11:09a $
File: bes_edit.asp
Status: 40% (new style)
@@ -14,7 +14,6 @@
Note:
*/ %>
<% Response.Expires = -1; %>
<!--#include file="../../cust/install.inc" -->
<!--#include file="../Shared/funcodes.inc" -->
@@ -23,33 +22,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 loc_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,21 +38,31 @@ FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "FCLT
<%
FCLTHeader.Generate();
%>
<%
//======================================
%>
<script type="text/javascript" >
function algClose(params)
{
<% if (loc_key == -1)
{ %>
if (params.cancel)
{
FcltMgr.closeDetail(window, params );
return true;
}
FcltMgr.setTitle("<%=lcl_location%> " + params.loc_key, {hot:false});
window.location.href = "alg_locatie.asp?verynew=1&key=" + params.loc_key;
<% } else { // Bestaande melding bewerkt, switch naar show-mode %>
$("#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 += "?urole=bo&bld_key="+loc_key;
page += "?loc_key="+loc_key;
IFRAMER("algFrame", page, { title: lcl_alg_locatie_frame,
initHeight: "450px",

View File

@@ -1,7 +1,7 @@
<%@language = "javascript" %>
<%
/* $Revision: 1 $
$Modtime: 30-09-09 15:55 $
/* $Revision: 2 $
$Modtime: 10/05/09 11:08a $
File: bez_show_afspraak.asp
Status: 10% (new style)
@@ -29,8 +29,7 @@
FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "date.js", "FcltMgr.js"]})
// AUTORISATIEPARAMETERS
var urole = "1";
var loc_key = parseInt(getQParam("bld_key", "-1"), 10);
var loc_key = parseInt(getQParam("loc_key", "-1"), 10);
var dis_key
var onrgoedlvl = "'L'";
@@ -85,7 +84,7 @@ FCLTHeader.Requires({plugins:["suggest","jQuery"], js: ["expand_frame.js", "date
function loc_change()
{
if (FcltMgr.startEdit(window))
window.location.href = "alg_edit_locatie.asp?urole=<%=urole%>&loc_key=<%=loc_key%>&embedded=1"
window.location.href = "alg_edit_locatie.asp?loc_key=<%=loc_key%>&embedded=1"
}
function loc_delete()
{