⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 header.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1113669682',        'name' => 'global/header.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 41 "template\en\default\global\header.html.tmpl"    if ($stash->get('message')) {    #line 41 "template\en\default\global\header.html.tmpl"    $output .=  $context->process('global/messages.html.tmpl');    }        $output .=  "\n";    #line 44 "template\en\default\global\header.html.tmpl"    $stash->set('h2', '', 1);    $stash->set('h3', '', 1);    $stash->set('bgcolor', '#ffffff', 1);    $stash->set('onload', '', 1);    $stash->set('bodyattrs', '', 1);        $output .=  "\n\n";    #line 58 "template\en\default\global\header.html.tmpl"    if (! $stash->get(['h1', 0, 'defined', 0])) {    #line 58 "template\en\default\global\header.html.tmpl"    $stash->set('h1', $stash->get('title'));        }        $output .=  "\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n  <head>\n    <title>";    #line 63 "template\en\default\global\header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('title');                &$filter($output);    };        $output .=  "</title>\n\n";    $output .=  "\n";    #line 68 "template\en\default\global\header.html.tmpl"    $output .=  $context->process('global/site-navigation.html.tmpl');    $output .=  "\n";    #line 77 "template\en\default\global\header.html.tmpl"    if ($stash->get('javascript')) {    $output .=  "\n      <script type=\"text/javascript\" language=\"JavaScript\">";    #line 74 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('javascript');    $output .=  "\n      </script>";    }        $output .=  "\n    ";    #line 83 "template\en\default\global\header.html.tmpl"    if ($stash->get('javascript_urls')) {    #line 83 "template\en\default\global\header.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('javascript_urls');                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->{'javascript_url'} = $value;    $output .=  "\n        <script src=\"";    #line 81 "template\en\default\global\header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('javascript_url');                &$filter($output);    };        $output .=  "\" type=\"text/javascript\" language=\"JavaScript\"></script>";;                ($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    ";    #line 85 "template\en\default\global\header.html.tmpl"    $output .=  $context->include('global/help-header.html.tmpl');    $output .=  "\n\n    <link href=\"css/global.css\" rel=\"stylesheet\" type=\"text/css\">\n";    #line 96 "template\en\default\global\header.html.tmpl"    if ($stash->get('style')) {    $output .=  "\n      <style type=\"text/css\">";    #line 93 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('style');    $output .=  "\n      </style>";    }        $output .=  "\n";    #line 102 "template\en\default\global\header.html.tmpl"    if ($stash->get('style_urls')) {    #line 102 "template\en\default\global\header.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('style_urls');                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->{'style_url'} = $value;    $output .=  "\n        <link href=\"";    #line 100 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('style_url');    $output .=  "\" rel=\"stylesheet\" type=\"text/css\">";;                ($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  </head>\n\n";    $output .=  "\n\n  <body bgcolor=\"";    #line 110 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('bgcolor');    $output .=  "\" onload=\"";    #line 110 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('onload');    $output .=  "\"\n        class=\"";    #line 111 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get(['Param', [ 'urlbase' ], 'replace', [ '^https?://', '' ], 'replace', [ '/$', '' ], 'replace', [ '[-~@:/.]+', '-' ]]);    #line 111 "template\en\default\global\header.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get('bodyclasses');                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->{'class'} = $value;    #line 111 "template\en\default\global\header.html.tmpl"    $output .=  ' ';    #line 111 "template\en\default\global\header.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('css_class_quote')                  || $context->throw($context->error);        $output .=  $stash->get('class');                &$filter($output);    };    ;                ($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 .=  "\"";    #line 113 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('bodyattrs');    $output .=  ">\n\n";    $output .=  "\n";    #line 120 "template\en\default\global\header.html.tmpl"    $output .=  $context->include('global/banner.html.tmpl');    $output .=  "\n";    #line 145 "template\en\default\global\header.html.tmpl"    if ($stash->get('h1') || $stash->get('h2')) {    $output .=  "\n    <table border=\"0\" cellspacing=\"0\" width=\"100%\">\n      <tr>\n        <td valign=\"top\" align=\"left\">\n          <table border=\"0\" cellpadding=\"0\" cellspacing=\"2\">\n            <tr>\n              <td valign=\"top\" align=\"left\" nowrap=\"nowrap\">\n                <font size=\"+1\"><b>";    #line 130 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('h1');    $output .=  "</b></font>\n              </td>\n            </tr>\n          </table>\n        </td>\n        <td valign=\"middle\" align=\"left\">&nbsp;</td>\n        <td valign=\"middle\" align=\"left\">";    #line 136 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('h2');    $output .=  "</td>";    #line 141 "template\en\default\global\header.html.tmpl"    if ($stash->get('h3')) {    $output .=  "\n          <td valign=\"middle\" align=\"right\">";    #line 139 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('h3');    $output .=  "</td>";    }        $output .=  "\n      </tr>\n    </table>";    }        $output .=  "\n";    #line 153 "template\en\default\global\header.html.tmpl"    if ($stash->get('message')) {    $output .=  "\n  <table width=\"100%\" cellspacing=\"0\" cellpadding=\"5\" border=\"1\"><tr><td>\n    <font color=\"green\">";    #line 150 "template\en\default\global\header.html.tmpl"    $output .=  $stash->get('message');    $output .=  "</font>\n  </td></tr></table>";    }        $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 + -