-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontactus.jsp
130 lines (116 loc) · 5.1 KB
/
contactus.jsp
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
<%@ page import="java.io.*,java.util.*,java.sql.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ include file="common/header.jsp" %>
<br><br>
<div class="se-pre-con"></div>
<div class="w3-col" style="width:10%"> </div>
<div class="w3-col w3-card w3-border-0" style="width: 80%">
<center><h4 style="text-align: center"><b>Who are We ?</b></h4></center>
<h4>We are Charusat Library Who provide the Services of the Knowledge Resource Center In this College. With this
we provide facility of the no. of magazines to read and explore the Knowledge of the World. The Library the Place of peace
we are providing the easy and efficient search or medium for exploration of knowledge and value your time. We care about your
time and curiosity related to the Knowledge so by this student get interacted with the world with better way. World is place
of the knowledge where the student have to explore with world's technology and compitite with the World to achieve goal in life.
</h4><br><br>
</div>
<div class="w3-col" style="width: 10%"> </div>
<br><br><br>
<div class="w3-container">
<div class="w3-col" style="width: 10%"> </div>
<div class="w3-col" style="width: 80%">
<div class="w3-panel">
<h4><center><b>Testimonials</b></center></h4>
</div>
<div class="w3-panel">
<div class="w3-content" style="max-width:1000px">
<div class="container">
<div class="w3-col" style="width: 10%">
<br><br>
<button class="w3-button " onclick="plusDivs(-1)">❮</button>
</div>
<div class="w3-col" style="width: 80%">
<sql:setDataSource var="dbsource" driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://127.0.0.1/login"
user="root" password=""/>
<sql:query dataSource="${dbsource}" var="result">
SELECT * from feedback;
</sql:query>
<c:forEach var="row" items="${result.rows}">
<div class="mySlides w3-container w3-xlarge w3-white">
<div class="w3-col" style="width: 5%"> </div>
<div class="w3-col" style="width: 75%">
<p><span class="w3-tag"><c:out value="${row.fname}"/> <c:out value="${row.lname}"/></span>
<p><c:out value="${row.message}"/></p>
</div>
</div>
</c:forEach>
</div>
<div class="w3-col" style="width: 10%">
<br><br>
<button class="w3-button" onclick="plusDivs(1)">❯</button>
</div>
</div>
</div>
</div>
</div>
<div class="w3-col" style="width: 10%"> </div>
</div>
<br><br><br>
<div class="w3-container">
<div class="w3-col" style="width: 8%"> </div>
<div class="w3-col" style="width: 84%">
<form action="addfeedback.jsp" method="post" class="w3-container w3-card-4 w3-light-grey w3-text-blue w3-margin">
<h2 class="w3-center">Provide Feedback</h2>
<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-user"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="fname" type="text" placeholder="First Name">
</div>
</div>
<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-user"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="lname" type="text" placeholder="Last Name">
</div>
</div>
<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-envelope-o"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="email" type="email" placeholder="Email">
</div>
</div>
<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-phone"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="phone" type="text" placeholder="Phone">
</div>
</div>
<div class="w3-row w3-section">
<div class="w3-col" style="width:50px"><i class="w3-xxlarge fa fa-pencil"></i></div>
<div class="w3-rest">
<input class="w3-input w3-border" name="message" type="text" placeholder="Message">
</div>
</div>
<button class="w3-button w3-block w3-section w3-blue w3-ripple w3-padding">Send</button>
</form>
</div>
<div class="w3-col" style="width: 8%"> </div>
</div>
<script>
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("mySlides");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length}
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "block";
}
</script>