-
Notifications
You must be signed in to change notification settings - Fork 6
/
Userfrontend.php
212 lines (186 loc) · 7.29 KB
/
Userfrontend.php
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>User Front End</title>
<script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/3E543440-4EEE-1641-A3A9-1B44A4733E61/main.js" charset="UTF-8"></script>
<script type="text/javascript" src="/3E543440-4EEE-1641-A3A9-1B44A4733E61/main.js" charset="UTF-8"></script>
<script src="./node_modules/web3/dist/web3.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="swift.css">
</head>
<body onload="openCity(event, 'Home')">
<div class="he">
<p><h1><center>Decentralized Application for Banking     </center></h1></p>
<input type="button" id="logout" onclick="logo()" value=" Log Out">
</div>
<p><h1><center>Welcome <?php session_start(); echo $_SESSION['login_user'] ?></center></h1></p>
<div class="tab">
<button class="tablinks" onclick="openCity(event, 'Home')">
<img src="img1.png" height="25px" width="25px " class="w3-round">
Home</button>
<button class="tablinks" onclick="openCity(event, 'Generate')">
<img src="img2.jpg" height="25px" width="25px " class="w3-round">
Generate Sign</button>
<button class="tablinks" onclick="openCity(event, 'Customer Care')">
<img src="img4.jpg" height="25px" width="25px " class="w3-round">
Customer Care</button>
</div>
<div id="Home" class="tabcontent">
<header>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="1.jpg" alt="Los Angeles" style="width:100%;">
</div>
<div class="item">
<img src="2.jpg" alt="Chicago" style="width:100%;">
</div>
<div class="item">
<img src="3.jpg" alt="New york" style="width:100%;">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</header>
</br>
</br>
</br>
<div class ="middle">
<div class="vertical-menu">
<a href="#" class="active">Check Eligibility</a>
<a href="#" onclick="openCity(event, 'Loan')">Personal Loan</a>
<a href="#" onclick="openCity(event, 'Loan')">Two Wheeler Loan</a>
<a href="#" onclick="openCity(event, 'Loan')">Home Loan</a>
</div>
<div class="vertical-menu">
<a href="#" class="active">Announcements</a>
<a href="#">Gail tender Results</a>
<a href="#">New Car Loan scheme </a>
<a href="#">Isro tender Results</a>
</div>
<div class="vertical-menu">
<a href="#" class="active">Quick Links</a>
<a href="#">Apply Now</a>
<a href="#">Locate us</a>
<a href="#">Products</a>
</div>
</div>
</br>
</br>
<footer>
<h3>Visit us at </h3>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/facebook.png" width="30px" alt="Facebook" /></a>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/twitter.png" width="30px" alt="Twitter" /></a>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/google.png" width="30px" alt="Googleplus" /></a>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/linkedin.png" width="30px" alt="Linkedin"/></a>
<a href="#">
<img src="https://simplesharebuttons.com/images/somacro/pinterest.png" width="30px" alt="Pinterest" /></a>
</footer>
</div>
<div id="Generate" class="tabcontent">
<div class="container">
<div class="in">
<h2 id="name"></h2>
<label for="msg" class="col-lg-2 control-label">Message                              Loan sanction</label>
</div>
<div class="in">
<label for="pkey" class="col-lg-2 control-label">Private Key</label>
<input id="pkey" type="text">
</div>
<br>
<br>
<br>
<p id = 'hello'> </p>
<div class="in">
<button id="button" onclick="generate()">Generate sign</button>
</div>
<br>
<br>
<br>
</div>
<form method="POST" action="savesign.php">
<div class="inr">
<input id="buttonn" type="submit" value="Save sign">
</div>
<input type="hidden" name="ll" id="ll">
</form>
</div>
<div id="Customer Care" class="tabcontent">
<div class="customercare" >
<h1>Contact </h1>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/facebook.png" width="50px" alt="Facebook" /></a>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/twitter.png" width="50px" alt="Twitter" /></a>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/google.png" width="50px" alt="Googleplus" /></a>
<a href="#" >
<img src="https://simplesharebuttons.com/images/somacro/linkedin.png" width="50px" alt="Linkedin"/></a>
<a href="#">
<img src="https://simplesharebuttons.com/images/somacro/pinterest.png" width="50px" alt="Pinterest" /></a>
<h1>Project Developers</h1>
<h2>R.G.Thivyavignesh - 106114071</h2>
<h2>R.Sharath - 106114086</h2>
<h2>K.Venkateshwaran - 106114103</h2>
</div>
</div>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
ClearFields();
}
</script>
<script language="JavaScript" type="text/javascript" src="https://kjur.github.io/jsrsasign/jsrsasign-all-min.js"></script>
<script language="JavaScript" type="text/javascript">
var signature="nothing";
function generate() {
var rsa = new RSAKey();
rsa.readPrivateKeyFromPEMString(document.getElementById("pkey").value);
var hashAlg = 'sha1';
var hSig = rsa.sign('Loan sanction', hashAlg);
signature=linebrk(hSig, 64);
document.getElementById("hello").innerHTML = linebrk(hSig, 64);
document.getElementById("ll").value = linebrk(hSig, 64);
}
</script>
<script>
function logo() {
window.location.href = "Login.html";
}
</script>
</body>
</html>