summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorivan <ivan>2010-07-27 01:48:23 +0000
committerivan <ivan>2010-07-27 01:48:23 +0000
commitd0cfae64ac8c44a379b0f64e4f47a678ecd8fe77 (patch)
tree63400d5a9d191462dc0eab8cf768104a8a5212eb /httemplate/misc
parent8fee1eff267694b2f0bcd5ecc732b814034ba612 (diff)
add test page for maestro status, RT#9381
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/maestro-customer_status-test.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/httemplate/misc/maestro-customer_status-test.html b/httemplate/misc/maestro-customer_status-test.html
new file mode 100644
index 000000000..16d4b5728
--- /dev/null
+++ b/httemplate/misc/maestro-customer_status-test.html
@@ -0,0 +1,32 @@
+<% include('/elements/header.html', {
+ 'title' => "Customer $query status",
+ }) %>
+
+<% include('/elements/small_custview.html', $query, '', 1) %>
+<BR>
+
+<table style="border:1px solid #000000">
+% foreach my $key (keys %$return) {
+ <TR>
+ <TD ALIGN="right"><% $key %>:</TD>
+ <TD><B><% $return->{$key} %></B></TD>
+ </TR>
+% }
+</table>
+
+<% include('/elements/footer.html') %>
+<%init>
+
+my $return;
+
+my($query) = $cgi->keywords;
+if ( $query =~ /^(\d+)$/ ) {
+
+ use FS::Maestro;
+ $return = FS::Maestro::customer_status($1);
+
+} else {
+ $return = { 'error' => 'No custnum' };
+}
+
+</%init>