本文整理匯總了PHP中Warehouse函數的典型用法代碼示例。如果您正苦於以下問題:PHP Warehouse函數的具體用法?PHP Warehouse怎麽用?PHP Warehouse使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Warehouse函數的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ErrorMessage
function ErrorMessage($errors, $code = 'error')
{
if ($errors) {
$return = "<TABLE border=0><TR><TD align=left>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<b><font color=#CC0000>' . Localize('colon', _('Error')) . '</font></b> ';
} else {
$return .= '<b><font color=#00CC00>' . Localize('colon', _('Note')) . '</font></b> ';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<b><font color=#CC0000>" . Localize('colon', _('Errors')) . "</font></b>";
} else {
$return .= '<b><font color=#00CC00>' . Localize('colon', _('Note')) . '</font></b>';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI><font size=-1>{$value}</font></LI>\n";
}
$return .= '</ul>';
}
$return .= "</TD></TR></TABLE><br>";
if ($code == 'fatal') {
echo $return;
if (!$_REQUEST['_CENTRE_PDF']) {
Warehouse('footer');
}
exit;
}
return $return;
}
}
示例2: HackingLog
function HackingLog()
{
echo "You're not allowed to use this program! This attempted violation has been logged and your IP address was captured.";
Warehouse('footer');
if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
if ($openSISNotifyAddress) {
mail($openSISNotifyAddress, 'HACKING ATTEMPT', "INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$ip}','" . date('Y-m-d') . "','{$openSISVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','{$_REQUEST['modname']}','" . User('USERNAME') . "')");
}
/*if($openSISNotifyAddress)
mail($openSISNotifyAddress,'HACKING ATTEMPT',"INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('$_SERVER[SERVER_NAME]','$_SERVER[REMOTE_ADDR]','".date('Y-m-d')."','$openSISVersion','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]','$_REQUEST[modname]','".User('USERNAME')."')");*/
if (false && function_exists('mysql_query')) {
if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
$link = @mysql_connect('os4ed.com', 'openSIS_log', 'openSIS_log');
@mysql_select_db('openSIS_log');
@mysql_query("INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$ip}','" . date('Y-m-d') . "','{$openSISVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','{$_REQUEST['modname']}','" . User('USERNAME') . "')");
@mysql_close($link);
/*$link = @mysql_connect('os4ed.com','openSIS_log','openSIS_log');
@mysql_select_db('openSIS_log');
@mysql_query("INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('$_SERVER[SERVER_NAME]','$_SERVER[REMOTE_ADDR]','".date('Y-m-d')."','$openSISVersion','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]','$_REQUEST[modname]','".User('USERNAME')."')");
@mysql_close($link);*/
}
}
示例3: HackingLog
function HackingLog()
{
global $RosarioNotifyAddress;
echo _('You\'re not allowed to use this program!') . ' ' . _('This attempted violation has been logged and your IP address was captured.');
Warehouse('footer');
if ($RosarioNotifyAddress) {
//modif Francois: add email headers
$headers = 'From:' . $RosarioNotifyAddress . "\r\n";
$headers .= 'Return-Path:' . $RosarioNotifyAddress . "\r\n";
$headers .= 'Reply-To:' . $RosarioNotifyAddress . "\r\n" . 'X-Mailer:PHP/' . phpversion();
$params = '-f ' . $RosarioNotifyAddress;
@mail($RosarioNotifyAddress, 'HACKING ATTEMPT', "INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,QUERY_STRING,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$_SERVER['REMOTE_ADDR']}','" . date('Y-m-d') . "','{$RosarioVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','{$_REQUEST['modname']}','{$_SERVER['QUERY_STRING']}','" . User('USERNAME') . "')", $headers, $params);
}
exit;
}
示例4: HackingLog
function HackingLog()
{
echo "You're not allowed to use this program! This attempted violation has been logged and your IP address was captured.";
Warehouse('footer');
if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
if ($openSISNotifyAddress) {
mail($openSISNotifyAddress, 'HACKING ATTEMPT', "INSERT INTO hacking_log (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$ip}','" . date('Y-m-d') . "','{$openSISVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','{$_REQUEST['modname']}','" . User('USERNAME') . "')");
}
if (false && function_exists('query')) {
if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
$connection = new mysqli('os4ed.com', 'openSIS_log', 'openSIS_log', 'openSIS_log');
$connection->query("INSERT INTO hacking_log (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$ip}','" . date('Y-m-d') . "','{$openSISVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','" . optional_param('modname', '', PARAM_CLEAN) . "','" . User('USERNAME') . "')");
mysqli_close($link);
}
}
示例5: ErrorMessage
function ErrorMessage($errors, $code = 'error')
{
if ($errors) {
//modif Francois: css WPadmin
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<div class="error"><p><IMG SRC="assets/x.png" class="alignImg"> <b>' . Localize('colon', _('Error')) . '</b> ';
} else {
$return .= '<div class="updated"><p><b>' . Localize('colon', _('Note')) . '</b> ';
}
$return .= ($errors[0] ? $errors[0] : $errors[1]) . '</p>';
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= '<div class="error"><p><IMG SRC="assets/x.png" class="alignImg"> <b>' . Localize('colon', _('Errors')) . "</b></p>";
} else {
$return .= '<div class="updated"><p> <b>' . Localize('colon', _('Note')) . '</b></p>';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= '<LI><span class="size-1">' . $value . '</span></LI>' . "\n";
}
$return .= '</ul>';
}
$return .= '</div><BR />';
if ($code == 'fatal') {
echo $return;
if (!isset($_REQUEST['_ROSARIO_PDF'])) {
Warehouse('footer');
} else {
global $print_data;
PDFStop($print_data);
}
exit;
}
return $return;
}
}
示例6: Copyright
# an email to info@os4ed.com.
#
# Copyright (C) 2007-2008, Open Solutions for Education, Inc.
#
#*************************************************************************
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 2 of the License. See license.txt.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#**************************************************************************
Warehouse('header');
echo '<link rel="stylesheet" type="text/css" href="styles/login.css">';
echo '<script type="text/javascript" src="js/tabmenu.js"></script>';
echo "\n\t<script type='text/javascript'>\n\tfunction delete_cookie (cookie_name)\n\t\t{\n \t\t\tvar cookie_date = new Date ( ); // current date & time\n \t\t\tcookie_date.setTime ( cookie_date.getTime() - 1 );\n\t\t\t document.cookie = cookie_name += \"=; expires=\" + cookie_date.toGMTString();\n\t\t}\n\n</script>";
echo "<BODY onLoad='document.loginform.USERNAME.focus(); delete_cookie(\"dhtmlgoodies_tab_menu_tabIndex\");'>";
echo "";
echo "\n\t<form name=loginform method='post' action='index.php'>\n\t<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td valign='middle' height='100%'><table class='wrapper' border='0' cellspacing='0' cellpadding='0' align='center'>\n \n <tr>\n <td class='header'><table width='100%' border='0' cellspacing='0' cellpadding='0' class='logo_padding'>\n <tr>\n <td><img src='assets/osis_logo.png' height='63' width='152' border='0' /></td>\n <td align='right'><a href='http://www.os4ed.com' target=_blank ><img src='assets/os4ed_logo.png' height='62' width='66' border='0'/></a></td>\n </tr>\n </table></td>\n </tr>\n <tr>\n <td class='content'><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td class='header_padding'><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td class='header_txt'>Student Information System</td>\n </tr>\n </table></td>\n </tr>\n <tr>\n <td class='padding'><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td>\n \n\t\t\t\t<table border='0' cellspacing='2' cellpadding='2' align=center>\n \n <tr>\n <td>User Name :</td>\n <td><input name='USERNAME' type='text' class='login_txt'></td>\n </tr>\n <tr>\n <td>Password :</td>\n <td><input name='PASSWORD' class='login_txt' type='password'></td>\n </tr>\n\t\t\t\t <tr><td colspan=2>\n\t\t\t\t ";
if ($_REQUEST['reason']) {
$note[] = 'You must have javascript enabled to use openSIS.';
}
echo ErrorMessage($error, 'Error');
echo "\n\t\t\t\t </td></tr><tr>\n <td></td>\n <td><input name='' type='submit' class='login' value='' onMouseDown=Set_Cookie('dhtmlgoodies_tab_menu_tabIndex','',-1) />\n </td>\n </tr>\n\t\t\t\t </table>\n\t\t\t\t </td>\n </tr>\n <tr>\n <td align='center'><p style='padding:6px;'>This is a restricted network. Use of this network, its equipment, and resources is monitored at all times and requires explicit permission from the network administrator. \n If you do not have this permission in writing, you are violating the regulations of this network and can and will be prosecuted to the fullest extent of law. By continuing into this system, you are acknowledging that you are aware of and agree to these terms.</p></td>\n </tr>\n </table></td>\n </tr>\n </table>\n </tr>\n </table>\n <tr>\n <td class='footer' valign='top'><table width='100%' border='0' cellspacing='0' cellpadding='0'>\n <tr>\n <td class='margin'></td>\n </tr>\n <tr>\n <td align='center' class='copyright'>\n Copyright © 2007-2008 Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).\n Opensis is licensed under the <a href='http://www.gnu.org/licenses/gpl.html'>GPL License</a>.\n </td>\n </tr>\n </table></td>\n </tr>\n </table></td>\n </tr>\n</table>\n</td>\n</tr>\n</table></form>\n";
Warehouse("footer");
示例7: DBQuery
}
if ($allowed) {
if (Preferences('SEARCH') != 'Y') {
$_REQUEST['search_modfunc'] = 'list';
}
include 'modules/' . $modname;
} else {
if (User('USERNAME')) {
if ($_SERVER['HTTP_X_FORWARDED_FOR']) {
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}
echo "You're not allowed to use this program! This attempted violation has been logged and your IP address was captured.";
DBQuery("INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$ip}','" . date('Y-m-d') . "','{$openSISVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','{$_REQUEST['modname']}','" . User('USERNAME') . "')");
Warehouse('footer');
if ($openSISNotifyAddress) {
//mail($openSISNotifyAddress,'HACKING ATTEMPT',"INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('$_SERVER[SERVER_NAME]','$ip','".date('Y-m-d')."','$openSISVersion','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]','$_REQUEST[modname]','".User('USERNAME')."')");
mail($openSISNotifyAddress, 'HACKING ATTEMPT', "INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('{$_SERVER['SERVER_NAME']}','{$ip}','" . date('Y-m-d') . "','{$openSISVersion}','{$_SERVER['PHP_SELF']}','{$_SERVER['DOCUMENT_ROOT']}','{$_SERVER['SCRIPT_NAME']}','" . optional_param('modname', '', PARAM_NOTAGS) . "','" . User('USERNAME') . "')");
}
/*echo "You're not allowed to use this program! This attempted violation has been logged and your IP address was captured.";
DBQuery("INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('$_SERVER[SERVER_NAME]','$_SERVER[REMOTE_ADDR]','".date('Y-m-d')."','$openSISVersion','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]','$_REQUEST[modname]','".User('USERNAME')."')");
Warehouse('footer');
if($openSISNotifyAddress)
mail($openSISNotifyAddress,'HACKING ATTEMPT',"INSERT INTO HACKING_LOG (HOST_NAME,IP_ADDRESS,LOGIN_DATE,VERSION,PHP_SELF,DOCUMENT_ROOT,SCRIPT_NAME,MODNAME,USERNAME) values('$_SERVER[SERVER_NAME]','$_SERVER[REMOTE_ADDR]','".date('Y-m-d')."','$openSISVersion','$_SERVER[PHP_SELF]','$_SERVER[DOCUMENT_ROOT]','$_SERVER[SCRIPT_NAME]','$_REQUEST[modname]','".User('USERNAME')."')");*/
}
exit;
}
if ($_SESSION['unset_student']) {
unset($_SESSION['unset_student']);
unset($_SESSION['staff_id']);
示例8: PopTable
PopTable('header', 'Search');
echo "<FORM action=Modules.php?modname={$_REQUEST['modname']}&modfunc=list method=POST>";
echo '<TABLE>';
Warehouse('searchstu');
echo '<TR><TD>Balance Between</TD><TD><INPUT type=text name=balance_low> & <INPUT type=text name=balance_high></TD></TR>';
echo '<TR><TD>Balance Not Zero</TD><TD><INPUT type=checkbox name=not_zero value=Y></TD></TR>';
echo '<TR><TD>Invoice</TD><TD>';
echo '<SELECT name=editor>
<OPTION value=both>Student Billing & Lunch</OPTION>
<OPTION value=stubilling SELECTED>Student Billing</OPTION>
<OPTION value=lunch>Lunch</OPTION>
</SELECT>';
echo '</TD></TR>';
PrepareSchool(SessionSchool(), '', SessionCurSchool());
Warehouse('searchgrade');
Warehouse('searchyear');
if (defined('PRINT_LETTER')) {
echo '<TR><TD>Letter Text</TD><TD>';
echo '<TEXTAREA name=letter rows=10 cols=50>
Dear __PARENTS__,
Your child, __STUDENT__ (__STUDENT_ID__) now has a balance of __BALANCE__. It should be refilled as soon as possible to avoid running out.
--Administration
</TEXTAREA>';
echo '</TD></TR>';
}
echo '<TR><TD colspan=2 align=center>';
Buttons('Find', 'Reset');
echo '</TD></TR>';
echo '</TABLE>';
示例9: Warehouse
$error[] = "Please provide username. Please try again.";
}
if (optional_param('USERNAME', '', PARAM_RAW) != '' && optional_param('PASSWORD', '', PARAM_RAW) == '') {
$error[] = "Please provide password. Please try again.";
}
}
}
if (optional_param('modfunc', '', PARAM_ALPHA) == 'create_account') {
Warehouse('header');
$_openSIS['allow_edit'] = true;
if ($_REQUEST['staff']['USERNAME']) {
$_REQUEST['modfunc'] = 'update';
} else {
$_REQUEST['staff_id'] = 'new';
}
include 'modules/users/User.php';
if (!$_REQUEST['staff']['USERNAME']) {
Warehouse('footer_plain');
} else {
$note[] = 'Your account has been created. You will be notified by email when it is verified by school administration and you can log in.';
session_destroy();
}
}
if (!$_SESSION['STAFF_ID'] && !$_SESSION['STUDENT_ID'] && $_REQUEST['modfunc'] != 'create_account') {
//Login
require "LoginInc.php";
} elseif ($_REQUEST['modfunc'] != 'create_account') {
echo "\n <HTML>\n <HEAD><TITLE>" . Config('TITLE') . "</TITLE><link rel=\"shortcut icon\" href=\"favicon.ico\"></HEAD>";
echo "<noscript><META http-equiv=REFRESH content='0;url=EnableJavascript.php' /></noscript>";
echo "<frameset id=mainframeset rows='*,0' border=0 framespacing=0>\n <frameset cols='0,*' border=0>\n <frame name='side' src='' frameborder='0' />\n <frame name='body' src='Modules.php?modname=" . ($_REQUEST['modname'] = 'miscellaneous/Portal.php') . "&failed_login={$failed_login}' frameborder='0' style='border: inset #C9C9C9 2px' />\n </frameset>\n <frame name='help' src='' />\n </frameset>\n </HTML>";
}
示例10: DBQuery
}
if ($_REQUEST[stuid]) {
$where .= "and a1.STUDENT_ID = '" . $_REQUEST[stuid] . "'";
}
// CONSTRUCT SQL
$sql = "SELECT {$select} FROM {$from} WHERE {$where} ORDER BY a1.STUDENT_ID";
$QI = DBQuery($sql);
$RET = DBGet($QI, $LO_functions);
$_REQUEST[modfunc] = 'list';
ListOutput($RET, $LO_columns, 'Student', 'Students');
}
if ($modfunc == 'find') {
PopTable('header', 'Find a Student');
echo "<FORM action='Modules.php?modname={$_REQUEST['modname']}&modfunc=list' METHOD=POST>";
echo '<b>Search Criteria:</b>';
Warehouse('searchstu');
echo '</TABLE>';
echo '<HR>';
echo '<b>List:</B>';
echo '<TABLE><TR><TD>';
foreach ($org as $cat_name => $tables) {
echo '<TABLE border=0 cellpadding=5><TR><TD colspan=7 align=left><b>' . $cat_name . '</b></TD></TR>';
echo '<TR><TD></TD>';
$col = 1;
foreach ($tables as $table_name) {
if (count($fields[$table_name])) {
foreach ($fields[$table_name] as $column_name => $column_disp) {
echo "<TD><INPUT type=checkbox name='field_list[{$table_name}][{$column_name}]'></TD><TD>{$column_disp}</TD>";
$col++;
if ($col == 4) {
echo '</TR><TR><TD width=10> </TD>';
示例11: ErrorMessage1
function ErrorMessage1($errors, $code = 'error')
{
if ($errors) {
$return = "<div style=text-align:left><table cellpadding=5 cellspacing=5 class=alert_box ><tr>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<td class=note></td><td class=note_msg >';
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<td class=note></td><td class=note_msg >";
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI>{$value}</LI>\n";
}
$return .= '</ul>';
}
$return .= "</td></tr></table></div>";
if ($code == 'fatal') {
$css = getCSS();
$return .= "</td></tr></table>";
$return .= "</td></tr></table></div>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr>";
$return .= "<tr>\r\n\t\t\t\t\t\t\t<td class=\"footer\">\r\n\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td align='center' class='copyright'>\r\n\t\t\t\t\t\t\t\t <center>Copyright 2016@Feng Hua Language Studies Centre/豐華語言學習中心. All rights reserved.</center></td>\r\n\t\t\t\t\t\t\t </tr>\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</table>";
$return .= "</td></tr></table></td></tr></table>";
if ($isajax == "") {
if (!$_REQUEST['_openSIS_PDF']) {
Warehouse('footer');
}
}
exit;
}
return $return;
}
}
示例12: ErrorMessage1
function ErrorMessage1($errors, $code = 'error')
{
if ($errors) {
$return = "<div style=text-align:left><table cellpadding=5 cellspacing=5 class=alert_box ><tr>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<td class=note></td><td class=note_msg >';
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<td class=note></td><td class=note_msg >";
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI>{$value}</LI>\n";
}
$return .= '</ul>';
}
$return .= "</td></tr></table></div>";
if ($code == 'fatal') {
$css = getCSS();
$return .= "</td></tr></table>";
$return .= "</td></tr></table></div>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr>";
$return .= "<tr>\n\t\t\t\t\t\t\t<td class=\"footer\">\n\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td valign=middle class=\"copyright\">Copyright © 2007-2008 Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).</td>\n\t\t\t\t\t\t\t<td valign=bottom class=\"credits\"><a href='http://www.os4ed.com' target='_blank'><img src=\"themes/" . $css . "/os4ed_logo.png\" /></a></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>";
$return .= "</td></tr></table></td></tr></table>";
if ($isajax == "") {
// echo $return;
if (!$_REQUEST['_CENTRE_PDF']) {
Warehouse('footer');
}
}
exit;
}
return $return;
}
}
示例13: _ErrorMessage
function _ErrorMessage($errors, $code = 'error')
{
if ($errors) {
$return .= '<TABLE><TR><TD style="text-align:left;">';
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<b><span style="color:#CC0000">Error:</span></b> ';
} else {
$return .= '<b><span style="color:#00CC00">Note:</span></b> ';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= '<b><span style="color:#CC0000">Errors:</span></b>';
} else {
$return .= '<b><span style="color:#00CC00">Note:</span></b>';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= '<LI><span class="size-1">' . $value . '</span></LI>' . "\n";
}
$return .= '</ul>';
}
$return .= "</TD></TR></TABLE><BR />";
if ($code == 'fatal') {
echo $return;
if (!isset($_REQUEST['_ROSARIO_PDF'])) {
Warehouse('footer');
}
exit;
}
return $return;
}
}
示例14: ErrorMessage1
function ErrorMessage1($errors, $code = 'error')
{
if ($errors) {
$return = "<div style=text-align:left><table cellpadding=5 cellspacing=5 class=alert_box ><tr>";
if (count($errors) == 1) {
if ($code == 'error' || $code == 'fatal') {
$return .= '<td class=note></td><td class=note_msg >';
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= $errors[0] ? $errors[0] : $errors[1];
} else {
if ($code == 'error' || $code == 'fatal') {
$return .= "<td class=note></td><td class=note_msg >";
} else {
$return .= '<td class=alert></td><td class=alert_msg >';
}
$return .= '<ul>';
foreach ($errors as $value) {
$return .= "<LI>{$value}</LI>\n";
}
$return .= '</ul>';
}
$return .= "</td></tr></table></div>";
if ($code == 'fatal') {
$css = getCSS();
$return .= "</td></tr></table>";
$return .= "</td></tr></table></div>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr></table>";
$return .= "</td></tr>";
$return .= "<tr>\r\n\t\t\t\t\t\t\t<td class=\"footer\">\r\n\t\t\t\t\t\t\t<table width=\"100%\" border=\"0\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<td align='center' class='copyright'>\r\n\t\t\t\t\t\t\t\t <center>openSIS is a product of Open Solutions for Education, Inc. (<a href='http://www.os4ed.com' target='_blank'>OS4Ed</a>).\r\n\t\t\t\t\t\t\t\t\t\t\tand is licensed under the <a href='http://www.gnu.org/licenses/gpl.html' target='_blank'>GPL License</a>.\r\n\t\t\t\t\t\t\t\t\t\t\t</center></td>\r\n\t\t\t\t\t\t\t </tr>\r\n\t\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</table>";
$return .= "</td></tr></table></td></tr></table>";
if ($isajax == "") {
if (!$_REQUEST['_openSIS_PDF']) {
Warehouse('footer');
}
}
exit;
}
return $return;
}
}