Example #1
0
		JiBiePreview();
		break;
	case 'showBanjizongbiaoInfor':
		page_css2($IE_TITLE,"班级课程总表查询");
		BanjiZongbiaoPreview();
		break;
	case 'showJifangzongbiaoInfor':
		page_css2($IE_TITLE,"电脑机房安排总表查询");
		JifangZongbiaoPreview();
		break;
	case 'showJiaoshizongbiaoInfor':
		page_css2($IE_TITLE,"教师课程总表查询");
		JiaoshiZongbiaoPreview();
		break;
	case 'showDuomeitiJiaoshizongbiaoInfor':
		page_css2($IE_TITLE,"多媒体机房安排总表查询");
		DuomeitiJiaoshiZongbiaoPreview();
		break;
}

//########################################################################
//级别总课表模版调用
//print_R($_SERVER);
function JiBiePreview()	{
	global $smarty,$_SESSION,$db;
	global $班主任,$ZhuanYeCode,$CurXueQi;

	$当前周次 = returnCurWeekIndex();
	if($_GET['WeekIndex']=='')		{
		$_GET['WeekIndex'] = $当前周次;
	}
		page_css2($IE_TITLE,"封面打印");
		if ($type == "lilun") {LilunIndexPreview();}
		if ($type == "shixun") {ShixunIndexPreview();}
		break;
	case 'index2':
		page_css2($IE_TITLE,"计划课时分配");
		if ($type == "lilun") {LilunFenpeiPreview();}
		if ($type == "shixun") {ShixunFenpeiPreview();}
		break;
	case 'plan':
		page_css2($IE_TITLE,"学期授课计划明细打印");
		if ($type == "lilun") {LilunPlanPreview();}
		if ($type == "shixun") {ShixunPlanPreview();}
		break;
	case 'progress':
		page_css2($IE_TITLE,"学期授课实际进度表");
		if ($type == "lilun") LilunProgressPreview();
		if ($type == "shixun") {ShixunProgressPreview();}
		break;
}
//########################################################################
//理论课封面模版调用
//print_R($_SERVER);
function LilunIndexPreview()
{
	global $db,$编号,$CurXueQi;

	$sql = "select * from edu_jiaoxueriji_lilun where 编号='$编号' ";
	//echo $sql;
	$rs = $db->Execute($sql);
	$rs_a = $rs->GetArray();
		page_css2($IE_TITLE,"封面打印");
		if ($type == "lilun") {LilunIndexPreview();}
		if ($type == "shixun") {ShixunIndexPreview();}
		break;
	case 'bianzhi':
		page_css2($IE_TITLE,"编制说明打印");
		if ($type == "lilun") {LilunBianzhiPreview();}
		if ($type == "shixun") {ShixunBianzhiPreview();}
		break;
	case 'plan':
		page_css2($IE_TITLE,"授课计划明细打印");
		if ($type == "lilun") {LilunPlanPreview();}
		if ($type == "shixun") {ShixunPlanPreview();}
		break;
	case 'list':
		page_css2($IE_TITLE,"备料清单打印");
		//if ($type = "lilun") {print_infor("打印理论课授课计划备料清单!");exit;}
		if ($type == "shixun") {ShixunListPreview();}
		break;
}
//########################################################################
//理论课封面模版调用
//print_R($_SERVER);
function LilunIndexPreview()
{
	global $db,$编号;

	$sql = "select * from edu_shoukejihua_lilun where 编号='$编号' ";
	//echo $sql;
	$rs = $db->Execute($sql);
	$rs_a = $rs->GetArray();
Example #4
0
	$smarty->force_compile = true;
	if($LOGIN_THEME!='')		$LOGIN_THEME_TEXT = $LOGIN_THEME;
	else	$LOGIN_THEME_TEXT = 9;

	function page_css2($IE_TITLE,$TITLE)			{
		global $LOGIN_THEME_TEXT;
		print "<HEAD>
			<TITLE>$TITLE - $IE_TITLE</TITLE>
			<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">
			<LINK href=\"".$_SESSION['SUNSHINE_THEME_PRE']."/theme/".$LOGIN_THEME_TEXT."/style.css\" type=text/css rel=stylesheet>
			<script type=\"text/javascript\" language=\"javascript\" src=\"../../Enginee/lib/common.js\"></script>
			<BODY class=bodycolor topMargin=5 >";
	}

	$CurXueQi = returntablefield("edu_xueqiexec","当前学期","1","学期名称");
	page_css2($IE_TITLE,"教学任务书");
	print "<a href='templates/任务书封面.docx' style='font-size:15'>>>点此下载教学任务书封面模板</a>";
	print "<table class=TableBlock align=center width=85% >";
	print "<TR><TD class=TableControl noWrap align=middle  colspan='8'>
		<div align='center'>
			<input type='button' value='打印' class='SmallButton' onclick='PrintMytable();' title='打印本页'>&nbsp;
			<input type='button' value='预览' class='SmallButton' onclick='PreviewMytable();' title='打印预览'>&nbsp;
		</div>
		</TD></TR></table><br/>";
	print "<div id=MainData0 align=center>";
	$教师姓名 = $_SESSION['LOGIN_USER_NAME'];
	print "<table cellspacing='0' class='TableBlock' align='center' width='85%' style='border:0px solid blue;border-collapse:collapse'>
		<tr align='center'>
			<td class='TableBlock' bordercolor='#000000' align='left' style='border:0px solid blue;' colspan=5>
			<h3>$教师姓名 同志: 本学期请您担任以下几项教学工作任务:</h3></td>
			</tr>";