-
Notifications
You must be signed in to change notification settings - Fork 0
/
SignOut.asp
199 lines (166 loc) · 6.17 KB
/
SignOut.asp
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
<%
Dim LoggedInDate
Dim LoggedOutDate
LoggedInDate = Session("SLoggedDT")
LoggedOutDate = Now()
'response.write("User was Logged On: " & FormatDateTime(LoggedInDate,1) & " - " & FormatDateTime(LoggedInDate,3))
'response.write("User was Logged Off: " & FormatDateTime(LoggedOutDate,1) & " - " & FormatDateTime(LoggedOutDate,3))
Dim SDuration
SDuration = DateDiff("s",LoggedInDate,LoggedOutDate)
'response.write(SDuration)
Function Duration(SecDuration)
Dim TotalDuration
TotalDuration = DateAdd("s", SecDuration, #00:00:00#)
if SecDuration < 3600 then
'response.write("<br> Total Duration : " & "00:" & Minute(TotalDuration) & ":" & Second(TotalDuration) )
Duration = "00:" & Minute(TotalDuration) & ":" & Second(TotalDuration)
else
'response.write("<br> Total Duration : " & Hour(TotalDuration) & ":" & Minute(TotalDuration) & ":" & Second(TotalDuration) )
Duration = Hour(TotalDuration) & ":" & Minute(TotalDuration) & ":" & Second(TotalDuration)
end if
end Function
Session.abandon
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="CSS/bootstrap.css">
<link rel="stylesheet" href="CSS/StyleHeader.css">
<title>Home Expense Tracker - Sign Out</title>
<style>
* {
margin: 0px;
padding: 0px;
box-sizing: border-box;
outline: none;
list-style: none;
text-decoration: none;
}
.vl {
border: 1px solid rgba(128, 128, 128, 0.411);
height: 40px;
margin: 20px 0;
}
.media-icons img {
width: 25px;
height: 25px;
}
.media-icons li {
display: inline-block;
}
.media-icons a {
display: block;
padding: 0 6px;
}
.links li {
display: inline-block;
}
.links a {
display: block;
padding: 0 6px;
text-decoration: none;
color: whitesmoke;
}
.links a:hover {
display: block;
padding: 0 6px;
text-decoration: underline;
background-color: whitesmoke;
color: black;
}
</style>
</head>
<body>
<div class="container-fluid">
<br>
<br>
<div class="row">
<div class="col">
<img src="Images/Banner.png" alt="Banner" style="width: 100%; height: 350px;">
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<!-------------------------Navigation Bar----------------------->
<nav class="NavBar">
<ul>
<li>
<a href="Login.asp">Login Again</a>
</li>
</ul>
</nav>
</div>
</div>
<br>
<div class="row text-center bg-success">
<div class="col">
<h3><% response.write(Session("StxtUserName"))%> You Have been Logged Out Successfully</h3>
</div>
</div>
<br><br>
<div class="row text-center">
<div class="col-4">
<h5>Login</h5>
</div>
<div class="col-4">
<h5>Logout</h5>
</div>
<div class="col-4">
<h5>Duration</h5>
</div>
</div>
<div class="row text-center" style="background-color: lightgrey;">
<div class="col-4">
<h5><% response.write(FormatDateTime(LoggedInDate,1) & " - " & FormatDateTime(LoggedInDate,3)) %></h5>
</div>
<div class="col-4">
<h5><% response.write(FormatDateTime(LoggedOutDate,1) & " - " & FormatDateTime(LoggedOutDate,3)) %></h5>
</div>
<div class="col-4">
<h5><% response.write(Duration(SDuration)) %></h5>
</div>
</div>
<br><br>
</div>
<footer style="background-color: rgb(54, 54, 54); color: whitesmoke;">
<div class="container-fluid">
<div class="row justify-content-center" style="height: 80px;">
<div class="col-3" style="padding: 20px;">
<h5>About Us</h5>
<span>This website is created by Nabeel Sohail.</span>
</div>
<div class="vl"></div>
<div class="col-5 text-center" style="padding: 35px;">
<ul class="links">
<li>
<a href="Login.asp">Login Again</a>
</li>
</ul>
</div>
<div class="vl"></div>
<div class="col-3 text-center" style="padding: 20px;">
<h5>Social Media Links</h5>
<ul class="media-icons">
<li><a href="#"><img src="images/facebook.png" alt=""></a></li>
<li><a href="#"><img src="images/instagram.png" alt=""></a></li>
<li><a href="#"><img src="images/twitter.png" alt=""></a></li>
<li><a href="#"><img src="images/youtube.png" alt=""></a></li>
<li><a href="#"><img src="images/linkedin.png" alt=""></a></li>
</ul>
</div>
</div>
<hr style="color:gray;background-color:gray">
<div class="row" style="padding-bottom: 12px;">
<div class="col text-center" style="font-size: small; padding: 10px;">
Copyright © 2020 - <% response.write(Year(Date()))%>, My Home Expense Tracker. All Rights
Reserved
</div>
</div>
</div>
</footer>
</div>
</body>
</html>