<fieldset> <legend>Optional Template Selection</legend> <? $totalHosts = get_all_hosts_for_user($_SESSION['user']); $totalHostApp = get_all_hosts_with_appClass("DVL_PING"); $totalHosts = array_intersect ($totalHostApp, $totalHosts); sort($totalHosts); $allAgentsString = implode (",", $totalHosts); $allAgentsString = str_replace("___", " ", $allAgentsString); ?> <div align = "left"> <p class="it"> By Selecting a host you can see all the devices this host is pinging </p> <input class="requestid-box" name="hostTemplate" value = "<?php print "$hostTemplate"; ?>"> <input class="submit-button2" name = "validateAgent" type="button" onClick="get_host_settings('<?php print "$allAgentsString"; ?>');" value="Get host settings"> <br/> <SELECT name = "host" size = "5" onChange="populate_hostTemplate()"> <? foreach ($totalHosts as $value) { $value = str_replace("___", " ", $value); if ($value == $host) { ?> <option value =<?php print "\"$value\" SELECTED>$value"; } else {
<fieldset> <legend>Optional Template Selection</legend> <? $totalHosts = get_all_hosts_for_user($_SESSION['user']); $totalHostProcess = get_all_hosts_with_appClass("NT_PROCESS_GROUP"); $totalHosts = array_intersect ($totalHostProcess, $totalHosts); sort($totalHosts); $allAgentsString = implode (",", $totalHosts); $allAgentsString = str_replace("___", " ", $allAgentsString); ?> <div align = "left"> <p class="it"> By Selecting a host you can see all the processes this host is monitoring with the corresponding count </p> <input class="requestid-box" name="hostTemplate" value = "<?php print "$hostTemplate"; ?>"> <input class="submit-button2" name = "validateAgent" type="button" onClick="get_host_settings('<?php print "$allAgentsString"; ?>');" value="Get host settings"> <br/> <SELECT name = "host" size = "5" onChange="populate_hostTemplate()"> <? foreach ($totalHosts as $value) { $value = str_replace("___", " ", $value); if ($value == $host) { ?> <option value =<?php print "\"$value\" SELECTED>$value"; }