diff options
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi/select_cust.html')
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/select_cust.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/select_cust.html b/fs_selfservice/FS-SelfService/cgi/select_cust.html new file mode 100644 index 000000000..03b35c675 --- /dev/null +++ b/fs_selfservice/FS-SelfService/cgi/select_cust.html @@ -0,0 +1,51 @@ +<HTML> + <HEAD> + <TITLE>Select customer</TITLE> + <%= $head %> + </HEAD> + <BODY BGCOLOR="<%= $body_bgcolor || '#eeeeee' %>"> + <%= $body_header %> + +<FONT SIZE=5>Select customer</FONT><BR><BR> +<FONT SIZE="+1" COLOR="#ff0000"><%= $error %></FONT> + +<%= $selfurl =~ s/\?.*//; ''; %> +<FORM NAME="SelectCustomerForm" ACTION="<%= $selfurl %>" METHOD=POST> +<INPUT TYPE="hidden" NAME="action" VALUE="switch_cust"> +<INPUT TYPE="hidden" NAME="agentnum" VALUE="<%= $agentnum %>"> + +<TABLE BGCOLOR="<%= $box_bgcolor || '#c0c0c0' %>" BORDER=0 CELLSPACING=2 CELLPADDING=0> + + <TR> + <TH ALIGN="right">Customer </TH> + <TD> + <SELECT NAME="custnum" ID="custnum" onChange="custnum_changed()"> + <OPTION VALUE="">Select a customer +<%= $OUT .= qq(<OPTION VALUE="$_">). encode_entities( $customers{$_} ) + foreach keys %customers; +%> + </SELECT> + </TD> + </TR> + + <TR> + <TD COLSPAN=2 ALIGN="center"><INPUT TYPE="submit" ID="submit" VALUE="Select customer" DISABLED></TD> + </TR> + +</TABLE> +</FORM> + +<SCRIPT TYPE="text/javascript"> + +function custnum_changed () { + var form = document.SelectCustomerForm; + if ( form.custnum.selectedIndex > 0 ) { + form.submit.disabled = false; + } else { + form.submit.disabled = true; + } +} + +</SCRIPT> + +<%= $body_footer %> |