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


PHP display_top_tabs函数代码示例

本文整理汇总了PHP中display_top_tabs函数的典型用法代码示例。如果您正苦于以下问题:PHP display_top_tabs函数的具体用法?PHP display_top_tabs怎么用?PHP display_top_tabs使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: print_input_errors

			<div class="row">

				<?php 
if (isset($input_errors) && count($input_errors) > 0) {
    print_input_errors($input_errors);
}
?>

			    <section class="col-xs-12">

				<?php 
/* active tabs */
$tab_array = array();
$tab_array[] = array(gettext("Gateways"), false, "status_gateways.php");
$tab_array[] = array(gettext("Gateway Groups"), true, "status_gateway_groups.php");
display_top_tabs($tab_array);
?>

				    <div class="tab-content content-box col-xs-12">


							<div class="responsive-table">


				              <table class="table table-striped table-sort">
				              <thead>
				                <tr>
				                  <td width="20%" class="listhdrr"><?php 
echo gettext("Group Name");
?>
</td>
开发者ID:karawan,项目名称:core,代码行数:31,代码来源:status_gateway_groups.php

示例2: array

        $active = true;
    } else {
        $active = false;
    }
    $tab_array[] = array($ifname, $active, "services_router_advertisements.php?if={$ifent}");
    $tabscounter++;
}
if ($tabscounter == 0) {
    include "foot.inc";
    exit;
}
display_top_tabs($tab_array);
$tab_array = array();
$tab_array[] = array(gettext("DHCPv6 Server"), false, "services_dhcpv6.php?if={$if}");
$tab_array[] = array(gettext("Router Advertisements"), true, "services_router_advertisements.php?if={$if}");
display_top_tabs($tab_array, false, 'nav nav-tabs');
$form = new Form();
$section = new Form_Section('Advertisements');
$section->addInput(new Form_Select('ramode', 'Router mode', $pconfig['ramode'], $advertise_modes))->setHelp('Select the Operating Mode for the Router Advertisement (RA) Daemon. Use:' . '<br />' . '&nbsp;<strong>Router Only</strong> to only advertise this router' . '<br />' . '&nbsp;<strong>Unmanaged</strong> for Router Advertising with Stateless Autoconfig' . '<br />' . '&nbsp;<strong>Managed</strong> for assignment through a DHCPv6 Server' . '<br />' . '&nbsp;<strong>Assisted</strong> for DHCPv6 Server assignment combined with Stateless Autoconfig. ' . 'It is not required to activate this DHCPv6 server when set to "Managed", this can be another host on the network');
$section->addInput(new Form_Select('rapriority', 'Router priority', $pconfig['rapriority'], $priority_modes))->setHelp('Select the Priority for the Router Advertisement (RA) Daemon.');
$carplist = get_configured_vip_list("inet6", VIP_CARP);
$carplistif = array();
if (count($carplist) > 0) {
    foreach ($carplist as $ifname => $vip) {
        if (get_configured_vip_interface($ifname) == $if) {
            $carplistif[$ifname] = $vip;
        }
    }
}
if (count($carplistif) > 0) {
    $iflist = array();
开发者ID:KyleJohnstonNet,项目名称:pfsense,代码行数:31,代码来源:services_router_advertisements.php

示例3: print_input_errors

$shortcut_section = "resolver";
include_once "head.inc";
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('unbound')) {
    print_apply_box(gettext("The DNS Resolver configuration has been changed.") . "<br />" . gettext("You must apply the changes in order for them to take effect."));
}
$tab_array = array();
$tab_array[] = array(gettext("General settings"), true, "services_unbound.php");
$tab_array[] = array(gettext("Advanced settings"), false, "services_unbound_advanced.php");
$tab_array[] = array(gettext("Access Lists"), false, "/services_unbound_acls.php");
display_top_tabs($tab_array, true);
$form = new Form();
$section = new Form_Section('General DNS Resolver Options');
$section->addInput(new Form_Checkbox('enable', 'Enable', 'Enable DNS resolver', $pconfig['enable']));
$section->addInput(new Form_Input('port', 'Listen Port', 'number', $pconfig['port'], ['placeholder' => '53']))->setHelp('The port used for responding to DNS queries. It should normally be left blank unless another service needs to bind to TCP/UDP port 53.');
$activeiflist = build_if_list($pconfig['active_interface']);
$section->addInput(new Form_Select('active_interface', 'Network Interfaces', $activeiflist['selected'], $activeiflist['options'], true))->addClass('general')->setHelp('Interface IPs used by the DNS Resolver for responding to queries from clients. If an interface has both IPv4 and IPv6 IPs, both are used. Queries to other interface IPs not selected below are discarded. ' . 'The default behavior is to respond to queries on every available IPv4 and IPv6 address.');
$outiflist = build_if_list($pconfig['outgoing_interface']);
$section->addInput(new Form_Select('outgoing_interface', 'Outgoing Network Interfaces', $outiflist['selected'], $outiflist['options'], true))->addClass('general')->setHelp('Utilize different network interface(s) that the DNS Resolver will use to send queries to authoritative servers and receive their replies. By default all interfaces are used.');
$unbound_local_zone_types = array("deny" => gettext("Deny"), "refuse" => gettext("Refuse"), "static" => gettext("Static"), "transparent" => gettext("Transparent"), "typetransparent" => gettext("Type Transparent"), "redirect" => gettext("Redirect"), "inform" => gettext("Inform"), "inform_deny" => gettext("Inform Deny"), "nodefault" => gettext("No Default"));
$section->addInput(new Form_Select('system_domain_local_zone_type', 'System Domain Local Zone Type', $pconfig['system_domain_local_zone_type'], $unbound_local_zone_types))->setHelp('The local-zone type used for the pfSense system domain (System | General Setup | Domain).  Transparent is the default.  Local-Zone type descriptions are available in the unbound.conf(5) manual pages.');
$section->addInput(new Form_Checkbox('dnssec', 'DNSSEC', 'Enable DNSSEC Support', $pconfig['dnssec']));
$section->addInput(new Form_Checkbox('forwarding', 'DNS Query Forwarding', 'Enable Forwarding Mode', $pconfig['forwarding']));
$section->addInput(new Form_Checkbox('regdhcp', 'DHCP Registration', 'Register DHCP leases in the DNS Resolver', $pconfig['regdhcp']))->setHelp(sprintf('If this option is set, then machines that specify their hostname when requesting a DHCP lease will be registered' . ' in the DNS Resolver, so that their name can be resolved.' . ' You should also set the domain in %sSystem: General setup%s to the proper value.', '<a href="system.php">', '</a>'));
$section->addInput(new Form_Checkbox('regdhcpstatic', 'Static DHCP', 'Register DHCP static mappings in the DNS Resolver', $pconfig['regdhcpstatic']))->setHelp(sprintf('If this option is set, then DHCP static mappings will be registered in the DNS Resolver, so that their name can be ' . 'resolved. You should also set the domain in %s' . 'System: General setup%s to the proper value.', '<a href="system.php">', '</a>'));
$btnadvdns = new Form_Button('btnadvdns', 'Custom options');
开发者ID:dirkx,项目名称:pfsense,代码行数:31,代码来源:services_unbound.php

