当前位置: 首页>>代码示例>>PHP>>正文


PHP Subnets::print_mastersubnet_dropdown_menu方法代码示例

本文整理汇总了PHP中Subnets::print_mastersubnet_dropdown_menu方法的典型用法代码示例。如果您正苦于以下问题:PHP Subnets::print_mastersubnet_dropdown_menu方法的具体用法?PHP Subnets::print_mastersubnet_dropdown_menu怎么用?PHP Subnets::print_mastersubnet_dropdown_menu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Subnets的用法示例。


在下文中一共展示了Subnets::print_mastersubnet_dropdown_menu方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: User

# initialize user object
$Database = new Database_PDO();
$User = new User($Database);
$Admin = new Admin($Database);
$Subnets = new Subnets($Database);
$Result = new Result();
$Zones = new FirewallZones($Database);
$Tools = new Tools($Database);
# verify that user is logged in
$User->check_user_session();
# generate a dropdown list for all subnets within a section
if ($_POST['operation'] == 'fetchSectionSubnets') {
    if ($_POST['sectionId']) {
        if (preg_match('/^[0-9]+$/i', $_POST['sectionId'])) {
            $sectionId = $_POST['sectionId'];
            print $Subnets->print_mastersubnet_dropdown_menu($sectionId);
        } else {
            $Result->show('danger', _('Invalid ID.'), true);
        }
    }
}
# deliver zone details
if ($_POST['operation'] == 'deliverZoneDetail') {
    if ($_POST['zoneId']) {
        if (preg_match('/^[0-9]+$/i', $_POST['zoneId'])) {
            # return the zone details
            $Zones->get_zone_detail($_POST['zoneId']);
        } else {
            $Result->show('danger', _('Invalid zone ID.'), true);
        }
    }
开发者ID:martinsv,项目名称:phpipam,代码行数:31,代码来源:ajax.php

示例2: _

    ?>
</td>
    </tr>
    <?php 
}
?>

    <!-- Master subnet -->
    <tr>
        <td><?php 
print _('Master Folder');
?>
</td>
        <td>
        	<?php 
$Subnets->print_mastersubnet_dropdown_menu($_POST['sectionId'], @$folder_old_details['masterSubnetId'], true);
?>
        </td>
        <td class="info2"><?php 
print _('Enter master folder if you want to nest it under existing folder, or select root to create root folder');
?>
!</td>
    </tr>

    <!-- hidden values -->
    <input type="hidden" name="sectionId"       value="<?php 
print $_POST['sectionId'];
?>
">
    <input type="hidden" name="subnetId"        value="<?php 
print $_POST['subnetId'];
开发者ID:routenull0,项目名称:phpipam,代码行数:31,代码来源:edit-folder.php

示例3:

    ?>
			</select>
		</td>
	</tr>
	<tr>
		<!-- subnet -->
		<td>
			<?php 
    print _('Subnet');
    ?>
		</td>
			<?php 
    # display the subnet if already configured
    if ($firewallZone->sectionId) {
        print '<td><div class="sectionSubnets">';
        print $Subnets->print_mastersubnet_dropdown_menu($firewallZone->sectionId, $firewallZone->subnetId);
        print '</div></td>';
    } else {
        # if there is only one section, fetch the subnets of that section
        if (sizeof($sections) <= 1) {
            print '<td>';
            print $Subnets->print_mastersubnet_dropdown_menu($sections[0]->id, $firewallZone->subnetId);
            print '</td>';
        } else {
            # if there are more than one section, use ajax to fetch the subnets of the selected section
            print '<td><div class="sectionSubnets"></div></td>';
        }
    }
    ?>
	</tr>
开发者ID:martinsv,项目名称:phpipam,代码行数:30,代码来源:zones-edit-network.php


注:本文中的Subnets::print_mastersubnet_dropdown_menu方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。