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; ?> -