示例4: str_replace

        } else {
            $myurl = $addresswithport;
        }
        // eval url so that above $myurl item can be processed if need be.
        $url = str_replace('$myurl', $myurl, $urltmp);
        $tab_array[$tab_level][] = array($tab['text'], $active, $url);
    }
    ksort($tab_array);
}
include "head.inc";
if ($pkg['custom_php_after_head_command']) {
    eval($pkg['custom_php_after_head_command']);
}
if (isset($tab_array)) {
    foreach ($tab_array as $tabid => $tab) {
        display_top_tabs($tab);
        //, $no_drop_down, $tabid);
    }
}
// Start of page display
if ($input_errors) {
    print_input_errors($input_errors);
}
if ($savemsg) {
    print_info_box($savemsg, 'success');
}
$cols = 0;
$savevalue = gettext("Save");
if ($pkg['savetext'] != "") {
    $savevalue = $pkg['savetext'];
}
开发者ID:nwholloway,项目名称:pfsense,代码行数:31,代码来源:pkg_edit.php

示例5: convert_friendly_interface_to_friendly_descr

                /* Deduce an interface if possible and use the description */
                $optionc = "{$optionc['0']}";
                $friendly = convert_friendly_interface_to_friendly_descr(strtolower($optionc));
                if (empty($friendly)) {
                    $friendly = $optionc;
                }
                $search = array("-", ".rrd", $optionc);
                $replace = array(" :: ", "", $friendly);
                $prettyprint = ucwords(str_replace($search, $replace, $friendly));
                $optionslist[$optionc] = htmlspecialchars($prettyprint);
        }
    }
    return $optionslist;
}
include "head.inc";
display_top_tabs(make_tabs());
if ($input_errors && count($input_errors)) {
    print_input_errors($input_errors);
}
$form = new Form(false);
$section = new Form_Section('Graph settings');
$group = new Form_Group('Options');
$group->add(new Form_Select('option', 'Graphs', $curoption, build_options()))->setHelp('Graph');
$group->add(new Form_Select('style', 'Style', $curstyle, $styles))->setHelp('Style');
$group->add(new Form_Select('period', 'Period', $curperiod, $periods))->setHelp('Period');
if ($curcat == 'custom') {
    $group->setHelp('Any changes to these option may not take affect until the next auto-refresh.');
}
$section->add($group);
if ($curcat == 'custom') {
    $section->addInput(new Form_Input('cat', null, 'hidden', 'custom'));
开发者ID:z0x010,项目名称:pfsense,代码行数:31,代码来源:status_rrd_graph.php

示例6: getenv

        $addresswithport = getenv("HTTP_HOST");
        $colonpos = strpos($addresswithport, ":");
        if ($colonpos !== False) {
            //my url is actually just the IP address of the pfsense box
            $myurl = substr($addresswithport, 0, $colonpos);
        } else {
            $myurl = $addresswithport;
        }
        // eval url so that above $myurl item can be processed if need be.
        $url = str_replace('$myurl', $myurl, $urltmp);
        $tab_array[$tab_level][] = array($tab['text'], $active, $url);
    }
    ksort($tab_array);
    foreach ($tab_array as $tab) {
        echo '<tr><td>';
        display_top_tabs($tab, $no_drop_down);
        echo '</td></tr>';
    }
}
?>
<script>
	function setFilter(filtertext) {
		$('pkg_filter').value = filtertext;
		document.pkgform.submit();
	}
