Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
402 changes: 201 additions & 201 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Lib_Management/WebContent/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
Class-Path:

Manifest-Version: 1.0
Class-Path:
202 changes: 101 additions & 101 deletions Lib_Management/WebContent/Signup.html
Original file line number Diff line number Diff line change
@@ -1,102 +1,102 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" href="Style.css">
<script type="text/javascript" src="jquery-3.3.1.min.js">
</script>
</head>
<body >
<div id="loading"></div>
<script type="text/javascript">
document.getElementById("loading").style.display="none";
</script>


<form style="align-content: center " id="sinup_form">

<br><input type="text" class="form-control" name="Name" id="Name" placeholder="Name" style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<input type="text" class="form-control" name="Roll_No" id="Roll_No" placeholder="Roll No." style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<input type="email" class="form-control" name="Email" id="Email" placeholder="Email Id" style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<input type="number" class="form-control" name="Phone" id="Phone" placeholder="Contact No." style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<select id="Branch" class="btn btn-secondary dropdown-toggle" style="width: 80%; margin-left:10%; border:2px solid #E0E0E0; color: #969292 " >
<option value="Trade">Trade</option>
<option value="CSE">CSE</option>
<option value="ECE">ECE</option>
</select><br><br>
<input type="password" class="form-control" name="Password" id="Password" placeholder="Password" style="width: 80%;margin-left: auto;
margin-right: auto;"><br>
<input type="password" class="form-control" name="Confirm_Password" id="Confirm_Password" placeholder="Confirm Password:" style="width: 80%;margin-left: auto;
margin-right: auto;"><br>
<input type="hidden" name="hidden" id="hidden" >
<input type="submit" class="form-control" value="Submit" name="Submit" id="Submit" style="width:80%;margin-left: auto;
margin-right: auto;color:#ffffff;background-color:#000000 ">

</form>
<script type="text/javascript" >



$(document).ready(function(){
$("#sinup_form").submit(function(e){
e.preventDefault();
});
$("#Submit").click(function(){


var Name=$("#Name").val();
var Roll=$("#Roll_No").val();
var Email=$("#Email").val();

if(!name.search(/[^a-zA-Z]+/)){
alert("Invalid Name ");
return;
}
if(Roll==''){
alert(" Roll No. cannot be Null")
return;
}
if(Email==''){
alert("Email Id cannot be Null.")
return;
}
var Phone=0;
Phone=parseInt($("#Phone").val());
if(Phone<=999999999){
alert("Invalid Phone Number");

return;
}
var Password=$('#Password').val();
var Confirm_Pass=$('#Confirm_Password').val();
if(Password!=Confirm_Pass){
alert("Password Didn't Match");
return;
}
var x= document.getElementById("Branch").selectedIndex;
var y= document.getElementById("Branch").options;
var Branch=y[x].text;
document.getElementById("loading").style.display="flex";
$.ajax(
{ type:"post",
url:'signup',
data:"Name="+Name+"&Roll_No="+Roll+"&Email="+Email+"&Phone="+Phone+"&Password="+Password+"&Branch="+Branch,
error:function(e){
alert("error");},
success:function(data){
alert(data);
if(data=="User Added Successfully"){
document.getElementById("loading").style.display="none";
window.location.replace("login.html");}
}
});
});

});
</script>
</body>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" href="Style.css">
<script type="text/javascript" src="jquery-3.3.1.min.js">
</script>
</head>
<body >
<div id="loading"></div>
<script type="text/javascript">
document.getElementById("loading").style.display="none";
</script>
<form style="align-content: center " id="sinup_form">
<br><input type="text" class="form-control" name="Name" id="Name" placeholder="Name" style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<input type="text" class="form-control" name="Roll_No" id="Roll_No" placeholder="Roll No." style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<input type="email" class="form-control" name="Email" id="Email" placeholder="Email Id" style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<input type="number" class="form-control" name="Phone" id="Phone" placeholder="Contact No." style="margin-left: auto;
margin-right: auto; width: 80%;"><br>
<select id="Branch" class="btn btn-secondary dropdown-toggle" style="width: 80%; margin-left:10%; border:2px solid #E0E0E0; color: #969292 " >
<option value="Trade">Trade</option>
<option value="CSE">CSE</option>
<option value="ECE">ECE</option>
</select><br><br>
<input type="password" class="form-control" name="Password" id="Password" placeholder="Password" style="width: 80%;margin-left: auto;
margin-right: auto;"><br>
<input type="password" class="form-control" name="Confirm_Password" id="Confirm_Password" placeholder="Confirm Password:" style="width: 80%;margin-left: auto;
margin-right: auto;"><br>
<input type="hidden" name="hidden" id="hidden" >
<input type="submit" class="form-control" value="Submit" name="Submit" id="Submit" style="width:80%;margin-left: auto;
margin-right: auto;color:#ffffff;background-color:#000000 ">
</form>
<script type="text/javascript" >
$(document).ready(function(){
$("#sinup_form").submit(function(e){
e.preventDefault();
});
$("#Submit").click(function(){
var Name=$("#Name").val();
var Roll=$("#Roll_No").val();
var Email=$("#Email").val();
if(!name.search(/[^a-zA-Z]+/)){
alert("Invalid Name ");
return;
}
if(Roll==''){
alert(" Roll No. cannot be Null")
return;
}
if(Email==''){
alert("Email Id cannot be Null.")
return;
}
var Phone=0;
Phone=parseInt($("#Phone").val());
if(Phone<=999999999){
alert("Invalid Phone Number");
return;
}
var Password=$('#Password').val();
var Confirm_Pass=$('#Confirm_Password').val();
if(Password!=Confirm_Pass){
alert("Password Didn't Match");
return;
}
var x= document.getElementById("Branch").selectedIndex;
var y= document.getElementById("Branch").options;
var Branch=y[x].text;
document.getElementById("loading").style.display="flex";
$.ajax(
{ type:"post",
url:'signup',
data:"Name="+Name+"&Roll_No="+Roll+"&Email="+Email+"&Phone="+Phone+"&Password="+Password+"&Branch="+Branch,
error:function(e){
alert("error");},
success:function(data){
alert(data);
if(data=="User Added Successfully"){
document.getElementById("loading").style.display="none";
window.location.replace("login.html");}
}
});
});
});
</script>
</body>
</html>
128 changes: 64 additions & 64 deletions Lib_Management/WebContent/Student_Workbench.jsp
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="mainstyle/pages1.css">
<title></title>
</head>
<body>
<div id="body">
<div class="top-info">
<div class="top-info-image">
<img src="photos/logo.png" alt="smile face" height="100px" width="100px">
</div>
<div class="top-info-detail">
<div>Hi,<%
Cookie cookie[]=request.getCookies();
for(Cookie c:cookie)
if(c.getName().equals("Name")){
out.print(c.getValue());
break;
}

