From f411189684b0ca7cc1b4b3e9be1895607245b595 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 26 Sep 2008 03:54:25 +0000 Subject: push out event triggered suspensions --- httemplate/misc/delay_susp_pkg.html | 73 +++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100755 httemplate/misc/delay_susp_pkg.html (limited to 'httemplate/misc/delay_susp_pkg.html') diff --git a/httemplate/misc/delay_susp_pkg.html b/httemplate/misc/delay_susp_pkg.html new file mode 100755 index 000000000..0755309db --- /dev/null +++ b/httemplate/misc/delay_susp_pkg.html @@ -0,0 +1,73 @@ +%# if ( $link eq 'popup' ) { + <% include('/elements/header-popup.html', $title ) %> +%# } else { +%# <% include("/elements/header.html", $title, '') %> +%# } + + + + + + +<% include('/elements/error.html') %> + +
+ + +

+<% "Delay automatic suspension of $pkgnum: " .$part_pkg->pkg. ' - ' .$part_pkg->comment %> +<% ntable("#cccccc", 2) %> + + + Delay until + + +
m/d/y + + + + + + +
+ + +
+ + + +<%init> + +my $date = time2str("%m/%d/%Y", time); + +my($pkgnum); +if ( $cgi->param('error') ) { + $pkgnum = $cgi->param('pkgnum'); + $date = $cgi->param('date'); +} elsif ( $cgi->param('pkgnum') =~ /^(\d+)$/ ) { + $pkgnum = $1; +} else { + die "illegal query ". $cgi->keywords; +} + +my $submit = 'Delay Suspension'; +my $right = 'Delay suspension events'; + +my $curuser = $FS::CurrentUser::CurrentUser; +die "access denied" unless $curuser->access_right($right); + +my $title = 'Delay Suspension of Package'; + +my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum}) + or die "Unknown pkgnum: $pkgnum"; + +my $part_pkg = $cust_pkg->part_pkg; + + -- cgit v1.2.1