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

📄 form.html.tmpl

📁 buzilla软件
💻 TMPL
📖 第 1 页 / 共 4 页
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1205773174',        'name' => 'search/form.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<script type=\"text/javascript\">\n\nvar first_load = true;         ";    $output .=  "\nvar last_sel = new Array();    ";    $output .=  "\n";    #line 34 "template\en\default\search\form.html.tmpl"    if ($stash->get(['Param', [ 'useclassification' ]])) {    $output .=  "\nvar useclassification = true;\nvar prods = new Array();";    }    else {    $output .=  "\nvar useclassification = false;";    }        $output .=  "\nvar cpts = new Array();\nvar vers = new Array();";    #line 39 "template\en\default\search\form.html.tmpl"    if ($stash->get(['Param', [ 'usetargetmilestone' ]])) {    $output .=  "\nvar tms = new Array();";    }        $output .=  "\n\n";    $output .=  "\n";    #line 43 "template\en\default\search\form.html.tmpl"    $stash->set('nclass', 0);        #line 54 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('classification');                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  prods[";    #line 45 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get('nclass');                &$_tt_filter($output);    };        $output .=  "] = [";    #line 46 "template\en\default\search\form.html.tmpl"    $stash->set('sep', '');        #line 52 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['user', 0, 'get_selectable_products', [ $stash->get(['c', 0, 'id', 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->{'item'} = $_tt_value;    #line 51 "template\en\default\search\form.html.tmpl"    if ($stash->get(['item', 0, 'components', 0, 'size', 0])) {    #line 49 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get('sep');                &$_tt_filter($output);    };        $output .=  "'";    #line 49 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get(['item', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "'";    #line 50 "template\en\default\search\form.html.tmpl"    $stash->set('sep', ',');        }    ;                ($_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 .=  " ];";    #line 53 "template\en\default\search\form.html.tmpl"    $stash->set('nclass', $stash->get('nclass') + 1);    ;                ($_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";    $output .=  "\n";    #line 59 "template\en\default\search\form.html.tmpl"    $stash->set('n', 0);        #line 74 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('product');                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->{'p'} = $_tt_value;    #line 61 "template\en\default\search\form.html.tmpl"    if (! $stash->get(['p', 0, 'components', 0, 'size', 0])) {    ($_tt_value, $_tt_error) = $_tt_list->get_next();    next LOOP;        }        #line 64 "template\en\default\search\form.html.tmpl"    if ($stash->get(['Param', [ 'useclassification' ]])) {    $output .=  "\n  prods['";    #line 63 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get(['p', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "'] = ";    #line 63 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get('n');    }        $output .=  "\n  cpts[";    #line 65 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get('n');    $output .=  "] = [";    #line 66 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['p', 0, 'components', 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->{'item'} = $_tt_value;    $output .=  "'";    #line 66 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get(['item', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "'";    #line 66 "template\en\default\search\form.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  ', ';    }    ;                ($_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  vers[";    #line 67 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get('n');    $output .=  "] = [";    #line 68 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['p', 0, 'versions', 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->{'item'} = $_tt_value;    $output .=  "'";    #line 68 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get(['item', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "'";    #line 68 "template\en\default\search\form.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  ', ';    }    ;                ($_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 .=  " ];";    #line 72 "template\en\default\search\form.html.tmpl"    if ($stash->get(['Param', [ 'usetargetmilestone' ]])) {    $output .=  "\n  tms[";    #line 70 "template\en\default\search\form.html.tmpl"    $output .=  $stash->get('n');    $output .=  "]  = [";    #line 71 "template\en\default\search\form.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['p', 0, 'milestones', 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->{'item'} = $_tt_value;    $output .=  "'";    #line 71 "template\en\default\search\form.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('js')                  || $context->throw($context->error);        $output .=  $stash->get(['item', 0, 'name', 0]);                &$_tt_filter($output);    };        $output .=  "'";    #line 71 "template\en\default\search\form.html.tmpl"    if (!($stash->get(['loop', 0, 'last', 0]))) {    $output .=  ', ';    }    ;                ($_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 .=  " ];";    }        #line 73 "template\en\default\search\form.html.tmpl"    $stash->set('n', $stash->get('n') + 1);    ;                ($_tt_value, $_tt_error) = $_tt_list->get_next();

⌨️ 快捷键说明

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