fixed PermitFacts CSV Export button

This commit is contained in:
2026-06-04 08:13:35 -04:00
parent 94bc6117f2
commit 4d030d87e5
7 changed files with 94 additions and 90 deletions
-3
View File
@@ -34,9 +34,6 @@ class SearchHistory extends Base {
$user = $this->current_user_serial; $user = $this->current_user_serial;
$subscription_serial = $searchpayload['subscription_serial']; $subscription_serial = $searchpayload['subscription_serial'];
echo $subscription_serial;
die();
switch ($subscription_serial) { switch ($subscription_serial) {
case 1: case 1:
+71 -64
View File
@@ -12,69 +12,75 @@ $(document).ready(function () {
// ---------------------- // ----------------------
ClassicEditor ClassicEditor
.create(document.querySelector('#alert_message'), { .create(document.querySelector('#alert_message'), {
toolbar: { toolbar: {
items: [ items: [
'heading', 'heading',
'|', '|',
'bold', 'bold',
'italic', 'italic',
'underline', 'underline',
'link', 'link',
'bulletedList', 'bulletedList',
'numberedList', 'numberedList',
'|', '|',
'fontColor', 'fontColor',
'fontSize', 'fontSize',
'fontFamily', 'fontFamily',
'|', '|',
'indent', 'indent',
'outdent', 'outdent',
'alignment', 'alignment',
'|', '|',
'horizontalLine', 'horizontalLine',
'insertTable', 'insertTable',
'|', '|',
'undo', 'undo',
'redo', 'redo',
'|' '|'
]}, ]
link: { },
addTargetToExternalLinks: true, link: {
defaultProtocol: "http://" addTargetToExternalLinks: true,
defaultProtocol: "http://"
} }
}) })
.then(editor => { .then(editor => {
$CKEditor = editor; $CKEditor = editor;
}) })
.catch(error => { .catch(error => {
console.error('CK-Editor error...'); console.error('CK-Editor error...');
console.error(error); console.error(error);
}); });
// ------------ // ------------
// Date Pickers // Date Pickers
// ------------ // ------------
$("#alert_starts_date").datepicker({format: "yyyy-mm-dd", $("#alert_starts_date").datepicker({
format: "yyyy-mm-dd",
container: "div.starts-date", container: "div.starts-date",
keyboardNavigation: false, keyboardNavigation: false,
autoclose: true, autoclose: true,
orientation: "bottom", orientation: "bottom",
todayBtn: "linked", todayBtn: "linked",
todayHighlight: true}); todayHighlight: true
});
$("#alert_expires_date").datepicker({format: "yyyy-mm-dd", $("#alert_expires_date").datepicker({
format: "yyyy-mm-dd",
container: "div.expires-date", container: "div.expires-date",
keyboardNavigation: false, keyboardNavigation: false,
autoclose: true, autoclose: true,
orientation: "bottom", orientation: "bottom",
todayBtn: "linked", todayBtn: "linked",
todayHighlight: true}); todayHighlight: true
});
$("#alert_starts_time").inputmask({alias: "datetime", $("#alert_starts_time").inputmask({
alias: "datetime",
placeholder: "HH:MM", placeholder: "HH:MM",
inputFormat: "HH:MM", inputFormat: "HH:MM",
insertMode: false, insertMode: false,
@@ -82,7 +88,8 @@ $(document).ready(function () {
hourFormat: 24 hourFormat: 24
}); });
$("#alert_expires_time").inputmask({alias: "datetime", $("#alert_expires_time").inputmask({
alias: "datetime",
placeholder: "HH:MM", placeholder: "HH:MM",
inputFormat: "HH:MM", inputFormat: "HH:MM",
insertMode: false, insertMode: false,
@@ -146,11 +153,11 @@ $(document).ready(function () {
$("#addAlert").submit(function (e) { $("#addAlert").submit(function (e) {
var alert_title = $("#alert_title"), var alert_title = $("#alert_title"),
alert_starts_date = $("#alert_starts_date"), alert_starts_date = $("#alert_starts_date"),
alert_starts_time = $("#alert_starts_time"), alert_starts_time = $("#alert_starts_time"),
alert_expires_date = $("#alert_expires_date"), alert_expires_date = $("#alert_expires_date"),
alert_expires_time = $("#alert_expires_time"), alert_expires_time = $("#alert_expires_time"),
alert_message = $("#alert_message"); alert_message = $("#alert_message");
clearInputErrors(); clearInputErrors();
@@ -197,10 +204,10 @@ $(document).ready(function () {
return false; return false;
} }
// if (isBlank(alert_message)) { // if (isBlank(alert_message)) {
// createInputError(alert_message, "Please enter a Message"); // createInputError(alert_message, "Please enter a Message");
// return false; // return false;
// } // }
if (!checkDateTime(alert_starts_date, alert_starts_time, alert_expires_date, alert_expires_time)) { if (!checkDateTime(alert_starts_date, alert_starts_time, alert_expires_date, alert_expires_time)) {
createInputError(alert_expires_time, "Cannot be prior to Start"); createInputError(alert_expires_time, "Cannot be prior to Start");
@@ -213,15 +220,15 @@ $(document).ready(function () {
$.post("./", $(this).serialize()) $.post("./", $(this).serialize())
.done(function () { .done(function () {
$sessionStorage.action = $sessionStorage.addAlert || ""; $sessionStorage.action = $sessionStorage.addAlert || "";
sessionStorage.setItem($application, JSON.stringify($sessionStorage)); sessionStorage.setItem($application, JSON.stringify($sessionStorage));
formSubmit($sessionStorage); formSubmit($sessionStorage);
}); });
}); });
@@ -234,11 +241,11 @@ $(document).ready(function () {
function checkDateTime(alert_starts_date, alert_starts_time, alert_expires_date, alert_expires_time) { function checkDateTime(alert_starts_date, alert_starts_time, alert_expires_date, alert_expires_time) {
var starts_date_parts = alert_starts_date.val().split("-"), var starts_date_parts = alert_starts_date.val().split("-"),
starts_time_parts = alert_starts_time.val().split(":"), starts_time_parts = alert_starts_time.val().split(":"),
expires_date_parts = alert_expires_date.val().split("-"), expires_date_parts = alert_expires_date.val().split("-"),
expires_time_parts = alert_expires_time.val().split(":"), expires_time_parts = alert_expires_time.val().split(":"),
starts_date, starts_date,
expires_date; expires_date;
starts_date = new Date(starts_date_parts[0], parseInt(starts_date_parts[1], 10) - 1, starts_date_parts[2]); starts_date = new Date(starts_date_parts[0], parseInt(starts_date_parts[1], 10) - 1, starts_date_parts[2]);
expires_date = new Date(expires_date_parts[0], parseInt(expires_date_parts[1], 10) - 1, expires_date_parts[2]); expires_date = new Date(expires_date_parts[0], parseInt(expires_date_parts[1], 10) - 1, expires_date_parts[2]);
+4 -4
View File
@@ -1,7 +1,7 @@
// ========== // ===================
// Add County // Search Permit Facts
// ========== // ===================
$(document).ready(function () { $(document).ready(function () {
@@ -246,7 +246,7 @@ $(document).ready(function () {
$("#spinner-dialog").modal("show"); $("#spinner-dialog").modal("show");
$sessionStorage.action = "Export_PermitFactsToExcel.export"; $sessionStorage.action = "Export_PermitFactsToCSV.export";
$sessionStorage.subscription_reference = $sessionStorage.subscription_serial; $sessionStorage.subscription_reference = $sessionStorage.subscription_serial;
$sessionStorage.pagination = "off"; $sessionStorage.pagination = "off";
-1
View File
@@ -5,4 +5,3 @@ require_once "classes/Base.php";
session_start(); session_start();
(new Base())->do(); (new Base())->do();
?>
+8 -7
View File
@@ -6,16 +6,16 @@
<!-- Database Credentials --> <!-- Database Credentials -->
<DatabaseServer>192.168.1.190</DatabaseServer> <!--<DatabaseServer>192.168.1.190</DatabaseServer>-->
<!--<DatabaseServer>localhost</DatabaseServer>--> <DatabaseServer>localhost</DatabaseServer>
<DatabaseName>realestatedatainc</DatabaseName> <DatabaseName>realestatedatainc</DatabaseName>
<DatabaseUser>ddruser</DatabaseUser> <DatabaseUser>ddruser</DatabaseUser>
<DatabasePassword>hype23decdr</DatabasePassword> <DatabasePassword>hype23decdr</DatabasePassword>
<!-- Legacy Database Credentials --> <!-- Legacy Database Credentials -->
<OldDatabaseServer>192.168.1.190</OldDatabaseServer> <!--<OldDatabaseServer>192.168.1.190</OldDatabaseServer>-->
<!--<DatabaseServer>localhost</DatabaseServer>--> <DatabaseServer>localhost</DatabaseServer>
<OldDatabaseName>decweb</OldDatabaseName> <OldDatabaseName>decweb</OldDatabaseName>
<OldDatabaseUser>decuser</OldDatabaseUser> <OldDatabaseUser>decuser</OldDatabaseUser>
<OldDatabasePassword>hype23dec</OldDatabasePassword> <OldDatabasePassword>hype23dec</OldDatabasePassword>
@@ -29,7 +29,8 @@
<!-- Discord Webhook --> <!-- Discord Webhook -->
<DiscordWebHookURL>https://discordapp.com/api/webhooks/1396804024942198794/zdT2wisqhAZuZ_UPKmAmtV0z_rX-PZnyHIXsjpPHQO3uakBO2xQ3R44kOxb9QZ4QxebL</DiscordWebHookURL> <DiscordWebHookURL>
https://discordapp.com/api/webhooks/1396804024942198794/zdT2wisqhAZuZ_UPKmAmtV0z_rX-PZnyHIXsjpPHQO3uakBO2xQ3R44kOxb9QZ4QxebL</DiscordWebHookURL>
<SupportEmail>james.richie@onesourceits.com</SupportEmail> <SupportEmail>james.richie@onesourceits.com</SupportEmail>
<AdminEmail>allenf@bidalert.com</AdminEmail> <AdminEmail>allenf@bidalert.com</AdminEmail>
@@ -42,8 +43,8 @@
<SystemAdministrator>DSYSADMIN</SystemAdministrator> <SystemAdministrator>DSYSADMIN</SystemAdministrator>
</SystemAdministrators> </SystemAdministrators>
<Environment>Development</Environment> <!--<Environment>Development</Environment>-->
<!--<Environment>Production</Environment>--> <Environment>Production</Environment>
<Availability>Available</Availability> <Availability>Available</Availability>
</Settings> </Settings>