Add details according to mail request
[misc/kostenrechnung] / ajax / ricoXMLquery.php
index 4c5713b..e8a9f74 100644 (file)
@@ -1,6 +1,6 @@
 <?php\r
 \r
-require_once('../config.php');\r
+require_once('../init.php');\r
 \r
 header("Cache-Control: no-cache");\r
 header("Pragma: no-cache");\r
@@ -32,6 +32,10 @@ if (empty($id)) {
 } elseif (!OpenDB()) {\r
   ErrorResponse(htmlspecialchars($oDB->LastErrorMsg));\r
 } else {\r
+  $fname = substr($id,5);\r
+  load_mask($fname);\r
+  grid_sql($fname, $mask);\r
+\r
   $filters=isset($_SESSION[$id . ".filters"]) ? $_SESSION[$id . ".filters"] : array();\r
   $oDB->DisplayErrors=false;\r
   $oDB->ErrMsgFmt="MULTILINE";\r