10 Commits

Author SHA1 Message Date
887c41c38f BSSC#91751 Ook bij gebruik van een native input[type=time] het veld [dat onder water de echte waarde bijhoudt] onchange bijwerken
svn path=/Website/branches/v2025.4/; revision=71139
2025-12-03 15:31:27 +00:00
Jos Groot Lipman
32371c5a93 BLCC#91763 AiAi op publiceren melding als bericht => AI SQL Injection
svn path=/Website/branches/v2025.4/; revision=71136
2025-12-03 14:22:56 +00:00
04e0121327 FCLT#91738 Safari mobile styling van nieuws-items
svn path=/Website/branches/v2025.4/; revision=71134
2025-12-03 13:56:19 +00:00
Jos Groot Lipman
f12a590be7 FCLT#91738 Aantal gebruikers vandaag tellen voor portal
svn path=/Website/branches/v2025.4/; revision=71131
2025-12-03 13:19:22 +00:00
Erik Groener
311056fcd0 DSMA#91735 Probleem met verzending Order 8304/1 naar Base27 in Facilitor
svn path=/Website/branches/v2025.4/; revision=71127
2025-12-03 11:25:06 +00:00
7e12d2e89d FCLT#91497 Van error-toaster -> error-alert
svn path=/Website/branches/v2025.4/; revision=71122
2025-12-02 20:35:41 +00:00
5e0830f3e7 FCLT#91497 AiAi voorkomen bij het aanmaken van een nieuwe persoon, en error handling iets refactored
svn path=/Website/branches/v2025.4/; revision=71121
2025-12-02 19:31:41 +00:00
c202441bc3 FCLT#91497 Timezone-verschil automatisch aanpassen
svn path=/Website/branches/v2025.4/; revision=71119
2025-12-02 16:09:39 +00:00
Jos Groot Lipman
9db37d0799 FCLT#91738 Iets betere planrequest logging
svn path=/Website/branches/v2025.4/; revision=71112
2025-12-02 08:32:00 +00:00
Jos Groot Lipman
d755eafb4b Release 2025.4 Gold
svn path=/Website/branches/v2025.4/; revision=71108
2025-12-01 16:00:25 +00:00
11 changed files with 74 additions and 24 deletions

View File

@@ -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)

View File

@@ -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>
<%

View File

@@ -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>
<%
}

View File

@@ -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");

View File

@@ -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);
}
}
}

View File

@@ -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 > * + * {

View File

@@ -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(); %>

View File

@@ -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%>',

View File

@@ -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

View File

@@ -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)"

View File

@@ -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 "