📄 chart.html.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1074451170', 'name' => 'reports/chart.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"; #line 26 "template\en\default\reports\chart.html.tmpl" $stash->set('width', 600, 1); $stash->set('height', 350, 1); $output .= "\n"; #line 31 "template\en\default\reports\chart.html.tmpl" $output .= $context->process('global/header.html.tmpl', { 'title' => 'Chart', 'h3' => $stash->get(['time2str', [ '%Y-%m-%d %H:%M:%S', $stash->get('time') ]]) }); $output .= "\n\n<div align=\"center\">\n"; #line 44 "template\en\default\reports\chart.html.tmpl" # CAPTURE $stash->set('imageurl', do { my $output = ''; $output .= "chart.cgi?"; #line 41 "template\en\default\reports\chart.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('imagebase'); &$filter($output); }; $output .= "&ctype=png&action=plot&width="; #line 43 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('width'); $output .= "&height="; #line 43 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('height'); $output; }); $output .= "\n\n <img alt=\"Graphical report results\" src=\""; #line 46 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('imageurl'); $output .= "\"\n width=\""; #line 47 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('width'); $output .= "\" height=\""; #line 47 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('height'); $output .= "\">\n <p>"; #line 54 "template\en\default\reports\chart.html.tmpl" # CAPTURE $stash->set('sizeurl', do { my $output = ''; $output .= "chart.cgi?"; #line 52 "template\en\default\reports\chart.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('imagebase'); &$filter($output); }; $output .= "&action=wrap"; $output; }); $output .= "\n <a href=\""; #line 55 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('sizeurl'); $output .= "&width="; #line 55 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('width'); $output .= "&height="; #line 57 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('height') + 100; $output .= "\">Taller</a><br>\n <a href=\""; #line 58 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('sizeurl'); $output .= "&width="; #line 58 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('width') - 100; $output .= "&height="; #line 60 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('height'); $output .= "\">Thinner</a> * \n <a href=\""; #line 61 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('sizeurl'); $output .= "&width="; #line 61 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('width') + 100; $output .= "&height="; #line 63 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('height'); $output .= "\">Fatter</a> <br>\n <a href=\""; #line 64 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('sizeurl'); $output .= "&width="; #line 64 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('width'); $output .= "&height="; #line 66 "template\en\default\reports\chart.html.tmpl" $output .= $stash->get('height') - 100; $output .= "\">Shorter</a><br>\n </p>\n \n <p>\n <a href=\"chart.cgi?"; #line 72 "template\en\default\reports\chart.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('imagebase'); &$filter($output); }; $output .= "&ctype=csv&action=plot\">CSV</a> |\n <a href=\"chart.cgi?"; #line 73 "template\en\default\reports\chart.html.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('html') || $context->throw($context->error); $output .= $stash->get('imagebase'); &$filter($output); }; $output .= "&action=assemble\">Edit \n this chart</a>\n </p>\n \n</div>\n"; #line 80 "template\en\default\reports\chart.html.tmpl" $output .= $context->process('global/footer.html.tmpl'); $output .= "\n"; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -