コード例 #1
0
ファイル: Devices-Status.php プロジェクト: pl0o0f/nedi-puppet
			}
	?>
	<div style="float:right">
	<form method="post" action="Devices-Status.php?dev=<?= $ud ?>">
	<input type="hidden" name="rtl" value="1">
	<input type="image" src="img/16/key.png" value="Submit" title="<?= $reslbl ?> CLI <?= $acslbl ?>">
	</form>
	</div>
	<?php
		}
	}
	echo ($cliport and $login)?"<img src=\"img/bulbg.png\">":"<img src=\"img/bulba.png\">" ?> <?= $login ?> <?= $porlbl ?> <?= ($cliport)?$cliport:"-";
	}
	echo "</td></tr>\n";
	echo "<tr><th class=\"$modgroup[$self]2\">$cfglbl</th><td class=\"txta\">";
	echo DevCfg($dev[33],$dev[32]);

if($isadmin){
?>
<div style="float:right;margin:2px 2px">
<form method="post" name="nedi" action="System-NeDi.php">
<input type="hidden" name="mde" value="d">
<input type="hidden" name="sed" value="a">
<input type="hidden" name="bup" value="B0">
<input type="hidden" name="quk" value="on">
<input type="hidden" name="vrb" value="on">
<input type="hidden" name="opt" value="<?=$ip?>">
<input type="image" src="img/16/radr.png" value="Submit" title="<?= "$cfglbl $buplbl" ?>">
</form>
</div>
<?PHP
コード例 #2
0
ファイル: Devices-Write.php プロジェクト: pl0o0f/nedi-puppet
        echo "<th>Login</th><th>IP {$adrlbl}</th><th>{$cfglbl} {$stalbl}</th></tr>\n";
        $row = 0;
        foreach ($devip as $dv => $ip) {
            if ($row % 2) {
                $bg = "txta";
                $bi = "imga";
            } else {
                $bg = "txtb";
                $bi = "imgb";
            }
            $row++;
            echo "<tr class=\"{$bg}\"><th class=\"{$bi}\">\n";
            echo "{$row}</th><td><b>{$dv}</b></td>";
            echo "<td>{$devos[$dv]}</td>\n";
            echo "<td>{$devlo[$dv]}</td><td>" . DevCli($ip, $devpo[$dv]);
            echo ":{$devpo[$dv]}</td><td>" . DevCfg($devcfg[$dv]) . $devcfg[$dv];
            echo "</td></tr>\n";
        }
        ?>
</table>
<table class="content">
<tr class="<?php 
        echo $modgroup[$self];
        ?>
2"><td><?php 
        echo $row;
        ?>
 Devices (<?php 
        echo $query;
        ?>
)</td></tr>
コード例 #3
0
ファイル: Devices-List.php プロジェクト: pl0o0f/nedi-puppet
					TblCell($dev[28],"?in[]=size&op[]==&st[]=$dev[28]",'align="right"');
				}
				if(in_array("stack",$col)){
					TblCell($dev[29],"?in[]=stack&op[]==&st[]=$dev[29]",'align="right"');
				}
				if(in_array("maxpoe",$col)){
					TblCell($dev[30].'W',"?in[]=maxpoe&op[]==&st[]=$dev[30]",'align="right"');
				}
				if(in_array("totpoe",$col)){
					TblCell($dev[31].'W','','align="right"');
				}
				if( in_array("cfgchange",$col) ){
					TblCell( $dev[32],"?in[]=cfgchange&op[]==&st[]=".urlencode($dev[32]) );
				}
				if( in_array("cfgstatus",$col) ){
					TblCell( $dev[33],"?in[]=cfgstatus&op[]==&st[]=".urlencode($dev[33]),'',DevCfg($dev[33]),'td-img' );
				}
				if( in_array("time",$col) ){
					$cbup = ($dev[36])?"$buplbl:".date($datfmt,$dev[36]).", $sizlbl:".DecFix($dev[34])."B".", $chglbl:".DecFix($dev[35])."B":'';
					TblCell($cbup,"Devices-Config.php?shc=$ud");
				}
				if( in_array("test",$col) ){
					TblCell("$loslbl:$dev[36] OK:$dev[37]","Monitoring-Setup.php?in[]=name&op[]==&st[]=$ud","class=\"$bi\"",TestImg($dev[34]),'td-img');
				}
				if(in_array("poNS",$col)){
					$pop = NodPop( array('device'),array('='),array($dev[0]),array() );
					if($pop){
						TblCell($pop,"Nodes-List.php?in[]=device&op[]==&st[]=$ud",'',Bar($pop,100,'si').' ','td-img');
					}else{
						TblCell();
					}