-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstudenthome.php
More file actions
245 lines (193 loc) · 7.32 KB
/
Copy pathstudenthome.php
File metadata and controls
245 lines (193 loc) · 7.32 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
<?php
//session_start();
include('student.php');
if(!$_SESSION["name"]){
header('Location:login.php');
}
if(isset($_POST['xlogout'])){
$studentlogout=new student;
$studentlogout->logout();
}
?>
<html>
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="materialize/css/materialize.min.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="materialize/js/materialize.min.js"></script>
<style>
.panel{
// height:30% !important;
//background: none;
}
#loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
border: 10px solid #ffffff;
border-radius: 50%;
border-top: 10px solid #607d8b;
width: 120px;
height: 120px;
-webkit-animation: spin 1s linear infinite;
animation: spin 1s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Add animation to "page content" */
.animate-bottom {
position: relative;
-webkit-animation-name: animatebottom;
-webkit-animation-duration: 1s;
animation-name: animatebottom;
animation-duration: 1s
}
@-webkit-keyframes animatebottom {
from { bottom:-20px; opacity:0 }
to { bottom:0px; opacity:1 }
}
@keyframes animatebottom {
from{ bottom:-20px; opacity:0 }
to{ bottom:0; opacity:1 }
}
#mainbody {
display: none;
text-align: center;
}
.dropdown-content{
width:auto !important;
}
</style>
<script>
var myVar;
function myFunction() {
myVar = setTimeout(showPage, 1000);
}
function showPage() {
document.getElementById("loader").style.display = "none";
document.getElementById("mainbody").style.display = "block";
}
$(document).ready(function() {
$('select').material_select();
$('.datepicker').pickadate({
selectMonths: true, // Creates a dropdown to control month
selectYears: 15 // Creates a dropdown of 15 years to control year
});
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal').modal();
if($('#roomarea').height()<1)
$('#roomarea').append("<div id='emojibody'class='row center'><img id='theImg' src='images/emoji.png' /><br><p style='font-weight:light;font-size:20px;'> Kindly enter the requirements, so that we can show you rooms. </p></div>");
});
</script>
<body onload="myFunction()" style="margin:0;background-image:url('images/background.png');background-size: cover;">
<div id="loader"></div>
<div style="display:none;" id="mainbody" class="animate-bottom">
<div class="row"style="background:#607d8b;">
<!--div class="col s6 l8 m8"></div-->
<div class="col s2 l2 m2">
<a class='dropdown-button btn center' style="margin-top:5px;" href='#' data-activates='dropdown1'><i class="material-icons">perm_contact_calendar
</i></a>
<ul id='dropdown1' class='dropdown-content'>
<li><a class="center" href="#!"><img src="images/profile.jpg"></img></li>
<li><p class="center"><?php echo $_SESSION["name"];?></p></li>
<li class="divider"></li>
<li class='center' style='font-weight:bold;text-align:center;'><?php echo $_SESSION["type"] ?></li>
</ul>
</div>
<div class="col s6 l8 m8"></div>
<form method="POST"class="col s12 l2 m2 center"><button class="waves-effect waves-light btn" style="margin-top:5px;" name="xlogout" type="submit" >Logout</button></form>
</a>
</div>
<div class="row container">
<br><br>
<div class="col s12 m2 l2"></div>
<div class="col s12 m4 l4 hoverable">
<div class="card">
<div class="card-image">
<img src="images/room.jpg"style="height:250px;">
<!-- <span class="card-title" style="color:black;">Book Room</span> -->
<a href="bookingroomstudent.php"class="btn-floating halfway-fab waves-effect waves-light red"><i class="material-icons">add</i></a>
</div>
<div class="card-content">
<p style="background:#607d8b;font-size:125%;padding:2%;">BOOK ROOM</p>
</div>
</div>
</div>
<div class="panel col s12 m4 l4 hoverable">
<div class="card">
<div class="card-image">
<img src="images/cancel.jpg"style="height:250px;">
<!-- <span class="card-title" style="color:black;">Book Room</span> -->
<a href="studentbookedroom.php"class="btn-floating halfway-fab waves-effect waves-light red"><i class="material-icons">add</i></a>
</div>
<div class="card-content"style="">
<p style="background:#607d8b;font-size:125%;padding:2%;">BOOKING HISTORY</p>
</div>
</div>
</div>
<div class="col s12 m2 l2"></div>
</div>
<footer class="page-footer" style="background:#607d8b;bottom:0%;position:fixed;width:100% !important;">
<div class="footer-copyright">
<div class="container">
© 2017 Copyright Text <a href="#webdteam" style="color:black">developed and designed by</a>
</div>
</div>
</footer>
</div>
<!----modal---->
<div id="webdteam" class="modal">
<div class="modal-content">
<h4 class="center" style="color:#000000;">Web App Developing Team </h4>
<div class="row">
<div class="col s12 m12 l6">
<div class="card-panel grey lighten-5 z-depth-1">
<div class="row valign-wrapper">
<div class="col s7">
<img src="akash.jpg" alt="" class="circle responsive-img"> <!-- notice the "circle" class -->
</div>
<div class="col s5">
<span class="black-text">
<p style="color:#000000;font-size:20px;">Akash Gupta</p>
</span>
</div>
</div>
</div>
</div>
<div class="col s12 m12 l6">
<div class="card-panel grey lighten-5 z-depth-1">
<div class="row valign-wrapper">
<div class="col s7">
<img src="amitansh.jpg" alt="" class="circle responsive-img"> <!-- notice the "circle" class -->
</div>
<div class="col s5">
<span class="black-text">
<p style="color:#000000;font-size:20px;">Amitansh Gangwar</p>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">CLOSE</a>
</div>
</div>
</div>
<!-- modal finishes here-->
</body>
</html>