Example #1
0
            echo $_GET['id'];
            ?>
&section=notifications&edit=1">
				<input type="hidden" name="request" value="host_modify_notifications" />
				<input type="hidden" name="host_template_id" value="<?php 
            echo $_GET['id'];
            ?>
">
				<?php 
            double_pane_form_window_start();
            form_select_element_with_enabler($enable_list, "values", "text", "host_manage", "notifications_enabled", "Notifications", $lilac->element_desc("notifications_enabled", "nagios_hosts_desc"), $hostValues, $_GET['id']);
            form_text_element_with_enabler(4, 4, "host_manage", "first_notification_delay", "First Notification Delay", $lilac->element_desc("first_notification_delay", "nagios_hosts_desc"), $hostValues, $_GET['id']);
            form_text_element_with_enabler(8, 8, "host_manage", "notification_interval", "Notification Interval in Time-Units", $lilac->element_desc("notification_interval", "nagios_hosts_desc"), $hostValues, $_GET['id']);
            form_select_element_with_enabler($period_list, "timeperiod_id", "timeperiod_name", "host_manage", "notification_period", "Notification Period", $lilac->element_desc("notification_period", "nagios_hosts_desc"), $hostValues, $_GET['id']);
            form_checkbox_group_with_enabler($notification_options_checkbox_group, "host_manage", "notification_options", "Notification Options", $lilac->element_desc("notification_options", "nagios_hosts_desc"), $hostValues, $_GET['id']);
            form_checkbox_group_with_enabler($stalking_options_checkbox_group, "host_manage", "stalking_options", "Stalking Options", $lilac->element_desc("stalking_options", "nagios_hosts_desc"), $hostValues, $_GET['id']);
            double_pane_form_window_finish();
            ?>
				<br />
				<input type="submit" value="Update Notifications" /> [ <a href="hosts.php?id=<?php 
            echo $_GET['id'];
            ?>
&section=general">Cancel</a> ]
				<?php 
        } else {
            ?>
				<h3>Included In Template:</h3>
				<?php 
            print_enabled_display_field("Notifications", $hostValues, "notifications_enabled", $_GET['id']);
            print_display_field("First Notification Delay", $hostValues, "first_notification_delay", $_GET['id']);
            print_display_field("Notification Interval", $hostValues, "notification_interval", $_GET['id']);
Example #2
0
					<form name="service_manage" method="post" action="service_template.php?id=<?php 
        echo $_GET['id'];
        ?>
&section=notifications&edit=1">
					<input type="hidden" name="request" value="service_template_modify_notifications" />
					<input type="hidden" name="service_template_id" value="<?php 
        echo $_GET['id'];
        ?>
">
					<?php 
        double_pane_form_window_start();
        form_select_element_with_enabler($enable_list, "values", "text", "service_manage", "notifications_enabled", "Notifications", $lilac->element_desc("notifications_enabled", "nagios_services_desc"), $templateValues, $_GET['id']);
        form_text_element_with_enabler(8, 8, "service_manage", "notification_interval", "Notification Interval in Time-Units", $lilac->element_desc("notification_interval", "nagios_services_desc"), $templateValues, $_GET['id']);
        form_select_element_with_enabler($period_list, "timeperiod_id", "timeperiod_name", "service_manage", "notification_period", "Notification Period", $lilac->element_desc("notification_period", "nagios_services_desc"), $templateValues, $_GET['id']);
        form_checkbox_group_with_enabler($notification_options_checkbox_group, "service_manage", "notification_options", "Notification Options", $lilac->element_desc("notification_options", "nagios_services_desc"), $templateValues, $_GET['id']);
        form_checkbox_group_with_enabler($stalking_options_checkbox_group, "service_manage", "stalking_options", "Stalking Options", $lilac->element_desc("stalking_options", "nagios_services_desc"), $templateValues, $_GET['id']);
        double_pane_form_window_finish();
        ?>
					<br />
					<input type="submit" value="Update Notifications" /> [ <a href="service_template.php?id=<?php 
        echo $_GET['id'];
        ?>
&section=general">Cancel</a> ]
					<?php 
    } else {
        ?>
					<h3>Included In Template:</h3>
					<?php 
        print_enabled_display_field("Notifications", $templateValues, "notifications_enabled", $_GET['id']);
        print_display_field("Notification Interval", $templateValues, "notification_interval", $_GET['id']);
        print_timeperiod_display_field("Notification Period", $templateValues, "notification_period", $_GET['id']);