本文整理汇总了PHP中sbr_meta::getSelector方法的典型用法代码示例。如果您正苦于以下问题:PHP sbr_meta::getSelector方法的具体用法?PHP sbr_meta::getSelector怎么用?PHP sbr_meta::getSelector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sbr_meta
的用法示例。
在下文中一共展示了sbr_meta::getSelector方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: empty
?>
<div class="<?php
echo $selector_input;
?>
">
<input <?php
echo empty($bDisabled) ? '' : 'disabled';
?>
type="text" id="i<?php
echo $field['idname'];
?>
" title="<?php
echo $field['example'];
?>
" class="b-combo__input-text b-combo__input_nohintblur <?php
echo sbr_meta::getSelector('field', $setting['field'], 1);
?>
" name="ft<?php
echo $form_type;
?>
[<?php
echo $key;
?>
]" size="80" value="<?php
echo html_attr($reqvs[$form_type][$key]);
?>
" maxlength="<?php
echo $reqvs['rez_type'] == 2 && $key == 'bank_rs' ? 25 : $field['maxlength'];
?>
"
onfocus="<?php
示例2: strlen
case 'number':
$length_lable = 21;
$td_width = 200;
$selector_input = "b-combo__input " . sbr_meta::getSelector('field', $setting['field']);
break;
case 'date':
$length_lable = 17;
$td_width = 200;
$selector_input = "b-combo__input b-combo__input_calendar b-combo__input_arrow_yes date_format_use_dot use_past_date no_set_date_on_load year_min_limit_1900 " . sbr_meta::getSelector('field', $setting['field']);
$addit_html = '<span class="b-combo__arrow-date"></span>';
break;
default:
case 'default':
$length_lable = 88;
$td_width = 400;
$selector_input = "b-combo__input " . sbr_meta::getSelector('field', $setting['field']);
break;
}
if ($key == 'idcard') {
$td_width = 120;
}
$bDisabled = $setting['disabled'] && (empty($setting['disabled_fields']) || in_array($key, $setting['disabled_fields']));
$disabledClass = !empty($bDisabled) ? ' b-combo__input_disabled' : '';
$labelClass = strlen($field['name']) <= 28 ? 'b-layout__txt_padtop_5' : 'b-layout__txt_lineheight_1';
$exampleClass = strlen($field['example']) <= 50 ? 'b-layout__txt_padtop_5' : 'b-layout__txt_lineheight_1';
$rezItmClass = '';
$isVisible = false;
if (isset($field['rez_type_new']) && !empty($field['rez_type_new'])) {
$rezItmClass = 'rez--itm' . implode(' rez--itm', $field['rez_type_new']);
$isVisible = in_array($rez_type, $field['rez_type_new']);
} else {