@@ 743-781 (lines=39) @@ | ||
740 | ||
741 | // generate controls for 'multilined' field |
|
742 | ||
743 | elseif ($form == 'multilinedform') |
|
744 | { |
|
745 | $xml .= '<control name="max_length" required="' . get_html_resource(RES_REQUIRED3_ID) . '">' |
|
746 | . '<label>' . get_html_resource(RES_MAX_LENGTH_ID) . '</label>' |
|
747 | . '<editbox maxlen="' . ustrlen(MAX_FIELD_MULTILINED) . '">' |
|
748 | . ustr2html($max_length) |
|
749 | . '</editbox>' |
|
750 | . '</control>'; |
|
751 | ||
752 | $xml .= '<control name="def_value">' |
|
753 | . '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>' |
|
754 | . '<textbox rows="' . $_SESSION[VAR_TEXTROWS] . '" maxlen="' . MAX_FIELD_MULTILINED . '">' |
|
755 | . ustr2html($def_value) |
|
756 | . '</textbox>' |
|
757 | . '</control>'; |
|
758 | ||
759 | $xml .= '<control name="regex_check">' |
|
760 | . '<label>' . get_html_resource(RES_REGEX_CHECK_ID) . '</label>' |
|
761 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
762 | . ustr2html($regex_check) |
|
763 | . '</editbox>' |
|
764 | . '</control>'; |
|
765 | ||
766 | $xml .= '<control name="regex_search">' |
|
767 | . '<label>' . get_html_resource(RES_REGEX_SEARCH_ID) . '</label>' |
|
768 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
769 | . ustr2html($regex_search) |
|
770 | . '</editbox>' |
|
771 | . '</control>'; |
|
772 | ||
773 | $xml .= '<control name="regex_replace">' |
|
774 | . '<label>' . get_html_resource(RES_REGEX_REPLACE_ID) . '</label>' |
|
775 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
776 | . ustr2html($regex_replace) |
|
777 | . '</editbox>' |
|
778 | . '</control>'; |
|
779 | ||
780 | $notes .= '<note>' . ustrprocess(get_html_resource(RES_ALERT_INTEGER_VALUE_OUT_OF_RANGE_ID), 1, MAX_FIELD_MULTILINED) . '</note>'; |
|
781 | } |
|
782 | ||
783 | // generate controls for 'checkbox' field |
|
784 |
@@ 473-511 (lines=39) @@ | ||
470 | ||
471 | // generate controls for 'string' field |
|
472 | ||
473 | elseif ($field['field_type'] == FIELD_TYPE_STRING) |
|
474 | { |
|
475 | $xml .= '<control name="max_length" required="' . get_html_resource(RES_REQUIRED3_ID) . '">' |
|
476 | . '<label>' . get_html_resource(RES_MAX_LENGTH_ID) . '</label>' |
|
477 | . '<editbox maxlen="' . ustrlen(MAX_FIELD_STRING) . '">' |
|
478 | . ustr2html($param1) |
|
479 | . '</editbox>' |
|
480 | . '</control>'; |
|
481 | ||
482 | $xml .= '<control name="def_value">' |
|
483 | . '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>' |
|
484 | . '<editbox maxlen="' . MAX_FIELD_STRING . '">' |
|
485 | . ustr2html($default) |
|
486 | . '</editbox>' |
|
487 | . '</control>'; |
|
488 | ||
489 | $xml .= '<control name="regex_check">' |
|
490 | . '<label>' . get_html_resource(RES_REGEX_CHECK_ID) . '</label>' |
|
491 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
492 | . ustr2html($regex_check) |
|
493 | . '</editbox>' |
|
494 | . '</control>'; |
|
495 | ||
496 | $xml .= '<control name="regex_search">' |
|
497 | . '<label>' . get_html_resource(RES_REGEX_SEARCH_ID) . '</label>' |
|
498 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
499 | . ustr2html($regex_search) |
|
500 | . '</editbox>' |
|
501 | . '</control>'; |
|
502 | ||
503 | $xml .= '<control name="regex_replace">' |
|
504 | . '<label>' . get_html_resource(RES_REGEX_REPLACE_ID) . '</label>' |
|
505 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
506 | . ustr2html($regex_replace) |
|
507 | . '</editbox>' |
|
508 | . '</control>'; |
|
509 | ||
510 | $notes .= '<note>' . ustrprocess(get_html_resource(RES_ALERT_INTEGER_VALUE_OUT_OF_RANGE_ID), 1, MAX_FIELD_STRING) . '</note>'; |
|
511 | } |
|
512 | ||
513 | // generate controls for 'multilined' field |
|
514 | ||
@@ 515-553 (lines=39) @@ | ||
512 | ||
513 | // generate controls for 'multilined' field |
|
514 | ||
515 | elseif ($field['field_type'] == FIELD_TYPE_MULTILINED) |
|
516 | { |
|
517 | $xml .= '<control name="max_length" required="' . get_html_resource(RES_REQUIRED3_ID) . '">' |
|
518 | . '<label>' . get_html_resource(RES_MAX_LENGTH_ID) . '</label>' |
|
519 | . '<editbox maxlen="' . ustrlen(MAX_FIELD_MULTILINED) . '">' |
|
520 | . ustr2html($param1) |
|
521 | . '</editbox>' |
|
522 | . '</control>'; |
|
523 | ||
524 | $xml .= '<control name="def_value">' |
|
525 | . '<label>' . get_html_resource(RES_DEFAULT_VALUE_ID) . '</label>' |
|
526 | . '<textbox rows="' . $_SESSION[VAR_TEXTROWS] . '" maxlen="' . MAX_FIELD_MULTILINED . '">' |
|
527 | . ustr2html($default) |
|
528 | . '</textbox>' |
|
529 | . '</control>'; |
|
530 | ||
531 | $xml .= '<control name="regex_check">' |
|
532 | . '<label>' . get_html_resource(RES_REGEX_CHECK_ID) . '</label>' |
|
533 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
534 | . ustr2html($regex_check) |
|
535 | . '</editbox>' |
|
536 | . '</control>'; |
|
537 | ||
538 | $xml .= '<control name="regex_search">' |
|
539 | . '<label>' . get_html_resource(RES_REGEX_SEARCH_ID) . '</label>' |
|
540 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
541 | . ustr2html($regex_search) |
|
542 | . '</editbox>' |
|
543 | . '</control>'; |
|
544 | ||
545 | $xml .= '<control name="regex_replace">' |
|
546 | . '<label>' . get_html_resource(RES_REGEX_REPLACE_ID) . '</label>' |
|
547 | . '<editbox maxlen="' . MAX_FIELD_REGEX . '">' |
|
548 | . ustr2html($regex_replace) |
|
549 | . '</editbox>' |
|
550 | . '</control>'; |
|
551 | ||
552 | $notes .= '<note>' . ustrprocess(get_html_resource(RES_ALERT_INTEGER_VALUE_OUT_OF_RANGE_ID), 1, MAX_FIELD_MULTILINED) . '</note>'; |
|
553 | } |
|
554 | ||
555 | // generate controls for 'checkbox' field |
|
556 |