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

📄 list.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    DEFBLOCKS => {        'display_flag_types' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $_tt_error;                        eval { BLOCK: {        $output .=  "\n  <table id=\"flag_types_";        #line 108 "template\en\default\admin\flag-type\list.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('types_id');                        &$_tt_filter($output);        };                $output .=  "\" cellspacing=\"0\" cellpadding=\"4\" border=\"1\">\n\n    <tr>\n      <th>Edit name ...</th>\n      <th>Description</th>\n      <th>Sortkey</th>\n      <th>Properties</th>\n      <th>Grant group</th>\n      <th>Request group</th>\n      <th>Actions</th>\n    </tr>\n";        #line 145 "template\en\default\admin\flag-type\list.html.tmpl"                # FOREACH         do {            my ($_tt_value, $_tt_error, $_tt_oldloop);            my $_tt_list = $stash->get('types');                        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->{'type'} = $_tt_value;        $output .=  "\n\n      <tr class=\"";        #line 122 "template\en\default\admin\flag-type\list.html.tmpl"        if ($stash->get(['type', 0, 'is_active', 0])) {        $output .=  "active";        }        else {        $output .=  "inactive";        }                $output .=  "\">\n        <td><a href=\"editflagtypes.cgi?action=edit&amp;id=";        #line 123 "template\en\default\admin\flag-type\list.html.tmpl"        $output .=  $stash->get(['type', 0, 'id', 0]);        $output .=  "\">";        #line 123 "template\en\default\admin\flag-type\list.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('no_break')                      || $context->throw($context->error);                        # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['type', 0, 'name', 0]);                        &$_tt_filter($output);        };                                &$_tt_filter($output);        };                $output .=  "</a></td>\n        <td>";        #line 124 "template\en\default\admin\flag-type\list.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['type', 0, 'description', 0]);                        &$_tt_filter($output);        };                $output .=  "</td>\n        <td align=\"right\">";        #line 125 "template\en\default\admin\flag-type\list.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['type', 0, 'sortkey', 0]);                        &$_tt_filter($output);        };                $output .=  "</td>\n        <td>";        #line 129 "template\en\default\admin\flag-type\list.html.tmpl"        if ($stash->get(['type', 0, 'is_requestable', 0])) {        $output .=  "\n            <span class=\"requestable\">requestable</span>";        }                #line 132 "template\en\default\admin\flag-type\list.html.tmpl"        if ($stash->get(['type', 0, 'is_requestable', 0]) && $stash->get(['type', 0, 'is_requesteeble', 0])) {        $output .=  "\n            <span class=\"requesteeble\">(specifically)</span>";        }                #line 135 "template\en\default\admin\flag-type\list.html.tmpl"        if ($stash->get(['type', 0, 'is_multiplicable', 0])) {        $output .=  "\n            <span class=\"multiplicable\">multiplicable</span>";        }                $output .=  "\n        </td>\n        <td>";        #line 137 "template\en\default\admin\flag-type\list.html.tmpl"        if ($stash->get(['type', 0, 'grant_group', 0])) {        #line 137 "template\en\default\admin\flag-type\list.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['type', 0, 'grant_group', 0, 'name', 0]);                        &$_tt_filter($output);        };                }                $output .=  "</td>\n        <td>";        #line 138 "template\en\default\admin\flag-type\list.html.tmpl"        if ($stash->get(['type', 0, 'request_group', 0])) {        #line 138 "template\en\default\admin\flag-type\list.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $_tt_filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['type', 0, 'request_group', 0, 'name', 0]);                        &$_tt_filter($output);        };                }                $output .=  "</td>\n        <td>\n          <a href=\"editflagtypes.cgi?action=copy&amp;id=";        #line 140 "template\en\default\admin\flag-type\list.html.tmpl"        $output .=  $stash->get(['type', 0, 'id', 0]);        $output .=  "\">Copy</a>\n          | <a href=\"editflagtypes.cgi?action=confirmdelete&amp;id=";        #line 141 "template\en\default\admin\flag-type\list.html.tmpl"        $output .=  $stash->get(['type', 0, 'id', 0]);        $output .=  "\">Delete</a>\n        </td>\n      </tr>\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  </table>";            } };            if ($@) {                $_tt_error = $context->catch($@, \$output);                die $_tt_error unless $_tt_error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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