0% found this document useful (0 votes)
18 views32 pages

Student Feedback System

The document contains code for a JSP page that displays a table listing faculty members by ID, name, gender, contact, email, department, designation, and subject. It connects to a MySQL database to retrieve the data and loops through the results to output a row for each faculty member with a button to delete that member. The page includes CSS for styling the table and uses includes to add a menu component.

Uploaded by

sahilshinde2030
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views32 pages

Student Feedback System

The document contains code for a JSP page that displays a table listing faculty members by ID, name, gender, contact, email, department, designation, and subject. It connects to a MySQL database to retrieve the data and loops through the results to output a row for each faculty member with a button to delete that member. The page includes CSS for styling the table and uses includes to add a menu component.

Uploaded by

sahilshinde2030
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

<%--

Document : Home
Created on : 11 Jun, 2021, 7:50:07 AM
Author : HP
--%>

<%@page contentType="text/html"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style>
nav {
margin: 27px auto 0;

position: relative;
width: 590px;
height: 50px;
background-color: #34495e;
border-radius: 8px;
font-size: 0;
}
nav a {
line-height: 50px;
height: 100%;
font-size: 15px;
display: inline-block;
position: relative;
z-index: 1;
text-decoration: none;
text-transform: uppercase;
text-align: center;
color: white;
cursor: pointer;
}
nav .animation {
position: absolute;
height: 100%;
top: 0;
z-index: 0;
transition: all .5s ease 0s;
border-radius: 8px;
}
a:nth-child(1) {
width: 100px;
}
a:nth-child(2) {
width: 110px;
}
a:nth-child(3) {
width: 100px;
}
a:nth-child(4) {
width: 160px;
}
a:nth-child(5) {
width: 120px;
}
nav .start-home, a:nth-child(1):hover~.animation
{
width: 100px;
left: 0;
background-color: #1abc9c;
}
nav .start-about, a:nth-child(2):hover~.animation
{
width: 110px;
left: 100px;
background-color: #e74c3c;
}
nav .start-blog, a:nth-child(3):hover~.animation {
width: 100px;
left: 210px;
background-color: #3498db;
}
nav .start-portefolio, a:nth-
child(4):hover~.animation {
width: 160px;
left: 310px;
background-color: #9b59b6;
}
nav .start-contact, a:nth-
child(5):hover~.animation {
width: 120px;
left: 470px;
background-color: #e67e22;
}

h1 {
text-align: center;
margin: 40px 0 40px;
text-align: center;
font-size: 30px;
color: #ecf0f1;
text-shadow: 2px 2px 4px #000000;
font-family: 'Cherry Swash', cursive;
}

p{
position: absolute;
bottom: 20px;
width: 100%;
text-align: center;
color: #ecf0f1;
font-family: 'Cherry Swash',cursive;
font-size: 16px;
}

span {
color: #2BD6B4;
}
</style>
</head>
<body>
<nav style="float: right;margin-top:
10px;margin-right: 30px;">
<a href="index.jsp">Home</a>
<a
href="Admin_NewClass.jsp">Course</a>
<a
href="Admin_CourseList.jsp">List</a>
<a
href="Admin_FacultyList.jsp">Feedback</a>
<a href="Faculty_Login.jsp">Logout</a>
<div class="animation start-home"></div>
</nav>
</body>
</html>
<%--
Document : Admin_AddNewStaff
Created on : 3 Jun, 2021, 7:15:20 PM
Author : HP
--%>

