default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / view / cust_main / custom_content.html
1 % foreach my $item (@content) {
2 %
3 %   if ( $item =~ /^\s*$/ ) {
4       <BR>
5 %     next;
6 %   }
7 %
8 %   if ( $items{$item} ) {
9       <& "custom_content/$item.html", $cust_main &>
10 %   } else {
11       Unknown item <% $item |h %><BR>
12 %   }
13 % }
14 <%init>
15
16 my($cust_main) = @_;
17
18 my $conf = new FS::Conf;
19
20 my @content = $conf->config('cust_main-custom_content');
21
22 my %items = map { $_=>1 } qw(
23   small_custview
24   birthdate
25   spouse_birthdate
26   svc_acct
27   svc_phone
28   svc_hardware
29 );
30
31 </%init>