Exemplo n.º 1
0
function js_Autocomplete_prepare($js_array_name, $php_array)
{
    //Only run if feature is activated
    if (defined('AUTO_COMPLETE') and AUTO_COMPLETE == 1) {
        $comma_i = 0;
        $temp = "";
        foreach ($php_array as $key => $wert) {
            // Dont put a comma in the FIRST run...
            if ($comma_i > 0) {
                $temp .= ",";
            }
            $temp .= "'{$wert}'";
            $comma_i++;
        }
        if ($temp) {
            $content = "{$js_array_name} = [";
            $content .= $temp;
            $content .= "].sort();";
            $js_code = js_prepare($content);
            echo $js_code;
            message('DEBUG', "js_Autocomplete_prepare", "ok");
            return 1;
        } else {
            message('DEBUG', "js_Autocomplete_prepare", "failed");
            return 0;
        }
    }
}
Exemplo n.º 2
0
                    <td width="600" colspan=2>
                        <?php 
if (isset($_SESSION["group"])) {
    # This will only be displayed on the main "home" page (when authenticated)
    echo VERSION_STRING . "<br><br>";
    echo COPYRIGHT_STRING . "<br>";
    if (constant("VERSION_NOT_FINAL_WARNING") !== '') {
        echo "<br>";
        echo NConf_HTML::limit_space(NConf_HTML::show_error('Attention', VERSION_NOT_FINAL_WARNING));
    }
    # new nconf version info
    if (defined('CHECK_UPDATE') and CHECK_UPDATE == 1 and $_SESSION["group"] == "admin") {
        echo '<script src="include/js/jquery_plugins/jquery.nconf_check_update.js" type="text/javascript"></script>';
        echo js_prepare('
                                              $(document).ready(function(){
                                                $.nconf_check_update("' . VERSION_NUMBER . '");
                                              });
                                         ');
        # html container
        echo "<br>";
        echo '<div id="check_update" style="display:none">';
        echo NConf_HTML::limit_space(NConf_HTML::show_highlight('<span id="check_update_title"></span>', '<div id="check_update_content"></div>'));
        echo '</div>';
    }
    echo "<br>" . DISCLAIMER_STRING . "<br><br>";
    echo POWERED_BY_LOGOS;
} else {
    # This will be displayed on the login screen
    echo "<br><br>" . POWERED_BY_LOGOS;
}
?>
Exemplo n.º 3
0
# Advanced TAB for special editing (write attr value to multi host, etc..)
?>
<div class="tab_info accordion">
    <div class="absolute" style="width:inherit;">
        <div class="move_tab_right">
            <div class="dhtmlgoodies_question">
            </div>
            <div class="dhtmlgoodies_answer">
                <div style="height:400px">
                    <h2 class="header" onmouseover="this.style.cursor='pointer'" onclick="showHideContent('', 'dhtmlgoodies_q1', 'hide');">
                        <span>
                            Info
                        </span>
                    </h2>
                    <div id="info_ajax" style="width: 100%">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>



<?php 
# activate movable content
echo js_prepare("initShowHideDivs();");
?>

Exemplo n.º 4
0
if (defined('JQUERY') and JQUERY == 1) {
    echo '<!-- Load jQuery -->
            <script src="include/js/jquery.js" type="text/javascript"></script>
            <script src="include/js/jquery-ui.custom.min.js" type="text/javascript"></script>
            ';
    echo '<!-- Load jQuery plugins (also nconf-jquery plugins/functions -->
            <script src="include/js/jquery_plugins/jquery.nconf_ajax_debug.js" type="text/javascript"></script>
            <script src="include/js/jquery_plugins/jquery.nconf_help_admin.js" type="text/javascript"></script>
            <script src="include/js/jquery_plugins/jquery.nconf_tooltip.js" type="text/javascript"></script>
            <script src="include/js/jquery_plugins/jquery.nconf_accordion_list.js" type="text/javascript"></script>
            <script src="include/js/jquery_plugins/jquery.nconf_head.js" type="text/javascript"></script>
            ';
    // jquery theme switcher
    if (defined('JQUERY_THEME_SWITCHER') and JQUERY_THEME_SWITCHER == 1) {
        echo '<script type="text/javascript" src="include/js/themeswitchertool.js"></script>';
        echo js_prepare("\r\n                  \$(document).ready(function(){\r\n                    \$('#switcher').themeswitcher({\r\n                        height: 450\r\n                    });\r\n                  });\r\n            ");
    }
}
/* NConf design by jQuery UI Themes*/
if (!defined("JQUERY_THEME")) {
    define("JQUERY_THEME", "nconf");
}
echo '<link rel="stylesheet" type="text/css" href="design_templates/' . TEMPLATE_DIR . '/jQuery/' . JQUERY_THEME . '/jquery-ui.custom.css">';
echo '<link rel="stylesheet" type="text/css" href="design_templates/' . TEMPLATE_DIR . '/jQuery/jquery.table.css">';
echo '<link rel="stylesheet" type="text/css" href="design_templates/' . TEMPLATE_DIR . '/jQuery/nconf-widget.css">';
?>

    <title>NConf</title>
</head>