Code Duplication    Length = 16-16 lines in 2 locations

src/projects/fcreate.php 1 location

@@ 796-811 (lines=16) @@
793
794
// generate controls for 'list' field
795
796
elseif ($form == 'listform')
797
{
798
    $xml .= '<control name="list_items" required="' . get_html_resource(RES_REQUIRED3_ID) . '">'
799
          . '<label>' . get_html_resource(RES_LIST_ITEMS_ID) . '</label>'
800
          . '<textbox rows="' . $_SESSION[VAR_TEXTROWS] . '" maxlen="' . MAX_FIELD_LIST_ITEMS . '">'
801
          . ustr2html($list_items)
802
          . '</textbox>'
803
          . '</control>';
804
805
    $xml .= '<control name="def_value">'
806
          . '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>'
807
          . '<editbox maxlen="' . ustrlen(MAXINT) . '">'
808
          . ustr2html($def_value)
809
          . '</editbox>'
810
          . '</control>';
811
}
812
813
// generate controls for 'date' field
814

src/projects/fmodify.php 1 location

@@ 568-583 (lines=16) @@
565
566
// generate controls for 'list' field
567
568
elseif ($field['field_type'] == FIELD_TYPE_LIST)
569
{
570
    $xml .= '<control name="list_items" required="' . get_html_resource(RES_REQUIRED3_ID) . '">'
571
          . '<label>' . get_html_resource(RES_LIST_ITEMS_ID) . '</label>'
572
          . '<textbox rows="' . $_SESSION[VAR_TEXTROWS] . '" maxlen="' . MAX_FIELD_LIST_ITEMS . '">'
573
          . ustr2html($list_items)
574
          . '</textbox>'
575
          . '</control>';
576
577
    $xml .= '<control name="def_value">'
578
          . '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>'
579
          . '<editbox maxlen="' . ustrlen(MAXINT) . '">'
580
          . ustr2html($default)
581
          . '</editbox>'
582
          . '</control>';
583
}
584
585
// generate controls for 'date' field
586