Compare commits
10 Commits
619227db31
...
887c41c38f
| Author | SHA1 | Date | |
|---|---|---|---|
| 887c41c38f | |||
|
|
32371c5a93 | ||
| 04e0121327 | |||
|
|
f12a590be7 | ||
|
|
311056fcd0 | ||
| 7e12d2e89d | |||
| 5e0830f3e7 | |||
| c202441bc3 | |||
|
|
9db37d0799 | ||
|
|
d755eafb4b |
@@ -292,6 +292,7 @@ ANONYMOUS_Allowed = 1;
|
||||
var api_result = callAPI(obj_base27.info.actie, obj_base27);
|
||||
if (api_result.success)
|
||||
{
|
||||
result.success = true;
|
||||
if (obj_base27.info.actie == "incident")
|
||||
{
|
||||
if (api_result.status == 201)
|
||||
|
||||
@@ -112,6 +112,32 @@ if (Session("interface") == "touch") { %>
|
||||
if (<%=(!device.test(device.isSupported) && S("checkBrowser") == 1 ? "true" : "false")%> || !(Modernizr.promises && Modernizr.strictmode && Modernizr.arrow)) {
|
||||
FcltMgr.alert(L("lcl_invalid_browser"));
|
||||
}
|
||||
|
||||
<% var xfunc = user.func_enabled2("PRS", { prs_key: user_key, isOptional: true });
|
||||
var prsWriteAny =
|
||||
xfunc.canWrite("WEB_PRSMAN") ||
|
||||
xfunc.canWrite("WEB_PRSUSE") ||
|
||||
xfunc.canWrite("WEB_PROFIL");
|
||||
if (prsWriteAny) { %>
|
||||
var userTimezone = "<%=safe.jsstring(user.timezone())%>";
|
||||
var clientTimezone = Intl?.DateTimeFormat()?.resolvedOptions()?.timeZone;
|
||||
if (userTimezone && clientTimezone && userTimezone != clientTimezone) {
|
||||
$(function () {
|
||||
FcltMgr.confirm(`Your system timezone is ${safe.html(clientTimezone)}, but your Facilitor profile is set to ${userTimezone}.\nDo you want me to update your profile and set your current timezone to ${safe.html(clientTimezone)}?`, function () {
|
||||
var data = {
|
||||
prs_tz: clientTimezone
|
||||
};
|
||||
<% protectRequest.dataToken("data"); %>
|
||||
$.post(
|
||||
"<%=rooturl%>/APPL/PRS/prs_edit_perslid_save.asp?prs_key=<%=user_key%>",
|
||||
data,
|
||||
FcltCallbackRefresh,
|
||||
"json"
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
<% } %>
|
||||
});
|
||||
</script>
|
||||
<%
|
||||
|
||||
@@ -325,17 +325,6 @@ function generateHeader()
|
||||
<% if (Application("otap_environment") == "O") { %>
|
||||
<a href='./fac_StreamFile.asp?logger=0' target='_blank'><button id='loggingshow'>Open logging</button></a>
|
||||
<% } %>
|
||||
<div id="tzwarning" style="background-color:#f88;padding:2px"></div>
|
||||
<script>
|
||||
var usertimezone = "<%=safe.jsstring(user.timezone())%>";
|
||||
var browsertimezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
if (usertimezone && usertimezone != browsertimezone)
|
||||
{
|
||||
$(function () {
|
||||
$("#tzwarning").text("Let op: Windows tijdzone (" + browsertimezone + ") is anders dan Facilitor tijdzone (" + usertimezone + ")");
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<%
|
||||
}
|
||||
|
||||
@@ -209,6 +209,14 @@ var JSON_Result = true;
|
||||
}
|
||||
oRs.Close();
|
||||
|
||||
// Recente users telling vandaag
|
||||
var sql = "SELECT COUNT(*) aantal"
|
||||
+ " FROM prs_perslid d "
|
||||
+ " WHERE prs_perslid_login > TRUNC(SYSDATE)";
|
||||
var oRs = Oracle.Execute(sql);
|
||||
result.recentvandaag = oRs("aantal").Value;
|
||||
oRs.Close();
|
||||
|
||||
try
|
||||
{
|
||||
var WshShell = new ActiveXObject("WScript.Shell");
|
||||
|
||||
@@ -97,14 +97,18 @@ if (nieuws_key === -1 && mld_key > 0) {
|
||||
var result = shared.promptAI(JSON.stringify(input), { "instructions": L("lcl_mld_publish_portal_message_instructions"), "response_format": "json_object" });
|
||||
if (result.success) {
|
||||
try {
|
||||
__Log(result.content);
|
||||
var content = JSON.parse(result.content);
|
||||
subject = content.onderwerp || null;
|
||||
fac_nieuws_groep_key = content.categorie || null;
|
||||
var fac_nieuws_groep_key = null;
|
||||
fac_nieuws_groep_key = parseInt(content.categorie, 10) || null; // In theorie kan AI nog steeds een ongeldige categorie_key teruggeven. Dat negeren we
|
||||
image = content.icon || null;
|
||||
mess_dsc = content.berichttekst || null;
|
||||
totdate = (content.periode_tot || null) === null ? null : new Date(content.periode_tot || null);
|
||||
} catch (e) {
|
||||
// Dan niet
|
||||
__DoLog("Prompt AI returned invalid JSON: " + e.description);
|
||||
__DoLog(result.content);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ header.page-banner {
|
||||
|
||||
.card-link { /* Directe child van een .card */
|
||||
border-radius: inherit;
|
||||
height: inherit;
|
||||
height: var(--fclt-card-inner-height);
|
||||
}
|
||||
|
||||
.card-title > * + * {
|
||||
|
||||
@@ -25,16 +25,32 @@ user.auth_required_or_abort(prsauthparams.writeman || prsauthparams.writeuse ||
|
||||
var prs_user = new Perslid(prs_key);
|
||||
user.auth_required_or_abort(!prs_user.has("WEB_FACFAC") || user.has("WEB_FACFAC")); // WEB_FACFAC alleen als je het zelf ook hebt
|
||||
|
||||
var result = {};
|
||||
|
||||
var prs_tz = getFParam("prs_tz", "");
|
||||
|
||||
if (prs_tz != "")
|
||||
{
|
||||
var sql = "SELECT '' FROM V$TIMEZONE_NAMES"
|
||||
+ " WHERE tzname = " + safe.quoted_sql(prs_tz); // Case-sensitive
|
||||
+ " WHERE tzname = " + safe.quoted_sql(prs_tz) // Case-sensitive
|
||||
+ " AND tzname NOT LIKE '%GMT%'" // Conform timezoneselector.inc
|
||||
+ " AND ("
|
||||
+ " tzname LIKE 'Europe/%' OR"
|
||||
+ " tzname LIKE 'America/%' OR"
|
||||
+ " tzname LIKE 'Asia/%' OR"
|
||||
+ " tzname LIKE 'Australia/%' OR"
|
||||
+ " tzname LIKE 'Africa/%' OR"
|
||||
+ " tzname LIKE 'Pacific/%'"
|
||||
+ " )";
|
||||
|
||||
var oRs = Oracle.Execute(sql);
|
||||
if (oRs.EoF)
|
||||
shared.internal_error("timezone (" + safe.html(prs_tz) + ") not found.");
|
||||
if (oRs.EoF) {
|
||||
result.success = false;
|
||||
result.warning = "Could not recognize timezone " + safe.html(prs_tz);
|
||||
Response.Write(JSON.stringify(result));
|
||||
ASPPAGE_END();
|
||||
Response.End;
|
||||
}
|
||||
oRs.Close();
|
||||
}
|
||||
|
||||
@@ -251,10 +267,10 @@ if (!custfunc.prs_postsave(prs_key, pResult))
|
||||
abort_with_warning(pResult.errmsg);
|
||||
}
|
||||
|
||||
|
||||
result = { success: true
|
||||
, prs_key: prs_key
|
||||
};
|
||||
result = {
|
||||
success: true,
|
||||
prs_key: prs_key
|
||||
};
|
||||
Response.Write(JSON.stringify(result));
|
||||
ASPPAGE_END();
|
||||
%>
|
||||
<% ASPPAGE_END(); %>
|
||||
|
||||
@@ -480,7 +480,11 @@ function _FCLTcalendar (fieldID, params)
|
||||
}
|
||||
else
|
||||
{ // Native activeren
|
||||
$("#time_from_<%=fieldID%>").attr("type", "time")
|
||||
$("#time_from_<%=fieldID%>")
|
||||
.attr("type", "time")
|
||||
.on("change", function() {
|
||||
$(this).trigger("focusout");
|
||||
});
|
||||
}
|
||||
|
||||
$("#time_from_<%=fieldID%>").focusout(function () { time_show_onChange('time_from_<%=fieldID%>',
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
Context: Vanuit ELK asp bestand
|
||||
*/
|
||||
|
||||
var FCLTVersion="2025.4RC1";
|
||||
var FCLTVersion="2025.4";
|
||||
var FCLTMinDatabaseSchema="52"; // Alleen de cijfers
|
||||
|
||||
var custpath = rooturl + "/cust/" + customerId; // path to customer files
|
||||
|
||||
@@ -31,7 +31,7 @@ function FCLTtimezoneselector(fieldName, params)
|
||||
+ " tzname LIKE 'Asia/%' OR"
|
||||
+ " tzname LIKE 'Australia/%' OR"
|
||||
+ " tzname LIKE 'Africa/%' OR"
|
||||
+ " tzname LIKE 'Pacific/%'"
|
||||
+ " tzname LIKE 'Pacific/%'" // En deze dan; [Antarctica, Atlantic, Arctic, Brazil, Canada, Chile, Indian, Mexico, US] ?
|
||||
+ " )"
|
||||
+ " GROUP BY tzname, TZ_OFFSET(tzname)"
|
||||
+ " ORDER BY TO_NUMBER(SUBSTR(TZ_OFFSET(tzname), 1, 3)"
|
||||
|
||||
@@ -120,6 +120,8 @@ function puo_send_planrequest(prs_bedrijf_key, request_xml)
|
||||
{
|
||||
var XMLnode = 'planrequest';
|
||||
|
||||
Log2File(1, "\n====== " + XMLnode + " start (" + toDateTimeString(new Date()) + ")");
|
||||
|
||||
// eerst bedrijfadres_key bepalen
|
||||
var sqlB = "SELECT prs_bedrijfadres_key "
|
||||
+ " FROM prs_bedrijfadres ba "
|
||||
|
||||
Reference in New Issue
Block a user