-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transfer.asp
123 lines (99 loc) · 4.78 KB
/
Transfer.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
<%
Session("STimeoutError")=""
if Session("STxtUserEmail")="" then
Session("STimeoutError")="Your Session has been Timed Out! Please Login to continue"
response.Redirect("Login.asp")
end if
%>
<!--#include file="ValidateLogin.asp"-->
<%
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Home Expense Tracker - Transfer Detail</title>
<link rel="stylesheet" href="CSS/bootstrap.css">
<link rel="stylesheet" href="CSS/StyleNewTrans.css">
</head>
<body>
<!--- #include file="Header.asp" -->
<div class="container-fluid">
<div class="row">
<div class="col">
<div class="wrapper">
<header>
<h1>Transfer Detail</h1>
</header>
<hr>
<form action="NewTransfer.asp" method="POST" class="combo-account">
<div class="form-group">
<label for="FormAccountFrom">From</label>
<select name="FormAccountFrom" class="select-account form-control">
<%
Dim RSAccounts
Set RSAccounts = Server.CreateObject("ADODB.RecordSet")
RSAccounts.Open "SELECT TableName, TableDescription FROM AccountsTable",Conn
do while Not RSAccounts.EOF
%>
<option value="<% response.write(RSAccounts("TableName")) %>">
<% response.write(RSAccounts("TableDescription")) %></option>
<%
RSAccounts.MoveNext
Loop
RSAccounts.Close
Set RSAccounts = Nothing
%>
</select>
</div>
<div class="form-group">
<label for="FormAccountTo">To</label>
<select name="FormAccountTo" class="select-account form-control">
<%
Set RSAccounts = Server.CreateObject("ADODB.RecordSet")
RSAccounts.Open "SELECT TableName, TableDescription FROM AccountsTable",Conn
do while Not RSAccounts.EOF
%>
<option value="<% response.write(RSAccounts("TableName")) %>">
<% response.write(RSAccounts("TableDescription")) %></option>
<%
RSAccounts.MoveNext
Loop
RSAccounts.Close
Set RSAccounts = Nothing
%>
</select>
</div>
<hr>
<div class="form-group">
<label for="">Transfer Date</label>
<input type="date" class="form-control" name="TrDate">
<span
style="color: red; font-size:medium;"><% response.Write(Session("DateError")) %></span>
</div>
<div class="form-group">
<label for="">Transfer Description</label>
<textarea cols="30" rows="3" class="form-control" name="TrDesc"></textarea>
</div>
<div class="form-group">
<label for="">Transfer Amount</label>
<input type="text" class="form-control" name="TransAmount">
<span
style="color: red; font-size:medium;"><% response.Write(Session("CreditError")) %></span>
</div>
<div>
<input type="submit" value="Save Record" class="btn-select">
</div>
<div>
<span
style="color: red; font-size:medium;"><% response.Write(Session("ErrorFound")) %></span>
</div>
</form>
</div>
</div>
</div>
</div>
<!--- #include file="Footer.asp" -->
</body>
</html>