197 lines
7.1 KiB
Plaintext
197 lines
7.1 KiB
Plaintext
<%@language = "javascript" %>
|
|
<%
|
|
/* $Revision: 2 $
|
|
$Modtime: 10/05/09 11:06a $
|
|
|
|
File: bez_show_afspraak.asp
|
|
Status: 10% (new style)
|
|
Description: Detailscherm voor afspraken
|
|
Parameters: urole (required)
|
|
afspr_key (required)
|
|
-
|
|
Context:
|
|
Note:
|
|
|
|
*/ %>
|
|
<!--#include file="../../cust/install.inc" -->
|
|
<!--#include file="../Shared/iface.inc" -->
|
|
<!--#include file="../Shared/persoonselector.inc" -->
|
|
<!--#include file="../Shared/selector.inc" -->
|
|
<!--#include file="../Shared/cmenuFn.inc" -->
|
|
|
|
<!--#?include file="../Shared/algautlevel.inc" -->
|
|
<!--#include file="../Shared/plaatsselector.inc" -->
|
|
<!--#include file="../Shared/kostenplaatsselector.inc" -->
|
|
<!-- #include file="alg_flexkenmerk.inc" -->
|
|
|
|
<%
|
|
FCLTHeader.Requires({plugins:["suggest","jQuery","kenmerk"], js: ["expand_frame.js", "date.js", "FcltMgr.js"]})
|
|
|
|
// AUTORISATIEPARAMETERS
|
|
var loc_key = parseInt(getQParam("loc_key", "-1"), 10);
|
|
var dis_key
|
|
|
|
var onrgoedlvl = "'L'";
|
|
|
|
autfunction = "WEB_ALGMAN";
|
|
var authparams = user.checkAutorisation(autfunction);
|
|
var readonly = !(authparams.PRSwritelevel< 9 || authparams.ALGwritelevel < 9);
|
|
|
|
if (loc_key > 0)
|
|
{
|
|
sql = " select * "
|
|
+ " FROM ALG_LOCATIE "
|
|
+ " WHERE alg_locatie_key = " + loc_key;
|
|
|
|
oRsMes = Oracle.Execute(sql);
|
|
|
|
if (!oRsMes.eof ) {
|
|
var loc_omsch = oRsMes("alg_locatie_omschrijving").value;
|
|
var loc_code = oRsMes("alg_locatie_code").value;
|
|
var bez_adres = oRsMes("alg_locatie_adres").value;
|
|
var bez_postc = oRsMes("alg_locatie_postcode").value;
|
|
var bez_plaats = oRsMes("alg_locatie_plaats").value
|
|
var bez_land = oRsMes("alg_locatie_land").value;
|
|
var loc_vw = oRsMes("alg_locatie_verantw").value;
|
|
var loc_vwtel = oRsMes("alg_locatie_verantw_tel").value;
|
|
var loc_x = oRsMes("alg_locatie_x").value;
|
|
var loc_y = oRsMes("alg_locatie_y").value;
|
|
var loc_mail = oRsMes("alg_locatie_email").value;
|
|
var pst_adres = oRsMes("alg_locatie_post_adres").value;
|
|
var pst_postc = oRsMes("alg_locatie_post_postcode").value;
|
|
var pst_adres = oRsMes("alg_locatie_post_adres").value;
|
|
var pst_plaats = oRsMes("alg_locatie_post_plaats").value;
|
|
var pst_land = oRsMes("alg_locatie_post_land").value;
|
|
}
|
|
else {
|
|
Response.write("internal error or message deleted");
|
|
Response.End;
|
|
}
|
|
oRsMes.Close();
|
|
}
|
|
%>
|
|
|
|
<html>
|
|
<head>
|
|
<%
|
|
FCLTHeader.Generate();
|
|
%>
|
|
<script>
|
|
function alg_submit()
|
|
{
|
|
document.activeElement.blur(); // trigger laatste onChanges
|
|
document.forms.u2.submit();
|
|
|
|
}
|
|
function alg_cancel()
|
|
{
|
|
FcltMgr.closeDetail(window, { cancel: true } );
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body id="editbody">
|
|
<div id="edit">
|
|
<form name="u2" action="alg_edit_locatie_save.asp?loc_key=<%=loc_key%>" method=post onSubmit="alg_submit();">
|
|
<%
|
|
|
|
var buttons = [ {title: lcl_submit, action:"alg_submit()", icon: "opslaan.png", id:"bsubmit_alg_locatie" },
|
|
{title: lcl_cancel, action:"alg_cancel()", icon: "undo.png", id:"bcancel_alg_locatie" } ];
|
|
IFRAMER_HEADER(lcl_alg_locatie_frame, buttons);
|
|
|
|
BLOCK_START("algLoc1", "");
|
|
%>
|
|
<table>
|
|
<%
|
|
FCLTplaatsselector(authparams.ALGreadlevel, {
|
|
districtkey: dis_key,
|
|
locatiekey: loc_key,
|
|
startlevel: 1, //District
|
|
eindlevel: 1, // District
|
|
readonly: false }); %>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_estate_locatie_man_descr%>:</label></td>
|
|
<td><input class="fldloc" type="text" id="loc_code" name="loc_omsch" value="<%=loc_omsch%>" </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_estate_locatie_man_code%>:</label></td>
|
|
<td><input class="fldloc" type="text" id="loc_code" name="loc_code" value="<%=loc_code%>" </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_bezoek_adres%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="bez_adres" name="bez_adres" value="<%=bez_adres%>" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_bezoek_postcode%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="bez_postc" name="bez_postc" value="<%=bez_postc%>" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_bezoek_plaats%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="bez_plaats" name="bez_plaats" value="<%=bez_plaats%>"</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_bezoek_land%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="bez_land" name="bez_land" value="<%=bez_land%>" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_geoxcoord%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="loc_x" name="loc_x" value="<%=loc_x%>"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_geoycoord%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="loc_y" name="loc_y" value="<%=loc_y%>" ></td>
|
|
</tr>
|
|
</table>
|
|
<% BLOCK_END();
|
|
BLOCK_START("algLoc2", ""); %>
|
|
<table>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_post_adres%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="pst_adres" name="pst_adres" value="<%=pst_adres%>" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_post_postcode%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="pst_postc" name="pst_postc" value="<%=pst_postc%>" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_post_plaats%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="pst_plaats" name="pst_plaats" value="<%=pst_plaats%>"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_prs_address_post_land%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="pst_land" name="pst_land" value="<%=pst_land%>"</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_estate_locatie_man_verantw%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="loc_vw" name="loc_vw" value="<%=loc_vw%>"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_estate_locatie_man_verantw_tel%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="loc_vwtel" name="loc_vwtel" value="<%=loc_vwtel%>"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label><%=lcl_noti_email%>:</label></td>
|
|
<td><input class="fldloc"" type="text" id="loc_mai" name="loc_mail" value="<%=loc_mail%>"></td>
|
|
</tr>
|
|
</table>
|
|
<% BLOCK_END();
|
|
BLOCK_START("mldFlex", lcl_mld_flexblok);
|
|
%>
|
|
<!-- theText indicates flexkenmerken will follow on the next row -->
|
|
<% //<tr id="theText"><td> %>
|
|
<%
|
|
generateFlexKenmerkCode ({
|
|
bld_key : loc_key,
|
|
onrgoedlvl : onrgoedlvl,
|
|
reado : false
|
|
});
|
|
%>
|
|
<% // </td></tr> %>
|
|
<%
|
|
BLOCK_END();
|
|
%>
|
|
</form>
|
|
</div> <!-- edit -->
|
|
</body>
|
|
</html>
|