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

📄 select.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1160857612',        'name' => 'admin/classifications/select.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";    #line 22 "template\en\default\admin\classifications\select.html.tmpl"    $output .=  $context->process('global/header.html.tmpl', { 'title' => 'Select classification' });    $output .=  "\n\n<table border=1 cellpadding=4 cellspacing=0>\n  <tr bgcolor=\"#6666ff\">\n    <th align=\"left\">Edit Classification ...</th>\n    <th align=\"left\">Description</th>\n    <th align=\"left\">Sortkey</th>\n    <th align=\"left\">Products</th>\n    <th align=\"left\">Action</th>\n  </tr>\n";    #line 59 "template\en\default\admin\classifications\select.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('classifications');                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->{'cl'} = $_tt_value;    $output .=  "\n    <tr>\n      <td valign=\"top\"><a href=\"editclassifications.cgi?action=edit&amp;classification=";    #line 37 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\"><b>";    #line 37 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "</b></a></td>\n      <td valign=\"top\"> ";    #line 43 "template\en\default\admin\classifications\select.html.tmpl"    if ($stash->get(['cl', 0, 'description', 0])) {    #line 40 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html_light')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'description', 0]);                &$_tt_filter($output);    };        }    else {    $output .=  "\n        <font color=\"red\">none</font>";    }        $output .=  "\n      </td>\n      <td valign=\"top\">";    #line 45 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'sortkey', 0]);                &$_tt_filter($output);    };        $output .=  "</td>";    #line 50 "template\en\default\admin\classifications\select.html.tmpl"    if (($stash->get(['cl', 0, 'id', 0]) eq 1)) {    $output .=  "\n        <td valign=\"top\">";    #line 47 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'product_count', 0]);                &$_tt_filter($output);    };        $output .=  "</td>";    }    else {    $output .=  "\n        <td valign=\"top\"><a href=\"editclassifications.cgi?action=reclassify&amp;classification=";    #line 49 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\">reclassify (";    #line 49 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'product_count', 0]);                &$_tt_filter($output);    };        $output .=  ")</a></td>";    }        $output .=  "\n\n      ";    #line 57 "template\en\default\admin\classifications\select.html.tmpl"    if (($stash->get(['cl', 0, 'id', 0]) eq 1)) {    $output .=  "\n        <td valign=\"top\">&nbsp;</td>";    }    else {    $output .=  "\n        <td valign=\"top\"><a href=\"editclassifications.cgi?action=del&amp;classification=";    #line 56 "template\en\default\admin\classifications\select.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('url_quote')                  || $context->throw($context->error);        $output .=  $stash->get(['cl', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "\">delete</a></td>";    }        $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\n  <tr>\n    <td valign=\"top\" colspan=4>Add a new classification</td>\n    <td valign=\"top\" align=\"center\"><a href=\"editclassifications.cgi?action=add\">Add</a></td>\n  </tr>\n</table>\n";    #line 67 "template\en\default\admin\classifications\select.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  " \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 + -