This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
112 lines (89 loc) · 3.59 KB
/
index.php
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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<!--head-->
<head>
<meta charset="UTF-8">
<title>HU Tianrui</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<!--head end-->
<!--body-->
<body>
<!--导航栏、目录-->
<div>
<div class="container">
<div>
<ul class="banner" >
<li style="float:left" class="banner"><a class="active" href="index.php">Home</a></li>
<li class="banner"><a href="CV.pdf">CV</a></li>
<li class="banner"><a href="grade.php">Grades</a></li>
<li class="banner"><a href="class-schedule.php">Class Schedule</a></li>
<li class="banner"><a href="activity.php">Activities</a></li>
<li class="banner"><a href="self-introduction.html">Self-Introduction</a></li>
</ul>
</div>
</div>
</div>
<!--导航栏目录 END-->
<!--主界面-->
<div style="width: 80%;margin-left: 10%;">
<br> <br> <br>
<!--左侧信息与登录栏-->
<div class="left">
<!-- 个人信息-->
<div class="card">
<img src="image/ETO.jpg" alt="HU" style="width:100%">
<div class="container">
<h2>Tianrui Hu</h2>
<p>Beijing Univ. Posts & Telecomm</p>
<p><a href="mailto:[email protected]" >[email protected]</a></p>
<!--<p><button>Contact</button></p>-->
</div>
</div>
<br>
<!-- 个人信息 end-->
<!-- 登录与注册-->
<?php if(!isset($_SESSION["username"])){
echo '
<div class="card">
<div class="container">
<form action="login.php" method="post">
Username: <input type="text" name="username"><br>
Password : <input type="password" name="password"><br>
<input type="submit" name="submit" value="Login"/>
<a href="regi.html">
<p style="opacity: 0.5;">No Account? Click here to register</p></a>
</form>
</div>
</div>
';
}?>
<?php if (isset($_SESSION["username"])) {
echo '
<div class="card">
WELCOME!<br>
<botton><a href="logout.php">Logout</a></botton>
</div>
';
}?>
<!-- 登录与注册 end-->
</div>
<!--左侧信息与登录栏 end-->
<!-- 右侧介绍信息栏-->
<div class="right">
<h1 style="text-align:center">Welcome to HUTR's website</h1>
<h1 style="text-align:center">欢迎来到胡天睿的网站</h1>
<p style="text-align:center">more content is constructing</p>
<br>
As a result of the rapid developments in the field of computer science, our lives have become more convenient and colorful because of advanced technologies like the Internet and machine learning. When I took my first computer science course in middle school, I was impressed by the incredible efficiency and potential applicability of computer programs. Although computer science isn't my major in university, I have continued to pursue knowledge and techniques in computer science both in and out of class. The more I have explored the field, the more passionate I have become about it. My career goal is to become a scientist who studies and develops exciting, new technologies to benefit humanity.
<br><br><br>
Your program is the ideal first step for me to achieve this goal because your program offers opportunities for me to develop excellent academic knowledge and professional skills necessary for a career in computer science.
My research interest lies in artificial intelligence (AI) and human-computer interaction (HCI).
</div>
<!-- 右侧介绍信息栏 end-->
</div>
</body>
</html>