1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  | 
<% include('/elements/header-popup.html', "Suspend Packages") %>
% if ( $cgi->param('error') ) {
  <FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT>
  <BR><BR>
% }
<FORM ACTION="<% $p %>misc/process/bulk_suspend_pkg.cgi" METHOD=POST>
<& /elements/cust_pkg-search-form_input.html, $cgi &>
<% ntable('#cccccc') %>
% my $date_init = 0;
  <& /elements/tr-input-date-field.html, {
      'name'    => 'suspend_date',
      'value'   => $date,
      'label'   => mt("Suspend package on"),
      'format'  => $date_format,
  } &>
%   $date_init = 1;
  <& /elements/tr-select-reason.html,
       field          => 'suspend_reasonnum',
       reason_class   => 'S',
  &>
% if ( $FS::CurrentUser::CurrentUser->access_right('Unsuspend customer package')) {
  <& /elements/tr-input-date-field.html, {
      'name'    => 'suspend_resume_date',
      'value'   => '',
      'label'   => mt('Unsuspend on'),
      'format'  => $date_format,
      'noinit'  => $date_init,
  } &>
% }
</TABLE>
<BR>
<INPUT TYPE="submit" VALUE="Suspend Packages">
</FORM>
</BODY>
</HTML>
<%init>
die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Bulk change customer packages');
#use Date::Parse qw(str2time);
#<table style="background-color: #cccccc; border-spacing: 2; width: 100%">
my $conf = new FS::Conf;
my $date_format = $conf->config('date_format') || '%m/%d/%Y';
my $date = time;
</%init>
  |