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
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
<bean id="addTPCValidator" class="org.crce.interns.validators.AddTPCValidator" />
<bean id="addTPCTaskValidator" class="org.crce.interns.validators.AddTPCTaskValidator" />
<bean id="rvmTPCValidator" class="org.crce.interns.validators.RemoveTPCValidator" />
<bean id="addApplicantsValidator" class="org.crce.interns.validators.AddApplicantsValidator" />
<bean id="deleteApplicantsValidator" class="org.crce.interns.validators.DeleteApplicantsValidator" />


<bean id="messageSource"
Expand Down
6 changes: 6 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/TPO.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
<td>9.<a href="InsertMonth.html">Insert Month to view Events
Users</a><br /></td>
</tr>
<tr>
<td>10.<a href="view-candidate.html">Manage List of Applicants of all Companies</a><br /></td>
</tr>
<tr>
<td>11.<a href="getEventForm.html">Add Events</a><br /></td>
</tr>
</table>
<br />
<br />
Expand Down
32 changes: 32 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/add-candidate.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<title>Add Candidate</title>
</head>
<body>
<form:form action="addcandidate.html" modelAttribute="userBean" method="post">
Name:<form:input name="name" type="text" path="username" /><br>
Company:<form:input name="company" id="company_id" path="company" />
<br>
<input type="submit" value="Add"/><br />
</form:form>
<a href="view-candidate.html">Back</a>
<!--
<script>
var arr=[];
arr.push('#clist');
$.each($(arr), function (i, item) {
$('#company_id').append($('<option>', {
value: $(item.company_id),
text: $(item.company_id)
}));
});
</script> -->
</body>
</html>
14 changes: 14 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/add-success.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
Successfully added.
<br />
<a href="view-candidate.html">Back</a>
</body>
</html>
43 changes: 43 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/candidate-list.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%-- <!--<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>-->
--%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Applicants' List</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head>
<body>
<form action="showlist.html" method=POST>
<table style="width:100%">
<tr>
<th>Applicant :</th>
<th>Company :</th>
</tr>
<c:forEach items="${userList}" var="user">
<tr>
<td>
<c:out value="${user.username}" /></td>
<td>
<c:out value="${user.company}" /></td>
</tr>

</c:forEach>
</table>
<br><br>
Edit User List:<select name="option">
<option value="Add" >Add</option>
<option value="Delete" >Delete</option>
</select>
<input type=submit value=submit /><br />
</form>
<a href="view-candidate.html">Back</a>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Delete</title>
</head>
<body>
<form:form action="deletecandidate.html" modelAttribute="userBean" method="post">
Name:<form:input name="name" type="text" path="username" /><br>
Company:<form:input name="company" type="text" path="company" /><br>
<input type="submit" value="Delete"/>
</form:form><br />
<a href="view-candidate.html">Back</a>
</body>
</html>
14 changes: 14 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/delete-success.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title></title>
</head>
<body>
Entry Deleted.
<br />
<a href="view-candidate.html">Back</a>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>success</title>
</head>
<body>
<h1>successfully added:</h1>
<h2> ${eventBean.event_id} </h2>
</body>
</html>
110 changes: 110 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/fill-events.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>

</head>
<body>

<form action="fill.html" method="post">
<p>event name: <input type="text" id="test" name="event_name"></p>
<p>event type:
<select id="category" name="event_type">
<option value="none">------</option>
<option value="pre_placement">pre_placement</option>
<option value="aptitude">aptitude</option>
<option value="interview">interview</option>
</select>
</p>

<p>company name: <input type="text" id="test" name="company_name"></p>

<p>approved: <input type="text" id="test" name="approved"></p>

<p>date: <input type="text" id="test" name="date"></p>

<p>time: <input type="text" id="test" name="time"></p>

<p>venue: <input type="text" id="test" name="venue"></p>

<!-- pre_placement -->

