-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanageOrderAdd.asp
214 lines (179 loc) · 5.52 KB
/
manageOrderAdd.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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<%@ Language="VBScript" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Homepage</title>
<style>
#wrapper {
position: absolute;
width: 1400px;
height: 750px;
top: 0%;
left: 0%;
background-color: #98bcc1;
}
#head {
overflow: hidden;
position: relative;
background-color: #0d1522;
height: 90px;
width: 1400px;
top: 0%;
left: 0%;
}
#content
{
overflow:auto;
position: absolute;
top: 220px;
left: 5%;
background-color: #98bcc1;
}
#title
{
position:absolute;
top: 25%;
left: 10%;
color:#FFFFFF;
}
#nav
{
width: inherit;
}
#nav ul {
position: absolute;
list-style-type: none;
margin: 0;
padding: 0;
top: 90px;
overflow: hidden;
background-color: #2c42f3;
width: inherit;
}
#nav li {
float: left;
}
.active {
background-color: #4CAF50;
color: #111;
}
#nav li a:hover:not(.active) {
background-color: #111;
}
#nav li a
{
display: block;
color: white;
text-align: center;
padding: 15px 30px;
text-decoration: none;
}
/* CSSTerm.com Simple Horizontal DropDown CSS menu */
.drop_menu {
background:#005555;
padding:0;
margin:0;
list-style-type:none;
height:30px;
}
.drop_menu li { float:left; }
.drop_menu li a {
padding:9px 20px;
display:block;
color:#fff;
text-decoration:none;
font:12px arial, verdana, sans-serif;
}
/* Submenu */
.drop_menu ul {
position:absolute;
left:-9999px;
top:-9999px;
list-style-type:none;
}
.drop_menu li:hover { position:relative; background:#5FD367; }
.drop_menu li:hover ul {
left:0px;
top:30px;
background:#5FD367;
padding:0px;
}
.drop_menu li:hover ul li a {
padding:5px;
display:block;
width:168px;
text-indent:15px;
background-color:#5FD367;
}
.drop_menu li:hover ul li a:hover { background:#005555; }
</style>
<script>
</script>
</head>
<%
if session("empid") = "" then
response.redirect("sessionTimedOut.asp")
end if
Qstr = Request.querystring("login")
if Qstr = "logout" then
dim con
dim rs
Set con = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
con.Open "DSN=csidsn"
SQL = "delete from orders where emp_id="&session("empid")
rs.open SQL,con
session.abandon
set rs = nothing
set con = nothing
response.redirect("index.html")
end if
Dim Connection
Dim Recordset
Dim SQL
Set Connection = Server.CreateObject("ADODB.Connection")
Set Recordset = Server.CreateObject("ADODB.Recordset")
dim fname
dim lname
Connection.Open "DSN=csidsn"
SQL = "SELECT fname,lname from employee where empid = "& session("empid") &";"
Recordset.Open SQL,Connection
fname = Recordset("fname")
lname = Recordset("lname")
%>
<body>
<div id="wrapper">
<div id="head">
<div id = "title" style="font-size:200%;">
Computer Store Inventory Management System
</div>
</div>
<div class="drop">
<ul class="drop_menu">
<li><a href="Home.asp">Home</a></li>
<li><a href="Inventory.asp">Inventory</a></li>
<li><a href="customer0.asp">Customers</a></li>
<li><a href="supplier0.asp">Suppliers</a></li>
<li><a class="active">Order</a>
<ul>
<li><a href="manageOrderAdd.asp">Add</a></li>
<li><a href="manageOrderDelete.asp">Delete</a></li>
<li><a href="manageOrders.asp">Orders</a></li>
</ul>
</li>
<li><a href="aboutUs.html">About Us</a></li>
</ul>
</div>
</div>
<div id ="content">
<iframe src="selectCustomer.asp" width ="1000" height="500" scrolling ="no">
</div>
</body>
</html>
<%
Recordset.Close
Set Recordset=nothing
Connection.Close
Set Connection=nothing
%>