?> <div class="rex-addon-output" id="a685-form"> <div class="rex-area"> <div class="rex-form"> <form method="post" action="index.php?page=rexsearch&subpage=search_highlighter" id="a685_search_highlighter_form"> <?php foreach (array('b', 'span', 'strong', 'em', 'p', 'div') as $option) { $options[] = array('value' => $option, 'selected' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['tag']) and $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['tag'] == $option, 'name' => $option); } foreach (array('stil1', 'stil2', 'stilEigen') as $option) { $optionsstil[] = array('value' => $option, 'selected' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stil']) and $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stil'] == $option, 'name' => $option); } echo a587_getSettingsFormSection('autocompleter_settings', 'Einstellungen', array(array('type' => 'select', 'id' => 'a685_rexsearch_search_highlighter_tag', 'name' => 'a685_rexsearch_search_highlighter[tag]', 'label' => 'Tag um die Suchbegriffe', 'options' => $options), array('type' => 'string', 'id' => 'a685_rexsearch_search_highlighter_class', 'name' => 'a685_rexsearch_search_highlighter[class]', 'label' => 'Class', 'value' => isset($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['class']) ? $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['class'] : ''), array('type' => 'string', 'id' => 'a685_rexsearch_search_highlighter_inlineCSS', 'name' => 'a685_rexsearch_search_highlighter[inlineCSS]', 'label' => 'inline CSS', 'value' => isset($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['inlineCSS']) ? $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['inlineCSS'] : ''), array('type' => 'checkbox', 'id' => 'a685_rexsearch_search_highlighter_stilEinbinden', 'name' => 'a685_rexsearch_search_highlighter[stilEinbinden]', 'label' => 'Stil CSS einbinden<br /> (Klasse class_search_685)', 'value' => '1', 'checked' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stilEinbinden']) && $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stilEinbinden'] == 1), array('type' => 'select', 'id' => 'a685_rexsearch_search_highlighter_stil', 'name' => 'a685_rexsearch_search_highlighter[stil]', 'label' => 'Stil (CSS)', 'options' => $optionsstil), array('type' => 'hidden', 'id' => 'a685_rexsearch_search_highlighter_stil1', 'name' => 'a685_rexsearch_search_highlighter[stil1]', 'value' => isset($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stil1']) ? $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stil1'] : ''), array('type' => 'hidden', 'id' => 'a685_rexsearch_search_highlighter_stil2', 'name' => 'a685_rexsearch_search_highlighter[stil2]', 'value' => isset($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stil2']) ? $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stil2'] : ''))); ?> <div class="rex-form-row"> <p class="rex-form-col-a rex-form-text"> <label for="a685_rexsearch_search_highlighter_stilEigen">Eigener Stil</label> <textarea class="rex-form-text" id="a685_rexsearch_search_highlighter_stilEigen" name="a685_rexsearch_search_highlighter[stilEigen]" cols="80" rows="20"><?php echo $REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['stilEigen']; ?> </textarea> </p> </div> <div class="rex-form-row"> <p class="rex-form-col-a rex-form-submit">
$options[] = array('value' => htmlspecialchars($table . '`.`' . $column['name']), 'checked' => in_array($column['name'], (!empty($REX['ADDON']['settings']['rexsearch']['include'][$table]) and is_array($REX['ADDON']['settings']['rexsearch']['include'][$table])) ? $REX['ADDON']['settings']['rexsearch']['include'][$table] : array()), 'name' => $table . ' . ' . $column['name'], 'id' => $table . ' . ' . $column['name']); //} } } } echo a587_getSettingsFormSection('a587_include', $I18N->Msg('a587_settings_include'), array(array('type' => 'multiplecheckboxes', 'id' => 'a587_rexsearch_include', 'name' => 'a587_rexsearch[include][]', 'label' => '', 'size' => 20, 'options' => $options))); $options = array(array('value' => '', 'name' => '', 'selected' => false, 'id' => 'a587_optiondummy')); if (!empty($REX['ADDON']['settings']['rexsearch']['indexfolders'])) { foreach ($REX['ADDON']['settings']['rexsearch']['indexfolders'] as $relative) { $options[] = array('value' => $relative, 'name' => $relative, 'selected' => true); } } foreach (range(1, 30) as $depth) { $dirdepth_options[] = array('value' => $depth, 'name' => $depth, 'selected' => $REX['ADDON']['settings']['rexsearch']['dirdepth'] == $depth); } echo a587_getSettingsFormSection('a587_files', $I18N->Msg('a587_settings_fileext_header'), array(array('type' => 'string', 'id' => 'a587_settings_fileext_label', 'name' => 'a587_rexsearch[fileextensions]', 'label' => $I18N->Msg('a587_settings_fileext_label'), 'value' => isset($REX['ADDON']['settings']['rexsearch']['fileextensions']) ? htmlspecialchars(implode(',', $REX['ADDON']['settings']['rexsearch']['fileextensions'])) : ''), array('type' => 'checkbox', 'id' => 'a587_settings_file_mediapool', 'name' => 'a587_rexsearch[indexmediapool]', 'label' => $I18N->Msg('a587_settings_file_mediapool'), 'value' => '1', 'checked' => !empty($REX['ADDON']['settings']['rexsearch']['indexmediapool'])), array('type' => 'select', 'id' => 'a587_settings_file_dirdepth', 'name' => 'a587_rexsearch[dirdepth]', 'label' => $I18N->Msg('a587_settings_file_dirdepth_label'), 'options' => $dirdepth_options), array('type' => 'multipleselect', 'id' => 'a587_settings_folders', 'name' => 'a587_rexsearch[indexfolders][]', 'label' => $I18N->Msg('a587_settings_folders_label'), 'size' => 10, 'options' => $options))); ?> <div class="rex-form-row"> <p class="rex-form-col-a rex-form-submit"> <input type="submit" value="<?php echo $I18N->Msg('a587_settings_submitbutton'); ?> " name="sendit" class="rex-form-submit"/> </p> </div> </form> </div> </div>
break; case 'striptags': /*$form_elements[] = array( 'type' => 'checkbox', 'id' => 'a587_rexsearch_plaintext_striptags', 'name' => 'a587_rexsearch_plaintext[striptags]', 'label' => $I18N->Msg('a587_rexsearch_plaintext_striptags'), 'value' => '1', 'checked' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['striptags']) );*/ echo a587_getSettingsFormSection('a587_rexsearch_plaintext_striptags_fieldset', $I18N->Msg('a587_rexsearch_plaintext_striptags'), array(array('type' => 'checkbox', 'id' => 'a587_rexsearch_plaintext_striptags', 'name' => 'a587_rexsearch_plaintext[striptags]', 'label' => $I18N->Msg('a587_rexsearch_plaintext_striptags_label'), 'value' => '1', 'checked' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['striptags'])))); break; } } echo '</div>'; echo a587_getSettingsFormSection('a587_rexsearch_plaintext_processparent_fieldset', $I18N->Msg('a587_rexsearch_plaintext_processparent'), array(array('type' => 'checkbox', 'id' => 'a587_rexsearch_plaintext_processparent', 'name' => 'a587_rexsearch_plaintext[processparent]', 'label' => $I18N->Msg('a587_rexsearch_plaintext_processparent_label'), 'value' => '1', 'checked' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['processparent'])))); /*$form_elements[] = array( 'type' => 'checkbox', 'id' => 'a587_rexsearch_plaintext_processparent', 'name' => 'a587_rexsearch_plaintext[processparent]', 'label' => $I18N->Msg('a587_rexsearch_plaintext_processparent'), 'value' => '1', 'checked' => !empty($REX['ADDON']['rexsearch_plugins'][$parent][$mypage]['settings']['processparent']) ); echo a587_getSettingsFormSection( 'a587_rexsearch_plaintext', $I18N->Msg('a587_rexsearch_plaintext'), $form_elements );*/ ?>