14 public function viewForm(array $params = array())
16 $name = \htmlspecialcharsbx(isset($params[
'name_format'])
17 ? str_replace(
'#field_code#', $this->code, $params[
'name_format'])
20 <input type=
"hidden" name=
"<?= $name?>" value=
"N" />
21 <input type=
"checkbox" <?
22 ?><?= isset($params[
'additional']) ? $params[
'additional'] .
' ' :
''?><?
23 ?><?= isset($params[
'id']) ?
'id="' . \htmlspecialcharsbx($params[
'id']) .
'" ' :
''?><?
24 ?>
class=
"<?= isset($params['class']) ? \htmlspecialcharsbx($params['class']) : ''?>" <?
25 ?>data-code=
"<?= \htmlspecialcharsbx($this->code)?>" <?
26 ?>name=
"<?= $name?>" <?
27 ?><?= (isset($params[
'disabled']) && $params[
'disabled']) ?
' disabled ' :
''?><?
28 ?>value=
"Y"<?
if ($this->value ==
'Y'){?> checked=
"checked"<?}?> <?