@@ 675-677 (lines=3) @@ | ||
672 | case "number": // handles the input of numbers |
|
673 | $field_html .= '<input type="number" id="tv' . $field_id . '" name="tv' . $field_id . '" value="' . $modx->getPhpCompat()->htmlspecialchars($field_value) . '" ' . $field_style . ' tvtype="' . $field_type . '" onchange="documentDirty=true;" style="width:100%" onkeyup="this.value=this.value.replace(/[^\d-,.+]/,\'\')"/>'; |
|
674 | break; |
|
675 | case "textareamini": // handler for textarea mini boxes |
|
676 | $field_html .= '<textarea id="tv' . $field_id . '" name="tv' . $field_id . '" cols="40" rows="5" onchange="documentDirty=true;" style="width:100%">' . $modx->getPhpCompat()->htmlspecialchars($field_value) . '</textarea>'; |
|
677 | break; |
|
678 | case "textarea": // handler for textarea boxes |
|
679 | case "rawtextarea": // non-htmlentity convertex textarea boxes |
|
680 | case "htmlarea": // handler for textarea boxes (deprecated) |
|
@@ 681-683 (lines=3) @@ | ||
678 | case "textarea": // handler for textarea boxes |
|
679 | case "rawtextarea": // non-htmlentity convertex textarea boxes |
|
680 | case "htmlarea": // handler for textarea boxes (deprecated) |
|
681 | case "richtext": // handler for textarea boxes |
|
682 | $field_html .= '<textarea id="tv' . $field_id . '" name="tv' . $field_id . '" cols="40" rows="15" onchange="documentDirty=true;" style="width:100%">' . $modx->getPhpCompat()->htmlspecialchars($field_value) . '</textarea>'; |
|
683 | break; |
|
684 | case "date": |
|
685 | $field_id = str_replace(array( |
|
686 | '-', |
|
@@ 989-990 (lines=2) @@ | ||
986 | $field_html .= $custom_output; |
|
987 | break; |
|
988 | ||
989 | default: // the default handler -- for errors, mostly |
|
990 | $field_html .= '<input type="text" id="tv' . $field_id . '" name="tv' . $field_id . '" value="' . $modx->getPhpCompat()->htmlspecialchars($field_value) . '" ' . $field_style . ' onchange="documentDirty=true;" />'; |
|
991 | ||
992 | } // end switch statement |
|
993 | } else { |