예제 #1
0
     $tooltip .= __($row["Label"]) . ": " . $pdu->GetSmartCDUUptime() . "<br>\n";
     break;
 case "PanelID":
     $pan = new PowerPanel();
     $pan->PanelID = $pdu->PanelID;
     $pan->GetPanel();
     $tooltip .= __($row["Label"]) . ": {$pan->PanelLabel}<br>\n";
     break;
 case "PanelVoltage":
     $pan = new PowerPanel();
     $pan->PanelID = $pdu->PanelID;
     $pan->GetPanel();
     $tooltip .= __($row["Label"]) . ": " . $pan->PanelVoltage . " / " . intval($pan->PanelVoltage / 1.73) . "<br>\n";
     break;
 case "PanelPole":
     $tooltip .= __($row["Label"]) . ": " . $pdu->GetAllBreakerPoles() . "<br>\n";
     break;
 case "PrimaryContact":
     $pc = new People();
     $pc->PersonID = $dev->PrimaryContact;
     if ($pc->PersonID > 0) {
         $pc->GetPerson();
         $tooltip .= __($row["Label"]) . ": " . $pc->LastName . ", " . $pc->FirstName . "<br>\n";
     } else {
         $tooltip .= __($row["Label"]) . ": " . __("Unassigned") . "<br>\n";
     }
     break;
 case "Weight":
     $dev->{$row}["Field"] = $dev->GetDeviceTotalWeight();
     goto end;
     // cringe now
예제 #2
0
    }
    print "\n\t\t\t\t\t<option value=\"{$i}\"{$selected}>{$i}</option>";
}
echo '
				</select>
			</div>
		</div>
		<div>
			<div><label for="PanelPole">', __("Panel Pole Number"), '</label></div>
			<div><input type="text" name="PanelPole" id="PanelPole" size=5 value="', $pdu->PanelPole, '"></div>
		</div>';
if ($pdu->BreakerSize > 1) {
    echo '
		<div>
			<div><label for="allbreakerpoles">', __("All Breaker Poles"), '</label></div>
			<div>', $pdu->GetAllBreakerPoles(), '</div>
		</div>';
}
echo '
		<div>
			<div><label for="InputAmperage">', __("Input Amperage"), '</label></div>
			<div><input type="text" name="InputAmperage" id="InputAmperage" size=5 value="', $pdu->InputAmperage, '"></div>
		</div>';
// Only show the version, etc if we aren't creating a CDU
if ($dev->DeviceID > 0) {
    echo '
		<div>
			<div>', __("Uptime"), '</div>
			<div id="cduuptime">', $upTime, '</div>
		</div>
		<div>