#------------------------------------------------------------------------ # Compiled template generated by the Template Toolkit version 2.09 #------------------------------------------------------------------------ Template::Document->new({ METADATA => { 'modtime' => '1051217126', 'name' => 'global/choose-product.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\n"; $output .= "\n"; $stash->set('title', 'Choose a Product', 1); $output .= $context->process('global/header.html.tmpl'); $output .= "\n\n\n"; # FOREACH do { my ($value, $error, $oldloop); my $list = $stash->get(['proddesc', 0, 'keys', 0, 'sort', 0]); 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->{'p'} = $value; $output .= "\n \n \n"; if ($stash->get(['proddesc', 0, $stash->get('p'), 0])) { $output .= "\n "; } $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 \n
\n get('target'); $output .= "?product="; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('p'); &$filter($output); }; if ($stash->get('format')) { $output .= "&format="; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('url_quote') || $context->throw($context->error); $output .= $stash->get('format'); &$filter($output); }; } $output .= "\">"; # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('p'); &$filter($output); }; $output .= ":\n  "; $output .= $stash->get(['proddesc', 0, $stash->get('p'), 0]); $output .= "
\n"; $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { }, });