<%@page contentType="text/html"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>JSP Page</title>
<link rel="stylesheet"
href="project_style.css">
<link rel="stylesheet" href="bootstrap.css">
</head>
<body style="background: linear-gradient(to
right, #da4453, #89216b);">
<div class="row">
<%@include file="UserMenu.jsp" %>
</div>
<form name="asd" action="AddNewStaff"
method="post">
<div class="divStaff">
<center><img src="img/register.png"
width="30" height="30" ></center>
<center> <b> <spam>Add
Faculty</spam></b></center>
<br>
<div class="row">
<div class="col-sm-6">
<label>Faculaty ID</label>
<input type="text" name="txt_id"
class="form-control" placeholder="Enter ID">
<br>
<label>Faculaty Name</label>
<input type="text"
name="txt_name" class="form-control"
placeholder="Enter FullName">
<br>
<label>Contact</label>
<input type="text"
name="txt_contact" class="form-control"
placeholder="Enter Contact">
<br>
<label>Department</label>
<select name="dept" class="form-
control">
<option selected>Select
Department</option>
<option >ME</option>
<option >CO</option>
<option >CE</option>
</select>
<br>
<label>Subject</label>
<input type="text"
name="txt_subject" class="form-control"
placeholder="Enter Subject">
</div>
<div class="col-sm-6">
<label>Upload Photo</label>
<input type="file" name="file"
class="form-control">
<br>
<label>Gender</label>
<select name="gender"
class="form-control">
<option selected>Select
Gender</option>
<option >Male</option>
<option >Female</option>
</select>
<br>
<label>Email</label>
<input type="text"
name="txt_email" class="form-control"
placeholder="Enter Email">
<br>
<label>Designation</label>
<select name="design"
class="form-control">
<option selected>Select
Designation</option>
<option >HOD</option>
<option >Lecturer</option>
</select>
<br>
<br>
<input type="submit"
name="btn_save" value="ADD" class="btn btn-
danger">
<input type="submit" name="btn_save"
value="UPDATE"
class="btn btn-danger">
<a href="" class="btn btn-
danger">LIST</a>
</div>
</div>
</div>
</form>
</body>
</html>

<%--
Document : Admin_CourseList
Created on : 10 Jun, 2021, 2:40:54 PM
Author : HP
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}
#customers td, #customers th {
border: 1px solid #ddd;
padding: 8px;
}

#customers tr:hover {background-color: #ddd;}

#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #5DADE2;
color: white;
}
</style>
<link rel="stylesheet" href="project_style.css">
<link rel="stylesheet" href="bootstrap.css">
</head>
<body style="background: linear-
gradient(to right, #da4453, #89216b);">
<div class="row">
<%@include file="AdminMenu.jsp" %>
</div>
<div class="divStaff">
<center><img src="img/list.png"
width="30" height="30" ></center>
<center> <b> <span
style="color:navy">Course
List</span></b></center>
<br><br>
<table id="customers">
<tr>
<th>Class ID</th>
<th>Class Name</th>
<th>Action</th>
</tr>
<%
Connection cn=null;
Statement st=null;

try
{
Class.forName("com.mysql.jdbc.Driver");
cn=DriverManager.getConnection("jdbc:mysql://l
ocalhost:3306/feedback_system","root","root");
st=cn.createStatement();
String sql="select * from addclass";
ResultSet rs=st.executeQuery(sql);
while(rs.next())
{
String id=rs.getString("cid");
String name=rs.getString("class_name");
%>
<form name="adsf" action="Delete_List"
method="post">
<tr>
<td><label><%=id%></label></td>
<input type="hidden" value="<%=id%>" name
="id">
<td><label><%=name%></label></td>

<td><button type="submit"
name="btn_submit" value="Delete Class"
class="btn btn-primary">DELETE</button>
</td>
</tr>
</form>
<%
}
}catch(Exception ex)
{
out.println(ex.toString());
}
%>
</table>
</div>
</body>
</html>

<%--
1 Document : Admin_CourseList
Created on : 10 Jun, 2021, 2:40:54 PM
Author : HP
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>JSP Page</title>
<style>
#customers {
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
width: 100%;
}

#customers td, #customers th {


border: 1px solid #ddd;
padding: 8px;
}

#customers tr:hover {background-color: #ddd;}

