Take export query options from query parameters of the server

Change-Id: If09d7a46804dce20143c7dc0e487891a0dbd10e4
diff --git a/plugin/templates/export.js b/plugin/templates/export.js
new file mode 100644
index 0000000..cfb96f4
--- /dev/null
+++ b/plugin/templates/export.js
@@ -0,0 +1,24 @@
+function pluginit(P) {
+  P.requestMsg(
+    {
+      'action':'get',
+      'key':'QueryParam'
+    },
+    function (d) {
+      let v = d.value;
+      if (v["q"]) {
+        let e = v["q"];
+        document.getElementById("q").value=v["q"];
+        if (v["ql"]) {
+          e += " with " + v["ql"];
+          document.getElementById("ql").value=v["ql"];
+        };
+        if (v["cq"]) {
+          e += " in " + v["cq"];
+          document.getElementById("cq").value=v["cq"];
+        };
+        document.getElementById("export-query").innerText = e;
+      };
+    }
+  );
+};