From b2366d909a05483fcad49816bab2717dcab6e8c9 Mon Sep 17 00:00:00 2001 From: Conner Harkness Date: Tue, 2 Sep 2025 07:54:08 -0600 Subject: [PATCH] Made pages more printer friendly, default values for inputs, added hidden column class hinting + more --- head.php | 2 +- lib/DataTable.php | 6 +-- pages/run.php | 129 +++++++++++++++++++++++++++++++++++----------- 3 files changed, 103 insertions(+), 34 deletions(-) diff --git a/head.php b/head.php index 96e7b1c..5ab2d1d 100644 --- a/head.php +++ b/head.php @@ -13,6 +13,6 @@ diff --git a/lib/DataTable.php b/lib/DataTable.php index 3b00af4..f1ad8e5 100644 --- a/lib/DataTable.php +++ b/lib/DataTable.php @@ -4,9 +4,9 @@ public static function sortIcon() { ?> - - - + + + 0) { + $strSelection = urldecode($strSelection); $strFileData = file_get_contents("{$strQueryDir}/{$strSelection}"); // Get the inputs: preg_match_all( - "/declare\s+\@([A-Za-z0-9]{1,})\s+(.+)\s+=\s+\?/i", + "/declare\s+\@([A-Za-z0-9]{1,})\s+(.+)\s+=\s+\?;(\s+-- Default\:\s(.*))?/i", $strFileData, $varInputs); + //Respond::json($varInputs); + // Get the options defined in comments: preg_match_all( "/--\s+([A-Za-z0-9]{1,})\:\s+(.+)/i", @@ -112,9 +115,17 @@ $strTitle = $strTitle ?? $strSelection ?? "Report"; ?> + + + + <?= $strTitle; ?> -