| @@ 42-56 (lines=15) @@ | ||
| 39 | } |
|
| 40 | ||
| 41 | // Редактор |
|
| 42 | public static function getWysiwygForm($caption, $name, $value = '') |
|
| 43 | { |
|
| 44 | $editor = false; |
|
| 45 | $editor_configs = []; |
|
| 46 | $editor_configs['name'] = $name; |
|
| 47 | $editor_configs['value'] = $value; |
|
| 48 | $editor_configs['rows'] = 35; |
|
| 49 | $editor_configs['cols'] = 60; |
|
| 50 | $editor_configs['width'] = '100%'; |
|
| 51 | $editor_configs['height'] = '350px'; |
|
| 52 | $editor_configs['editor'] = strtolower(xoops_getModuleOption('form_options', 'instruction')); |
|
| 53 | ||
| 54 | $editor = new XoopsFormEditor($caption, $name, $editor_configs); |
|
| 55 | return $editor; |
|
| 56 | } |
|
| 57 | ||
| 58 | // Получение значения переменной, переданной через GET или POST запрос |
|
| 59 | public static function cleanVars(&$global, $key, $default = '', $type = 'int') |
|
| @@ 22-36 (lines=15) @@ | ||
| 19 | } |
|
| 20 | ||
| 21 | // Редактор |
|
| 22 | function &instr_getWysiwygForm($caption, $name, $value = '') |
|
| 23 | {
|
|
| 24 | $editor = false; |
|
| 25 | $editor_configs = []; |
|
| 26 | $editor_configs['name'] = $name; |
|
| 27 | $editor_configs['value'] = $value; |
|
| 28 | $editor_configs['rows'] = 35; |
|
| 29 | $editor_configs['cols'] = 60; |
|
| 30 | $editor_configs['width'] = '100%'; |
|
| 31 | $editor_configs['height'] = '350px'; |
|
| 32 | $editor_configs['editor'] = strtolower(xoops_getModuleOption('form_options', 'instruction'));
|
|
| 33 | ||
| 34 | $editor = new XoopsFormEditor($caption, $name, $editor_configs); |
|
| 35 | return $editor; |
|
| 36 | } |
|
| 37 | ||
| 38 | // Получение значения переменной, переданной через GET или POST запрос |
|
| 39 | function instr_CleanVars(&$global, $key, $default = '', $type = 'int') {
|
|