|
|
<!doctype html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<title>课程管理</title>
|
|
|
<style>
|
|
|
* {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
body {
|
|
|
font-family: Arial;
|
|
|
padding: 0;
|
|
|
background: #fff;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
/* 头部标题 */
|
|
|
.header {
|
|
|
margin-bottom: 70PX;
|
|
|
text-align: center;
|
|
|
background: darkseagreen;
|
|
|
height: 80px;
|
|
|
}
|
|
|
|
|
|
.header h1 {
|
|
|
font-size: 50px;
|
|
|
color: #fff;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
|
|
|
ul {
|
|
|
list-style-type: none;
|
|
|
margin: 0;
|
|
|
padding: 0px 100px;
|
|
|
overflow: hidden;
|
|
|
background-color: darkseagreen;
|
|
|
}
|
|
|
|
|
|
li {
|
|
|
float: inherit;
|
|
|
text-align: center;
|
|
|
}
|
|
|
|
|
|
li a {
|
|
|
|
|
|
display: block;
|
|
|
color: black;
|
|
|
text-align: center;
|
|
|
font-size: 25px;
|
|
|
padding: 30px 10px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
li a:hover {
|
|
|
border-radius: 6px;
|
|
|
background-color: darkseagreen;
|
|
|
color: #fff;
|
|
|
}
|
|
|
/* 创建两列 */
|
|
|
/* Left column */
|
|
|
.middlecolumn {
|
|
|
float: left;
|
|
|
width: 60%;
|
|
|
padding-right: 30px;
|
|
|
padding-left: 30px;
|
|
|
padding-bottom: 46px;
|
|
|
padding-top: 20px;
|
|
|
}
|
|
|
|
|
|
.rightcolumn{
|
|
|
float: left;
|
|
|
width: 40%;
|
|
|
padding-right: 30px;
|
|
|
padding-left: 30px;
|
|
|
padding-bottom: 46px;
|
|
|
padding-top: 20px;
|
|
|
}
|
|
|
*/
|
|
|
/* 文章卡片效果 */
|
|
|
.card {
|
|
|
background-color: white;
|
|
|
padding-left: 50px;
|
|
|
margin-top: 30px;
|
|
|
height: 450px;
|
|
|
}
|
|
|
|
|
|
/* 列后面清除浮动 */
|
|
|
.row:after {
|
|
|
content: "";
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
}
|
|
|
|
|
|
/* 底部 */
|
|
|
.footer {
|
|
|
padding: 10px;
|
|
|
text-align: center;
|
|
|
background: darkseagreen;
|
|
|
margin-top: 15px;
|
|
|
}
|
|
|
|
|
|
.footer h2{
|
|
|
color: #fff;
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
|
|
|
.button{
|
|
|
background-color: #fff;
|
|
|
color: black;
|
|
|
text-align: center;
|
|
|
font-size: 20px;
|
|
|
margin: 8px,4px;
|
|
|
text-decoration: none;
|
|
|
display: inline-block;
|
|
|
padding: 15px,32px;
|
|
|
border: 2px solid darkseagreen;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
|
|
|
.button:hover{
|
|
|
background: darkseagreen;
|
|
|
}
|
|
|
|
|
|
input{
|
|
|
text-align: center;
|
|
|
font-size: 16px;
|
|
|
color: black;
|
|
|
border: 1px solid color;
|
|
|
}
|
|
|
|
|
|
.left {
|
|
|
float: left;
|
|
|
width: 40%;
|
|
|
height: 350px;
|
|
|
border: 3px solid darkseagreen;
|
|
|
padding: 10px;
|
|
|
}
|
|
|
|
|
|
.right{
|
|
|
float: right;
|
|
|
width:60%;
|
|
|
height:350px;
|
|
|
border:3px solid darkseagreen;
|
|
|
padding:10px;
|
|
|
}
|
|
|
h3{
|
|
|
text-align: center;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<?php
|
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
|
?>
|
|
|
<?php
|
|
|
session_start(); //启动SESSION
|
|
|
?>
|
|
|
<body >
|
|
|
<div class="header">
|
|
|
<ul>
|
|
|
<h1>学生成绩管理系统</h1>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="row">
|
|
|
<div class="middlecolumn">
|
|
|
<div class="card">
|
|
|
<ul><li><h2>课程管理</h2></li></ul>
|
|
|
<div class="left" >
|
|
|
<form action="courses.php" target="data" method="post" style="float: left;margin: 18px;">
|
|
|
课程名:<br><input type="text" name="kcm">
|
|
|
<br>
|
|
|
<br>
|
|
|
学时:<br><input type="text" name="xs">
|
|
|
<br>
|
|
|
<br>
|
|
|
学分:<br><input type="text" name="xf">
|
|
|
<br>
|
|
|
<br>
|
|
|
<br>
|
|
|
<button class="button" type="submit" name="录入">录入</button>
|
|
|
<button class="button" type="submit" name="查询">查询</button>
|
|
|
<button class="button" type="submit" name="删除">删除</button>
|
|
|
<button class="button" type="submit" name="更新">更新</button>
|
|
|
</form>
|
|
|
</div>
|
|
|
<iframe name="data" class="right" src="iframe.html" scrolling="auto"></iframe>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="rightcolumn">
|
|
|
<div class="card">
|
|
|
<?php
|
|
|
session_start();
|
|
|
if(isset($_SESSION['username'])){
|
|
|
echo"<h3>当前用户:<h3>".$_SESSION['username'];
|
|
|
echo"<a href=\"destroy_session.php\"><h3>注销账户</h3></a>";
|
|
|
}
|
|
|
?>
|
|
|
<h3>查看更多请点击下方:</h3>
|
|
|
<ul><li><h2><a href="score.php">成绩管理</a>
|
|
|
<a href="studentm.php">学生信息</a></h2></li></ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
<div class="footer"><h2>姓名:鲁垚
|
|
|
班级:19软件二班
|
|
|
系别:计算机科学与工程学院
|
|
|
邮箱:2025271942@qq.com
|
|
|
联系电话:18124498519
|
|
|
|
|
|
</h2>
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|