예제 #1
0
파일: index.php 프로젝트: shekkbuilder/pcf
        	$i = $i + 1;
		echo "<font color='#0000b2'><a href=\"javascript:aktual('", $i, "')\">Show graph</a></font><br /><br />";
	        echo "<center><img id='", $i, "' src='graph/", $computer->address, ".svg' /></center>";

	        echo "</div>";

	        $i = $i + 1;
	}
}
*/
echo "<br />";
foreach ($mergedComputers as $computer) {
    if (!isset($computer->identity)) {
        echo "<b><font color='#0000b2'><a href=\"javascript:aktual('", $i, "')\">", $computer->address, "</a></font></b><br />";
        echo "<div id='", $i, "'>";
        printComputer($computer, true);
        echo "</br>";
        echo "<form method='post' action='", $_SERVER['PHP_SELF'], "'>";
        echo "<span style='margin-right: 20px;'>Name:</span><input type='text' name='name' size='45' /><input type='submit' value='Save computer'>";
        echo "<input type='hidden' name='skew_tcp' value='", $computer->skews["tcp"], "' />";
        echo "<input type='hidden' name='address_tcp' value='", $computer->address, "' />";
        echo "<input type='hidden' name='frequency_tcp' value='", $computer->frequencies["tcp"], "' />";
        echo "<input type='hidden' name='date_tcp' value='", $computer->dates["tcp"], "' />";
        echo "<input type='hidden' name='skew_javascript' value='", $computer->skews["javascript"], "' />";
        echo "<input type='hidden' name='address_javascript' value='", $computer->address, "' />";
        echo "<input type='hidden' name='frequency_javascript' value='", $computer->frequencies["javascript"], "' />";
        echo "<input type='hidden' name='date_javascript' value='", $computer->dates["javascript"], "' />";
        echo "<input type='hidden' name='skew_icmp' value='", $computer->skews["icmp"], "' />";
        echo "<input type='hidden' name='address_icmp' value='", $computer->address, "' />";
        echo "<input type='hidden' name='frequency_icmp' value='", $computer->frequencies["icmp"], "' />";
        echo "<input type='hidden' name='date_icmp' value='", $computer->dates["icmp"], "' />";
예제 #2
0
}
$mergedComputers = array();
foreach ($computersTcp->computer as $computer) {
    addComputer($computer, "tcp");
}
foreach ($computersJavascript->computer as $computer) {
    addComputer($computer, "javascript");
}
foreach ($computersIcmp->computer as $computer) {
    addComputer($computer, "icmp");
}
echo "<span style='position: absolute; top: 120px; right: 10px'><a href='javascript:fold(200)'>[+/-]</a></span>";
$i = 200;
foreach ($mergedComputers as $computer) {
    echo "<b><font color='#0000b2'><a href=\"javascript:aktual('", $i, "')\">", $computer->name, "</font></a></b><br />";
    printComputer($computer, false);
    echo "</br>";
    echo "<form method='post' action='", $_SERVER['PHP_SELF'], "'>";
    echo "<input type='submit' value='Delete' />";
    echo "<input type='hidden' name='skew_tcp' value='", $computer->skews["tcp"], "' />";
    echo "<input type='hidden' name='skew_javascript' value='", $computer->skews["javascript"], "' />";
    echo "<input type='hidden' name='skew_icmp' value='", $computer->skews["icmp"], "' />";
    echo "<input type='hidden' name='name' value='", $computer->name, "' />";
    #echo "<script>aktual('", $i, "')</script>";
    $i = $i + 1;
    echo "</form>";
    echo "</br>";
}
?>

</div>