Пример #1
0
    public static function cbSettings()
    {
        $lists['cb_plugin'] = jnews::HTML_BooleanList("config['cb_plugin']", 'class="inputbox"', $GLOBALS[JNEWS . 'cb_plugin']);
        $lists['cb_showname'] = jnews::HTML_BooleanList("config['cb_showname']", 'class="inputbox"', $GLOBALS[JNEWS . 'cb_showname']);
        $lists['cb_checkLists'] = jnews::HTML_BooleanList("config['cb_checkLists']", 'class="inputbox"', $GLOBALS[JNEWS . 'cb_checkLists']);
        $lists['cb_showHTML'] = jnews::HTML_BooleanList("config['cb_showHTML']", 'class="inputbox"', $GLOBALS[JNEWS . 'cb_showHTML']);
        $lists['cb_defaultHTML'] = jnews::HTML_BooleanList("config['cb_defaultHTML']", 'class="inputbox"', $GLOBALS[JNEWS . 'cb_defaultHTML']);
        ?>
		<fieldset class="jnewscss">
		<legend><?php 
        echo _JNEWS_CB_INTEGRATION;
        ?>
</legend>
		<?php 
        jnews::beginingOfTable('jnewstable');
        if ($GLOBALS[JNEWS . 'cb_pluginInstalled'] == 0) {
            if (!jnews::checkCBPlugin()) {
                jnews::miseEnPage(jnews::WarningIcon(_JNEWS_CB_PLUGIN_NOT_INSTALLED), ' ', '<span style="color: rgb(255, 0, 0);">' . _JNEWS_CB_PLUGIN_NOT_INSTALLED . '</span>');
            }
        }
        jnews::miseEnPage(_JNEWS_CB_PLUGIN, _JNEWS_CB_PLUGIN_TIPS, $lists['cb_plugin']);
        jnews::miseEnPage(_JNEWS_CB_LISTS, _JNEWS_CB_LISTS_TIPS, "<input class=\"inputbox\" type=\"text\" name=\"config['cb_listIds']\" size=\"30\" value=\"" . $GLOBALS[JNEWS . 'cb_listIds'] . "\" >");
        jnews::miseEnPage(_JNEWS_CB_INTRO, _JNEWS_CB_INTRO_TIPS, "<textarea  name=\"config['cb_intro']\" rows=\"3\" cols=\"40\" >" . $GLOBALS[JNEWS . 'cb_intro'] . "</textarea>");
        jnews::miseEnPage(_JNEWS_CB_SHOW_NAME, _JNEWS_CB_SHOW_NAME_TIPS, $lists['cb_showname']);
        jnews::miseEnPage(_JNEWS_CB_LIST_DEFAULT, _JNEWS_CB_LIST_DEFAULT_TIPS, $lists['cb_checkLists']);
        jnews::miseEnPage(_JNEWS_CB_HTML_SHOW, _JNEWS_CB_HTML_SHOW_TIPS, $lists['cb_showHTML']);
        jnews::miseEnPage(_JNEWS_CB_HTML_DEFAULT, _JNEWS_CB_HTML_DEFAULT_TIPS, $lists['cb_defaultHTML']);
        jnews::endOfTable();
        echo '</fieldset>';
    }