aboutsummaryrefslogtreecommitdiff
path: root/mod/apitest/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/apitest/views/default')
-rw-r--r--mod/apitest/views/default/apitest/configform.php7
-rw-r--r--mod/apitest/views/default/apitest/main.php23
2 files changed, 30 insertions, 0 deletions
diff --git a/mod/apitest/views/default/apitest/configform.php b/mod/apitest/views/default/apitest/configform.php
new file mode 100644
index 000000000..c637ae7b6
--- /dev/null
+++ b/mod/apitest/views/default/apitest/configform.php
@@ -0,0 +1,7 @@
+<form method="post">
+ <input type="hidden" name="action" value="configure" />
+ <p>API Key: <input type="text" name="apikey" value="<?php echo $vars['apikey'];?>" /></p>
+ <p>Secret Key: <input type="password" name="secret" value="<?php echo $vars['secret'];?>" /></p>
+ <p>Endpoint: <input type="text" name="endpoint" value="<?php echo $vars['endpoint'];?>" /></p>
+ <input type="submit" name="submit" value="Set.." />
+</form> \ No newline at end of file
diff --git a/mod/apitest/views/default/apitest/main.php b/mod/apitest/views/default/apitest/main.php
new file mode 100644
index 000000000..dfdbd482b
--- /dev/null
+++ b/mod/apitest/views/default/apitest/main.php
@@ -0,0 +1,23 @@
+<script type="text/javascript" language="javascript">
+<!--
+function showhide(oid)
+{
+ var e = document.getElementById(oid);
+ if(e.style.display == 'none') {
+ e.style.display = 'block';
+ } else {
+ e.style.display = 'none';
+ }
+}
+// -->
+</script>
+
+<div id="config">
+ <?php echo $vars['config']; ?>
+</div>
+
+<hr />
+
+<div id="list">
+ <?php echo $vars['commandlist']; ?>
+</div> \ No newline at end of file