This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLayout.aspx
132 lines (130 loc) · 6.17 KB
/
Layout.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Layout.aspx.cs" Inherits="Layout" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script lang="jv">
function Stu_Information()//javascript函数,功能为在iframe中载入S_Information.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Student")//判断登录成员是否为学生
{
document.getElementById("right_iframe").src = "S_Information.aspx";
}
else
{
document.getElementById("S_Information").style.display = "none";
}
}
function Stu_Change()//javascript函数,功能为在iframe中载入Updata.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Student")//判断登录成员是否为学生
{
document.getElementById("right_iframe").src = "Updata.aspx";
}
else
{
document.getElementById("S_Change").style.display = "none";
}
}
function Stu_Class()//javascript函数,功能为在iframe中载入S_Class.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Student")//判断登录成员是否为学生
{
document.getElementById("right_iframe").src = "S_Class.aspx";
}
else
{
document.getElementById("S_Class").style.display = "none";
}
}
function Stu_Mark()//javascript函数,功能为在iframe中载入S_Mark.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Student")//判断登录成员是否为学生
{
document.getElementById("right_iframe").src = "S_Mark.aspx";
}
else
{
document.getElementById("S_Mark").style.display = "none";
}
}
function Stu_Select()//javascript函数,功能为在iframe中载入Select.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Student")//判断登录成员是否为学生
{
document.getElementById("right_iframe").src = "Select.aspx";
}
else {
document.getElementById("Select").style.display = "none";
}
}
function Tea_Information()//javascript函数,功能为在iframe中载入T_Information.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Teacher")//判断登录成员是否为教师
{
document.getElementById("right_iframe").src = "T_Information.aspx";
}
else
{
document.getElementById("T_Information").style.display = "none";
}
}
function Tea_Class()//javascript函数,功能为在iframe中载入T_Class.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Teacher")//判断登录成员是否为教师
{
document.getElementById("right_iframe").src = "T_Class.aspx";
}
else
{
document.getElementById("T_Class").style.display = "none";
}
}
function Tea_ClassMark()//javascript函数,功能为在iframe中载入T_ClassMark.aspx页面
{
if ("<%=Session["role"].ToString()%>" == "Teacher")//判断登录成员是否为教师
{
document.getElementById("right_iframe").src = "T_ClassMark.aspx";
}
else
{
document.getElementById("T_ClassMark").style.display = "none";
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="top" style="position:absolute; width:100%; height:50px; background-color:pink; border:solid; top:0px">
<div style="position:absolute; left:5px; top:10px">
<asp:Button ID="Button1" runat="server" Text="退出登录" OnClick="Button1_Click" />
</div>
<center>
<asp:Label ID="Label1" runat="server" Text="某旦的教务系统(仿)" Font-Size="XX-Large"></asp:Label>
</center>
<div style="position:absolute; right:10px; top:0px">
<asp:Label ID="Label2" runat="server"></asp:Label><br />
<asp:Label ID="Label3" runat="server" Text="欢迎光临某旦的教务系统(仿)"></asp:Label>
</div>
</div>
<div id="left" style="position:absolute; height:93%; width:200px; top:55px; background-color:gray; border:solid">
<div id="Student" style="position:absolute; height:415px; width:200px; background-color:purple; align-items:center">
<asp:Label ID="Label4" runat="server" Text="学生" Font-Size="XX-Large"></asp:Label><br />
<input type="button" id="S_Information" value="学生个人信息" onclick="Stu_Information()" /><br />
<input type="button" id="S_Change" value="修改个人信息" onclick="Stu_Change()" /><br />
<input type="button" id="S_Class" value="查询已选课程及教材" onclick="Stu_Class()" /><br />
<input type="button" id="S_Mark" value="查询修读情况" onclick="Stu_Mark()" /><br />
<input type="button" id="Select" value="学生选课" onclick="Stu_Select()" /><br />
</div>
<div id="Teacher" style="position:absolute; height:400px; width:200px; background-color:brown; top:415px">
<asp:Label ID="Label5" runat="server" Text="教师" Font-Size="XX-Large"></asp:Label><br />
<input type="button" id="T_Information" value="教师个人信息" onclick="Tea_Information()" /><br />
<input type="button" id="T_Class" value="查询已开课程" onclick="Tea_Class()" /><br />
<input type="button" id="T_ClassMark" value="查看学生成绩" onclick="Tea_ClassMark()" /><br />
</div>
</div>
<iframe id="right_iframe" style="position:absolute; left:214px; top:55px; height:815px; width:1473px; overflow:auto; background-color: #66FFFF;" src="mainpage.aspx"></iframe>
</form>
</body>
</html>