本文整理匯總了PHP中Subnets::subnet_dropdown_print_available方法的典型用法代碼示例。如果您正苦於以下問題:PHP Subnets::subnet_dropdown_print_available方法的具體用法?PHP Subnets::subnet_dropdown_print_available怎麽用?PHP Subnets::subnet_dropdown_print_available使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Subnets
的用法示例。
在下文中一共展示了Subnets::subnet_dropdown_print_available方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _
<td class="middle"><?php
print _('Subnet');
?>
</td>
<td>
<?php
if (($_POST['subnetId'] || $_POST['subnet']) && $_POST['action'] == "add") {
$showDropMenuFull = 1;
}
# set CIDR
if (isset($subnet_old_temp['subnet']) && $subnet_old_temp['isFolder'] != "1") {
$cidr = $Subnets->transform_to_dotted($subnet_old_temp['subnet']) . '/' . ($subnet_old_temp['mask'] + 1);
}
//for nested
if (isset($subnet_old_temp['subnet']) && $showDropMenuFull) {
$dropdown_menu = $Subnets->subnet_dropdown_print_available($_POST['sectionId'], $_POST['subnetId']);
}
if (@$_POST['location'] == "ipcalc") {
$cidr = strlen($_POST['bitmask']) > 0 ? $_POST['subnet'] . '/' . $_POST['bitmask'] : $_POST['subnet'];
}
//from ipcalc
if ($_POST['action'] != "add") {
$cidr = $Subnets->transform_to_dotted($subnet_old_details['subnet']) . '/' . $subnet_old_details['mask'];
}
//editing existing
# reset CIDR if $showDropMenuFull
if ($showDropMenuFull && strlen(@$dropdown_menu) > 2) {
$cidr = explode("\n", $dropdown_menu);
$cidr = substr(strip_tags($cidr[1]), 2);
//validate
if ($Subnets->verify_cidr_address($cidr) === false) {