本文整理匯總了PHP中Cabinet::GetCabinetSelectList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Cabinet::GetCabinetSelectList方法的具體用法?PHP Cabinet::GetCabinetSelectList怎麽用?PHP Cabinet::GetCabinetSelectList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cabinet
的用法示例。
在下文中一共展示了Cabinet::GetCabinetSelectList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
</fieldset>
<div class="table">
<div>
<div><label for="Notes">', __("Notes"), '</label></div>
<div><textarea name="Notes" id="Notes" cols="40" rows="8">', $dev->Notes, '</textarea></div>
</div>
</div> <!-- END div.table -->
</div><!-- END div.left -->
<div class="right">
<fieldset>
<legend>', __("Physical Infrastructure"), '</legend>
<div class="table">
<div>
<div><label for="CabinetID">', __("Cabinet"), '</label></div>';
if ($dev->ParentDevice == 0) {
print "\t\t\t<div>" . $cab->GetCabinetSelectList() . "</div>\n";
} else {
print "\t\t\t<div>{$cab->Location}<input type=\"hidden\" name=\"CabinetID\" value={$cab->CabinetID}></div>\r\n\t\t</div>\r\n\t\t<div>\r\n\t\t\t<div><label for=\"ParentDevice\">" . __("Parent Device") . "</label></div>\r\n\t\t\t<div><select name=\"ParentDevice\">\n";
foreach ($parentList as $parDev) {
if ($pDev->DeviceID == $parDev->DeviceID) {
$selected = " selected";
} else {
$selected = "";
}
print "\t\t\t\t<option value=\"{$parDev->DeviceID}\"{$selected}>{$parDev->Label}</option>\n";
}
print "\t\t\t</select></div>\n";
}
echo ' </div>
<div>
<div><label for="TemplateID">', __("Device Class"), '</label></div>
示例2:
<option value="Chassis"' . ($req->DeviceType == "Chassis" ? ' selected' : '') . '>', __("Chassis"), '</option>
<option value="Patch Panel"' . ($req->DeviceType == "Patch Panel" ? ' selected' : '') . '>', __("Patch Panel"), '</option>
<option value="Physical Infrastructure"' . ($req->DeviceType == "Physical Infrastructure" ? ' selected' : '') . '>', __("Physical Infrastructure"), '</option>
</select>
</div>
</div>
<div>
<div><label for="currentlocation">', __("Current Location"), '</label></div>
<div><input type="text" name="currentlocation" id="currentlocation" class="validate[required]" size="50" value="', $req->CurrentLocation, '"></div>
</div>
<div>
<div><label for="specialinstructions">', __("Special Instructions"), '</label></div>
<div><textarea name="specialinstructions" id="specialinstructions" cols=50 rows=5>', $req->SpecialInstructions, '</textarea></div>
</div>';
if ($person->RackAdmin && $req->RequestID > 0) {
echo '<div><div><label for="CabinetID">', __("Select Rack Location"), ':</label></div><div>' . $cab->GetCabinetSelectList() . ' <label for="position">', __("Position"), ':</label> <input type="text" name="position" id="position" size=5></div></div>';
}
?>
<div class="caption">
<?php
if ($person->RackRequest || $person->RackAdmin) {
if ($req->RequestID > 0) {
if ($person->RackAdmin || $person->UserID == $contact->UserID) {
echo '<button type="submit" name="action" value="Update Request">', __("Update Request"), '</button>';
echo '<button type="submit" name="action" value="Delete Request">', __("Delete Request"), '</button>';
}
if ($person->RackAdmin) {
echo '<button type="submit" name="action" value="Move to Rack">', __("Move to Rack"), '</button>';
}
} else {
echo '<button type="submit" name="action" value="Create">', __("Create"), '</button>';