|
|
<!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>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
<title>学生成绩管理系统登录</title>
|
|
|
<style type="text/css">
|
|
|
*{
|
|
|
margin: 0;
|
|
|
padding: 0;
|
|
|
}
|
|
|
#wrap {
|
|
|
height: 719px;
|
|
|
width:100%;
|
|
|
background-color:#CCC;
|
|
|
background-image:url(images/Background.jpg);
|
|
|
background-repeat: no-repeat;
|
|
|
background-position:center;
|
|
|
position: relative;
|
|
|
background-repeat:no-repeat;
|
|
|
background-size:cover;
|
|
|
}
|
|
|
#head {
|
|
|
height: 120px;
|
|
|
width: 100;
|
|
|
background-color:#CCCCFF;
|
|
|
text-align: center;
|
|
|
position: relative;
|
|
|
}
|
|
|
#foot {
|
|
|
width: 100;
|
|
|
height: 98px;
|
|
|
background-color: #000;
|
|
|
position: relative;
|
|
|
}
|
|
|
#wrap .LogGet {
|
|
|
height: 408px;
|
|
|
width: 368px;
|
|
|
position: absolute;
|
|
|
background-color: #FFFFFF;
|
|
|
top: 135px;
|
|
|
right: 772px;
|
|
|
filter:alpha(Opacity=60);
|
|
|
-moz-opacity:0.6;
|
|
|
opacity: 0.6;
|
|
|
}
|
|
|
.LogC a button {
|
|
|
width: 100%;
|
|
|
height: 45px;
|
|
|
background-color: #ee7700;
|
|
|
border: none;
|
|
|
color: white;
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
.LogC input {
|
|
|
width: 100%;
|
|
|
height: 45px;
|
|
|
background-color: #ee7700;
|
|
|
border: none;
|
|
|
color: white;
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
|
|
|
.LogGet .LogD.LogDtip .p1 {
|
|
|
display: inline-block;
|
|
|
font-size: 28px;
|
|
|
margin-top: 30px;
|
|
|
width: 86%;
|
|
|
}
|
|
|
#wrap .LogGet .LogD.LogDtip {
|
|
|
width: 86%;
|
|
|
border-bottom: 1px solid #ee7700;
|
|
|
margin-bottom: 60px;
|
|
|
margin-top: 0px;
|
|
|
margin-right: auto;
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
.LogGet .LgD img {
|
|
|
position: absolute;
|
|
|
top: 12px;
|
|
|
left: 8px;
|
|
|
}
|
|
|
.LogGet .LgD input {
|
|
|
width: 100%;
|
|
|
height: 42px;
|
|
|
text-indent: 2.5rem;
|
|
|
}
|
|
|
#wrap .LogGet .LgD {
|
|
|
width: 86%;
|
|
|
position: relative;
|
|
|
margin-bottom: 30px;
|
|
|
margin-top: 30px;
|
|
|
margin-right: auto;
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
#wrap .LogGet .LogC {
|
|
|
width: 86%;
|
|
|
margin-top: 0px;
|
|
|
margin-right: auto;
|
|
|
margin-bottom: 0px;
|
|
|
margin-left: auto;
|
|
|
}
|
|
|
|
|
|
.title {
|
|
|
font-family: "宋体";
|
|
|
color:#000;
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
left: 50%;
|
|
|
transform: translate(-50%, -50%);
|
|
|
font-size: 36px;
|
|
|
font-weight:bold;
|
|
|
height: 40px;
|
|
|
width: 30%;
|
|
|
}
|
|
|
#footwz {
|
|
|
padding-top:35px;
|
|
|
font-size:25px;
|
|
|
}
|
|
|
.wz {
|
|
|
margin-left: 150px;
|
|
|
margin-right: 30px;
|
|
|
color: #FFF;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<?php
|
|
|
include "fun.php";
|
|
|
$username = @$_POST['username'];
|
|
|
$password = @$_POST['password'];
|
|
|
echo $username;
|
|
|
$success_tips = "<script type='javascript'>alert(0)</script>";
|
|
|
|
|
|
if(!empty($username))
|
|
|
{
|
|
|
$s_sql = "select * from user where username ='$username' and password='$password'";
|
|
|
$s_result = $db->query( $s_sql);
|
|
|
if($s_result && $s_result->rowCount() != 0)
|
|
|
{
|
|
|
echo "<script>url=\"index.php\";window.location.href=url;</script>";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
echo "<script language=\"JavaScript\">alert(\"用户名或密码错误\");</script>";
|
|
|
}
|
|
|
}
|
|
|
?>
|
|
|
|
|
|
<div class="header" id="head">
|
|
|
<div class="title">学生成绩管理系统</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="wrap" id="wrap">
|
|
|
<form name="Login" action="Login.php" method="post">
|
|
|
<div class="LogGet">
|
|
|
<!-- 头部提示信息 -->
|
|
|
<div class="LogD LogDtip">
|
|
|
<p class="p1">登录</p>
|
|
|
</div>
|
|
|
<!-- 输入框 -->
|
|
|
<div class="LgD">
|
|
|
<img src="images/1.jpg" width="20" height="20" alt=""/>
|
|
|
<input name="username" type="text"
|
|
|
placeholder="输入用户名" />
|
|
|
</div>
|
|
|
<div class="LgD">
|
|
|
<img src="images/2.jpg" width="20" height="20" alt=""/>
|
|
|
<input name="password" type="password"
|
|
|
placeholder="输入用户密码" />
|
|
|
</div>
|
|
|
<div class="LogC" >
|
|
|
<input type="submit" value="登 录"><br>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
<div id="foot">
|
|
|
<div id="footwz">
|
|
|
<span class="wz">系别:计算机科学与工程学院</span><span class="wz">姓名:林晓鹏</span><span class="wz">班级:19软件工程2班</span><span class="wz">联系邮箱:1063537064@qq.com</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
</html>
|