-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomePage.aspx
More file actions
307 lines (287 loc) · 7.48 KB
/
Copy pathHomePage.aspx
File metadata and controls
307 lines (287 loc) · 7.48 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HomePage.aspx.cs" Inherits="Final.HomePage" %>
<!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 runat="server">
<title>我们是地火!</title>
</head>
<body>
<div class="upLan">
<div class="logo"><asp:Image ID="Image1" runat="server" Height="48px"
ImageUrl="~/Pictures/wildfireLOGO.png" Width="49px" /></div>
<div class="says"> 地火论坛!</div>
<div class="spaces">
<div class="button1"><a href="login.aspx" style="color: red;">退出登录</a></div>
<div class="button2"><a href="createSecert.aspx" style="color: red;">进入秘密论坛</a></div>
<div class="button3"><%= Session["username"] %>,<br/>欢迎来到地火!</div>
</div>
<div class="user"><asp:Image ID="Image2" runat="server" Height="48px"
ImageUrl="~/Pictures/userLOGO.jpg" Width="49px" /></div>
</div>
<div class="mainpane">
<div class="comment">
<div class="speechPane">
<form id="form_homepage" runat="server">
<div class="big-button">最新的五条消息:</div>
<asp:GridView ID="GridView_newmessage" runat="server"
ShowHeader="False"
onrowcommand="GridView_newmessage_allFs_RowCommand"
CssClass="gridview-style" AutoGenerateColumns="False">
<Columns>
<asp:ButtonField Text="回复" CommandName="gotoTopic2" />
<asp:BoundField DataField="topicid" />
<asp:BoundField DataField="username" />
<asp:BoundField DataField="message" />
</Columns>
</asp:GridView>
</br>
<asp:Button ID="Button_create" runat="server" Text="创建话题"
onclick="Button_create_Click" CssClass="big-button" />
<div class="big-button">点击进入话题,畅聊</div>
<asp:GridView ID="GridView_homepage_allFs" runat="server"
ShowHeader="False"
onrowcommand="GridView_homepage_allFs_RowCommand"
CssClass="gridview-style" >
<Columns>
<asp:ButtonField Text="进入话题" CommandName="gotoTopic" />
</Columns>
</asp:GridView>
</form>
</div>
</div>
</div>
<style>
html,body
{
transform-origin: top left;
padding:0;
margin:0;
width:100%;
height:100%;
}
body
{
transform-origin: top left;
box-sizing:border-box;
background-color:rgba(0, 0, 0, 1);
font-weight:normal;
font-style:normal;
text-align:left;
display:flex;
position:relative;
width:99%;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.big-button
{
font-size: 40px;
padding: 12px 24px;
}
.gridview-style
{
word-break:break-all;
word-wrap:break-word;
transform-origin: top left;
font-size: 40px;
}
.upLan{
box-sizing:border-box;
background-color:rgba(0, 0, 0, 0.6);
box-shadow:#126F1B 5px 5px 10px;
border:1px solid rgba(21, 255, 0, 1);
border-top:1px solid rgba(21, 255, 0, 1);
border-bottom:1px solid rgba(21, 255, 0, 1);
border-left:1px solid rgba(21, 255, 0, 1);
border-right:1px solid rgba(21, 255, 0, 1);
border-radius:5px;
font-weight:normal;
font-style:normal;
text-align:left;
display:flex;
position:sticky;
top:nullpx;
left:nullpx;
right:nullpx;
bottom:nullpx;
height:50px;
width:100%;
padding:0px 0px 0px 0px;
margin:15px 10px 15px 10px;
flex-direction:row;
justify-content:flex-start;
align-items:flex-start;
}
.logo{
box-sizing:border-box;
border-radius:5px;
font-weight:normal;
font-style:normal;
text-align:left;
flex-shrink:0;
display:flex;
position:relative;
width:49px;
height:48px;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.says{
box-sizing:border-box;
background-color:rgba(0, 0, 0, 0.6);
font-size:30px;
font-weight:normal;
font-style:normal;
color:rgba(205, 14, 14, 1);
text-align:left;
flex-shrink:0;
display:flex;
position:relative;
width:200px;
height:49%;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.spaces{
box-sizing:border-box;
background-color:rgba(0, 0, 0, 0.5);
font-weight:normal;
font-style:normal;
text-align:left;
display:flex;
position:relative;
width:100%;
height:100%;
flex-direction:row;
justify-content:space-around;
align-items:flex-start;
}
.button1
{
font-size:30px;
box-sizing:border-box;
font-weight:normal;
font-style:normal;
color:rgba(64, 255, 0, 1);
text-align:left;
display:flex;
position:relative;
width:100%;
height:100%;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.button2
{
font-size:40px;
box-sizing:border-box;
font-weight:normal;
font-style:normal;
color:rgba(64, 255, 0, 1);
text-align:left;
display:flex;
position:relative;
width:100%;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.button3
{
font-size:15px;
font-weight:normal;
font-style:normal;
box-sizing:border-box;
color:rgba(64, 255, 0, 1);
text-align:right;
display:inline-block;
position:relative;
margin-left:auto;
width:100%;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.user{
box-sizing:border-box;
font-weight:normal;
font-style:normal;
color:rgba(0, 0, 0, 1);
text-align:left;
flex-shrink:0;
display:flex;
position:relative;
width:49px;
height:48px;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.mainpane
{
transform-origin: top left;
box-sizing:border-box;
background-color:rgba(0, 0, 0, 1);
border-radius:20px;
font-weight:normal;
font-style:normal;
text-align:left;
display:flex;
position:relative;
width:100%;
height:89%;
padding:0px 0px 0px 0px;
margin:0px 10px 0px 0px;
flex-direction:row;
justify-content:flex-start;
align-items:flex-start;
}
.comment
{
transform-origin: top left;
box-sizing:border-box;
background-color:rgba(0, 0, 0, 1);
border-radius:20px;
font-weight:normal;
font-style:normal;
color:rgba(24, 199, 30, 1);
text-align:left;
display:flex;
position:relative;
width:100%;
height:100%;
margin:0px 5px 0px 5px;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}
.speechPane
{
transform-origin: top left;
box-sizing:border-box;
background-color:rgba(0, 0, 0, 0.7);
border:2px solid rgba(38, 255, 0, 1);
border-top:2px solid rgba(38, 255, 0, 1);
border-bottom:2px solid rgba(38, 255, 0, 1);
border-left:2px solid rgba(38, 255, 0, 1);
border-right:2px solid rgba(38, 255, 0, 1);
border-radius:10px;
font-weight:normal;
font-style:normal;
text-align:left;
display:flex;
position:relative;
width:100%;
height:100%;
margin:0px 0px 5px 0px;
flex-direction:column;
justify-content:flex-start;
align-items:center;
overflow:hidden scroll;
}
</style>
</body>
</html>