<div class="pre_placement" hidden>
<p>conducted_by: <input type="text" id="test" name="conducted_by"></p>

<p>agenda: <input type="text" id="test" name="agenda"></p>
</div>

<!-- aptitude -->
<div class="aptitude" hidden>
<p>test_duration: <input type="text" id="test" name="test_duration"></p>

<p>subjects_to_be_prepared: <input type="text" id="test" name="subjects_to_be_prepared"></p>

<p>test_section: <input type="text" id="test" name="test_section"></p>
</div>

<!-- interview -->
<div class="interview" hidden>
<p>interview_type: <input type="text" id="test" name="interview_type"></p>
</div>




<button>Show Value</button>
</form>

<script>
$(document).ready(function(){
$( "#category" ).change(function() {

var typ=$( "#category").val();


switch(typ){
case "training":

$(".pre_placement").hide();
$(".interview").hide();
$(".aptitude").hide();
$(".training").show();

break;
case "aptitude":

$(".pre_placement").hide();
$(".interview").hide();
$(".aptitude").show();
$(".training").hide();
break;

case "interview":


$(".pre_placement").hide();
$(".interview").show();
$(".aptitude").hide();
$(".training").hide();
break;

case "pre_placement":

$(".pre_placement").show();
$(".interview").hide();
$(".aptitude").hide();
$(".training").hide();

break;
}


});


});
</script>
</body>
</html>
20 changes: 20 additions & 0 deletions PMS_v2-master(edited)/WebContent/WEB-INF/views/view-candidate.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>view candidate list</title>
</head>
<body>
<form action="viewclist.html" method="post" >
Company:<select name="company" >
<option value="JPMC" >JPMC</option>
<option value="Accenture" >Accenture</option>
<option value="TCS" >TCS</option>
</select><br>
<input type="submit" value="submit"/>
</form>
</body>
</html>
32 changes: 32 additions & 0 deletions PMS_v2-master(edited)/src/org/crce/interns/beans/AptitudeBean.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package org.crce.interns.beans;

public class AptitudeBean {
private String event_id;
private String test_duration;
private String subjects_to_be_prepared;
private String test_section;
public String getEvent_id() {
return event_id;
}
public void setEvent_id(String event_id) {
this.event_id = event_id;
}
public String getTest_duration() {
return test_duration;
}
public void setTest_duration(String test_duration) {
this.test_duration = test_duration;
}
public String getSubjects_to_be_prepared() {
return subjects_to_be_prepared;
}
public void setSubjects_to_be_prepared(String subjects_to_be_prepared) {
this.subjects_to_be_prepared = subjects_to_be_prepared;
}
public String getTest_section() {
return test_section;
}
public void setTest_section(String test_section) {
this.test_section = test_section;
}
}
64 changes: 64 additions & 0 deletions PMS_v2-master(edited)/src/org/crce/interns/beans/CompanyBean.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
package org.crce.interns.beans;
import java.util.Date;

public class CompanyBean {


private String company_id;

private String company_name;

private String company_address;

private String created_by;

private Date created_date;

private String modified_by;

private Date modified_date;

public String getCompany_id() {
return company_id;
}
public void setCompany_id(String company_id) {
this.company_id = company_id;
}
public String getCompany_name() {
return company_name;
}
public void setCompany_name(String company_name) {
this.company_name = company_name;
}
public String getCompany_address() {
return company_address;
}
public void setCompany_address(String company_address) {
this.company_address = company_address;
}
public String getCreated_by() {
return created_by;
}
public void setCreated_by(String created_by) {
this.created_by = created_by;
}
public Date getCreated_date() {
return created_date;
}
public void setCreated_date(Date created_date) {
this.created_date = created_date;
}
public String getModified_by() {
return modified_by;
}
public void setModified_by(String modified_by) {
this.modified_by = modified_by;
}
public Date getModified_date() {
return modified_date;
}
public void setModified_date(Date modified_date) {
this.modified_date = modified_date;
}

}
Loading