#customers th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #5DADE2;
color: white;
}
</style>
<link rel="stylesheet" href="project_style.css">
<link rel="stylesheet" href="bootstrap.css">
</head>
<body style="background: linear-gradient(to
right, #da4453, #89216b);">
<div class="row">
<%@include file="AdminMenu.jsp" %>
</div>
<div class="divFeedback">
<center><img src="img/list.png"
width="30" height="30" ></center>
<center> <b> <span
style="color:navy">Faculty
List</span></b></center>
<br><br>
<table id="customers">
<tr>
<th>ID</th>
<th>Name</th>
<th>Gneder</th>
<th>Contact</th>
<th>Email</th>
<th>Department</th>
<th>Designation</th>
<th>Subject</th>
<th>Action</th>
</tr>
<%
Connection cn=null;
Statement st=null;

try
{
Class.forName("com.mysql.jdbc.Driver");
cn=DriverManager.getConnection("jdbc:mysql://l
ocalhost:3306/feedback_system","root","root");
st=cn.createStatement();
String sql="select * from staff_details";
ResultSet rs=st.executeQuery(sql);
while(rs.next())
{

%>
<form name="adsf" action="Delete_List"
method="post">
<tr>
<td><label><%=rs.getString("sid")%></label></t
d>
<td><label><%=rs.getString("fname")%></label
></td>
<td><label><%=rs.getString("gender")%></label
></td>
<td><label><%=rs.getString("contact")%></labe
l></td>
<td><label><%=rs.getString("email")%></label>
</td>
<td><label><%=rs.getString("dept")%></label><
/td>
<td><label><%=rs.getString("designation")
%></label></td>
<td><label><%=rs.getString("subjects")%></lab
el></td>
<td><button type="submit"
name="btn_submit" value="Delete" class="btn
btn-primary">Graph</button> </td>
</tr>
</form>
<%
}
}catch(Exception ex)
{
out.println(ex.toString());
}
%>
</table>
</div>
</body>

</html>

<%--
Document : Admin_NewClass
Created on : 3 Jun, 2021, 6:11:56 PM
Author : HP
--%>

<%@page contentType="text/html"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>JSP Page</title>
<link rel="stylesheet"
href="project_style.css">
<link rel="stylesheet" href="bootstrap.css">
</head>
<body style="background: linear-gradient(to
right, #da4453, #89216b);">
<div class="row">
<%@include file="AdminMenu.jsp"
%>
</div>
<form name="asd" action="AddClass"
method="post">
<div class="divMain">
<center><img src="img/add.png"
width="30" height="30" ></center>
<center> <b> <spam>Add
Class</spam></b></center>
<br>
<label>Class ID</label>
<input type="text" name="txt_clsid"
placeholder="Class ID" class="form-control">
<br>
<label>Class</label>
<input type="text"
name="txt_Classname" placeholder="Enter
Class Name" class="form-control">
<br>
<input type="submit" name="btn_save"
value="ADD" class="btn btn-danger">
<input type="submit" name="btn_save"
value="UPDATE" class="btn btn-danger">
<a href="" class="btn btn-
danger">LIST</a>
</div>
</form>
</body>
</html>
<%--
Document : Admin_login
Created on : 3 Jun, 2021, 2:45:05 PM
Author : HP
--%>

<%@page contentType="text/html"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>JSP Page</title>
<link rel="stylesheet"
href="project_style.css">
<link rel="stylesheet" href="bootstrap.css">
</head>
<body style=" background-color: #2196F3;">
<div class="row" mar>
<%@include file="Home.jsp" %>
</div>
<form action="Admin_login"
method="post">
<div class="divMain">
<center><img src="img/login.png"
width="60" height="60" ></center>
<center> <h3>Admin
Login</h3></center>
<br>
<input type="text" name="txt_username"
placeholder="Enter UserName" class="form-
control">
<br>
<input type="password"
name="txt_password" placeholder="******"
class="form-control">
<br>
<input type="submit" name="btn_login"
value="Login" class="btn btn-info">
<a href="Admin_Signup.jsp" class="btn
btn-link">Create New Account</a>
</div>
</form>
</body>
</html>

You might also like