src/projects/fcreate.php 1 location
|
@@ 785-792 (lines=8) @@
|
782 |
|
|
783 |
|
// generate controls for 'checkbox' field |
784 |
|
|
785 |
|
elseif ($form == 'checkboxform') |
786 |
|
{ |
787 |
|
$xml .= '<control name="def_value">' |
788 |
|
. '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>' |
789 |
|
. '<radio value="1"' . ($def_value != 0 ? ' checked="true">' : '>') . get_html_resource(RES_ON_ID) . '</radio>' |
790 |
|
. '<radio value="0"' . ($def_value == 0 ? ' checked="true">' : '>') . get_html_resource(RES_OFF_ID) . '</radio>' |
791 |
|
. '</control>'; |
792 |
|
} |
793 |
|
|
794 |
|
// generate controls for 'list' field |
795 |
|
|
src/projects/fmodify.php 1 location
|
@@ 557-564 (lines=8) @@
|
554 |
|
|
555 |
|
// generate controls for 'checkbox' field |
556 |
|
|
557 |
|
elseif ($field['field_type'] == FIELD_TYPE_CHECKBOX) |
558 |
|
{ |
559 |
|
$xml .= '<control name="def_value">' |
560 |
|
. '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>' |
561 |
|
. '<radio value="1"' . ($default != 0 ? ' checked="true">' : '>') . get_html_resource(RES_ON_ID) . '</radio>' |
562 |
|
. '<radio value="0"' . ($default == 0 ? ' checked="true">' : '>') . get_html_resource(RES_OFF_ID) . '</radio>' |
563 |
|
. '</control>'; |
564 |
|
} |
565 |
|
|
566 |
|
// generate controls for 'list' field |
567 |
|
|