Files
Facilitor/APPL/EXP/exp_export_confirm.asp
2025-03-25 10:00:27 +00:00

93 lines
2.5 KiB
Plaintext

<%@ LANGUAGE = JavaScript %>
<% /*
$Revision$
$Id$
File: exp_export_confirm.asp
Description: Vraag om bevestiging voor het uitvoeren van de export
Parameters:
Context:
Note:
*/
%>
<!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/iface.inc" -->
<%
var export_key = getQParamInt("export_key", -1);
var menu_key = getQParamInt("from_menu_key", -1);
var compress = getQParamInt("compress", 0) == 1; // Je mag in de url overrulen
var preview = getQParamInt("preview", 0) == 1; // dan geen _EXPORT_ achteraan aanroepen?
FCLTHeader.Requires({ plugins: ["jQuery"] });
%>
<html>
<head>
<% FCLTHeader.Generate(); %>
<script type="text/javascript">
function exp_cancel()
{
FcltMgr.closeDetail(window, { cancel: true } );
}
function exp_submit(close)
{
document.forms.confirmform.submit();
FcltMgr.closeDetail(window);
return true; // disable button
}
</script>
</head>
<body class="fclt-modal" id="mod_expconfirm">
<% MODAL_START(); %>
<form id="confirmform" name="confirmform" target="_blank" action="exp_export.asp?export_key=<%=export_key%>" method="post">
<%
var exp_naam = "";
var sql = "SELECT fac_menu_altlabel"
+ " FROM fac_menu"
+ " WHERE fac_menu_key = " + menu_key;
var oRs = Oracle.Execute(sql);
if (!oRs.eof)
exp_naam = oRs("fac_menu_altlabel").Value;
oRs.Close();
var ttl = L("lcl_export_confirm").format(exp_naam);
MODAL_BLOCK_START("mldCancel", ttl, { "icon": "fa-sensor-triangle-exclamation" });
ROFIELDTR("fld", "", "\n"+L("lcl_R_U_sure"));
if (hasQParam("compress"))
{ %>
<input type="hidden" id="compress" name="compress" value="<%=(compress?1:0)%>">
<% }
if (hasQParam("preview"))
{ %>
<input type="hidden" id="preview" name="preview" value="<%=(preview?1:0)%>">
<% }
MODAL_BLOCK_END();
var buttons = [ {title: L("lcl_cnt_export"), icon: "fa-fclt-save", action: "exp_submit()", singlepress: true, id: "exp_export_submit", importance: 1 }
, {title: L("lcl_cancel"), icon: "fa-fclt-cancel", action: "exp_cancel()", importance: 2 }
];
SIMPLE_BLOCK_START();
CreateButtons(buttons);
SIMPLE_BLOCK_END();
IFACE.FORM_END();
%>
</form>
<% MODAL_END(); %>
</body>
</html>
<% ASPPAGE_END(); %>