本文整理汇总了PHP中print_info_box_np函数的典型用法代码示例。如果您正苦于以下问题:PHP print_info_box_np函数的具体用法?PHP print_info_box_np怎么用?PHP print_info_box_np使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_info_box_np函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
if ($_GET['act'] == "del") {
if ($a_igmpproxy[$_GET['id']]) {
unset($a_igmpproxy[$_GET['id']]);
write_config();
mark_subsystem_dirty('igmpproxy');
header("Location: services_igmpproxy.php");
exit;
}
}
$pgtitle = array(gettext("Services"), gettext("IGMP Proxy"));
include "head.inc";
if ($savemsg) {
print_info_box($savemsg, 'success');
}
if (is_subsystem_dirty('igmpproxy')) {
print_info_box_np(gettext('The IGMP entry list has been changed.' . '<br />' . 'You must apply the changes in order for them to take effect.'));
}
?>
<form action="services_igmpproxy.php" method="post">
<div class="panel panel-default">
<div class="panel-heading"><h2 class="panel-title"><?php
echo gettext('IGMP Proxy');
?>
</h2></div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-hover table-condensed">
<thead>
示例2: print_input_errors
if ($input_errors) {
print_input_errors($input_errors);
}
?>
<form action="firewall_shaper.php" method="post" id="iform" name="iform">
<?php
if ($savemsg) {
print_info_box($savemsg);
}
if (is_subsystem_dirty('shaper')) {
?>
<p>
<?php
print_info_box_np(gettext("The traffic shaper configuration has been changed.") . "<br>" . gettext("You must apply the changes in order for them to take effect."));
?>
<br>
<?php
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php
$tab_array = array();
$tab_array[0] = array(gettext("By Interface"), true, "firewall_shaper.php");
$tab_array[1] = array(gettext("By Queue"), false, "firewall_shaper_queues.php");
$tab_array[2] = array(gettext("Limiter"), false, "firewall_shaper_vinterface.php");
$tab_array[3] = array(gettext("Layer7"), false, "firewall_shaper_layer7.php");
$tab_array[4] = array(gettext("Wizards"), false, "firewall_shaper_wizards.php");
display_top_tabs($tab_array);
示例3: print_input_errors
<?php
if (isset($input_errors) && count($input_errors) > 0) {
print_input_errors($input_errors);
}
?>
<?php
if (isset($savemsg)) {
print_info_box($savemsg);
}
?>
<?php
if (is_subsystem_dirty('staticmaps')) {
?>
<br/>
<?php
print_info_box_np(gettext("The static mapping configuration has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));
?>
<br />
<?php
}
?>
<section class="col-xs-12">
<?php
/* active tabs */
$tab_array = array();
$tabscounter = 0;
$i = 0;
foreach ($iflist as $ifent => $ifname) {
示例4: print_input_errors
<?php
}
?>
<form action="haproxy_pools.php" method="post">
<?php
if ($input_errors) {
print_input_errors($input_errors);
}
if ($savemsg) {
print_info_box($savemsg);
}
if (file_exists($d_haproxyconfdirty_path)) {
?>
<p>
<?php
print_info_box_np("The virtual pool configuration has been changed.<br>You must apply the changes in order for them to take effect.");
?>
<br>
<?php
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="tabnavtbl">
<?php
/* active tabs */
$tab_array = array();
$tab_array[] = array("Settings", false, "haproxy_global.php");
$tab_array[] = array("Listener", false, "haproxy_listeners.php");
$tab_array[] = array("Server Pool", true, "haproxy_pools.php");
display_top_tabs($tab_array);
?>
示例5: print_info_box
<section class="page-content-main">
<div class="container-fluid">
<div class="row">
<?php
if (isset($savemsg)) {
print_info_box($savemsg);
}
?>
<?php
if (is_subsystem_dirty('captiveportal')) {
?>
<p>
<?php
print_info_box_np(gettext("The CaptivePortal entry list has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));
?>
<?php
}
?>
<section class="col-xs-12">
<div class="content-box">
<form action="services_captiveportal_zones.php" method="post" name="iform" id="iform">
<div class="table-responsive">
<table class="table table-striped table-sort">
<tr>
示例6: ini_set
*/
##|+PRIV
##|*IDENT=page-system-packagemanager
##|*NAME=System: Package Manager
##|*DESCR=Allow access to the 'System: Package Manager' page.
##|*MATCH=pkg_mgr.php*
##|-PRIV
ini_set('max_execution_time', '0');
require_once "globals.inc";
require_once "guiconfig.inc";
require_once "pkg-utils.inc";
/* if upgrade in progress, alert user */
if (is_subsystem_dirty('packagelock')) {
$pgtitle = array(gettext("System"), gettext("Package Manager"));
include "head.inc";
print_info_box_np("Please wait while packages are reinstalled in the background.");
include "foot.inc";
exit;
}
$pkg_info = get_pkg_info();
$pgtitle = array(gettext("System"), gettext("Package Manager"), gettext("Available Packages"));
include "head.inc";
$tab_array = array();
$tab_array[] = array(gettext("Available Packages"), true, "pkg_mgr.php");
$tab_array[] = array(gettext("Installed Packages"), false, "pkg_mgr_installed.php");
display_top_tabs($tab_array);
if ($pkg_info) {
//Check categories
$categories = array();
foreach ($pkg_info as $pkg_data) {
if (isset($pkg_data['categories'][0])) {
示例7: gettext
}
include "head.inc";
if (file_exists("/var/run/interface_mismatch_reboot_needed")) {
if ($_POST) {
if ($rebootingnow) {
$savemsg = gettext("The system is now rebooting. Please wait.");
} else {
$savemsg = gettext("Reboot is needed. Please apply the settings in order to reboot.");
}
} else {
$savemsg = gettext("Interface mismatch detected. Please resolve the mismatch and click 'Apply changes'. The firewall will reboot afterwards.");
}
}
if (file_exists("/tmp/reload_interfaces")) {
echo "<p>\n";
print_info_box_np(gettext("The interface configuration has been changed.<br />You must apply the changes in order for them to take effect."));
echo "<br /></p>\n";
} elseif ($savemsg) {
print_info_box($savemsg);
}
pfSense_handle_custom_code("/usr/local/pkg/interfaces_assign/pre_input_errors");
if ($input_errors) {
print_input_errors($input_errors);
}
$tab_array = array();
$tab_array[] = array(gettext("Interface assignments"), true, "interfaces_assign.php");
$tab_array[] = array(gettext("Interface Groups"), false, "interfaces_groups.php");
$tab_array[] = array(gettext("Wireless"), false, "interfaces_wireless.php");
$tab_array[] = array(gettext("VLANs"), false, "interfaces_vlan.php");
$tab_array[] = array(gettext("QinQs"), false, "interfaces_qinq.php");
$tab_array[] = array(gettext("PPPs"), false, "interfaces_ppps.php");
示例8: print_info_box
</head>
<body>
<?php
include 'fbegin.inc';
?>
<form action="firewall_aliases.php" method="post">
<?php
if ($savemsg) {
print_info_box($savemsg);
}
if (is_subsystem_dirty('aliases')) {
?>
<p>
<?php
print_info_box_np('Takma adlar listesi değiştirildi' . '<br>' . 'Değişikliklerin etkili olabilmesi için uygulamalısınız.', true);
}
pfSense_handle_custom_code("/usr/local/pkg/firewall_aliases/pre_table");
?>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table class="tabcont" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" class="grids sortable">
<tr>
<td class="head">Ad</td>
<td class="head">İçerik</td>
<td class="head">Açıklama</td>
<td class="head"></td>
示例9: domTT_title
}
function domTT_title($title_msg)
{
if (!empty($title_msg)) {
$title_msg = preg_replace("/\\s+/", " ", $title_msg);
$title_msg = preg_replace("/'/", "\\'", $title_msg);
return "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '{$title_msg}', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'delay', 300, 'styleClass', 'niceTitle');\"";
}
}
$xml = htmlspecialchars($_GET['xml']);
if ($_POST['xml']) {
$xml = htmlspecialchars($_POST['xml']);
}
$xml_fullpath = realpath('/usr/local/pkg/' . $xml);
if ($xml == "" || $xml_fullpath === false || substr($xml_fullpath, 0, strlen('/usr/local/pkg/')) != '/usr/local/pkg/') {
print_info_box_np(gettext("ERROR: No valid package defined."));
die;
} else {
$pkg = parse_xml_config_pkg($xml_fullpath, "packagegui");
}
if ($pkg['include_file'] != "") {
require_once $pkg['include_file'];
}
if (!isset($pkg['adddeleteeditpagefields'])) {
$only_edit = true;
} else {
$only_edit = false;
}
$id = $_GET['id'];
if (isset($_POST['id'])) {
$id = htmlspecialchars($_POST['id']);
示例10: build_priv_list
}
function build_priv_list()
{
global $spriv_list, $a_user;
$list = array();
foreach ($spriv_list as $pname => $pdata) {
if (in_array($pname, $a_user['priv'])) {
continue;
}
$list[$pname] = $pdata['name'];
}
return $list;
}
/* if ajax is calling, give them an update message */
if (isAjax()) {
print_info_box_np($savemsg, '', '', false, 'success');
}
include "head.inc";
if ($input_errors) {
print_input_errors($input_errors);
}
if ($savemsg) {
print_info_box($savemsg, 'success');
}
$tab_array = array();
$tab_array[] = array(gettext("Users"), true, "system_usermanager.php");
$tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php");
$tab_array[] = array(gettext("Settings"), false, "system_usermanager_settings.php");
$tab_array[] = array(gettext("Servers"), false, "system_authservers.php");
display_top_tabs($tab_array);
$form = new Form();
示例11: print_input_errors
<?php
include "fbegin.inc";
?>
<form action="services_unbound_acls.php" method="post" name="iform" id="iform">
<?php
if (!$savemsg) {
$savemsg = "";
}
if ($input_errors) {
print_input_errors($input_errors);
}
if ($savemsg) {
print_info_box($savemsg);
}
if (is_subsystem_dirty("unbound")) {
print_info_box_np(gettext("The settings for the DNS Resolver have changed. You must apply the configuration to take affect."));
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tabnavtbl">
<ul id="tabnav">
<?php
$tab_array = array();
$tab_array[] = array(gettext("General Settings"), false, "/services_unbound.php");
$tab_array[] = array(gettext("Advanced settings"), false, "services_unbound_advanced.php");
$tab_array[] = array(gettext("Access Lists"), true, "/services_unbound_acls.php");
display_top_tabs($tab_array, true);
?>
</ul>
</td>
示例12: print_info_box
include 'fbegin.inc';
?>
<form action="system_routes.php" method="post">
<input type="hidden" name="y1" value="1">
<?php
if ($savemsg) {
print_info_box($savemsg);
}
?>
<?php
if (is_subsystem_dirty('staticroutes')) {
?>
<p>
<?php
print_info_box_np("Sabit yönlendirme ayarları değiştirildi.<br>Değişikliklerin etkili olabilmesi için uygulamalısınız.", true);
?>
<br>
<?php
}
?>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php
$tab_array = array();
$tab_array[0] = array("Ağ Geçitleri", false, "system_gateways.php");
$tab_array[1] = array("Yönlendirmeler", true, "system_routes.php");
$tab_array[2] = array("Gruplar", false, "system_gateway_groups.php");
display_top_tabs($tab_array);
?>
示例13: foreach
foreach ($aliaslist as $aliasip => $aliasif) {
$serverbridge_interface[$aliasif . '|' . $aliasip] = $aliasip . " (" . get_vip_descr($aliasip) . ")";
}
foreach ($serverbridge_interface as $iface => $ifacename) {
$list[$iface] = htmlspecialchars($ifacename);
}
return $list;
}
if (!$savemsg) {
$savemsg = "";
}
if ($input_errors) {
print_input_errors($input_errors);
}
if ($savemsg) {
print_info_box_np($savemsg, 'success');
}
$tab_array = array();
$tab_array[] = array(gettext("Server"), true, "vpn_openvpn_server.php");
$tab_array[] = array(gettext("Client"), false, "vpn_openvpn_client.php");
$tab_array[] = array(gettext("Client Specific Overrides"), false, "vpn_openvpn_csc.php");
$tab_array[] = array(gettext("Wizards"), false, "wizard.php?xml=openvpn_wizard.xml");
add_package_tabs("OpenVPN", $tab_array);
display_top_tabs($tab_array);
require_once 'classes/Form.class.php';
$form = new Form();
if ($act == "new" || $act == "edit") {
$section = new Form_Section('General Information');
$section->addInput(new Form_checkbox('disable', 'Disabled', 'Disable this server', $pconfig['disable']))->setHelp('Set this option to disable this server without removing it from the list');
$section->addInput(new Form_Select('mode', 'Server mode', $pconfig['mode'], build_mode_list()));
$options = array();
示例14: print_info_box_np
<script type="text/javascript" src="/javascript/suggestions.js">
</script>
<form action="snort_preprocessors.php" method="post" enctype="multipart/form-data" name="iform" id="iform">
<input name="id" type="hidden" value="<?php
echo $id;
?>
"/>
<input name="eng_id" id="eng_id" type="hidden" value=""/>
<?php
if (is_subsystem_dirty('snort_preprocessors')) {
?>
<p>
<?php
print_info_box_np(gettext("A change has been made to the preprocessors configuration.") . "<br/>" . gettext("Click SAVE when finished to apply the change to the Snort configuration."));
}
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>
<?php
$tab_array = array();
$tab_array[0] = array(gettext("Snort Interfaces"), true, "/snort/snort_interfaces.php");
$tab_array[1] = array(gettext("Global Settings"), false, "/snort/snort_interfaces_global.php");
$tab_array[2] = array(gettext("Updates"), false, "/snort/snort_download_updates.php");
$tab_array[3] = array(gettext("Alerts"), false, "/snort/snort_alerts.php?instance={$id}");
$tab_array[4] = array(gettext("Blocked"), false, "/snort/snort_blocked.php");
$tab_array[5] = array(gettext("Pass Lists"), false, "/snort/snort_passlist.php");
$tab_array[6] = array(gettext("Suppress"), false, "/snort/snort_interfaces_suppress.php");
$tab_array[7] = array(gettext("IP Lists"), false, "/snort/snort_ip_list_mgmt.php");
示例15: print_info_box
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
<?php
include "fbegin.inc";
if (!$pgtitle_output) {
echo "<p class=\"pgtitle\"><?={$pgtitle}?></p>";
}
?>
<form action="snort_rules.php" method="post" name="iform" id="iform">
<?php
if ($savemsg) {
print_info_box($savemsg);
} else {
if ($stopMsg) {
print_info_box_np($message_reload);
}
}
?>
<br>
</form>
<script type="text/javascript" language="javascript" src="row_toggle.js">
<script src="/javascript/sorttable.js" type="text/javascript">
</script>
<script language="javascript" type="text/javascript">
<!--
function go()
{
var agt=navigator.userAgent.toLowerCase();
if (agt.indexOf("msie") != -1) {