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

📄 settings.html.tmpl

📁 buzilla软件
💻 TMPL
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.20#------------------------------------------------------------------------Template::Document->new({    METADATA => {        'modtime' => '1185143120',        'name' => 'account/prefs/settings.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 31 "template\en\default\account\prefs\settings.html.tmpl"    $output .=  $context->process('global/setting-descs.none.tmpl');    $output .=  "\n";    #line 77 "template\en\default\account\prefs\settings.html.tmpl"    if ($stash->get(['settings', 0, 'size', 0])) {    #line 40 "template\en\default\account\prefs\settings.html.tmpl"    if (!($stash->get('has_settings_enabled'))) {    $output .=  "\n    <p class=\"criticalmessages\">\n      All user preferences have been disabled by the\n      <a href=\"mailto:";    #line 37 "template\en\default\account\prefs\settings.html.tmpl"    $output .=  $stash->get(['Param', [ 'maintainer' ]]);    $output .=  "\">maintainer</a>\n      of this installation, and so you cannot customize any.\n    </p>";    }        $output .=  "\n\n  <table border=\"0\" cellpadding=\"8\">";    #line 75 "template\en\default\account\prefs\settings.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get('setting_names');                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->{'name'} = $_tt_value;    #line 44 "template\en\default\account\prefs\settings.html.tmpl"    $stash->set('default_name', $stash->get('name')  . '-isdefault');        #line 45 "template\en\default\account\prefs\settings.html.tmpl"    $stash->set('default_val', $stash->get(['settings', 0, $stash->get('name'), 0, 'default_value', 0]));        $output .=  "\n      <tr>\n        <td align=\"right\">";    #line 48 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['setting_descs', 0, $stash->get('name'), 0]) || $stash->get('name');                &$_tt_filter($output);    };        $output .=  "\n        </td>\n        <td>";    #line 72 "template\en\default\account\prefs\settings.html.tmpl"    if ($stash->get(['settings', 0, $stash->get('name'), 0, 'is_enabled', 0])) {    $output .=  "\n            <select name=\"";    #line 52 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('name');                &$_tt_filter($output);    };        $output .=  "\" id=\"";    #line 52 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('name');                &$_tt_filter($output);    };        $output .=  "\">\n              <option value=\"";    #line 53 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('default_name');                &$_tt_filter($output);    };        $output .=  "\"";    #line 54 "template\en\default\account\prefs\settings.html.tmpl"    if ($stash->get(['settings', 0, $stash->get('name'), 0, 'is_default', 0])) {    $output .=  ' selected="selected"';    }        $output .=  ">\n                Site Default (";    #line 55 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['setting_descs', 0, $stash->get('default_val'), 0]) || $stash->get('default_val');                &$_tt_filter($output);    };        $output .=  ")\n              </option>";    #line 64 "template\en\default\account\prefs\settings.html.tmpl"        # FOREACH     do {        my ($_tt_value, $_tt_error, $_tt_oldloop);        my $_tt_list = $stash->get(['settings', 0, $stash->get('name'), 0, 'legal_values', 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->{'x'} = $_tt_value;    $output .=  "\n                <option value=\"";    #line 58 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('x');                &$_tt_filter($output);    };        $output .=  "\"";    #line 59 "template\en\default\account\prefs\settings.html.tmpl"    if ($stash->get('x') eq $stash->get(['settings', 0, $stash->get('name'), 0, 'value', 0]) && ! $stash->get(['settings', 0, $stash->get('name'), 0, 'is_default', 0])) {    $output .=  ' selected="selected"';    }        $output .=  ">";    #line 62 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['setting_descs', 0, $stash->get('x'), 0]) || $stash->get('x');                &$_tt_filter($output);    };        $output .=  "\n                </option>";;                ($_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            </select>";    }    else {    $output .=  "\n            <select name=\"";    #line 67 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('name');                &$_tt_filter($output);    };        $output .=  "\" id=\"";    #line 67 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('name');                &$_tt_filter($output);    };        $output .=  "\" disabled=\"disabled\">\n              <option value=\"";    #line 68 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get('default_name');                &$_tt_filter($output);    };        $output .=  "\">\n                Site Default (";    #line 69 "template\en\default\account\prefs\settings.html.tmpl"        # FILTER    $output .=  do {        my $output = '';        my $_tt_filter = $context->filter('html')                  || $context->throw($context->error);        $output .=  $stash->get(['setting_descs', 0, $stash->get('default_val'), 0]) || $stash->get('default_val');                &$_tt_filter($output);    };        $output .=  ")\n              </option>\n            </select>";    }        $output .=  "\n        </td>\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  </table>";    }        $output .=  "\n<br>\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 + -