4 # $Id: report_credit.cgi,v 1.1 2002-02-22 23:18:33 jeff Exp $
7 # http://server.name/path/svc_domain.cgi
9 # ivan@voicenet.com 96-mar-5
11 # need to look at table in results to make it more readable
15 # rewrite ivan@sisd.com 98-mar-15
17 # Changes to allow page to work at a relative position in server
18 # bmccane@maxbaud.net 98-apr-3
20 # $Log: report_credit.cgi,v $
21 # Revision 1.1 2002-02-22 23:18:33 jeff
22 # add some reporting features
24 # Revision 1.2 2002/02/19 14:24:53 jeff
25 # might be functional now
27 # Revision 1.1 2002/02/05 15:22:00 jeff
28 # preserving state prior to 1.4.0pre7 upgrade
30 # Revision 1.2 2000/09/20 19:25:19 jeff
33 # Revision 1.1.1.1 2000/09/18 06:26:58 jeff
34 # Import of Freeside 1.2.3
36 # Revision 1.10 1999/07/20 06:03:36 ivan
37 # s/CGI::Request/CGI/; (how'd i miss that before?)
39 # Revision 1.9 1999/04/09 04:22:34 ivan
42 # Revision 1.8 1999/04/09 03:52:55 ivan
43 # explicit & for table/itable/ntable
45 # Revision 1.7 1999/02/28 00:03:56 ivan
46 # removed misleading comments
48 # Revision 1.6 1999/02/09 09:22:58 ivan
51 # Revision 1.5 1999/01/19 05:14:16 ivan
52 # for mod_perl: no more top-level my() variables; use vars instead
53 # also the last s/create/new/;
55 # Revision 1.4 1999/01/18 09:41:40 ivan
56 # all $cgi->header calls now include ( '-expires' => 'now' ) for mod_perl
59 # Revision 1.3 1998/12/17 09:41:11 ivan
60 # s/CGI::(Base|Request)/CGI.pm/;
64 use vars qw( $conf $cgi $beginning $ending );
66 use CGI::Carp qw(fatalsToBrowser);
67 use FS::UID qw(cgisuidsetup);
68 use FS::CGI qw(popurl idiot header table);
69 use FS::Record qw(qsearch qsearchs);
77 $cgi->param('beginning') =~ /^([ 0-9\-\/]{0,10})$/;
80 $cgi->param('ending') =~ /^([ 0-9\-\/]{0,10})$/;
83 print $cgi->header( '-expires' => '-2m' ),
84 header('In House Credit Report Results');
86 open (REPORT, "/usr/bin/freeside-credit-report -v -s $beginning -d $ending freeside |");
94 print '</BODY></HTML>';