#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1051217129', 'name' => 'list/change-columns.html.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n"; $output .= $context->process('global/header.html.tmpl', { 'title' => 'Change Columns' }); $output .= "\n\nCheck which columns you wish to appear on the list, and then click\non submit. (Cookies are required.)\n

\n

\nfilter('html') || $context->throw($context->error); $output .= $stash->get('buffer'); &$filter($output); }; $output .= "\">"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get('masterlist'); unless (UNIVERSAL::isa($list, 'Template::Iterator')) { $list = Template::Config->iterator($list) || die $Template::Config::ERROR, "\n"; } ($value, $error) = $list->get_first(); eval { $oldloop = $stash->get('loop') }; $stash->set('loop', $list); eval { LOOP: while (! $error) { $stash->{'column'} = $value; $output .= "\n get('column'); $output .= "\" name=\"column_"; $output .= $stash->get('column'); $output .= "\" "; if ($stash->get(['lsearch', [ $stash->get('collist'), $stash->get('column') ]]) ne -1) { $output .= 'CHECKED'; } $output .= ">\n
";; ($value, $error) = $list->get_next(); } }; $stash->set('loop', $oldloop); die $@ if $@; $error = 0 if $error && $error eq Template::Constants::STATUS_DONE; die $error if $error; }; $output .= "\n

\nget('splitheader')) { $output .= 'CHECKED'; } $output .= ">\n
\nget('splitheader')) { $output .= 'CHECKED'; } $output .= ">\n\n

\n\n

\n
\nfilter('html') || $context->throw($context->error); $output .= $stash->get('buffer'); &$filter($output); }; $output .= "\">\n\n\n
\n

\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });