1 %# if ( $link eq 'popup' ) {
2 <% include('/elements/header-popup.html', $title ) %>
4 %# <% include("/elements/header.html", $title, '') %>
7 <% include('/elements/init_calendar.html') %>
9 <% include('/elements/error.html') %>
11 <FORM NAME="ds_popup" ACTION="<% popurl(1) %>process/delay_susp_pkg.html" METHOD=POST>
12 <INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
15 <% "Delay automatic suspension of " .$part_pkg->pkg_comment %>
16 <% ntable("#cccccc", 2) %>
20 <TD><INPUT TYPE="text" NAME="date" ID="dun_date" VALUE="<% $date |h %>">
21 <IMG SRC="<% $p %>images/calendar.png" ID="dun_button" STYLE="cursor:pointer" TITLE="Select date">
25 <SCRIPT TYPE="text/javascript">
27 inputField: "dun_date",
28 ifFormat: "<% $date_format %>",
37 <INPUT TYPE="submit" NAME="submit" VALUE="<% $submit %>">
45 my $conf = new FS::Conf;
46 my $date_format = $conf->config('date_format') || '%m/%d/%Y';
48 my $date = time2str($date_format, time);
51 if ( $cgi->param('error') ) {
52 $pkgnum = $cgi->param('pkgnum');
53 $date = $cgi->param('date');
54 } elsif ( $cgi->param('pkgnum') =~ /^(\d+)$/ ) {
57 die "illegal query ". $cgi->keywords;
60 my $submit = 'Delay Suspension';
61 my $right = 'Delay suspension events';
63 my $curuser = $FS::CurrentUser::CurrentUser;
64 die "access denied" unless $curuser->access_right($right);
66 my $title = 'Delay Suspension of Package';
68 my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum})
69 or die "Unknown pkgnum: $pkgnum";
71 my $part_pkg = $cust_pkg->part_pkg;