diff options
author | Mark Wells <mark@freeside.biz> | 2014-02-28 17:22:09 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-02-28 17:22:09 -0800 |
commit | c2e6d527477334107535c74b44e238cc656f3449 (patch) | |
tree | 9ec3b6c68e32f0b6cbcdf78a8c29a2a50809d066 /httemplate/search/477.html | |
parent | a6aab02211b2efd3790f7c2b55365dc7bc3294ca (diff) |
477 report as of a specific date, #24980
Diffstat (limited to 'httemplate/search/477.html')
-rwxr-xr-x | httemplate/search/477.html | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/httemplate/search/477.html b/httemplate/search/477.html index eed3df946..3e7888c40 100755 --- a/httemplate/search/477.html +++ b/httemplate/search/477.html @@ -49,18 +49,22 @@ <& "477part${part}.html", 'tech_code' => $tech, 'url' => $url, - 'type' => $type + 'type' => $type, + 'date' => $date, &> % if ( $type eq 'xml' ) { </<% 'Part_IA_'. chr(65 + $tech) %>> % } % } -% } else { +% } else { # not part IA % if ( $type eq 'xml' ) { <<% 'Part_'. $part %>> % } % my $url = &{$url_mangler}($part); -<& "477part${part}.html", 'url' => $url &> +<& "477part${part}.html", + 'url' => $url, + 'date' => $date, +&> % if ( $type eq 'xml' ) { </<% 'Part_'. $part %>> % } @@ -80,6 +84,9 @@ my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" unless $curuser->access_right('List packages'); +my $date = $cgi->param('date') ? parse_datetime($cgi->param('date')) + : time; + my $state = uc($cgi->param('state')); $state =~ /^[A-Z]{2}$/ or die "illegal state: $state"; |