⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stu_learn_after_me.php

📁 在实际教学应用中
💻 PHP
字号:
<?php 	
	session_start();
	include "ItAssisFC/FLib.php";
	Stu_is_login();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>EasyTeacher信息技术课堂教学助手(ItAssis)学生端-跟我学</title>
<link href="et.css" rel="stylesheet" type="text/css">
<style type="text/css">
body,td,th {font-size: 14px;}
</style>
</head>
<body>
<p align="center"><img src="images/stu_genwoxue.jpg"> </p>
<table width="740"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><?php 
	include "config.inc.php";
	include "conn.inc.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></p>";exit;}

	//è??§éú?ù?ú°à????1y??£??ò??ê??ìê|??μ???3ìD??¢
	$sql="select * from  course where cid=".$_SESSION['cid'];
	$result=mysql_query($sql,$db) or die("<b>$sql</b><br>" . mysql_error());
	
	$nums=mysql_num_rows($result);
	$array=mysql_fetch_array($result);

	$str_url_stu="";
	$url_array=@split(",|,",$array['url_stu']);
		for($i=1;$url=current($url_array);$i++)
			{$str_url_stu.="<a href=\"http://$url\" target=\"_blank\">资源{$i}</a>&nbsp;";next($url_array);}

	if(mysql_num_rows($result)>0){
?>
      <table width="740"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td rowspan="2" bgcolor="#94EDB7"><div align="center">今日课程:</div></td>
          <td height="7">&nbsp;[<span class="red"><?php echo $array['title'] ?></span>] 适合<?php echo $array['suit'] ?>年级</td>
        </tr>
        <tr>
          <td height="2" bgcolor="#94EDB7"></td>
        </tr>
        <tr>
          <td height="4" colspan="2"></td>
        </tr>
        <tr>
          <td width="10%" rowspan="2" bgcolor="#94EDB7"><div align="center">课程简介:</div></td>
          <td width="90%">&nbsp;</td>
        </tr>
        <tr>
          <td height="2" bgcolor="#94EDB7"></td>
        </tr>
        <tr>
          <td></td>
          <td><?php echo $array['intruduce']; ?></td>
        </tr>
        <tr>
          <td height="4" colspan="2"></td>
        </tr>
        <tr>
          <td rowspan="2" bgcolor="#94EDB7"><div align="center">学习资源: </div></td>
          <td height="8">&nbsp;<?php echo $str_url_stu; ?></td>
        </tr>
        <tr>
          <td height="2" bgcolor="#94EDB7"></td>
        </tr>
        <tr>
          <td height="8" colspan="2">&nbsp;</td>
        </tr>
        <tr bgcolor="#94EDB7">
          <td height="8" colspan="2"></td>
        </tr>
      </table>
      <blockquote> </blockquote>
      <?php 
	}else{
		echo "<p align=left>请通知老师安排课程。</p>";
	}
 ?>
      <p><a href="stu_learn_after_me.php?list=more">更多课程资源>></a></p>
      <?php
	if(isset($_GET['list']) && $_GET['list']=="more"){
		while($array=array_shift($rsc_array)){
			$type=$array['type'];
			$title=$array['title'];
			if(trim($array['intruduce']))
				$intruduce="<table width=550 border=1 cellspacing=0 cellpadding=0 bordercolor=#66CC99><tr><td>".$array['intruduce']."</td></tr></table>";
			else
				$intruduce="";
			$str_url_stu="";
	
			$url_array=@split(",|,",$array['url_stu']);
				for($i=1;$url=current($url_array);$i++)
					{$str_url_stu.="<a href=\"http://$url\" target=\"_blank\">资源{$i}</a>&nbsp;";next($url_array);}
			
			$str_title="<img src=images/$type.jpg align=absbottom>$title";
			if($type==0)
				echo "<p align=left>$str_title&nbsp;$str_url_stu<br>";
			else if($type==1) 
				echo "&nbsp;&nbsp;&nbsp;$str_title&nbsp;$str_url_stu<br>";
			else if($type==2)
				echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$str_title&nbsp;$str_url_stu$str_url_stu<br>";
			else if($type==3)
				echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$str_title&nbsp;$str_url_stu<div align=center>$intruduce</div>";
		}
	}
?>
      </p></td>
  </tr>
</table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -