default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / elements / order_pkg_link.html
1 <& /elements/popup_link-cust_main.html,
2           'action'        => $p. 'misc/order_pkg.html',
3           'label'         => $opt{'label'}       || emt('Order new package'),
4           'actionlabel'   => $opt{'actionlabel'} || emt('Order new package'),
5           'color'         => '#333399',
6           'cust_main'     => $opt{cust_main},
7           'prospect_main' => $opt{prospect_main},
8           'custnum'       => $opt{custnum},
9           'prospectnum'   => $opt{prospectnum},
10           'closetext'     => emt('Close'),
11           'width'         => 960, #763,
12           'height'        => $height,
13           %optional,
14 &>
15 <%init>
16
17 my(%opt) = @_;
18
19 my %optional =
20   map { $_ => $opt{$_} }
21     grep $opt{$_},
22       qw( lock_pkgpart lock_locationnum qualnum quotationnum svcpart );
23
24 my $height = $opt{'lock_locationnum'} ? 470 : 740;
25
26 </%init>