当前位置: 首页>>代码示例>>PHP>>正文


PHP print_infor函数代码示例

本文整理汇总了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();
    }
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:60,代码来源:newai_listone.php

示例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;
        }
    }
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:15,代码来源:lib.function.inc.php

示例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();
    }
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:38,代码来源:newai_listtwo.php

示例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';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:v_feiyong_sq_newai.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;
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:getsellplan_index.php

示例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';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:crm_shenqingbaobei_newai.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);
}
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:system_interface.php

示例8: message

 function message($message, $message2)
 {
     print_infor($message2, $message, "location='?'");
     exit;
 }
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:5,代码来源:utility_file.php

示例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';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:26,代码来源:officeproducttui_newai.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 ";
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:my_xingzheng_kaoqinbudeng_newai.php

示例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';
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:workplanmain_detail_newai.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>&nbsp;" . $TextHeader . "</td></tr>";
print "<tr class=TableHeader><td>&nbsp;所属部门</td><td>&nbsp;编辑权限</td><td>&nbsp;管理人员</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>&nbsp;" . $部门名称 . "</td><td><a href=\"?" . base64_encode("FileNameSELF=" . $PHP_SELF_SELF . "&FileName=" . $PHP_SELF . "&ModuleName=" . $部门名称 . "") . "\">&nbsp;编辑权限</a></td>\n\t\t\t<td>&nbsp;" . $rs_a[0]['USER_NAME'] . "</td>\n\t\t\t</tr>";
    }
}
table_end();
开发者ID:shesai0519,项目名称:sunshineCRM,代码行数:31,代码来源:inc_fixedasset_priv.php

示例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');
	?>
开发者ID:NineTea,项目名称:OA_xmjs,代码行数:31,代码来源:edu_plan_newai.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{ 
开发者ID:NineTea,项目名称:OA_xmjs,代码行数:31,代码来源:edu_shoukejihua_shixun_teacher.php

示例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("&nbsp;&nbsp;现在是教务处排课时间.<BR>&nbsp;&nbsp;不能同步教师考勤信息.",'','?');
	exit;
}
else   {

}


//得到教学日记最大填写时间
$goalfile = "../EDU/config_teachercardtimeisactive_inc.ini";
$file = file($goalfile);
$Text = join('',$file);
$教学日记最大填写时间数组 = unserialize($Text);
//print_R($教学日记最大填写时间数组);
$教学日记最大填写时间 = $教学日记最大填写时间数组['JiaoXueRiJiQiXian'];
if($教学日记最大填写时间=="")		{
开发者ID:NineTea,项目名称:OA_xmjs,代码行数:30,代码来源:edu_jiaoxueriji_view_shixun.php


注:本文中的print_infor函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。