本文整理汇总了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) {