</script>

<?php 
if ($pkg['adddeleteeditpagefields']['movable']) {
    ?>
        <style type="text/css">
开发者ID:nuclewall,项目名称:nuclewall,代码行数:31,代码来源:pkg.php

示例7: getenv

        $addresswithport = getenv("HTTP_HOST");
        $colonpos = strpos($addresswithport, ":");
        if ($colonpos !== False) {
            //my url is actually just the IP address of the pfsense box
            $myurl = substr($addresswithport, 0, $colonpos);
        } else {
            $myurl = $addresswithport;
        }
        // eval url so that above $myurl item can be processed if need be.
        $url = str_replace('$myurl', $myurl, $urltmp);
        $tab_array[$tab_level][] = array($tab['text'], $active, $url);
    }
    ksort($tab_array);
    foreach ($tab_array as $tabid => $tab) {
        echo '<tr><td>';
        display_top_tabs($tab, $no_drop_down, $tabid);
        echo '</td></tr>';
    }
}
?>
<tr><td><div id="mainarea"><table id="t" class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
<?php 
$cols = 0;
$savevalue = gettext("Save");
if ($pkg['savetext'] != "") {
    $savevalue = $pkg['savetext'];
}
/* If a package's XML has <advanced_options/> configured, then setup
 * the table rows for the fields that have <advancedfield/> set.
 * These fields will be placed below other fields in a separate area titled 'Advanced Features'.
 * These advanced fields are not normally configured and generally left to default to 'default settings'.
开发者ID:jdillard,项目名称:pfsense,代码行数:31,代码来源:pkg_edit.php

示例8: include

}
?>

			    <section class="col-xs-12">

				<? include("status_rrd_graph_tabs.inc"); ?>

					<div class="tab-content content-box col-xs-12">



					    <?php 
if ($curcat == "captiveportal") {
    ?>
							<?php 
    display_top_tabs($cp_zones_tab_array);
    ?>
							<?php 
}
?>



							<form name="form1" action="status_rrd_graph.php" method="get">
								<input type="hidden" name="cat" value="<?php 
echo "{$curcat}";
?>
" />
								<div class="container-fluid">
								<p><b><?php 
echo gettext("Note: Change of color and/or style may not take effect until the next refresh");
开发者ID:nasaa0528,项目名称:core,代码行数:31,代码来源:status_rrd_graph.php


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