diff options
author | jeff <jeff> | 2006-10-03 22:44:28 +0000 |
---|---|---|
committer | jeff <jeff> | 2006-10-03 22:44:28 +0000 |
commit | 30c3ff2acf90e1386fae00759078899c859faf36 (patch) | |
tree | 75fd2a828c64a2b7bd2d2f4c650d058af726e241 /httemplate/edit/cust_main_note.cgi | |
parent | 40f370f0fbc6dedee27b8666f7d00e3888a1533b (diff) |
Enhanced customer notes
Diffstat (limited to 'httemplate/edit/cust_main_note.cgi')
-rwxr-xr-x | httemplate/edit/cust_main_note.cgi | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi new file mode 100755 index 000000000..468ef0051 --- /dev/null +++ b/httemplate/edit/cust_main_note.cgi @@ -0,0 +1,37 @@ +<% include('/elements/header-popup.html', 'Add Customer Note') %> + +% if ( $cgi->param('error') ) { + <FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT> + <BR><BR> +% } + +<FORM ACTION="<% popurl(1) %>process/cust_main_note.cgi" METHOD=POST> +<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>"> + + +<BR><BR> +<TEXTAREA NAME="comment" ROWS="12" COLS="60"> +<% $comment %> +</TEXTAREA> + +<BR><BR> +<INPUT TYPE="submit" VALUE="Add note"> + +</FORM> +</BODY> +</HTML> + +<%init> +my($custnum, $comment); +$comment = ''; + +if ( $cgi->param('error') ) { + $comment = $cgi->param('comment'); +} +$cgi->param('custnum') =~ /^(\d+)$/; +$custnum = $1; + +die "illegal query ". $cgi->keywords unless $custnum; + +</%init> + |