예제 #1
0
파일: hosts.php 프로젝트: Evolix/lilac
        }
        ?>
			</table>
			<br />
			<br />
			<form name="template_add" method="post" action="hosts.php?id=<?php 
        echo $_GET['id'];
        ?>
&section=inheritance">
			<input type="hidden" name="request" value="add_template_command" />
			<b>Add Template To Inherit From:</b> <?php 
        if (!count($templateList)) {
            ?>
<strong>No Templates Available</strong><br /><?php 
        } else {
            print_object_select("hostmanage[template_add][template_id]", $templateList, "getId", "getName", NULL, true, $exclude_list);
            ?>
 <input type="submit" value="Add Template"><br /><?php 
        }
        ?>
			<br />
			</form>
			</td>
		</tr>
		</table>
		<?php 
    }
    if ($_GET['section'] == 'checks') {
        $cmdObj = $host->getInheritedCommandWithParameters();
        ?>
		<table width="100%" border="0">
예제 #2
0
파일: timeperiod.php 프로젝트: Evolix/lilac
                ?>
</td>
					</tr>
					<?php 
            }
            ?>
			</table>
			<br />
			<br />
			<form name="contactgroup_member_add" method="post" action="timeperiod.php?timeperiod_id=<?php 
            echo $_GET['timeperiod_id'];
            ?>
&section=exclusions">
			<input type="hidden" name="request" value="exclusion_add" />
			<b>Add New Timeperiod Exclusion:</b> <?php 
            print_object_select("timeperiod_manage[exclusion_add][timeperiod_id]", $timeperiods, "getId", "getName", "0", true, array($timeperiod->getId()));
            ?>
 <input type="submit" value="Add Exclusion"><br />
			<?php 
            echo $lilac->element_desc("exclusion", "nagios_timeperiods_desc");
            ?>
<br />
			<br />
			</form>
			</td>
		</tr>
		</table>
		<?php 
        }
    }
}