16d4b5728754e38bf01c5db054319bea8bc8f250
[freeside.git] / httemplate / misc / maestro-customer_status-test.html
1 <% include('/elements/header.html', {
2              'title' => "Customer $query status",
3           }) %>
4
5 <% include('/elements/small_custview.html', $query, '', 1) %>
6 <BR>
7
8 <table style="border:1px solid #000000">
9 % foreach my $key (keys %$return) {
10   <TR>
11     <TD ALIGN="right"><% $key %>:</TD>
12     <TD><B><% $return->{$key} %></B></TD>
13   </TR>
14 % }
15 </table>
16
17 <% include('/elements/footer.html') %>
18 <%init>
19
20 my $return;
21
22 my($query) = $cgi->keywords;
23 if ( $query =~ /^(\d+)$/ ) {
24
25   use FS::Maestro;
26   $return = FS::Maestro::customer_status($1);
27
28 } else {
29   $return = { 'error' => 'No custnum' };
30 }
31
32 </%init>