//out.print(session.getAttribute("Name"));
%></div>
</div>
<div class="top-info-nav-logo">
<div class="gknav">
<a href="" >Home</a>
<a href="" >Setting</a>
<a href="" >Notification</a>
<a href="index.html" onClick="del()")>Logout</a>
</div>
<div class="top-info-logo" > <p>ABVGIET </p></div>
</div>
</div>
<div class="nav bar">
<ul>
<li>Result</li>
<li>Quesion Paper</li>
<li>Notice Board</li>
<li>Library</li>
<li>
Academics
<ul>
<li>1</li>
<li>2</li>
</ul>
</li>
<li>Attendence</li>
</ul>
</div>
</div>
<script type="text/javascript">
function del(){
document.cookie="Name=";
document.cookie="Id=";
Window.location.replace("index.html");
}
var bdy=document.getElementById("body");
var wid=screen.width;
bdy.style.minWidth=wid+"px";
</script>
</body>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="mainstyle/pages1.css">
<title></title>
</head>
<body>
<div id="body">
<div class="top-info">
<div class="top-info-image">
<img src="photos/logo.png" alt="smile face" height="100px" width="100px">
</div>
<div class="top-info-detail">
<div>Hi,<%
Cookie cookie[]=request.getCookies();
for(Cookie c:cookie)
if(c.getName().equals("Name")){
out.print(c.getValue());
break;
}
//out.print(session.getAttribute("Name"));
%></div>
</div>
<div class="top-info-nav-logo">
<div class="gknav">
<a href="" >Home</a>
<a href="" >Setting</a>
<a href="" >Notification</a>
<a href="index.html" onClick="del()")>Logout</a>
</div>
<div class="top-info-logo" > <p>ABVGIET </p></div>
</div>
</div>
<div class="nav bar">
<ul>
<li>Result</li>
<li>Quesion Paper</li>
<li>Notice Board</li>
<li>Library</li>
<li>
Academics
<ul>
<li>1</li>
<li>2</li>
</ul>
</li>
<li>Attendence</li>
</ul>
</div>
</div>
<script type="text/javascript">
function del(){
document.cookie="Name=";
document.cookie="Id=";
Window.location.replace("index.html");
}
var bdy=document.getElementById("body");
var wid=screen.width;
bdy.style.minWidth=wid+"px";
</script>
</body>
</html>
Loading