Ejemplo n.º 1
0
        // loading icon on ajax requests
        $("#loading").ajaxStart(function(){
            $(this).show();
        });
        $("#loading").ajaxStop(function(){
            $(this).hide();
        });


    });

</script>


<?php 
echo NConf_HTML::ui_box_header("Configuration Deployment");
echo NConf_HTML::ui_box_content();
echo '<div style="height: 20px;">
            <div id="loading">
                <img src="img/working_small.gif"> in progress...
            </div>
          </div>';
// Load deployment class and create object
require_once "class.deployment.php";
require_once "class.deployment.modules.php";
// Load the NConf Deployment class
// It loads all the modules and handles the deployment basic stuff
$deployment = new NConf_Deployment();
// Loads the configuration of the user
// nconf/conf/deployment.ini
$deployment->import_config();
Ejemplo n.º 2
0
}
echo "<br>";
// for user and admin navigation
$nav_tree = array("user", "admin");
foreach ($nav_tree as $nav_priv) {
    echo '<h2 class="content_header">' . ucfirst($nav_priv) . ' classes:</h2>';
    $query = 'SELECT * FROM ConfigClasses WHERE nav_privs = "' . $nav_priv . '" ORDER BY grouping, ordering ASC, config_class';
    $result = db_handler($query, "result", "ConfigClasses");
    if ($result) {
        $header_content = '<div style="width: 150px;">Class Name</div>';
        $header_content .= '<div style="width: 160px;">Friendly Name</div>';
        $header_content .= '<div class="center" style="width: 70px;">Visible</div>';
        $header_content .= '<div class="center" style="width: 60px;" colspan=2>Ordering</div>';
        $header_content .= '<div class="center" style="width: 40px;">Edit</div>';
        $header_content .= '<div class="center" style="width: 40px;">Delete</div>';
        echo NConf_HTML::ui_box_header($header_content);
        $box_content = '<colgroup>
                    <col width=150>
                    <col width=160>
                    <col width=70>
                    <col width=30>
                    <col width=30>
                    <col width=40>
                    <col width=40>
                </colgroup>';
        // Define here , how much td's there are (for colspans needed later)
        // Attention, also check tds with colspans !
        $colspan = 7;
        $count = 1;
        $naming_attr_count = 0;
        $group_bevore = '';
Ejemplo n.º 3
0
                $output .= '<tr><td colspan=2><br><b>inherited from Nagios-monitor</b></td></tr>';
                foreach ($nagios_monitors as $monitor_id) {
                    $p5_mon = db_templates("template_inheritance_collector_monitor", $monitor_id, "service_template");
                    $output .= table_output($p5_mon, 'template_inheritance');
                }
            }
        }
    }
    # close template inheritance
    $output .= '</table>';
    $output .= '</div>';
    # template cache debug
    NConf_DEBUG::set($template_cache, 'DEBUG', "template cache");
    NConf_DEBUG::close_group();
    #print the template inheritace box
    echo NConf_HTML::ui_box_header('Template inheritance');
    if (count($template_cache) == 0) {
        $output = 'no templates inherited';
    }
    echo NConf_HTML::ui_box_content($output);
}
echo '</div>';
/*
commented out because we do not want to group the different link types
we want all linked items in one group
if we want to change that, we have to get all normal types, and then group the child or bidirectionals as follows:
# get entries linked as child
$result = db_templates("linked_as_child", $_GET["id"], "link_as_child");
table_output($result, $item_class, "Child items linked");
# get bidirectional entries
$result = db_templates("linked_as_child", $_GET["id"], "link_bidirectional");
Ejemplo n.º 4
0
# load advanced tab for services
require_once 'include/tabs/service.php';
////
// Content of this page
echo '<div style="width: 510px;" class="relative">';
////
// Title
$item_name = db_templates("naming_attr", $host_ID);
$title = '<div>&nbsp;Services &amp; advanced services of ' . $item_name . '</div>';
# nav buttons
$detail_navigation = '<a class="button_back jQ_tooltip" title="host details" href="detail.php?id=' . $host_ID . '"></a>';
$detail_navigation .= '<a href="overview.php?class=host"><button class="button_overview jQ_tooltip" title="hosts overview"></button></a>';
if (!empty($detail_navigation)) {
    $detail_navigation = '<div id="ui-nconf-icon-bar">' . $detail_navigation . '</div>';
}
echo NConf_HTML::ui_box_header($title . $detail_navigation);
# box for direct host services
$output = '<div style="float: left; margin-right: 5px;">';
$output .= NConf_HTML::title('Services (directly linked)');
$output .= '</div>';
$output .= '<div name="help_services"></div>';
$output .= '<div style="clear: both"></div>';
$output .= '<div>';
// Service select field
$output .= '<fieldset class="inline">';
$output .= '<legend>Add additional services to host</legend>';
$output .= '<table>';
$output .= '<tr>
                    <td>
                        <select id="add_checkcommand" name="add_checkcommand">';
// create service name list (also checks for default service name)