-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtry.php
203 lines (179 loc) · 5.22 KB
/
try.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
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
<?php
//include auth.php file on all secure pages
include("auth.php");
//include("login.php");
//require("login.php");
$username=$_SESSION["username"];
$res = mysqli_query($con, "SELECT regis,branch,years,email,cultural,technical,art,swagat,greenclub,spiritual,others FROM `users` WHERE username='$username'") or die( mysqli_error($con));
$_SESSION1 = mysqli_fetch_array($res,MYSQLI_NUM);
//$sql = "SELECT * FROM users";
//$result = mysqli_query($db, $sql) or die( mysqli_error($db));
//SELECT * FROM `users` WHERE username='$username'
?>
<html lang="en">
<head>
<title>Dashboard</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
box-sizing: border-box;
}
/* Style the body */
body {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
}
/* Header/logo Title */
.header {
padding: 5px;
text-align: center;
background: #1abc9c;
color: white;
}
/* Increase the font size of the heading */
.header h1 {
font-size: 40px;
}
/* Style the top navigation bar */
.navbar {
overflow: hidden;
background-color: #333;
}
/* Style the navigation bar links */
.navbar a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 20px;
text-decoration: none;
}
/* Right-aligned link */
.navbar a.right {
float: right;
}
/* Change color on hover */
.navbar a:hover {
background-color: #ddd;
color: black;
}
/* Column container */
.row {
display: -ms-flexbox; /* IE10 */
display: flex;
-ms-flex-wrap: wrap; /* IE10 */
flex-wrap: wrap;
}
/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
-ms-flex: 30%; /* IE10 */
flex: 30%;
background-color: #f1f1f1;
padding: 20px;
}
/* Main column */
.main {
-ms-flex: 70%; /* IE10 */
flex: 70%;
background-color: white;
padding: 20px;
}
.main h1{
color: blue;
}
.main h2{
color: green;
}
/* Fake image, just for this example */
.fakeimg {
background-color: #aaa;
width: 100%;
padding: 20px;
}
.fakeimg h3{
color: black;
}
/* Footer */
.footer {
padding: 20px;
text-align: center;
background: #ddd;
}
/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
.row {
flex-direction: column;
}
}
/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) {
.navbar a {
float: none;
width: 100%;
}
}
</style>
</head>
<body>
<div class="header">
<img src="logo1.png">
<h1>My Dashboard</h1>
<p>One Place For All Information.</p>
</div>
<div class="navbar">
<a href="clubs.html">Clubs</a>
<a href="events.html">Upcoming Events</a>
<a href="index.html" class="right">Log Out</a>
</div>
<div class="row">
<div class="side">
<h2>About Me</h2>
<h5>Photo of me:<?php echo $_SESSION['username']; ?></h5>
<div class="fakeimg" style="height:200px;">Image</div>
<p>some text will be edited soon:</p>
<h3>My Profile:</h3>
<p></p>
<div class="fakeimg" style="height:100px;"><h3>Registration no.: <?php echo $_SESSION1[0]; ?></h3></div><br>
<div class="fakeimg" style="height:100px;"><h3>Branch: <?php echo $_SESSION1[1]; ?></h3></div><br>
<div class="fakeimg" style="height:100px;"><h3>Year: <?php echo $_SESSION1[2]; ?></h3></div><br>
<div class="fakeimg" style="height:100px;"><h3>Email Address: <?php echo $_SESSION1[3]; ?></h3></div>
</div>
<div class="main">
<h1 >My Projects:</h1>
<h2>Cultural:</h2>
<h5>It consist of various dance and cultural societies</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[4]; ?></h3></div>
<br>
<h2>Technical:</h2>
<h5>It consist of various technical and coding societies</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[5]; ?></h3></div>
<br>
<h2>Literary:</h2>
<h5>It consist of various sociecieties under MNNIT literary club</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[10]; ?></h3></div>
<br>
<h2>Sports:</h2>
<h5>It consist of various sports and atheletic teams:</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[6]; ?></h3></div>
<br>
<h2>Swagat:</h2>
<h5>It consist of various comitees formed during swagat</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[7]; ?></h3></div>
<br>
<h2>Green Club:</h2>
<h5>It consist of various economical societies</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[8]; ?></h3></div>
<br>
<h2>Spiritual:</h2>
<h5>It consist of various spiritual societies</h5>
<div class="fakeimg" style="height:90px;"><h3> <?php echo $_SESSION1[9]; ?></h3></div>
<br>
</div>
</div>
<div class="footer">
<h4>P.S.:-- With a scope for building a platform which serves all the need of students,we are also looking to add some students as a part of our project with some pre knowledge in the required fields,which also motivates the newbies and will also help our upcoming juniors for long time.</h4>
</div>
</body>
</html>