本文整理汇总了PHP中print_error_box函数的典型用法代码示例。如果您正苦于以下问题:PHP print_error_box函数的具体用法?PHP print_error_box怎么用?PHP print_error_box使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_error_box函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: required_param
* @author Valery Fremaux
* @package Brainstorm
* @date 20/12/2007
*/
/********************************** Save operator config ********************************/
if ($action == 'saveconfig') {
$operator = required_param('operator', PARAM_ALPHA);
$errors = array();
/// make some controls
$xminrange = required_param('config_xminrange', PARAM_RAW);
$xmaxrange = required_param('config_xmaxrange', PARAM_RAW);
if ($xminrange >= $xmaxrange) {
$error->message = get_string('invertedrange', 'brainstorm');
$error->on = 'xrange';
$errors[] = $error;
}
/// make some controls
$yminrange = required_param('config_yminrange', PARAM_RAW);
$ymaxrange = required_param('config_ymaxrange', PARAM_RAW);
if ($yminrange >= $ymaxrange) {
unset($error);
$error->message = get_string('invertedrange', 'brainstorm');
$error->on = 'yrange';
$errors[] = $error;
}
if (empty($errors)) {
brainstorm_save_operatorconfig($brainstorm->id, $operator);
} else {
print_error_box($errors);
}
}
开发者ID:hmatulis,项目名称:RTL-BIDI-Hebrew-Moodle-Plugins,代码行数:31,代码来源:prepare.controller.php
示例2: print_error_box
print_error_box(sprintf(gettext("Make sure you have already configured your <a href='%s'>Email</a> settings."), "system_email.php"));
}
?>
<?php
if ($input_errors) {
print_input_errors($input_errors);
}
?>
<?php
if ($savemsg) {
print_info_box($savemsg);
}
?>
<?php
if ($failmsg) {
print_error_box($failmsg);
}
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline_checkbox("enable", gettext("Email Report"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
<tr>
<td width="22%" valign="top" class="vncellreq"><?php
echo gettext("To email");
?>
</td>
<td width="78%" class="vtable">
<input name="to" type="text" class="formfld" id="to" size="40" value="<?php
echo htmlspecialchars($pconfig['to']);
?>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:status_report.php
示例3: gettext
echo gettext("Tools");
?>
</span></a></li>
<li class="tabinact"><a href="disks_raid_gvinum_info.php"><span><?php
echo gettext("Information");
?>
</span></a></li>
</ul>
</td>
</tr>
<tr>
<td class="tabcont">
<form action="disks_raid_gvinum.php" method="post">
<?php
if ($errormsg) {
print_error_box($errormsg);
}
?>
<?php
if ($savemsg) {
print_info_box($savemsg);
}
?>
<?php
if (updatenotify_exists_mode("raid_gvinum", UPDATENOTIFY_MODE_DIRTY)) {
print_warning_box(gettext("Warning: You are going to delete a RAID volume. All data will get lost and can not be recovered."));
}
?>
<?php
if (updatenotify_exists("raid_gvinum")) {
print_config_change_box();
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_raid_gvinum.php
示例4: print_input_errors
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tabcont">
<?php
if ($input_errors) {
print_input_errors($input_errors);
}
?>
<?php
if ($savemsg) {
print_info_box($savemsg);
}
?>
<?php
if (!isset($config['system']['zeroconf'])) {
print_error_box(sprintf(gettext("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php"));
}
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline_checkbox("enable", gettext("Digital Audio Access Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
<?php
html_inputbox("servername", gettext("Server name"), $pconfig['servername'], gettext("This is both the name of the server as advertised via Zeroconf/Bonjour/Rendezvous, and the name of the database exported via DAAP."), true, 20);
?>
<?php
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("Port to listen on. Default iTunes port is 3689."), true, 5);
?>
<?php
html_filechooser("dbdir", gettext("Database directory"), $pconfig['dbdir'], gettext("Location where the content database file will be stored."), $g['media_path'], true, 60);
?>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_daap.php
示例5: print_core_box
</span></a></li>
</ul>
</td>
</tr>
<tr>
<td class="tabcont">
<?php
if (!empty($message_box_text)) {
print_core_box($message_box_type, $message_box_text);
}
?>
<?php
if (isset($import) && $import === false) {
?>
<?php
print_error_box(gettext('Nothing to synchronize'));
?>
<?php
}
?>
<form action="<?php
echo $_SERVER['PHP_SELF'];
?>
" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<?php
html_titleline(gettext('Pools') . ' (' . count($zfs['pools']['pool']) . ')', 9);
?>
<tr>
<td width="1%" class="listhdrlr"> </td>
<td width="15%" class="listhdrr"><?php
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_config_sync.php
示例6: print_error_box
<td class="tabcont">
<form action="disks_manage_smart.php" method="post" name="iform" id="iform">
<?php
if (!empty($pconfig['enable']) && !empty($pconfig['email_enable']) && 0 !== email_validate_settings()) {
print_error_box(sprintf(gettext("Make sure you have already configured your <a href='%s'>Email</a> settings."), "system_email.php"));
}
?>
<?php
$smart = false;
foreach ($config['disks']['disk'] as $device) {
if (isset($device['smart'])) {
$smart = true;
}
}
if (false === $smart) {
print_error_box(gettext("Make sure you have activated S.M.A.R.T. for your devices."));
}
?>
<?php
if (!empty($input_errors)) {
print_input_errors($input_errors);
}
?>
<?php
if (!empty($savemsg)) {
print_info_box($savemsg);
}
?>
<?php
if (updatenotify_exists("smartssd")) {
print_config_change_box();
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:disks_manage_smart.php
示例7: html_titleline
?>
<?php
if (isset($fwinfo) && $fwinfo) {
html_titleline(gettext("Online version check"));
echo "<tr id='fwinfo'><td class='vtable' colspan='2'>";
echo "{$fwinfo}";
echo "</td></tr>\n";
html_separator();
}
?>
</table>
<?php
if (!in_array($g['platform'], $fwupplatforms)) {
?>
<?php
print_error_box(gettext("Firmware uploading is not supported on this platform."));
?>
<?php
} elseif (!empty($sig_warning) && empty($input_errors)) {
?>
<form action="system_firmware.php" method="post">
<?php
$sig_warning = "<strong>" . $sig_warning . "</strong><br />" . gettext("This means that the image you uploaded is not an official/supported image and may lead to unexpected behavior or security compromises. Only install images that come from sources that you trust, and make sure that the image has not been tampered with.<br /><br />Do you want to install this image anyway (on your own risk)?");
print_info_box($sig_warning);
?>
<input name="sig_override" type="submit" class="formbtn" id="sig_override" value=" Yes ">
<input name="sig_no" type="submit" class="formbtn" id="sig_no" value=" No ">
<?php
include "formend.inc";
?>
</form>
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:system_firmware.php
示例8: print_input_errors
<tr>
<td class="tabcont">
<form action="system_cron_edit.php" method="post" name="iform" id="iform">
<?php
if (!empty($input_errors)) {
print_input_errors($input_errors);
}
?>
<?php
if (!empty($execmsg)) {
print_info_box($execmsg);
}
?>
<?php
if (!empty($execfailmsg)) {
print_error_box($execfailmsg);
}
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline_checkbox("enable", gettext("Cron job"), $pconfig['enable'] ? true : false, gettext("Enable"));
?>
<?php
html_inputbox("command", gettext("Command"), $pconfig['command'], gettext("Specifies the command to be run."), true, 60);
?>
<?php
$a_user = array();
foreach (system_get_user_list() as $userk => $userv) {
$a_user[$userk] = htmlspecialchars($userk);
}
?>
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:system_cron_edit.php
示例9: display_menu
<?php
echo display_menu("info");
?>
<?php
echo display_menu("irc");
?>
<?php
echo display_menu("donate");
?>
</ul>
<div style="clear:both"></div>
</div>
<br /><br /><br /><br /><br /><br /><br /><br />
<?php
if (!empty($input_errors)) {
print_error_box($input_errors);
}
?>
<br /><br /><br /><br /><br /><br /><br /><br /><br />
<div id="loginpage">
<table height="100%" width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td align="center">
<form name="iform" id="iform" action="login.php" method="post">
<table>
<tbody>
<tr>
<td align="center">
<div class="shadow">
<div id="loginboxheader"><b><?php
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:login.php
示例10: print_error_box
break;
default:
showElementById('shutdowntimer_tr','hide');
break;
}
}
//-->
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tabcont">
<form action="services_ups.php" method="post" name="iform" id="iform">
<?php
if ($pconfig['enable'] && $pconfig['email_enable'] && 0 !== email_validate_settings()) {
print_error_box(sprintf(gettext("Make sure you have already configured your <a href='%s'>Email</a> settings."), "system_email.php"));
}
?>
<?php
if ($input_errors) {
print_input_errors($input_errors);
}
?>
<?php
if ($savemsg) {
print_info_box($savemsg);
}
?>
<table width="100%" border="0" cellpadding="6" cellspacing="0">
<?php
html_titleline_checkbox("enable", gettext("Uninterruptible Power Supply"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_ups.php
注:本文中的print_error_box函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论