default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / misc / bulk_change_pkg.cgi
1 <% include('/elements/header-popup.html', "Change Packages") %>
2
3 % if ( $cgi->param('error') ) {
4   <FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT>
5   <BR><BR>
6 % }
7
8 <FORM ACTION="<% $p %>misc/process/bulk_change_pkg.cgi" METHOD=POST>
9
10 <& /elements/cust_pkg-search-form_input.html, $cgi &>
11
12 <% ntable('#cccccc') %>
13
14   <TR>
15     <TD>New package: </TD>
16     <TD><% include('/elements/select-table.html',
17                      'table'          => 'part_pkg',
18                      'name_col'       => 'pkg',
19                      'empty_label'    => 'Select package',
20                      'label_callback' => sub { $_[0]->pkg_comment },
21                      'element_name'   => 'new_pkgpart',
22                      'curr_value'     => ( $cgi->param('error')
23                                            ? scalar($cgi->param('new_pkgpart'))
24                                            : ''
25                                          ),
26                   )
27         %>
28     </TD>
29   </TR>
30
31 </TABLE>
32
33 <BR>
34 <INPUT TYPE="submit" VALUE="Change packages">
35
36 </FORM>
37 </BODY>
38 </HTML>
39
40 <%init>
41
42 die "access denied"
43   unless $FS::CurrentUser::CurrentUser->access_right('Bulk change customer packages');
44
45 </%init>