require_once("lib.inc.php");
$GLOBAL_SESSION=returnsession();
require_once("systemprivateinc.php");
//CheckSystemPrivate("日常教学管理-教学日记");
//######################教育组件-权限较验部分##########################
//$SYSTEM_PRINT_SQL = "1";

$filetablename='edu_teacherkaoqinmingxi';
$parse_filename = "edu_jiaoxueriji";


$当前学期 = returntablefield("edu_xueqiexec","当前学期",'1',"学期名称");
if($_GET['学期']=="") $_GET['学期'] = $当前学期;

//对校长查看权限进行特殊定义###############开始
if($_GET['指定人员']!="")			{
	//$指定人员姓名 = returntablefield("user","USER_ID",$_GET['指定人员'],"USER_NAME");
	//$_GET['教师'] = returntablefield("user","USER_ID",$_GET['指定人员'],"USER_NAME");
	$_GET['教师用户名'] = $_GET['指定人员'];
}
else	{
	//$_GET['教师用户名'] = $_SESSION['LOGIN_USER_NAME'];
}
//print_R($_GET);
//$SYSTEM_PRINT_SQL = "1";
//对校长查看权限进行特殊定义###############结束

增加对查询日期快捷方式的支持("考勤日期");

require_once('include.inc.php');
?>
$当前学期 = returntablefield("edu_xueqiexec","当前学期",'1',"学期名称");
if($_GET['学期']=="") $_GET['学期'] = $当前学期;

//对校长查看权限进行特殊定义###############开始
if($_GET['指定人员']!="")			{
	//$指定人员姓名 = returntablefield("user","USER_ID",$_GET['指定人员'],"USER_NAME");
	//$_GET['教师'] = returntablefield("user","USER_ID",$_GET['指定人员'],"USER_NAME");
	$_GET['教师用户名'] = $_GET['指定人员'];
}
else	{
	//$_GET['教师用户名'] = $_SESSION['LOGIN_USER_NAME'];
}
//print_R($_GET);
//$SYSTEM_PRINT_SQL = "1";
//对校长查看权限进行特殊定义###############结束

if ($_GET['action']=="" || $_GET['action']=="init_default")
{
	//删除星期为空的数据
	$sql = "delete from td_edu.edu_jiaoxueriji_shixun where (星期='' || 星期 is null) and 学期='$当前学期' ";
	//echo $sql;
	$rs = $db->Execute($sql);
}

增加对查询日期快捷方式的支持("应该填写时间");

$filetablename='edu_jiaoxueriji_shixun';
$parse_filename = "edu_jiaoxueriji_shixun";

require_once('include.inc.php');
?>