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

📄 confirm-user-match.html.tmpl

📁 bugzilla的安装文件
💻 TMPL
📖 第 1 页 / 共 2 页
字号:
    };        $output .=  "\"\n                     id=\"";    #line 124 "template\en\default\global\confirm-user-match.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['field', 0, 'key', 0]);                &$filter($output);    };        $output .=  "\"";    #line 132 "template\en\default\global\confirm-user-match.html.tmpl"    if ($stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0]) > 5) {    $output .=  "\n                       multiple=\"multiple\" size=\"5\">";    }    else {    $output .=  "\n                       multiple=\"multiple\" size=\"";    #line 130 "template\en\default\global\confirm-user-match.html.tmpl"    $output .=  $stash->get(['query', 0, 'value', 0, 'users', 0, 'size', 0]);    $output .=  "\">";    }        #line 138 "template\en\default\global\confirm-user-match.html.tmpl"        # FOREACH     do {        my ($value, $error, $oldloop);        my $list = $stash->get(['query', 0, 'value', 0, 'users', 0]);                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->{'match'} = $value;    $output .=  "\n                        <option value=\"";    #line 133 "template\en\default\global\confirm-user-match.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['match', 0, 'login', 0]);                &$filter($output);    };        $output .=  "\">";    #line 135 "template\en\default\global\confirm-user-match.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['match', 0, 'identity', 0]);                &$filter($output);    };        $output .=  "                        </option>";;                ($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                    </select>";    }        }    else {    $output .=  "\n                  matched\n                  <b>";    #line 143 "template\en\default\global\confirm-user-match.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['query', 0, 'value', 0, 'users', 0, 0, 0, 'identity', 0]);                &$filter($output);    };        $output .=  "</b>\n                  <br>";    }        }    else {    #line 154 "template\en\default\global\confirm-user-match.html.tmpl"    if (($stash->get(['query', 0, 'key', 0, 'length', 0]) < 3) && ! ($stash->get(['Param', [ 'emailsuffix' ]])) && ($stash->get(['Param', [ 'usermatchmode' ]]) eq 'search')) {    $output .=  "\n                  <font color=\"#FF0000\">was too short for substring match\n                  (minimum 3 characters)</font>";    }    else {    $output .=  "\n                  <font color=\"#FF0000\">did not match anything</font>";    }        }        $output .=  "\n            <p>";;                ($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      </td>\n    </tr>\n    <tr>\n      <td colspan=\"2\">\n        <hr width=\"100%\" size=\"1\">\n      </td>\n    </tr>";;                ($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  </table>\n\n</p>\n";    #line 185 "template\en\default\global\confirm-user-match.html.tmpl"    if ($stash->get('matchsuccess') eq 1) {    $output .=  "\n";    #line 176 "template\en\default\global\confirm-user-match.html.tmpl"    $output .=  $context->process('global/hidden-fields.html.tmpl', { 'exclude' => ('' . "^Bugzilla_(login|password)") });    $output .=  "\n\n  <p>\n    <input type=\"submit\" value=\"Continue\">\n  </p>\n\n  </form>\n";    }        $output .=  "\n";    #line 188 "template\en\default\global\confirm-user-match.html.tmpl"    $output .=  $context->process('global/footer.html.tmpl');    $output .=  "\n\n";        $output .=  "\n";        } };        if ($@) {            $error = $context->catch($@, \$output);            die $error unless $error->type eq 'return';        }            return $output;    },    DEFBLOCKS => {        'field_names' => sub {            my $context = shift || die "template sub called without context\n";            my $stash   = $context->stash;            my $output  = '';            my $error;                        eval { BLOCK: {        $output .=  "\n";        #line 200 "template\en\default\global\confirm-user-match.html.tmpl"        if ($stash->get(['field_descs', 0, $stash->get('field_name'), 0])) {        #line 195 "template\en\default\global\confirm-user-match.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get(['field_descs', 0, $stash->get('field_name'), 0]);                        &$filter($output);        };                        }        elsif ($stash->get(['field_name', 0, 'match', [ '^requestee' ]])) {        #line 197 "template\en\default\global\confirm-user-match.html.tmpl"        $output .=  $stash->get(['fields', 0, $stash->get('field_name'), 0, 'flag_type', 0, 'name', 0]);        $output .=  " requestee\n";        }        else {        #line 200 "template\en\default\global\confirm-user-match.html.tmpl"                # FILTER        $output .=  do {            my $output = '';            my $filter = $context->filter('html')                      || $context->throw($context->error);                $output .=  $stash->get('field_name');                        &$filter($output);        };                }                $output .=  "\n";            } };            if ($@) {                $error = $context->catch($@, \$output);                die $error unless $error->type eq 'return';            }                    return $output;        },    },});

⌨️ 快捷键说明

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