-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomeEpistle.asp
88 lines (81 loc) · 2.06 KB
/
HomeEpistle.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
<html>
<head>
<title>Home | Epistle</title>
<link rel="icon" href="EpistleLogo.png" type="image/icon type">
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Pacifico&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<style type="text/css">
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #0234410a;
position: sticky;
top: 0;
border-style:solid;
border-left:none;
border-right:none;
}
li {
float: left;
}
li a {
display: block;
color: black;
text-align: center;
padding: 1px 10px;
text-decoration: none;
}
li a:hover {
text-decoration: none;
color:#3c0de9f3;
}
#toRight{
float:right;
}
.HeaderFont{
font-family: 'Lato', sans-serif;
font-size:15px;
}
#Header{
height:2px;
}
#EpistleLogo{
font-family: 'Pacifico', cursive;
}
body{
background-image: url('EpistleMain.gif ');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
</style>
</head>
<body>
<div id="Header">
<ul>
<li><a href="HomeEpistle.asp"><p class="HeaderFont" id="EpistleLogo"><font color="black">Epistle</font></p></a></li>
<li><a href="Messages.asp"><p class="HeaderFont">Messaging</p></a></li>
<li><a href="Ticket.asp"><p class="HeaderFont">Ticketing</p></a></li>
<div id="toRight">
<li><a href="Logout.asp"><p class="HeaderFont">Logout</p></a></li>
<%
Dim conCheck,rsCheck
Set conCheck=Server.CreateObject("ADODB.Connection")
conCheck.ConnectionString="DSN=Epistle"
conCheck.Open
Set rsCheck=Server.CreateObject("ADODB.RecordSet")
rsCheck.Open "SELECT Position FROM Users WHERE UserName ='"&Session("UserName")&"'",conCheck
If rsCheck("Position")="admin" then
%>
<li><a href="Epistle-SingUpPage.asp"><p class="HeaderFont">Sign Up</p></a></li>
<%
End If
%>
</div>
</ul>
</div>
</body>
</html>