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

📄 courses.php

📁 自制国外大学学校计算机学院网站
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="comp3.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="This page is the homepage for Loughbourgh University Undergraduate courses in Computer Science" />
<meta name="keywords" content="computer, computer science, artificial intelligence, e-business, information, technology, management, foundation, mathematics, maths" />
<title>Computer Science Home</title>
<script type = "text/javascript">

var xhr; //create XMLHttpRequest variable xhr
var url; //the answer variable

function searchDB(search_request) {
	xhr = null;//initialise xhr
	if (search_request.length == 0){//if request has no content, return back directly
		document.getElementById("siteSearch").innerHTML = "";	
		return;
	}

	if(window.XMLHttpRequest){//get XMLHttpRequest
		xhr = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {
		xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	
	if (xhr != null){
		url = "database_search.php";
		url = url + "?q=" +search_request;	
		xhr.onreadystatechange = state_Change;//pass status change to xhr.onreadystatechange
		xhr.open("GET",url,true);//open and send methods have been used to send off request to server in Ajax
		xhr.send(null);
	}
	else { 
		alert("Problem occur when access on XMLHttpRequest");
		return;
	}
}	

function state_Change(){
/* state_Change is the method that triggered of the XMLHttpRequest changes its status. status might vary from 0 to 4,
  * where 0 is uninitialized and 4 is complete. And only when status is 4, the code will be able to execute.
  */
	if (xhr.readyState == 4) {
		document.getElementById("siteSearch").innerHTML = xhr.responseText;		
	}
}
	
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
	
var xhr2;
var url2;
function showUser(info){ 
		
	if(window.XMLHttpRequest){//get XMLHttpRequest
		xhr2 = new XMLHttpRequest();
	}
	else if (window.ActiveXObject) {
		xhr2 = new ActiveXObject("Microsoft.XMLHTTP");
	}
	  
	if (xhr2==null){
		alert ("Browser does not support HTTP Request");
		return;
	} 
	url2="moduleinfo.php";
	url2=url2+"?q="+info;
	xhr2.onreadystatechange=stateChanged;
	xhr2.open("GET",url2,true);
	xhr2.send(null);
}	
function stateChanged() { 
	if (xhr2.readyState==4){
		document.getElementById("txtHint").innerHTML=xhr2.responseText;
	}
} 	
</script>
</head>

<body>
<style type="text/css">
<!--
.style1 {
	color: #000099;
	font-weight: bold;
}
.style2 {
	color: #990066;
}
-->
</style>
<?php
if(isset($_GET['page'])){
 $page=$_GET['page'];
 }else{
 $page='courhome';
 }
 ?>
<div id="logo"></div>
<div id="logo2"></div>
<div id="logo3"></div>
<div id="button">
<ul>
<li><a href="index3.php?page=home">Home</a></li>
<li><a href="department.php?page=depthome">The Department</a>

<li><a href="courses.php?page=undgrad">Degrees</a>
	<ul>
	<li><a href="courses.php?page=browse">Degrees Offered</a></li>
	<li><a href="courses.php?page=requirement">Entry Requirements</a></li>
	<li><a href="courses.php?page=search">Find Your Degree</a></li>
	<li><a href="courses.php?page=comments">Forum</a></li>
	
	</ul>
<li><a href="index3.php?page=money">Financial Help</a></li>
<li><a href="index3.php?page=staff">Staff</a></li>
<li><a href="faq.php">FAQ</a></li>
<li><a href="search.php">Search</a></li>
<li><a href="index3.php?page=contact">Contact Us</a></li>
<li><a href="map.html">Site Map</a></li>
</ul>
</div>
<div id="content">
<div  STYLE="word-wrap: break-word; overflow:visible;">

<?php
if($page=='browse'){
echo '<p style="font-size: 70%;"><a href="index3.php?page=home">Home</a>&nbsp;&gt;&nbsp;<a href="courses.php?page=courhome">Degrees</a>&nbsp;&gt;&nbsp;Degrees Offered</p>';
$mysql_hostname="co-project.lboro.ac.uk";
$mysql_username="group04";
$mysql_password="grp55dnv";

$link_id_resource=mysql_connect($mysql_hostname, $mysql_username, $mysql_password);

if($link_id_resource === false){exit("Cannot make connection to the MySQL server");}

$mysql_database="group04";

$database_selected=mysql_select_db($mysql_database,$link_id_resource);
if($database_selected){
} else {echo "Database ".$mysql_database." not found<br><br>";}

// Finding out about the Tables in the selected database

$sql_query="select * from degree_details";
$result_id_resource=mysql_query($sql_query);

while($details1=mysql_fetch_array($result_id_resource)){
	print'<h4><a href=courses.php?page='.$details1['course_code'].'>'.$details1['course_name'].'</h4></a>';
	'<br />';
    print $details1['degree_desc'];
	'<br />';
	}


mysql_close($link_id_resource);
}else if($page=='undgrad'){
echo '<p style="font-size: 70%;"><a href="index3.php?page=home">Home</a>&nbsp;&gt;&nbsp;<a href="courses.php?page=courhome">Degrees</a></p>';
echo '<img src="images/grads.jpg" height="256" width="256" align="right" alt="picture of graduates."><p>The Department of Computer Science at the Loughborough University has the highest quality staff and students engaged in leading edge research, teaching and learning. </p>
	  <p>The Department has strong links with other departments in the University in both its research and teaching. These links stretch across all faculties, Science, Engineering, Humanities, and the Schools of Management and Health. Collaborations involve us with staff in many departments, such as Mathematical Sciences, Psychology, Electronic and Electrical Engineering, Mechanical Engineering, Health, Biology, Architecture, and Social Policy.</p>	
<P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><br><br>';

}else if($page=='requirement'){
echo '<p style="font-size: 70%;"><a href="index3.php?page=home">Home</a>&nbsp;&gt;&nbsp;<a href="courses.php?page=courhome">Degrees</a>&nbsp;&gt;&nbsp;Entry Requirements</p>
<br>
Computer Science, Computer Science and AI, Computer Science and e-Business
<br><br>
MComp
<br>
A-Levels 300-340 points including a minimum of two subjects at A Level and at least 50 points from mathematics (A or AS Level). Thereafter all A Level/AS Level points are counted towards the total points score, with the exception of General Studies and Key Skills. 
Alternative Qualifications 
BTEC ND Distinction, Distinction, Merit profile (including computational methods or mathematics equivalent). 
SQA minimum B, B in Advanced Highers (including mathematics), majority of B grades in Highers. 
International Baccalaureate minimum 32 points, including 5 in mathematics. 

<br><br>
BSc
<br>
A-Levels 280-320 points including a minimum of two subjects at A Level and at least 50 points from mathematics (A or AS Level). Thereafter all A Level/AS Level points are counted towards the total points score, with the exception of General Studies and Key Skills. 
Alternative Qualifications 
BTEC ND Distinction, Merit, Merit profile (including computational methods or mathematics equivalent). 
SQA minimum B, C in Advanced Highers (including mathematics), B/C grade profile in Highers. 
International Baccalaureate minimum 30 points, including 5 in mathematics. 

<br><br>
Information Technology Management for Business
<br>
A-Levels 300-340 points including a minimum of two subjects at A Level.  All A Level/AS Level points are counted towards the total points score with the exception of General Studies and Key Skills. 
Alternative Qualifications 
BTEC ND Distinction, Distinction, Merit profile. 
SQA minimum B, B in Advanced Highers, majority of B grades in Highers. 
International Baccalaureate minimum 32 points. 


<br><br>
IT and Maths
<br>
A-Levels 280-320 points including a minimum of two subjects at A Level and at least 100 points from mathematics (Grade B at A level). Thereafter all A Level/AS Level points are counted towards the total points score, with the exception of General Studies and Key Skills which are not accepted. 
Alternative Qualifications 
SQA minimum B, C in Advanced Highers, B/C grade profile in Highers including 100 points from mathematics. 
International Baccalaureate minimum 30 points, including 6 in mathematics. <br><br>


';

}else if($page=='comments'){

echo '
<p style="font-size: 70%;"><a href="index3.php?page=home">Home</a>&nbsp;&gt;&nbsp;<a href="courses.php?page=courhome">Degrees</a>&nbsp;&gt;&nbsp;Forum</p>';
	 $conn=mysql_connect ("co-project.lboro.ac.uk", "group04", "grp55dnv"); 
     mysql_select_db("group04"); //
     mysql_query("set names GB2312"); //
     $exec="select * from contents"; //
     $result=mysql_query($exec); //
	 
     while($rs=mysql_fetch_object($result))  
    { 
      echo "<h5>Name:&nbsp;&nbsp;".$rs->name."</h5>"; 
      echo '<table><tr><td valign="top">Comments:</td><td>'.$rs->content.'</td></tr></table>';
	  echo "<h5>Time:&nbsp;&nbsp;".$rs->msgdate."</h5>";
    }
     mysql_close();

echo '

	<br />
<table width="43%" border="0">
<form action="updata.php" method="post" name="name1"> 
<tr>
    <td width="10%">Name:</td><td><input type="text" name="user_name"></td></tr>
<tr>
<tr>&nbsp;</tr>
    <td width="10%" valign="top">Comments:</td>
    <td><textarea name="post_contents" rows="10" cols="50"></textarea></td></tr>
	<tr><td>&nbsp;</td><td align="right"> 
    <input type="submit" value="Post"> </td></tr>
  </form>
  </table>
';


}else if($page=='search'){
echo '<p style="font-size: 70%;"><a href="index3.php?page=home">Home</a>&nbsp;&gt;&nbsp;<a href="courses.php?page=courhome">Degrees</a>&nbsp;&gt;&nbsp;Find Your Degree</p>';
echo '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="450" id="quiz" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="quiz.swf" />
<param name="quality" value="high" />
<param name="salign" value="t" />
<param name="bgcolor" value="#ffffff" />
<embed src="quiz.swf" quality="high" salign="t" bgcolor="#ffffff" width="550" height="450" name="quiz" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

⌨️ 快捷键说明

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