當前位置: 首頁>>代碼示例>>PHP>>正文


PHP print_error_box函數代碼示例

本文整理匯總了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">&nbsp;</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;未經允許,請勿轉載。