📄 mng_course_list.php
字号:
<?php session_start(); if(!$_SESSION['teacher']) {echo '<SCRIPT LANGUAGE="JavaScript">location.replace(\'mng.php\');</script>';exit;}?>
<html>
<head>
<title>EasyTeacher信息技术课堂教学助手(ItAssis)-课程资源列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="et.css" rel="stylesheet" type="text/css">
<script language="javascript" src="ItAssisJS/java.js"></script>
<style type="text/css">
<!--
body,td,th {
font-size: 14px;
}
-->
</style>
</head>
<body>
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="24" background="images/top_bg.jpg"> 位于:<strong class="red">课程资源</strong></td>
<td width="100" background="images/top_bg.jpg"><div align="right">[<a href="#explain">说明</a>]</div></td>
</tr>
</table>
<hr align="center" width=740 color="#DEE3EF">
<table width="740" align="center">
<tr>
<td width="70%"></td>
<td width="30%"></td>
</tr>
<?php
include "config.inc.php";
include "conn.inc.php";
include "ItAssisFC/FLib.php";
$db=Connect_db($CFG_DB_ADDRESS,$CFG_DB_PORT,$CFG_DB_NAME,$CFG_DB_OWNER,$CFG_DB_PWD);
$rsc_array=Read_course_List2($db);
if(!$rsc_array){
echo "<p><span class=red>没有任何课程资源</span>,请<a href=javascript:popUpWindow('mng_course_edit.php?action=new¤t_pos=0,0&type=0',170,50,460,420)>添加教材</a>。
<p>课程资源有教材、课程、章、节四种性质。教材、课程、章、课程完全类似课本目录。教师备的每一节课就是本系统的课程。所有设置都很灵活,充分考虑到各种情况,不必担心操作失误。";
exit;
}
while($array=array_shift($rsc_array)){
$cid=$array['cid'];
$type=$array['type'];
$title=$array['title'];
$turn=$array['turn'];
$suit=$array['suit'];
$course_url="";
$title_url="<img src=images/$type.jpg align=absbottom><a href=\"javascript:popUpWindow('mng_course_edit.php?action=adjust¤t_pos=$cid,$turn',170,50,460,420)\" title=点击修改>$title</a>";
$book_url ="<a href=\"javascript:popUpWindow('mng_course_edit.php?action=new¤t_pos=$cid,$turn&title=$title&suit=$suit&type=0',170,50,460,420)\">教材</a>";
$chpter1_url="<a href=\"javascript:popUpWindow('mng_course_edit.php?action=new¤t_pos=$cid,$turn&title=$title&suit=$suit&type=1',170,50,460,420)\">章</a>";
$chpter2_url="<a href=\"javascript:popUpWindow('mng_course_edit.php?action=new¤t_pos=$cid,$turn&title=$title&suit=$suit&type=2',170,50,460,420)\">节</a>";
$lesson_url ="<a href=\"javascript:popUpWindow('mng_course_edit.php?action=new¤t_pos=$cid,$turn&title=$title&suit=$suit&type=3',170,50,460,420)\">课程</a>";
$array2=@split(",|,",$array['url_tch']);
for($i=1;$url=current($array2);$i++)
{$course_url.="<a href=\"http://$url\" target=_blank>教案$i</a> ";next($array2);}
$array2=@split(",|,",$array['url_stu']);
for($i=1;$url=current($array2);$i++)
{$course_url.="<a href=\"http://$url\" target=_blank>学案$i</a> ";next($array2);}
if($type==0)
echo "<tr><td>$title_url $course_url</td>
<td>插入 $book_url $chpter1_url $chpter2_url $lesson_url</td>";
else if($type==1)
echo "<tr><td> $title_url $course_url</td>
<td>插入 $chpter1_url $chpter2_url $lesson_url</td>";
else if($type==2)
echo "<tr><td> $title_url $course_url</td>
<td>插入 $chpter2_url $lesson_url</td>";
else if($type==3)
echo "<tr><td> $title_url $course_url</td>
<td>插入 $lesson_url</td>";
}//end while
?>
</table>
<hr align="center" width=740 color="#DEE3EF">
<table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#F7F3F7"><p><span class="font_12"><a name="explain"></a> </span>说明:
<ul>
<li class="explain_hight"><img src="images/3.jpg" width="40" height="20" align="absbottom">是<span class="red">核心资源</span>。教材、章、节设置对课程只起到统领作用。</li>
<li class="explain_hight">系统设计时考虑到数据最大容错性和灵活性,但仍做以下强调:
<ul>
<li>课程标题修改应当尽量保持课程前后无重大变化,否则在数据显示上会带来一些棘手问题。 </li>
</ul>
</li>
<ul>
<li>课程能不删除尽量不删除。<span class="red">删除课程</span>将使导致与课程相关作业无法正常显示标题,同时也带来很多棘手问题,所以<span class="red">删除课程请慎重</span>。 </li>
</ul>
</ul></td>
</tr>
</table>
<p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -