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

📄 table.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1160857612',        'name' => 'admin/table.html.tmpl',    },    BLOCK => sub {        my $context = shift || die "template sub called without context\n";        my $stash   = $context->stash;        my $output  = '';        my $_tt_error;                eval { BLOCK: {    $output .=  "\n";    $output .=  "\n\n";    $output .=  "\n";    #line 70 "template\en\default\admin\table.html.tmpl"    $output .=  $context->process('global/field-descs.none.tmpl');    $output .=  "\n\n";    $output .=  "\n\n<table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">\n  <tr bgcolor=\"#6666FF\">";    #line 81 "template\en\default\admin\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('columns');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'c'} = $_tt_value;    $output .=  "\n      ";    $output .=  "\n      <th align=\"";    #line 78 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  ($stash->get(['c', 0, 'align', 0]) || 'left');                &$_tt_filter($output);    };        $output .=  "\">";    #line 79 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['c', 0, 'heading', 0]);                &$_tt_filter($output);    };        $output .=  "\n      </th>";;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n  </tr>\n\n\n";    $output .=  "\n";    #line 174 "template\en\default\admin\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('data');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'row'} = $_tt_value;    $output .=  "\n\n  <tr>";    #line 172 "template\en\default\admin\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('columns');                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'c'} = $_tt_value;    $output .=  "\n\n      ";    #line 93 "template\en\default\admin\table.html.tmpl"    $stash->set('contentlink', $stash->get(['c', 0, 'contentlink', 0]));    $stash->set('content', $stash->get(['c', 0, 'content', 0]));    $stash->set('content_use_field', $stash->get(['c', 0, 'content_use_field', 0]));    $stash->set('align', $stash->get(['c', 0, 'align', 0]));    $stash->set('class', $stash->get(['c', 0, 'class', 0]));    $stash->set('allow_html_content', $stash->get(['c', 0, 'allow_html_content', 0]));    $stash->set('yesno_field', $stash->get(['c', 0, 'yesno_field', 0]));        $output .=  "\n\n      ";    #line 126 "template\en\default\admin\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['overrides', 0, $stash->get(['c', 0, 'name', 0]), 0]);                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'override'} = $_tt_value;    $output .=  "\n\n        ";    #line 125 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'match_value', 0]) eq $stash->get(['row', 0, $stash->get(['override', 0, 'match_field', 0]), 0])) {    $output .=  "\n";    #line 108 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_contentlink', 0])) {    $stash->set('contentlink', $stash->get(['override', 0, 'contentlink', 0]));        }        #line 110 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_content', 0])) {    $stash->set('content', $stash->get(['override', 0, 'content', 0]));        }        #line 112 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_content_use_field', 0])) {    $stash->set('content_use_field', $stash->get(['override', 0, 'content_use_field', 0]));        }        #line 114 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_align', 0])) {    $stash->set('align', $stash->get(['override', 0, 'align', 0]));        }        #line 116 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_class', 0])) {    $stash->set('class', $stash->get(['override', 0, 'class', 0]));        }        #line 118 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_allow_html_content', 0])) {    $stash->set('allow_html_content', $stash->get(['override', 0, 'allow_html_content', 0]));        }        #line 120 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['override', 0, 'override_yesno_field', 0])) {    $stash->set('yesno_field', $stash->get(['override', 0, 'yesno_field', 0]));        }        $output .=  "\n";    #line 123 "template\en\default\admin\table.html.tmpl"    last LOOP;    $output .=  "\n";    }    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n\n      <td ";    #line 128 "template\en\default\admin\table.html.tmpl"    if ($stash->get('align')) {    $output .=  " align=\"";    #line 128 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('align');                &$_tt_filter($output);    };        $output .=  "\" ";    }        #line 129 "template\en\default\admin\table.html.tmpl"    if ($stash->get('class')) {    $output .=  " class=\"";    #line 129 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('class');                &$_tt_filter($output);    };        $output .=  "\" ";    }        $output .=  ">\n";    #line 144 "template\en\default\admin\table.html.tmpl"    if ($stash->get('contentlink')) {    #line 132 "template\en\default\admin\table.html.tmpl"    $stash->set('link_uri', $stash->get('contentlink'));        #line 142 "template\en\default\admin\table.html.tmpl"        # WHILE    do {        my $_tt_failsafe = 1000000;    LOOP:        while (--$_tt_failsafe && ($stash->get(['link_uri', 0, 'search', [ '%%(.+?)%%' ]]))) {    #line 141 "template\en\default\admin\table.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['link_uri', 0, 'match', [ '%%(.+?)%%' ]]);                unless (UNIVERSAL::isa($_tt_list, 'Template::Iterator')) {            $_tt_list = Template::Config->iterator($_tt_list)                || die $Template::Config::ERROR, "\n";         }            ($_tt_value, $_tt_error) = $_tt_list->get_first();        eval { $_tt_oldloop = $stash->get('loop') };        $stash->set('loop', $_tt_list);        eval {    LOOP:   while (! $_tt_error) {                $stash->{'m'} = $_tt_value;    #line 139 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['row', 0, $stash->get('m'), 0])) {    #line 136 "template\en\default\admin\table.html.tmpl"        # CAPTURE    $stash->set('replacement_value', do {        my $output = '';        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        #line 136 "template\en\default\admin\table.html.tmpl"    $output .=  $stash->get(['row', 0, $stash->get('m'), 0]);                &$_tt_filter($output);    };            $output;    });        }    else {    #line 138 "template\en\default\admin\table.html.tmpl"    $stash->set('replacement_value', '');        }        #line 0 "template\en\default\admin\table.html.tmpl"    $stash->set('link_uri', $stash->get(['link_uri', 0, 'replace', [ ("%%" . $stash->get('m') . "%%"), $stash->get('replacement_value') ]]));    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };            }        die "WHILE loop terminated (> 1000000 iterations)\n"            unless $_tt_failsafe;    };        $output .=  "\n          <a href=\"";    #line 143 "template\en\default\admin\table.html.tmpl"    $output .=  $stash->get('link_uri');    $output .=  "\">";    }        $output .=  "\n        ";    #line 165 "template\en\default\admin\table.html.tmpl"    if ($stash->get('content_use_field')) {    #line 147 "template\en\default\admin\table.html.tmpl"    $stash->set('colname', $stash->get(['row', 0, $stash->get(['c', 0, 'name', 0]), 0]));        #line 148 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['field_descs', 0, $stash->get('colname'), 0]);                &$_tt_filter($output);    };        }    elsif ($stash->get('content')) {    #line 150 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html_light')                  || $context->throw($context->error);        $output .=  $stash->get('content');                &$_tt_filter($output);    };        }    else {    #line 164 "template\en\default\admin\table.html.tmpl"    if ($stash->get('yesno_field')) {    #line 157 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['row', 0, $stash->get(['c', 0, 'name', 0]), 0])) {    $output .=  "\n              Yes";    }    else {    $output .=  "\n              No";    }        }    else {    #line 163 "template\en\default\admin\table.html.tmpl"    if ($stash->get('allow_html_content')) {    #line 160 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html_light')                  || $context->throw($context->error);        $output .=  $stash->get(['row', 0, $stash->get(['c', 0, 'name', 0]), 0]);                &$_tt_filter($output);    };        }    else {    #line 162 "template\en\default\admin\table.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['row', 0, $stash->get(['c', 0, 'name', 0]), 0]);                &$_tt_filter($output);    };        }        }        }        $output .=  "\n        ";    #line 169 "template\en\default\admin\table.html.tmpl"    if ($stash->get('contentlink')) {    $output .=  "\n          </a>";    }        $output .=  "\n         \n      </td>";;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n  </tr>";;                ($_tt_value, $_tt_error) = $_tt_list->get_next();            }        };        $stash->set('loop', $_tt_oldloop);        die $@ if $@;        $_tt_error = 0 if $_tt_error && $_tt_error eq Template::Constants::STATUS_DONE;        die $_tt_error if $_tt_error;    };        $output .=  "\n";    #line 178 "template\en\default\admin\table.html.tmpl"    if ($stash->get(['data', 0, 'size', 0]) eq 0) {    $output .=  "\n  <tr><td colspan=\"";    #line 177 "template\en\default\admin\table.html.tmpl"    $output .=  $stash->get(['columns', 0, 'size', 0]);    $output .=  "\" align=\"center\"><i>&lt;none&gt;</i></td></tr>";    }        $output .=  "\n\n\n";    $output .=  "\n\n</table>\n";        } };        if ($@) {            $_tt_error = $context->catch($@, \$output);            die $_tt_error unless $_tt_error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {    },});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -