-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.html
89 lines (87 loc) 路 3.16 KB
/
customer.html
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
<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="height=device-height, initial-scale=0.68">
<head>
<title>Micro Finance Dapp</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div id="band"></div>
<h2>MicroFinance</h2>
</br>
<h3><marquee behavior="alternate">鈥淢aking World Self Reliant..Connecting Financers and Industries Together"</marquee></h3>
<h4>Small Industries Financing Platform</h4></br>
<div id="nav">
<button onclick="getMyLoans()">My Loans</button>
<button><a class="button" href="#popup1">Request Loan</a></button>
<button><a class="button" href="#popup2">Repayment</a></button>
<button><a class="button" href="#popup3">Clear Loan</a></button>
<button onclick="getAllLenders()">All Financers</button>
<button><a href="./financer.html">Switch To Financer</a></button>
</div>
<div id="popup1" class="overlay">
<div class="popup">
<h2>Request Loan From Our Financers</h2>
<a class="close" href="#">×</a>
<div class="content">
<div style="text-align: center;">
<label><b>Apply Now</b></label></br>
<input type="text" id="requesterName" placeholder="Enter Name.." required />
<input type="text" id="requesterAddress" placeholder="Address.." required />
<input type="text" id="requesterContactNumber" placeholder="Contact Number.." required />
<input type="number" id="requestAmount" placeholder="Loan Amount in Ether.." required />
<input type="text" id="lenderAddress" placeholder="Financer Address.." required />
<input type="number" id="repaymentPeriod" placeholder="Repayment Period in months.." required /></br>
<button id="requestLoan">Submit</button>
</div>
</div>
</div>
</div>
</br>
</br>
</br>
<div id="popup2" class="overlay">
<div class="popup">
<h2>Repay Loan Amount</h2>
<a class="close" href="#">×</a>
<div class="content">
<div style="text-align:center;">
<label><b>Repayments:</b></label></br>
<input type="text" id="repayLoanId" placeholder="Enter Loan Id ." required /></br>
<input type="number" id="repayLoanAmount" placeholder="Enter Amount In Ether.." required /></br>
<button id="repayAmount">Submit</button>
</div>
</div>
</div>
</div>
<div id="popup3" class="overlay">
<div class="popup">
<h2>Loan Clearance</h2></br>
<a class="close" href="#">×</a>
<div class="content">
<div style="text-align: center;">
<label><b>Clear Settled Loans</b></label></br>
<input type="number" id="endLoanId" placeholder="Enter Loan Id.." required /></br>
<button id="endLoan">Submit</button>
</div>
</div>
</div>
</div>
<div style="text-align: center;">
<label><b>Loan Details</b></label></br>
<input type="number" id="getLoanId" placeholder="Enter Loan Id.." required /></br>
<button onclick="getLoanDetails()">Get Details</button>
<button onclick="getLoanStatus()">Get Status</button>
</div>
</br>
</br>
<div id="resp" style="text-align:center;"></div>
<hr>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" defer></script>
<script src= "index.js" defer></script>
</body>
<div id="log" style="text-align: center;"></div>
<footer style="text-align: right;">
<h6>© Salman Dabbakuti </h6>
</footer>
</html>