-
Notifications
You must be signed in to change notification settings - Fork 3
/
Default.aspx
110 lines (108 loc) · 4.37 KB
/
Default.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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0" />
<title>深圳中学议事会</title>
<link href="favicon.ico" rel="shortcut icon" />
<link href="css/materialize.min.css" rel="stylesheet" />
<link href="css/general.css" rel="stylesheet" />
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<%
var package = SMS_Council.Classes.User.IsLogin ? "usermanage" : "login";
Response.Write(SMS_Council.Classes.Helper.LoadAngular(package));
%>
<%-- <style>@font-face{font-family:'Material Icons';font-style:normal;font-weight:400;src:local('Material Icons'),local('MaterialIcons-Regular'),url(fonts/mi.woff2) format('woff2')}.material-icons{font-family:'Material Icons';font-weight:normal;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';-webkit-font-smoothing:antialiased}</style>--%>
<style>
#header {
height:400px;
overflow:hidden
}
#login {
height:370px;
margin:-200px auto 10px;
background:#fff;
width:340px;
max-width:90%;
overflow:hidden;
position:relative;
}
#warning {
margin: 15px auto;
width:340px;
max-width:90%;
padding: 7px;
font-size:18px;
fill:#fff;
}
</style>
</head>
<body>
<% Response.Write(SMS_Council.Classes.Helper.WriteMenu()); %>
<main>
<%
if (!SMS_Council.Classes.User.IsLogin)
{
Response.Write(@" <login>
<div id=""header"" class=""teal lighten-1"">
<div class=""container"">
<div class=""row center"" style=""margin-top:120px"">
<h4 class=""light white-text""> </h4>
</div>
</div>
</div>
<div class=""container"">
<div id=""login"" class=""z-depth-4"">
<div class=""preloader-wrapper active"" style=""position:absolute;left:50%;margin:-24px 0 0 -24px;top:50%;"">
<div class=""spinner-layer spinner-green-only"">
<div class=""circle-clipper left"">
<div class=""circle""></div>
</div><div class=""gap-patch"">
<div class=""circle""></div>
</div><div class=""circle-clipper right"">
<div class=""circle""></div>
</div>
</div>
</div>
</div>
</div>
</login>");
}
else
{
int h = DateTime.UtcNow.Hour + 8;
var greeting = (h >= 5 && h < 12 ? "早上好" : (h < 5 || h >= 18 ? "晚上好" : "下午好")) + "," + SMS_Council.Classes.User.Current.Name + "!";
Response.Write(@"<div id=""header"" class=""teal lighten-1"">
<div class=""container"">
<div class=""row center"" style=""margin-top:120px"">
<h4 class=""light white-text"">"+ greeting + @"</h4>
</div>
</div>
</div>
<manage>
<div class=""container"">
<div id=""login"" class=""z-depth-4"">
<div class=""preloader-wrapper active"" style=""position:absolute;left:50%;margin:-24px 0 0 -24px;top:50%;"">
<div class=""spinner-layer spinner-green-only"">
<div class=""circle-clipper left"">
<div class=""circle""></div>
</div><div class=""gap-patch"">
<div class=""circle""></div>
</div><div class=""circle-clipper right"">
<div class=""circle""></div>
</div>
</div>
</div>
</div>
</div>
</manage>");
}
%>
</main>
<script>
$("#show-menu").sideNav()
</script>
</body>
</html>