本文整理匯總了PHP中print_infor函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_infor函數的具體用法?PHP print_infor怎麽用?PHP print_infor使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了print_infor函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: newai_list_one
function newai_list_one()
{
global $db, $common_html, $tablename_one, $tablename_two, $link;
global $html_etc_one, $html_etc_two, $columns_one, $columns_two;
global $tablename, $SYTEM_CONFIG_TABLE;
global $SUNSHINE_USER_NAME_VAR, $SUNSHINE_USER_ID_VAR, $_SESSION;
$USER_NAME = $_SESSION[$SUNSHINE_USER_NAME_VAR];
print "<SCRIPT language=JavaScript>\n\tfunction clickMenu(url){\n\tparent.main_body.location=url;\n\t}\n\t</SCRIPT>\n\t";
$one_array = explode(':', $tablename_one);
//print_R($one_array);
$link_array = explode(':', $link);
//print_R($link_array);
$columns = returntablecolumn($tablename);
$columns_one = returntablecolumn($one_array[0]);
$html_etc_one = returnsystemlang($one_array[0], $SYTEM_CONFIG_TABLE);
switch ($db->databaseType) {
case 'mysql':
switch ($one_array[3]) {
case 'name':
$sql_one = "select " . $columns_one[(string) $one_array[1]] . "," . $columns_one[(string) $one_array[2]] . " from " . $one_array[0] . " where " . $columns_one[(string) $one_array[4]] . "='" . $USER_NAME . "'";
break;
case 'id':
$sql_one = "select " . $columns_one[(string) $one_array[1]] . "," . $columns_one[(string) $one_array[2]] . " from " . $one_array[0] . "";
break;
default:
$sql_one = "select " . $columns_one[(string) $one_array[1]] . "," . $columns_one[(string) $one_array[2]] . " from " . $one_array[0] . "";
break;
}
break;
case 'mssql':
switch ($one_array[3]) {
case 'name':
$sql_one = "select [" . $columns_one[(string) $one_array[1]] . "],[" . $columns_one[(string) $one_array[2]] . "] from [" . $one_array[0] . "] where [" . $columns_one[(string) $one_array[4]] . "]='" . $USER_NAME . "'";
break;
case 'id':
$sql_one = "select [" . $columns_one[(string) $one_array[1]] . "],[" . $columns_one[(string) $one_array[2]] . "] from [" . $one_array[0] . "]";
break;
default:
$sql_one = "select [" . $columns_one[(string) $one_array[1]] . "],[" . $columns_one[(string) $one_array[2]] . "] from [" . $one_array[0] . "]";
break;
}
break;
}
//print $sql_one;
$rs_one = $db->CacheExecute(150, $sql_one);
if ($rs_one->RecordCount() == 0) {
print_infor($common_html['common_html']['norecord'], 'trip');
exit;
}
while (!$rs_one->EOF) {
if (StrLen($link_array[3]) > 2) {
$LinkIndexName = (string) $link_array[3];
} else {
$LinkIndexName = $columns[(string) $link_array[3]];
}
$url = $link_array[0] . "?" . $link_array[1] . "=" . $link_array[2] . "&" . $LinkIndexName . "=" . $rs_one->fields[(string) $columns_one[(string) $one_array[1]]];
print "\n\t<TABLE class=small cellSpacing=1 cellPadding=0 width='100%' align=center bgColor=#000000 border=0>\n\t<TBODY>\n\t<TR class=TableContent title='' style='CURSOR: hand'\t onclick=clickMenu('{$url}')>\n\t<TD noWrap align=middle><table class=small cellPadding=3 align=center width=100% border=0 onmouseover=bgColor='#ffffff' onmouseout=bgColor='#d3e5fa'>\n\t<Tr><td align=middle><B>" . $rs_one->fields[(string) $columns_one[(string) $one_array[2]]] . "</B></TD></TR>\n\t</table></TD></TR>\n\t</TBODY></TABLE>\n";
$rs_one->MoveNext();
}
}
示例2: COUNT
function 判斷招生數據是否完成()
{
global $db;
return '';
exit;
if ($_GET['action'] == '' || $_GET['action'] == 'init_default') {
$sql = "select COUNT(*) AS NUM from edu_newstudent where 是否轉移學籍 ='1'";
$rs = $db->Execute($sql);
if ($rs->fields['NUM'] > 0) {
page_css("在新生係統存在新生數據");
print_infor("在新生係統存在新生數據,請先處理完新生錄取以及報到工作,轉完成學籍,結束完新生工作以後,再來操作此模塊");
exit;
}
}
}
示例3: newai_list_two
function newai_list_two()
{
global $db, $common_html, $tablename_one, $tablename_two, $link;
global $html_etc_one, $html_etc_two, $columns_one, $columns_two;
global $tablename, $SYTEM_CONFIG_TABLE;
print "<SCRIPT language=JavaScript>\n\tfunction clickMenu(ID){ \n\t targetelement=document.all(ID);\n\tif (targetelement.style.display=='none')\n\t\t\ttargetelement.style.display='';\n\telse\n\t targetelement.style.display='none';\n\t }\n\t</SCRIPT>\n\t";
$one_array = explode(':', $tablename_one);
$two_array = explode(':', $tablename_two);
$link_array = explode(':', $link);
$columns = returntablecolumn($tablename);
$columns_one = returntablecolumn($one_array[0]);
$html_etc_one = returnsystemlang($one_array[0], $SYTEM_CONFIG_TABLE);
$columns_two = returntablecolumn($two_array[0]);
$html_etc_two = returnsystemlang($two_array[0], $SYTEM_CONFIG_TABLE);
$sql_one = "select " . $columns_one[(string) $one_array[1]] . "," . $columns_one[(string) $one_array[2]] . " from " . $one_array[0] . "";
$rs_one = $db->Execute($sql_one);
$Number = $rs_one->RecordCount();
if ($Number == 0) {
print_infor($common_html['common_html']['norecord'], 'trip');
exit;
}
while (!$rs_one->EOF) {
print "\n\t<TABLE class=small cellSpacing=1 cellPadding=0 width='100%' align=center bgColor=#000000 border=0>\n\t<TBODY>\n\t<TR bgColor='#d3e5fa' title='' style='CURSOR: hand'\t onclick=clickMenu('" . $rs_one->fields[(string) $columns_one[(string) $one_array[1]]] . "')>\n\t<TD noWrap align=middle><table class=small cellPadding=3 align=center width=100% border=0 onmouseover=bgColor='#ffffff' onmouseout=bgColor='#d3e5fa'>\n\t<Tr><td align=middle><B>" . $rs_one->fields[(string) $columns_one[(string) $one_array[2]]] . "</B></TD></TR>\n\t</table></TD></TR>\n\t</TBODY></TABLE>\n";
$one_id = $rs_one->fields[(string) $columns_one[(string) $one_array[1]]];
$sql_two = "select " . $columns_two[(string) $two_array[1]] . "," . $columns_two[(string) $two_array[2]] . " from " . $two_array[0] . " where " . $columns_two[(string) $two_array[3]] . "='{$one_id}'";
$rs_two = $db->Execute($sql_two);
//print $sql_two;//exit;
print "\n\t<TABLE class=small id={$one_id} style='DISPLAY: none'\n\tcellSpacing=1 cellPadding=0 width='100%' bgColor=#000000 border=0>\n\t<TBODY>\n";
while (!$rs_two->EOF) {
$two_id = $rs_two->fields[(string) $columns_two[(string) $two_array[1]]];
$two_name = $rs_two->fields[(string) $columns_two[(string) $two_array[2]]];
print "<TR class=TableData align=middle height=20>\n\t<TD noWrap><A href='" . $link_array[0] . "?" . $link_array[1] . "=" . $link_array[2] . "&" . $columns[(string) $link_array[3]] . "={$two_id}&" . $columns_one[(string) $one_array[1]] . "={$one_id}' target=\"main_body\">" . $two_name . "</A>\n\t</TD></TR>\n";
$rs_two->MoveNext();
}
print "</TBODY></TABLE>\n";
$rs_one->MoveNext();
}
}
示例4: ini_set
ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);
error_reporting(E_WARNING | E_ERROR);
require_once 'lib.inc.php';
$GLOBAL_SESSION = returnsession();
validateMenuPriv("報銷單審核");
if ($_GET['action'] == "shenhedan") {
$CaiWu = new CaiWu($db);
$db->StartTrans();
$billid = $_GET['單號'];
$feiyonginfo = returntablefield("v_feiyong_sq", "單號", $billid, "金額,費用類型");
$jine = $feiyonginfo['金額'];
$fytype = $feiyonginfo['費用類型'];
$sql = "update crm_feiyong_sq set 是否審核='4',出納員='" . $_SESSION['LOGIN_USER_ID'] . "',支付時間=now() where 單號='{$billid}'";
$rs = $db->Execute($sql);
$CaiWu->insertFeiYongAccount($fytype, $jine, 1, $_SESSION['LOGIN_USER_ID'], -1);
//是否事務出現錯誤
if ($db->HasFailedTrans()) {
print "<script language=javascript>alert('錯誤:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>";
} else {
page_css("報銷單審核");
$return = $return . "?" . FormPageAction("action", "init_default");
print_infor("已報銷", 'trip', "location='?{$return}'", "{$return}", 0);
}
$db->CompleteTrans();
exit;
}
addShortCutByDate("創建時間", "申請時間");
$filetablename = 'v_feiyong_sq';
$parse_filename = 'v_feiyong_sq';
require_once 'include.inc.php';
示例5: print_infor
//print_R($rs_a);
$mainrowid = $rs_a[0]['mainrowid'];
if ($mainrowid != "") {
$update = "update sellplanmain set dataState ='2' where ROWID='{$MAINROWID}'";
$db->Execute($update);
//print $udpate."<HR>";
}
}
}
//如果采購訂單明細部分數據流轉完成,更新dataState為2。部分流轉顯示未全部執行,更新為1
$udpate = "update sellplandetail set dataState ='2' where stockinfactnum>=plannum";
$db->Execute($udpate);
//print $udpate."<HR>";
//處理返回的數據狀態顯示
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . ROOT_DIR . "theme/3/style.css\">";
print_infor("出庫單己經生成!", $infor = 'trip', $return = '');
print "<br>\n";
print "<div align=center>\n";
print " <input type=button accesskey='r' value=\"" . $common_html['common_html']['close'] . "\" class=\"SmallButton\" onclick=\"javasrcipt:window.opener =null;window.close();\">\n";
print "</div>\n";
//print "<script>window.opener =null;window.close();</script>";
//echo "<META HTTP-EQUIV=REFRESH CONTENT='2;URL=notchecked.php'>\n";
exit;
}
?>
<link rel="stylesheet" type="text/css" href="<?php
echo ROOT_DIR;
示例6: FormPageAction
}
$return = FormPageAction("action", "init_default");
print_infor("<b>審核通過</b>", 'trip', "location='?{$return}'", "?" . $return, 1);
exit;
}
if ($_POST['action'] == "FouJue") {
page_css();
$billid = $_GET['id'];
$sql = "update crm_shenqingbaobei set state='3',shenheman='" . $_SESSION['LOGIN_USER_ID'] . "',shenhetime=now(),piyu='" . $_POST['piyu'] . "' where id='{$billid}'";
$rs = $db->Execute($sql);
$return = FormPageAction("action", "init_default");
print_infor("<b>審核否決</b>", 'trip', "location='?{$return}'", "?" . $return, 1);
exit;
}
if ($_GET['action'] == "edit_FouJue") {
page_css();
$billid = $_GET['id'];
$sql = "update crm_shenqingbaobei set state='1',shenheman='',shenhetime=null,piyu='' where id='{$billid}'";
$rs = $db->Execute($sql);
deleteMessage("項目報備", $billid);
$return = FormPageAction("action", "init_default");
print_infor("<b>撤銷審核</b>", 'trip', "location='?{$return}'", "?" . $return, 1);
exit;
}
addShortCutByDate("createtime", "申請時間");
$SYSTEM_ADD_SQL = getCustomerRoleByCustID($SYSTEM_ADD_SQL, "customerid");
//數據表模型文件,對應Model目錄下麵的crm_shenqingbaobei_newai.ini文件
//如果是需要複製此模塊,則需要修改$parse_filename參數的值,然後對應到Model目錄 新文件名_newai.ini文件
$filetablename = 'crm_shenqingbaobei';
$parse_filename = 'crm_shenqingbaobei';
require_once 'include.inc.php';
示例7: print_submit
print_submit($common_html['common_html']['submit'], 2, 'all', '#');
table_end();
form_end();
}
if ($_GET['action'] == "updatedata") {
if (is_file($goalfile)) {
unlink($goalfile);
}
$goalfile = $goalfile;
$_POST['status_bar'] = str_replace("(", "(", $_POST['status_bar']);
$_POST['status_bar'] = str_replace(")", ")", $_POST['status_bar']);
$_POST['CompanyName'] = str_replace("(", "(", $_POST['CompanyName']);
$_POST['CompanyName'] = str_replace(")", ")", $_POST['CompanyName']);
$_POST['IETitle'] = str_replace("(", "(", $_POST['IETitle']);
$_POST['IETitle'] = str_replace(")", ")", $_POST['IETitle']);
$_POST['LoginTitle'] = str_replace("(", "(", $_POST['LoginTitle']);
$_POST['LoginTitle'] = str_replace(")", ")", $_POST['LoginTitle']);
$string = "[section]\nstatus_bar={$_POST['status_bar']}\n";
$string .= "CompanyName={$_POST['CompanyName']}\n";
$string .= "IETitle={$_POST['IETitle']}\n";
$string .= "LoginTitle={$_POST['LoginTitle']}\n";
$string .= "provinces={$_POST['provinces']}\n";
!($handle = @fopen($goalfile, "w"));
if (!fwrite($handle, $string)) {
exit;
}
fclose($handle);
page_css("Configure");
$showtext = "配置完成!";
print_infor($showtext, "trip", "?", "system_interface.php", 1);
}
示例8: message
function message($message, $message2)
{
print_infor($message2, $message, "location='?'");
exit;
}
示例9: returnsession
<?php
require_once "lib.inc.php";
$GLOBAL_SESSION = returnsession();
require_once "systemprivateinc.php";
CheckSystemPrivate("後勤管理-辦公用品-操作明細");
if ($_GET['action'] == "add_default_data") {
page_css('辦公用品');
$辦公用品編號 = $_POST['辦公用品編號'];
$辦公用品名稱 = $_POST['辦公用品名稱'];
$現在所屬部門 = $_POST['現在所屬部門'];
if ($_POST['批準人'] != "") {
$_POST['單價'] = returntablefield("officeproduct", "辦公用品編號", $辦公用品編號, "單價");
$_POST['數量'] = $_POST['退庫數量'];
$_POST['金額'] = $_POST['單價'] * $_POST['數量'];
$sql = "update officeproduct set 庫存管理=庫存管理+" . $_POST['數量'] . " where 辦公用品編號='{$辦公用品編號}'";
$db->Execute($sql);
//print $sql."<BR>";exit;
} else {
$SYSTEM_SECOND = 1;
print_infor("批準人為空或現在所屬部門為空,您的操作沒有執行成功!", $infor = '該參數新版本沒有被使用', $return = "location='officeproduct_newai.php'", $indexto = 'officeproduct_newai.php');
exit;
}
}
$filetablename = 'officeproducttui';
require_once 'include.inc.php';
示例10: edu_xingzheng_kaoqinbudeng
$人員 = $考勤補登明細[$人員key];
$上班補登狀態 = $考勤補登明細[$上班補登狀態key];
$下班補登狀態 = $考勤補登明細[$下班補登狀態key];
//exit;
// 編號 學期 部門 人員 時間 星期 班次 補登項目 審核狀態 工作流ID號 審核人 審核時間 人員用戶名
if ($上班補登狀態 == 'on') {
$sql = "INSERT INTO edu_xingzheng_kaoqinbudeng ( `編號` , `學期` , `部門` , `人員` , `時間` , `星期` , `班次` , `補登項目` , `審核狀態`, `工作流ID號` , `審核人`, `審核時間` , `人員用戶名` )VALUES ( '', '{$學期名稱}', '{$部門}', '{$人員}', '{$上班時間}', '{$星期}', '{$班次}', '上班考勤補登', '0', '', '', '', '{$人員用戶名}')";
$rs = $db->Execute($sql);
//print $sql;exit;
}
if ($下班補登狀態 == 'on') {
$sql = "INSERT INTO edu_xingzheng_kaoqinbudeng ( `編號` , `學期` , `部門` , `人員` , `時間` , `星期` , `班次` , `補登項目` , `審核狀態`, `工作流ID號` , `審核人`, `審核時間` , `人員用戶名` )VALUES ( '', '{$學期名稱}', '{$部門}', '{$人員}', '{$上班時間}', '{$星期}', '{$班次}', '下班考勤補登', '0', '', '', '', '{$人員用戶名}')";
$rs = $db->Execute($sql);
}
}
print_infor("提交成功,請返回...");
print "<meta http-equiv=\"REFRESH\" content=\"0 URL=?\">";
exit;
}
if ($_GET['action'] == 'DataDeal') {
$query = "delete from edu_xingzheng_kaoqinbudeng where 編號='{$編號}' and 審核狀態=0 ";
//print_R($_POST);
//print $query;exit;
print "<BR><BR><div align=center><font color=green>你的操作已經處理!</font></div>";
$db->Execute($query);
//dandian_sql_log($connection,$query);
print "<META HTTP-EQUIV=REFRESH CONTENT='0;URL=?'>\n";
exit;
}
if ($_GET['action2'] == 'DataDeal') {
$query = "delete from edu_xingzheng_kaoqinbudeng where 編號='{$編號}' and 審核狀態=0 ";
示例11: explode
if ($_GET['action'] == "delete_array") {
$selectid = $_GET['selectid'];
$selectid = explode(",", $selectid);
$db->StartTrans();
require_once "../Framework/uploadFile.php";
for ($i = 0; $i < sizeof($selectid); $i++) {
if ($selectid[$i] != "") {
deleteFile("workplanmain_detail", "id", $selectid[$i], "fujian");
$mainrowid = returntablefield("workplanmain_detail", "id", $selectid[$i], "mainrowid");
$sql = "delete from workplanmain_detail where id=" . $selectid[$i];
$db->Execute($sql);
updateWorkplanmain($mainrowid);
}
}
//是否事務出現錯誤
if ($db->HasFailedTrans()) {
print "<script language=javascript>alert('錯誤:" . str_replace("'", "\\'", $db->ErrorMsg()) . "');window.history.back(-1);</script>";
} else {
page_css("任務執行記錄");
$return = FormPageAction("action", "init_default");
print_infor("任務執行記錄已刪除", 'trip', "location='?{$return}'", "?{$return}", 0);
}
$db->CompleteTrans();
exit;
}
addShortCutByDate("begintime", "開始時間");
$SYSTEM_ADD_SQL = getRoleByUser($SYSTEM_ADD_SQL, "createman");
//$SYSTEM_PRINT_SQL=1;
$filetablename = 'workplanmain_detail';
$parse_filename = 'workplanmain_detail';
require_once 'include.inc.php';
示例12: TRIM
$ROLE_NAME = $_POST['PRIV_NAME'];
$FileNameSELF = $_POST['FileNameSELF'];
//print_R($_POST);exit;
$sql = "select MODULE from systemprivateinc where `FILE`='{$FILE}' and `MODULE`='{$MODULE}'";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
//print_R($cursor1);exit;
$MODULE2 = TRIM($rs_a[0]['MODULE']);
//print $MODULE2;
if ($MODULE2 != "") {
$sql = "update systemprivateinc set `DEPT_ID`='{$DEPT_ID}',`USER_ID`='{$USER_ID}',`ROLE_ID`='{$ROLE_ID}',`DEPT_NAME`='{$DEPT_NAME}',`USER_NAME`='{$USER_NAME}',`ROLE_NAME`='{$ROLE_NAME}' where `FILE`='{$FILE}' and `MODULE`='{$MODULE}'";
} else {
$sql = "insert into systemprivateinc values('','{$FILE}','{$MODULE}','{$DEPT_ID}','{$DEPT_NAME}','{$ROLE_ID}','{$ROLE_NAME}','{$USER_ID}','{$USER_NAME}')";
}
$db->Execute($sql);
print_infor("您的配置已經完成", '', "location='?'", "?");
exit;
}
table_begin("100%");
print "<tr class=TableHeader><td colspan=5> " . $TextHeader . "</td></tr>";
print "<tr class=TableHeader><td> 所屬部門</td><td> 編輯權限</td><td> 管理人員</td></tr>";
for ($i = 0; $i < sizeof($rsX_a); $i++) {
$部門名稱 = $rsX_a[$i]['所屬部門'];
$sql = "select * from systemprivateinc where MODULE='" . $部門名稱 . "' and FILE='{$PHP_SELF}'";
$rs = $db->Execute($sql);
$rs_a = $rs->GetArray();
if ($部門名稱 != "") {
print "<tr class=TableData><td> " . $部門名稱 . "</td><td><a href=\"?" . base64_encode("FileNameSELF=" . $PHP_SELF_SELF . "&FileName=" . $PHP_SELF . "&ModuleName=" . $部門名稱 . "") . "\"> 編輯權限</a></td>\n\t\t\t<td> " . $rs_a[0]['USER_NAME'] . "</td>\n\t\t\t</tr>";
}
}
table_end();
示例13: COUNT
else {
$_GET['級別'] = $_SESSION['級別'];
$_GET['專業代碼'] = $_SESSION['專業代碼'];
$_GET['專業名稱'] = $_SESSION['專業名稱'];
}
}
if($_GET['action']=="add_default_data"||$_GET['action']=="edit_default_data") {
//print_R($_POST);exit;
$_POST['課程代碼'] = $_POST['課程名稱_ID'];
//在此處理重複數據的情況
$sql = "select COUNT(*) AS NUM from edu_plan_source where 級別='".$_POST['級別']."' and 課程代碼='".$_POST['課程代碼']."' and 專業代碼='".$_POST['專業代碼']."'";
$rs = $db->Execute($sql);
$NUM = $rs->fields['NUM'];
if($NUM>0) {
page_css("信息重複");
print_infor("專業名稱:".$_POST['專業名稱']." 課程名稱:".$_POST['課程名稱']." 級別:".$_POST['級別']." 第幾學期:".$_POST['第幾學期']." 發生信息重複,請返回!",'',"location='?'");
exit;
}
}
//數據表模型文件,對應Model目錄下麵的edu_plan_newai.ini文件
//如果是需要複製此模塊,則需要修改$parse_filename參數的值,然後對應到Model目錄 新文件名_newai.ini文件
$filetablename = 'edu_plan';
$parse_filename = 'edu_plan';
require_once('include.inc.php');
?>
示例14: trim
$課題考試學時 = trim($_POST['課題考試學時']);
$機動學時 = trim($_POST['機動學時']);
$其它 = trim($_POST['其它']);
$班級人數 = trim($_POST['班級人數']);
$尚需授課學時數 = trim($_POST['尚需授課學時數']);
$大綱要求及變動說明 = trim($_POST['大綱要求及變動說明']);
$教學大綱 = trim($_POST['教學大綱']);
$基本教材 = trim($_POST['基本教材']);
$主要參考書 = trim($_POST['主要參考書']);
$sql = "update edu_shoukejihua_shixun set 總學時數='$總學時數', 已講授學時數='$已講授學時數', 周學時數='$周學時數',授課周數='$授課周數',授課時數='$授課時數',講課學時='$講課學時',示範學時='$示範學時',實作學時='$實作學時',課題考試學時='$課題考試學時',機動學時='$機動學時',其它='$其它',班級人數='$班級人數',尚需授課學時數='$尚需授課學時數',大綱要求及變動說明='$大綱要求及變動說明',教學大綱='$教學大綱',基本教材='$基本教材',主要參考書='$主要參考書' where 編號='$編號' ";
$db->Execute($sql);
page_css("數字化校園-教師授課計劃");
print_infor("你的授課計劃已經填寫成功,係統返回中...",'',"location='edu_shoukejihua_view_shixun.php'");
print "<META HTTP-EQUIV=REFRESH CONTENT='0;URL=edu_shoukejihua_view_shixun.php'>\n";
exit;
}
?>
<HTML>
<HEAD>
<TITLE>數字化校園-教師授課計劃</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="<?=$_SESSION['SUNSHINE_THEME_PRE']?>/theme/<?=$LOGIN_THEME?>/style.css" type=text/css rel=stylesheet>
<script type="text/javascript" language="javascript" src="../../Enginee/lib/common.js"></script>
<style type="text/css">
table{
示例15: file
//判斷是否在智能排課的時間範圍之內
$goalfile = "../EDU/config_schedule_autoform_inc.ini";
$file = file($goalfile);
$Text = join('',$file);
$DataText = unserialize($Text);
//print_r($DataText);
$開始時間 = $DataText['開始時間'];
$開始時間Array = explode('-',$開始時間);
$結束時間 = $DataText['結束時間'];
$結束時間Array = explode('-',$結束時間);
$開始時間 = date("Y-m-d",mktime(1,1,1,$開始時間Array[1],$開始時間Array[2],$開始時間Array[0]));
$結束時間 = date("Y-m-d",mktime(1,1,1,$結束時間Array[1],$結束時間Array[2],$結束時間Array[0]));
$當前時間 = date("Y-m-d");
if($當前時間>=$開始時間&&$當前時間<=$結束時間) {
print_infor(" 現在是教務處排課時間.<BR> 不能同步教師考勤信息.",'','?');
exit;
}
else {
}
//得到教學日記最大填寫時間
$goalfile = "../EDU/config_teachercardtimeisactive_inc.ini";
$file = file($goalfile);
$Text = join('',$file);
$教學日記最大填寫時間數組 = unserialize($Text);
//print_R($教學日記最大填寫時間數組);
$教學日記最大填寫時間 = $教學日記最大填寫時間數組['JiaoXueRiJiQiXian'];
if($教學日記最大填寫時間=="") {