Anda di halaman 1dari 130

1.

INTRODUCTION

Online University Campus (A UNIVERSITY PORTAL) is a web based application that provides a one stop shop for the existing as well as prospective students. Current students can find out various information such as schedules of examination and other various important events, their results etc. prospective students can find out list of colleges affiliated to the university, courses offered by them, admission procedure, Discussion forum etc. students can also download registration form for applying various courses, can also apply online using the portal. With the increasing number of students applying for Universities & Colleges, managing the work has become a tedious task. This has led to a need to automate the admission & other working processes. This project aims at the automation of the routine work of a University including admissions, managing results, providing information about the courses, information about the university & various different affiliated colleges and the faculty. Thus, making all the essentials of a university available online. Current students can find out various information such as schedule of examination and other various important events, their results etc. Automates a university by making its working online. Prospective students can find out the list of colleges affiliated to the university, courses offered by them, admission procedure, discussion forums etc. Students can also download registration forms for applying for various courses, or can also apply online using the portal. Hence it could be concluded that for a modern day university a portal like this is necessary and successful. Online University Campus in provides solution of all these problems in the form of easy to configure and use application by automating all these functionality. The major modules are:

Login Management Registration Process Student Management Staff Management Fee Management Query Management Exam Management Result

1| Page

2.FEASIBILITY STUDY
A feasibility study is an evaluation of a proposal designed to determine the difficulty in carrying out a designated task. Generally, a feasibility study precedes technical development and project implementation. In other words, a feasibility study is an evaluation or analysis of the potential impact of a proposed project.

Technology and System Feasibility


This project Online University Campus is for providing a portal for university related activity. A website can easily be publish on the internet by hiring a server. The main work is to maintain the website on the server. Which can be done with any ftp software. On the bases of the statements our project is technically feasible.

Economic Feasibility
This project Online University Campus is at the learning level, where no expenditure are done except operating system and development tools Java develop Kit and a server .We are using BEA WebLogicPlatform 8.1 as a server for deployment of the website.

Legal Feasibility
The project is not meant for commercial use as it is at learning level. Hence it does not void any of the commercial rules.

Operational Feasibility
This project will be designed by using reliable development tools hence it is supposed to run accordingly.

3.REQUIREMENT ANALYSIS
2| Page

DEVELOPER END HARDWARE


Pentium 4th RAM 128MB Hard Disk 20GB/40GB

SOFTWARE
Front End Back End Html ,JSP & Web logic Ms-access

Operating System- Windows 98 or Windows NT

USERS END SOFTWARE REQUIREMENT


OS Browser : : Windows XP/Vista or above Intenet Explorer 8.0 or above

HARDWARE REQUIREMENT
Processor Main Memory Hard Disk : : : Intel Pentium Core 2 Duo 1.8 GHz 1024 MB DDR2 Approximate of 8 GB of Disk Space

4.SYSTEM REQUIREMENT SPECIFICATION


3| Page

We have been asked to implement a mini project which is technically , operationally , legally & economically feasible. The deadline of the project is end-November Platform for end-users :

Software Required: OS Hardware Required: Processor Main Memory Hard Disk : : : Intel Pentium Core 2 Duo 1.8 GHz 1024 MB DDR2 Approximate of 8 GB of Disk Space : Windows XP/Vista or above

5.MODULAR DISCRIPTION
4| Page

Login Management: Basically Login module is developed for staff member as well as Institute staff (Institute must be affiliated to university).In login management section the user entered the login and password, if user is valid then user can enter the permissible section. First time user make it id than the user can use the functionality according his rites. The user can change own password.

Registration Process: Registration Module is specially designed for students. The student fills the entry of registration form and submits to the university, threw this process the student registered in university. After submission the registration form the university allows to fill the exam form and student fill the exam form and university provides the roll number and enrollment number. Registration process is processes only one time when student take admission. Whenever in each semester student have to fill the exam form.

Student Management: Registering in one course the student can transfer in other branch (for only B.Tech Ist year student).In second year there is no transfer schedule. University handles the records related to personal, your degree etc. And have all type of data of student which are registered in campus.

Staff Management: This module is responsible for entering the details for University staff and all institute staff (institute must be affiliated to university). The record such as name, address, qualification, experience etc

Fee Management: This module is responsible for entering fee details of the registered students into the system, generating due fee reports, collected fee reports. Student submit their exam fee, tuition fee, hostel fee travel fees etc.

Query Management: In this module the student send the query to the university administrator and get the response. Query may be related to admit card, result awaited, so many problem can be.

Exam Management: This module is responsible for scheduling the exam. There are many courses run in a university so that exam schedule is going to complex. This module solves this
5| Page

problem with few second.

Result Management: In this module the university process the result of every student and provides awarding degree certificates to those student who qualifying the university exam.

Help: - Provide the functionality to get help.

6.SYSTEM DESIGN :
6| Page

DATA FLOW DIAGRAMS Context Level DFD

Faculty

View profile Query Status

Submit Follow up Remarks Details Enter Enquiry Details

Counselo rs

Summit complain View Result, faculty Level-1 DFD profile, exam schedule, syllabus etc..

OnlineCa mpus.co m

Submit Query Criteria. View Query Result View Follow up Reports Enter Registration Details

Submit request

Enter fee detail and Update it

Generates Reports

View Reports

Studen t Chancello r

Accounta nt

7| Page

User

Enter login & pass Get Response

Admin Send Request, Get Response

Send request for visit

Login If login true then Enter into process section

Result Store Result

varificatio n Send request

OnlineC ampus.c om
Send complain

Retrieve Result

Fees deposit

Get fees process

ExamFor m

Fill entries of exam form Registrati on Fill entries of registration form Get response Send request for fees

Fees

Complai n Get response Get Fill response entries of exam form

Student

8| Page

E-R Diagram

Login

Passwo rd User

Inquiry Answe r Belo ngs 1 Type Nam e

Name

1 HasA 1 1 Admin

Campus

OnlineCamp us.com

1 Subjec t Exam

HasA 1

Departme nt 1

Course s

Faculty

1 Affilia ted

Belo ngs 1

Universit y Record 1 Book Name Writer Name

Code Passwor d Issue Date Institute Code

Mark s

Nam e Addres s Universit y

M Institut es

Library

Descriptio n No of Books

Course s

9| Page

DATA STRUCTURE
1: User: This table is used to store the detail of login and password of the user.

Field Name Username Password

Data Type Text Text

2: StdRegistration: This table is used to store the detail of student that is going to take admission in university.

Field Name RollNo EnrollmentNo FirstName LastName Paddress Caddress Course Semester HighSchoolMarks HighSchoolPer InterMarks InterPer

Data Type Number Number Text Text Text Text Text Text Text Text Text Text

10 | P a g e

GraduationMarks GraduationPer Other

Text Text Text

3: StaffRegistration: This table is used to store the detail of staff member that is going to take admission in university.

Field Name EmployeeId Fname Lname FatherName Paraddress Coaddress JoinDate ResignDate HighSchool Inter Graduation PostGraduation Other Hyear Iyear
11 | P a g e

Data Type Number Number Text Text Text Text Text Text Text Text Text Text Text Text Text

Gyear PGyear Sex Categories

Text Text Text Text

Experience SpacialSubject PhoneNumber Mobile

Text Text Number Number

4: InstituteDetails: This table is used to store the detail about Institute.

Field Name Code Name Address University

Data Type Number Text Text Text Text Text

5: IdInfo: This table is used to store the detail of student registration information that is going to take admission in university.

12 | P a g e

Field Name Question Answer secMail

Data Type Text Text Text

6: Result: This table is used to store the detail of student Result.

Field Name Question Answer secMail

Data Type Text Text Text

7: Marks: This table is used to store the detail of student Marks.

Field Name Roll No Course Sem ResultType Subject Marks


13 | P a g e

Data Type Number Text Text Text Text Number

8: Employeeid: This table is used to store the detail of Employee.

Field Name Question Answer Secondmail

Data Type Text Text Text

7. IMPLEMENTATION:
This section of the project report consist of coding which is basically consist of JAVA and JSP codes.

.java codes
package vik; import java.sql.*; import cont.Connec; public class Admin1 { Connection c=Connec.getConnection(); String name="name"; String name1="name1";
14 | P a g e

int data=0; javax.servlet.jsp.JspWriter out; public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setName1(String name1) { if(!name1.equals(null)) this.name1=name1; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { int i=0; int j=0; int k=1; String s1=""; try{ Statement st=c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABL E); ResultSet rs=st.executeQuery("SELECT distinct Validroll.Stream FROM Validroll"); ///out.println("s0="+s1+"#"); while(rs.next()) { String n=rs.getString(1); if(!n.equals(null)) { i++; } } }catch(Exception e){ try{ for(int ij=1;ij<i;ij++) {
15 | P a g e

if(ij%5==1) { j++; s1=s1+"&nbsp;&nbsp;<a href=Admin1.jsp?name="+j+">"+j+"</a>"; } } Statement st=c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABL E); ResultSet rs1=st.executeQuery("SELECT distinct Validroll.Stream FROM Validroll"); String s="<table><tr><th colspan='2' bgcolor=''>TO SEE THE RESULT DETAILS HIT LINK</th></tr></tr>"; if(!name.equals("name")) { k=Integer.parseInt(name); } try{ for(int i1=k*5-4;i1<=(k*5-4)+4;i1++) { rs1.absolute(i1); String ss=rs1.getString(1); s=s+"<tr><td bgcolor=''><a href=Admin11.jsp?name1="+ss+">"+ss+"</a></td></tr>"; } }catch(Exception e1){} s=s+"</table>"; out.println(s); out.println(s1); if(i==0) { out.println("NO RESULT IS UPLOADED IN UNIVERSITY"); } }catch(Exception e1){ /*System.out.println(e1);*/} } return "vv"; } } /*Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT distinct Validroll.Stream FROM Validroll");

16 | P a g e

String td="<table><tr><th colspan='2' bgcolor=''>TO SEE THE RESULT DETAILS HIT LINK</th></tr></tr>"; while(rs.next()) { String s1=rs.getString(1); td=td+"<tr><td bgcolor=''><a href=Admin11.jsp?name1="+s1+">"+s1+"</a></td></tr>"; } td=td+"</table>"; out.println(td);*/ package vik; import java.sql.*; import cont.Connec; public class Admin2 { Connection c=Connec.getConnection(); String name="name"; String name1="name1"; String course="course"; static String courseold="courseold"; static String type="t"; static String elig="e"; static String duera="d"; static String desc="ds"; javax.servlet.jsp.JspWriter out; public void setType(String type) { if(!type.equals(null)) this.type=type; //System.out.println(type); } public void setElig(String elig) { if(!elig.equals(null)) this.elig=elig; //System.out.println(elig); } public void setDuera(String duera) { if(!duera.equals(null))
17 | P a g e

this.duera=duera; //System.out.println(duera); } public void setDesc(String desc) { if(!desc.equals(null)) this.desc=desc; //System.out.println(desc); } public void setCourse(String course) { if(!course.equals(null)) this.course=course; } public void setName1(String name1) { if(!name1.equals(null)) this.name1=name1; } public void setName(String name) { if(!name.equals(null)) this.name=name; { public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ //System.out.println("name= "+name+" course= "+course); String courses=""; ////****///INITIAL if(name.equals("name")||name.equals("Home")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT Courses.Course FROM Courses"); while(rs1.next())
18 | P a g e

{ String s=rs1.getString(1); courses=courses+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin2.jsp'><tr><td><div align='center' class='style1'>Course Modification </div></td></tr><tr><td><div align='center' class='style2'> Courses in college: <select name='course'>"+courses+"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='MODIFY'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='DELETE'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='NEW'></div></td></tr></form></table>"); } ////*****/////MODIFY if(name.equals("MODIFY")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT *from Courses where Course='"+course+"'"); while(rs1.next()) { courseold=rs1.getString(1); type=rs1.getString(2); elig=rs1.getString(3); duera=rs1.getString(4); desc=rs1.getString(5); } out.println("<table bgcolor='' bordercolor='' border='1'><td><form name='form1' method='' action='Admin2.jsp'><p><div align='right'>COURSE:&nbsp;&nbsp;&nbsp; <input type='text' name='course' value='"+courseold+"'></div></p><p><div align='left'>&nbsp;&nbsp;&nbsp;&nbsp;Degree/Deploma: <select name='type'><option value="+type+" selected>"+type+"</option><option>DEPLOMA</option><option>DEGREE</option></select>< /div></p><p><div align='left'>Eligible for Students:<select name='elig'><option value="+elig+" selected>"+elig+"</option><option>10 TH PASS</option><option>12 TH PASS</option><option>GRADUATE</option></select></div></p><p><div align='left'>Dueration of Course:<select name='duera'><option value="+duera+" selected>"+duera+"</option><option>1 YEAR</option><option>2 YEAR</option><option>3 YEAR</option><option>4 YEAR</option><option>5 YEAR</option></select></div></p><p><div align='right'>Course Description: <input type='text' name='desc' value="+desc+"></div></p><p><div align='center'><input type='submit' name='name' value= 'CONFORM' onclick='return
19 | P a g e

validationTxt()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'Home' ></div></form></td></table>"); } //**//CONFORM if(name.equals("CONFORM")) { //System.out.println("########"+courseold+" "+type+" "+elig+" "+duera+" "+desc+" "+id); PreparedStatement ps=c.prepareStatement("update Courses set Course=?,Type=?,Eligible=?,Deuration=?,Description=? where Course=?"); ps.setString(1,course); ps.setString(2,type); ps.setString(3,elig); ps.setString(4,duera); ps.setString(5,desc); ps.setString(6,courseold); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td> COURSE MODIFY=> "+course+" "+type+" "+elig+" "+duera+" "+desc+"</td></table>"); } //***COURSE DELETE****//// if(name.equals("DELETE")) { PreparedStatement ps=c.prepareStatement("delete *from Courses where course=?"); ps.setString(1,course); int a=ps.executeUpdate(); //if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>COURSE DELETED</td></table>"); } ///*******NEW COURSE ADD*****// if(name.equals("NEW")) { Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT Courses.Course from Courses"); String td="<TABLE bordercolor='' border='1'><form name=form1 action='Admin2.jsp' method='post'><tr><td BGCOLOR=''><p><div align='center'>Courses available :<select name='select'>"; while(rs.next()) { td=td+"<option>"+rs.getString(1)+"</option>";
20 | P a g e

} td=td+"</select></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;New Course Lounch: <input type='text' name='course'></div></p><p><div align='center'>Degree/Deploma:&nbsp;&nbsp;&nbsp;&nbsp; <select name='type'><option>DEPLOMA</option><option>DEGREE</option></select></div></p><p> <div align='center'>Eligible for Students:&nbsp;&nbsp;&nbsp;<select name='elig'><option>10 TH PASS</option><option>12 TH PASS</option><option>GRADUATE</option></select></div></p><p><div align='left'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dueration of Course:&nbsp;&nbsp;<select name='duera'><option>1 YEAR</option><option>2 YEAR</option><option>3 YEAR</option><option>4 YEAR</option><option>5 YEAR</option></select></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;Course Description: <input type='text' name='desc'></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'ADD' onclick='return validationTxt()' >&nbsp;&nbsp;&nbsp;<INPUT type=reset value=Reset >&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'Home' ></p></div></td></tr></form></TABLE>"; out.println(td); } if(name.equals("ADD")) { //System.out.println("course= "+course+" type= "+type+" dueration= "+duera+" elig= "+elig+" descp= "+desc); PreparedStatement ps=c.prepareStatement("INSERT into Courses Values(?,?,?,?,?)"); ps.setString(1,course); ps.setString(2,type); ps.setString(3,elig); ps.setString(4,duera); ps.setString(5,desc); int ii=ps.executeUpdate(); if(ii==1) out.println("<table BGCOLOR='' bordercolor='' border='2'><td>NEW COURSE IS ADDED IN UNIVERSITY COURSES</td></table>"); } }catch(Exception e){ System.out.println(e);} return "vv"; } } package vik;
21 | P a g e

import java.sql.*; import cont.Connec; public class Admin3 { Connection c=Connec.getConnection(); String name="name"; static String collegeold="collegeold"; String coll="coll"; String place="place"; String cph="cph"; String fax="fax"; String princ="princ"; String pno="pno"; String mail="mail"; String login="login"; String pass="pass"; String colleges=""; static String id="1"; javax.servlet.jsp.JspWriter out; public void setName(String name) { if(!name.equals(null)) this.name=name; //System.out.println("dddddd"+name); } public void setColl(String coll) { if(!coll.equals(null)) this.coll=coll; } public void setPlace(String place) { if(!place.equals(null)) this.place=place; } public void setCph(String cph) {
22 | P a g e

if(!cph.equals(null)) this.cph=cph; } public void setFax(String fax) { if(!fax.equals(null)) this.fax=fax; } public void setPrinc(String princ) { if(!princ.equals(null)) this.princ=princ; } public void setPno(String pno) { if(!pno.equals(null)) this.pno=pno; } public void setMail(String mail) { if(!mail.equals(null)) this.mail=mail; } public void setLogin(String login) { if(!login.equals(null)) this.login=login; } public void setPass(String pass) { if(!pass.equals(null)) this.pass=pass; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{
23 | P a g e

//System.out.println("name= "+name+" colleges= "+colleges); ////****///INITIAL if(name.equals("name")||name.equals("Home")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT Colleges.CollegeName FROM Colleges"); while(rs1.next()) { String s=rs1.getString(1); colleges=colleges+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form2' method='' action='Admin3.jsp'><tr><td><div align='center' class='style1'>College Modification </div></td></tr><tr><td><div align='center' class='style2'>College in university::<select name='coll'>"+colleges+"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='MODIFY'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='DELETE'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='NEW'></div></td></tr></form></table>"); } ////*****/////MODIFY if(name.equals("MODIFY")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT Colleges.id, Colleges.CollegeName, Colldetail.add, Colldetail.ph, Colldetail.fax, Colldetail.pri, Colldetail.priph, Colldetail.mail, Login.Name, Login.password FROM (Colleges INNER JOIN Colldetail ON Colleges.id = Colldetail.id) INNER JOIN Login ON Colleges.id = Login.id where Colleges.CollegeName='"+coll+"'"); while(rs1.next()) { id=rs1.getString(1); collegeold=rs1.getString(2); place=rs1.getString(3); cph=rs1.getString(4); fax=rs1.getString(5); princ=rs1.getString(6); pno=rs1.getString(7); mail=rs1.getString(8); login=rs1.getString(9); pass=rs1.getString(10);
24 | P a g e

} out.println("<table bordercolor='' border='1' bgcolor=''><form name='form1' action='Admin3.jsp'><tr><td></div></p><p><div align='right'>COLLEGE NAME:&nbsp;&nbsp;<input type='text' name='coll' value="+collegeold+"></div></p><p><div align='right'>PLACED AT: &nbsp;&nbsp;<input type='text' name='place' value="+place+"></div></p><p><div align='right'>COLLEGE CONTECT NO: &nbsp;&nbsp;<input type='text' name='cph' value="+cph+"></div></p><p><div align='right'>FAX NO: &nbsp;&nbsp;<input type='text' name='fax' value="+fax+"></div></p><p><div align='right'>PRINCIPLE NAME:&nbsp;&nbsp;&nbsp;<input type='text' name='princ' value="+princ+"></div></p><p><div align='right'>PHONE NO: &nbsp;&nbsp;&nbsp;<input type='text' name='pno' value="+pno+"></div></p><p><div align='right'>MAIL ID:&nbsp;&nbsp;&nbsp; <input type='text' name='mail' value="+mail+"></div></p><p><div align='right'>INITIAL LOGIN ID:&nbsp;&nbsp;&nbsp; <input type='text' name='login' value="+login+"></div></p><p><div align='right'>INITIAL PASSWORD:&nbsp;&nbsp;&nbsp; <input type='text' name='pass' value="+pass+"></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'CONFORM' onclick='return validationTxt()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'Home' ></p></div></td></tr></form></TABLE>"); } ////CONFORM if(name.equals("CONFORM")) { //System.out.println(id); int id1=Integer.parseInt(id); PreparedStatement ps1=c.prepareStatement("update Login set Name=?,password=? where id=?"); ps1.setString(1,login); ps1.setString(2,pass); ps1.setInt(3,id1); int a1=ps1.executeUpdate(); PreparedStatement ps2=c.prepareStatement("update Colleges set CollegeName=? where id=?"); ps2.setString(1,coll); ps2.setInt(2,id1); int a2=ps2.executeUpdate(); PreparedStatement ps3=c.prepareStatement("update Colldetail set add=?,ph=?,fax=?,pri=?,priph=?,mail=? where id=?"); ps3.setString(1,place); ps3.setString(2,cph); ps3.setString(3,fax); ps3.setString(4,princ);
25 | P a g e

ps3.setString(5,pno); ps3.setString(6,mail); ps3.setInt(7,id1); int a3=ps3.executeUpdate(); if(a1==1&&a2==1&&a3==1) out.println("<table BGCOLOR='' border='1'><td>COLLEGE UPDATED IN UNIVERSITY</td></table>"); } //***COURSE DELETE****//// if(name.equals("DELETE")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT id FROM Colleges where CollegeName='"+coll+"'"); String s=""; while(rs1.next()) s=rs1.getString(1); int id1=Integer.parseInt(s); PreparedStatement ps1=c.prepareStatement("delete * from Login where id=?"); PreparedStatement ps2=c.prepareStatement("delete * from Colleges where id=?"); PreparedStatement ps3=c.prepareStatement("delete * from Colldetail where id=?"); PreparedStatement ps4=c.prepareStatement("delete * from Collcourse where id=?"); PreparedStatement ps5=c.prepareStatement("delete * from applications where id=?"); ps1.setInt(1,id1); ps2.setInt(1,id1); ps3.setInt(1,id1); ps4.setInt(1,id1); ps5.setInt(1,id1); //System.out.println(id1); int a1=ps1.executeUpdate(); int a2=ps2.executeUpdate(); int a3=ps3.executeUpdate(); int a4=ps4.executeUpdate(); int a5=ps5.executeUpdate(); //if(a1==1&&a2==1&&a3==1&&a4==1) out.println("<table border='1' BGCOLOR=''><td>COLLEGE DELETED FROM UNIVERSITY</td></table>"); } ///*******NEW COLLEGE ADD*****// if(name.equals("NEW")) {
26 | P a g e

Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT CollegeName FROM Colleges"); String td="<TABLE border='1'><form name=form1 action='Admin3.jsp' method=''><tr><td BGCOLOR=''><p><div align='center'>COLLEGE IN UNIVERSITY:<select name='select'>"; while(rs.next()) { td=td+"<option>"+rs.getString(1)+"</option>"; } td=td+"</select></div></p><p><div align='right'>NEW COLLEGE NAME:&nbsp;&nbsp;<input type='text' name='coll' ></div></p><p><div align='right'>PLACED AT: &nbsp;&nbsp;<input type='text' name='place' ></div></p><p><div align='right'>COLLEGE CONTECT NO: &nbsp;&nbsp;<input type='text' name='cph'></div></p><p><div align='right'>FAX NO: &nbsp;&nbsp;<input type='text' name='fax'></div></p><p><div align='right'>PRINCIPLE NAME:&nbsp;&nbsp;&nbsp;<input type='text' name='princ'></div></p><p><div align='right'>PHONE NO: &nbsp;&nbsp;&nbsp;<input type='text' name='pno'></div></p><p><div align='right'>MAIL ID:&nbsp;&nbsp;&nbsp; <input type='text' name='mail'></div></p><p><div align='right'>INITIAL LOGIN ID:&nbsp;&nbsp;&nbsp; <input type='text' name='login'></div></p><p><div align='right'>INITIAL PASSWORD:&nbsp;&nbsp;&nbsp; <input type='text' name='pass'></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'ADD' onclick='return validationTxt()'>&nbsp;&nbsp;&nbsp;<INPUT type=reset value=Reset >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'Home' ></p></div></td></tr></form></TABLE>"; out.println(td); } if(name.equals("ADD")) { Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Colleges"); String s="0"; while(rs.next()) { s=rs.getString(1); } int id=Integer.parseInt(s); id=id+1; //System.out.println(id); PreparedStatement ps1=c.prepareStatement("insert into Login Values(?,?,?)"); ps1.setInt(1,id); ps1.setString(2,login);
27 | P a g e

ps1.setString(3,pass); int a1=ps1.executeUpdate(); PreparedStatement ps2=c.prepareStatement("insert into Colleges Values(?,?)"); ps2.setInt(1,id); ps2.setString(2,coll); int a2=ps2.executeUpdate(); PreparedStatement ps3=c.prepareStatement("insert into Colldetail Values(?,?,?,?,?,?,?)"); ps3.setInt(1,id); ps3.setString(2,place); ps3.setString(3,cph); ps3.setString(4,fax); ps3.setString(5,princ); ps3.setString(6,pno); ps3.setString(7,mail); int a3=ps3.executeUpdate(); if(a1==1&&a2==1&&a3==1) out.println("<table BGCOLOR='' border='1'><td>NEW COLLEGE IS ADDED IN UNIVERSITY</td></table>"); } }catch(Exception e){ System.out.println(e);} return "vv"; } }package vik; import java.sql.*; import cont.Connec; public class Admin3 { Connection c=Connec.getConnection(); String name="name"; static String collegeold="collegeold"; String coll="coll"; String place="place"; String cph="cph"; String fax="fax"; String princ="princ"; String pno="pno"; String mail="mail"; String login="login"; String pass="pass";
28 | P a g e

String colleges=""; static String id="1"; javax.servlet.jsp.JspWriter out; public void setName(String name) { if(!name.equals(null)) this.name=name; //System.out.println("dddddd"+name); } public void setColl(String coll) { if(!coll.equals(null)) this.coll=coll; } public void setPlace(String place) { if(!place.equals(null)) this.place=place; } public void setCph(String cph) { if(!cph.equals(null)) this.cph=cph; } public void setFax(String fax) { if(!fax.equals(null)) this.fax=fax; } public void setPrinc(String princ) { if(!princ.equals(null)) this.princ=princ; } public void setPno(String pno) { if(!pno.equals(null)) this.pno=pno; } public void setMail(String mail)
29 | P a g e

{ if(!mail.equals(null)) this.mail=mail; } public void setLogin(String login) { if(!login.equals(null)) this.login=login; } public void setPass(String pass) { if(!pass.equals(null)) this.pass=pass; }

public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ //System.out.println("name= "+name+" colleges= "+colleges); ////****///INITIAL if(name.equals("name")||name.equals("Home")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT Colleges.CollegeName FROM Colleges"); while(rs1.next()) { String s=rs1.getString(1); colleges=colleges+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form2' method='' action='Admin3.jsp'><tr><td><div align='center' class='style1'>College Modification </div></td></tr><tr><td><div align='center' class='style2'>College in university::<select name='coll'>"+colleges+"</select></div></td></tr><tr><td><div
30 | P a g e

align='center'><input type='submit' name='name' value='MODIFY'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='DELETE'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='NEW'></div></td></tr></form></table>"); } ////*****/////MODIFY if(name.equals("MODIFY")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT Colleges.id, Colleges.CollegeName, Colldetail.add, Colldetail.ph, Colldetail.fax, Colldetail.pri, Colldetail.priph, Colldetail.mail, Login.Name, Login.password FROM (Colleges INNER JOIN Colldetail ON Colleges.id = Colldetail.id) INNER JOIN Login ON Colleges.id = Login.id where Colleges.CollegeName='"+coll+"'"); while(rs1.next()) { id=rs1.getString(1); collegeold=rs1.getString(2); place=rs1.getString(3); cph=rs1.getString(4); fax=rs1.getString(5); princ=rs1.getString(6); pno=rs1.getString(7); mail=rs1.getString(8); login=rs1.getString(9); pass=rs1.getString(10); } out.println("<table bordercolor='' border='1' bgcolor=''><form name='form1' action='Admin3.jsp'><tr><td></div></p><p><div align='right'>COLLEGE NAME:&nbsp;&nbsp;<input type='text' name='coll' value="+collegeold+"></div></p><p><div align='right'>PLACED AT: &nbsp;&nbsp;<input type='text' name='place' value="+place+"></div></p><p><div align='right'>COLLEGE CONTECT NO: &nbsp;&nbsp;<input type='text' name='cph' value="+cph+"></div></p><p><div align='right'>FAX NO: &nbsp;&nbsp;<input type='text' name='fax' value="+fax+"></div></p><p><div align='right'>PRINCIPLE NAME:&nbsp;&nbsp;&nbsp;<input type='text' name='princ' value="+princ+"></div></p><p><div align='right'>PHONE NO: &nbsp;&nbsp;&nbsp;<input type='text' name='pno' value="+pno+"></div></p><p><div align='right'>MAIL ID:&nbsp;&nbsp;&nbsp; <input type='text' name='mail' value="+mail+"></div></p><p><div align='right'>INITIAL LOGIN ID:&nbsp;&nbsp;&nbsp; <input type='text' name='login' value="+login+"></div></p><p><div align='right'>INITIAL PASSWORD:&nbsp;&nbsp;&nbsp;
31 | P a g e

<input type='text' name='pass' value="+pass+"></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'CONFORM' onclick='return validationTxt()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'Home' ></p></div></td></tr></form></TABLE>"); } ////CONFORM if(name.equals("CONFORM")) { //System.out.println(id); int id1=Integer.parseInt(id); PreparedStatement ps1=c.prepareStatement("update Login set Name=?,password=? where id=?"); ps1.setString(1,login); ps1.setString(2,pass); ps1.setInt(3,id1); int a1=ps1.executeUpdate(); PreparedStatement ps2=c.prepareStatement("update Colleges set CollegeName=? where id=?"); ps2.setString(1,coll); ps2.setInt(2,id1); int a2=ps2.executeUpdate(); PreparedStatement ps3=c.prepareStatement("update Colldetail set add=?,ph=?,fax=?,pri=?,priph=?,mail=? where id=?"); ps3.setString(1,place); ps3.setString(2,cph); ps3.setString(3,fax); ps3.setString(4,princ); ps3.setString(5,pno); ps3.setString(6,mail); ps3.setInt(7,id1); int a3=ps3.executeUpdate(); if(a1==1&&a2==1&&a3==1) out.println("<table BGCOLOR='' border='1'><td>COLLEGE UPDATED IN UNIVERSITY</td></table>"); } //***COURSE DELETE****//// if(name.equals("DELETE")) { Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT id FROM Colleges where CollegeName='"+coll+"'"); String s=""; while(rs1.next())
32 | P a g e

s=rs1.getString(1); int id1=Integer.parseInt(s); PreparedStatement ps1=c.prepareStatement("delete * from Login where id=?"); PreparedStatement ps2=c.prepareStatement("delete * from Colleges where id=?"); PreparedStatement ps3=c.prepareStatement("delete * from Colldetail where id=?"); PreparedStatement ps4=c.prepareStatement("delete * from Collcourse where id=?"); PreparedStatement ps5=c.prepareStatement("delete * from applications where id=?"); ps1.setInt(1,id1); ps2.setInt(1,id1); ps3.setInt(1,id1); ps4.setInt(1,id1); ps5.setInt(1,id1); //System.out.println(id1); int a1=ps1.executeUpdate(); int a2=ps2.executeUpdate(); int a3=ps3.executeUpdate(); int a4=ps4.executeUpdate(); int a5=ps5.executeUpdate(); //if(a1==1&&a2==1&&a3==1&&a4==1) out.println("<table border='1' BGCOLOR=''><td>COLLEGE DELETED FROM UNIVERSITY</td></table>"); } ///*******NEW COLLEGE ADD*****// if(name.equals("NEW")) { Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT CollegeName FROM Colleges"); String td="<TABLE border='1'><form name=form1 action='Admin3.jsp' method=''><tr><td BGCOLOR=''><p><div align='center'>COLLEGE IN UNIVERSITY:<select name='select'>"; while(rs.next()) { td=td+"<option>"+rs.getString(1)+"</option>"; } td=td+"</select></div></p><p><div align='right'>NEW COLLEGE NAME:&nbsp;&nbsp;<input type='text' name='coll' ></div></p><p><div align='right'>PLACED AT: &nbsp;&nbsp;<input type='text' name='place' ></div></p><p><div align='right'>COLLEGE CONTECT NO: &nbsp;&nbsp;<input type='text' name='cph'></div></p><p><div align='right'>FAX NO: &nbsp;&nbsp;<input type='text' name='fax'></div></p><p><div align='right'>PRINCIPLE NAME:&nbsp;&nbsp;&nbsp;<input type='text' name='princ'></div></p><p><div align='right'>PHONE NO: &nbsp;&nbsp;&nbsp;<input type='text'
33 | P a g e

name='pno'></div></p><p><div align='right'>MAIL ID:&nbsp;&nbsp;&nbsp; <input type='text' name='mail'></div></p><p><div align='right'>INITIAL LOGIN ID:&nbsp;&nbsp;&nbsp; <input type='text' name='login'></div></p><p><div align='right'>INITIAL PASSWORD:&nbsp;&nbsp;&nbsp; <input type='text' name='pass'></div></p><p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'ADD' onclick='return validationTxt()'>&nbsp;&nbsp;&nbsp;<INPUT type=reset value=Reset >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value= 'Home' ></p></div></td></tr></form></TABLE>"; out.println(td); } if(name.equals("ADD")) { Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Colleges"); String s="0"; while(rs.next()) { s=rs.getString(1); } int id=Integer.parseInt(s); id=id+1; //System.out.println(id); PreparedStatement ps1=c.prepareStatement("insert into Login Values(?,?,?)"); ps1.setInt(1,id); ps1.setString(2,login); ps1.setString(3,pass); int a1=ps1.executeUpdate(); PreparedStatement ps2=c.prepareStatement("insert into Colleges Values(?,?)"); ps2.setInt(1,id); ps2.setString(2,coll); int a2=ps2.executeUpdate(); PreparedStatement ps3=c.prepareStatement("insert into Colldetail Values(?,?,?,?,?,?,?)"); ps3.setInt(1,id); ps3.setString(2,place); ps3.setString(3,cph); ps3.setString(4,fax); ps3.setString(5,princ); ps3.setString(6,pno); ps3.setString(7,mail); int a3=ps3.executeUpdate();
34 | P a g e

if(a1==1&&a2==1&&a3==1) out.println("<table BGCOLOR='' border='1'><td>NEW COLLEGE IS ADDED IN UNIVERSITY</td></table>"); } }catch(Exception e){ System.out.println(e);} return "vv"; } }package vik; import java.sql.*; import cont.Connec; public class Admin4 { Connection c=Connec.getConnection(); String name="name"; static String fid="fid"; static String dep="dep"; String fname="fname"; String fadd="fadd"; String fph="fph"; String fmail="fmail"; String fsex="fsex"; static String depid="depid"; javax.servlet.jsp.JspWriter out; public void setFid(String fid) { if(!fid.equals(null)) this.fid=fid; } public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setDep(String dep) { if(!dep.equals(null)) this.dep=dep; } public void setFname(String fname)
35 | P a g e

{ if(!fname.equals(null)) this.fname=fname; } public void setFadd(String fadd) { if(!fadd.equals(null)) this.fadd=fadd; } public void setFph(String fph) { if(!fph.equals(null)) this.fph=fph; } public void setFmail(String fmail) { if(!fmail.equals(null)) this.fmail=fmail; } public void setFsex(String fsex) { if(!fsex.equals(null)) this.fsex=fsex; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ ////****///INITIAL if(name.equals("name")||name.equals("Home")) { String departments=""; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT depname FROM Departments"); while(rs1.next())
36 | P a g e

{ String s=rs1.getString(1); departments=departments+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'>Faculties and Departments Modification </div></td></tr><tr><td><div align='center' class='style2'>Departments: <select name='dep'>"+departments +"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='Department'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Faculties'></div></td></tr></form></table>"); } ////*****/////CHOSE Faculty******///// if(name.equals("Faculties")||name.equals("BACK")) { //System.out.println(dep); Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments where depname='"+dep+"'"); while(rs.next()) { depid=rs.getString(1); } String facl=""; int id1=Integer.parseInt(depid); ResultSet rs1=st.executeQuery("SELECT fname,fid FROM Depdetail where id="+id1); while(rs1.next()) { String s=rs1.getString(1); String s1=rs1.getString(2); facl=facl+"<option value="+s1+" >"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp?name=n'><tr><td><div align='center' class='style1'>Faculty Modification </div></td></tr><tr><td><div align='center' class='style2'>Faculties of "+dep+": <select name='fid'>"+facl+"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='MODIFY'>&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='NEW'>&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); }
37 | P a g e

//FACULTY "MODIFY"// if(name.equals("MODIFY")) { Statement st1=c.createStatement(); int id1=Integer.parseInt(fid); ResultSet rs1=st1.executeQuery("SELECT *from Depdetail where fid="+id1); while(rs1.next()) { fname=rs1.getString(2); fadd=rs1.getString(3); fph=rs1.getString(4); fmail=rs1.getString(5); fsex=rs1.getString(6); } out.println("<table bgcolor='' WIDTH='500' bordercolor='' border='1'><td><form name='form1' method='' action='Admin4.jsp'><p><div align='CENTER'>Faculty :&nbsp;&nbsp;&nbsp; <input type='text' name='fname' value='"+fname+"'></div></p><p><div align='center'><p><div align='CENTER'>Address :&nbsp;&nbsp;&nbsp; <input type='text' name='fadd' value='"+fadd+"'></div></p><p><div align='CENTER'>Contect no. :&nbsp;&nbsp;&nbsp; <input type='text' name='fph' value='"+fph+"'></div></p><p><div align='CENTER'>Mail ID :&nbsp;&nbsp;&nbsp; <input type='text' name='fmail' value='"+fmail+"'></div></p><p><div align='CENTER'>Gender :&nbsp;&nbsp;&nbsp; <select name='fsex'><option value="+fsex+" selected>"+fsex+"</option><option>Male</option><option>Fimale</option></select></div></p> <input type='submit' name='name' value= 'CONFORM' onclick='return validationTxt()'>&nbsp;&nbsp;<input type='submit' name='name' value= 'BACK'>&nbsp;&nbsp;<input type='submit' name='name' value= 'DELETE'>&nbsp;&nbsp;<input type='submit' name='name' value= 'Home'></div></form></td></table>"); } //**//CONFORM if(name.equals("CONFORM")) { int id1=Integer.parseInt(fid); PreparedStatement ps=c.prepareStatement("update Depdetail set fname=?,fadd=?,fph=?,fmail=?,fsex=? where fid=?"); ps.setString(1,fname); ps.setString(2,fadd); ps.setString(3,fph); ps.setString(4,fmail); ps.setString(5,fsex);
38 | P a g e

ps.setInt(6,id1); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>Faculty Details Modified=> "+fname+" "+fadd+" "+fph+" "+fmail+" "+fsex+"</td></table>"); } //***FACULTY DELETE****//// if(name.equals("DELETE")) { int id1=Integer.parseInt(fid); PreparedStatement ps=c.prepareStatement("delete *from Depdetail where fid=?"); ps.setInt(1,id1); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>FACUTLY DELETED</td></table>"); } ///*******NEW FACULTY ADD*****// if(name.equals("NEW")) { out.println("<table bgcolor='' bordercolor='' border='1'><td><form name='form1' method='' action='Admin4.jsp'><p><div align='right'>Faculty :&nbsp;&nbsp;&nbsp; <input type='text' name='fname' ></div></p><p><div align='center'><p><div align='right'>Address :&nbsp;&nbsp;&nbsp; <input type='text' name='fadd'></div></p><p><div align='right'>Contect no. :&nbsp;&nbsp;&nbsp; <input type='text' name='fph' ></div></p><p><div align='right'>Mail ID :&nbsp;&nbsp;&nbsp; <input type='text' name='fmail' ></div></p><p><div align='right'>Gender :&nbsp;&nbsp;&nbsp; <select name='fsex'><option>Male</option><option>Fimale</option></select></div></p><input type='submit' name='name' value= 'ADD' onclick='return validationTxt()'>&nbsp;&nbsp;<input type='submit' name='name' value= 'BACK'>&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></form></td></table>"); } if(name.equals("ADD")) { int id1=Integer.parseInt(depid); Statement st1=c.createStatement(); int fid1=0; ResultSet rs1=st1.executeQuery("SELECT fid from Depdetail"); while(rs1.next()) {
39 | P a g e

fid1=rs1.getInt(1); } fid1=fid1+1; PreparedStatement ps=c.prepareStatement("INSERT into Depdetail Values(?,?,?,?,?,?,?)"); ps.setInt(1,id1); ps.setString(2,fname); ps.setString(3,fadd); ps.setString(4,fph); ps.setString(5,fmail); ps.setString(6,fsex); ps.setInt(7,fid1); int ii=ps.executeUpdate(); if(ii==1) out.println("<table bordercolor='' border='1'><td>NEW FACULTY ADDED IN "+dep+"</td></table>"); } /////***** Depatments ****///// if(name.equals("Department")) { String departments=""; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT depname FROM Departments"); while(rs1.next()) { String s=rs1.getString(1); departments=departments+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'>Departments Modification </div></td></tr><tr><td><div align='center' class='style2'>Departments: <select name='dep'>"+departments +"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='REMOVE'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='ADD NEW' >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); } if(name.equals("REMOVE")) { int id=0;
40 | P a g e

Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments where depname='"+dep+"'"); while(rs.next()) { id=Integer.parseInt(rs.getString(1)); } PreparedStatement ps=c.prepareStatement("delete *from Depdetail where id=?"); ps.setInt(1,id); int a=ps.executeUpdate(); PreparedStatement ps1=c.prepareStatement("delete *from Departments where id=?"); ps1.setInt(1,id); int a1=ps1.executeUpdate(); //if(a==1&&a1==1) out.println("<table BGCOLOR='' bordercolor='' border='1'><td>DEPARTMENT REMOVED</td></table>"); } if(name.equals("ADD NEW")) { out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form2' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'> New Department </div></td></tr><tr><td><div align='center' class='style2'>Department: <input type='text' name='dep'></div></td></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Add' onclick='return validationTxt1()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); } if(name.equals("Add")) { String Id="0"; Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments"); while(rs.next()) { Id=rs.getString(1); } int i=Integer.parseInt(Id); i=i+1; PreparedStatement ps=c.prepareStatement("INSERT into Departments Values(?,?)"); ps.setInt(1,i); ps.setString(2,dep);
41 | P a g e

int a=ps.executeUpdate(); if(a==1) out.println("<table BGCOLOR='' bordercolor='' border='1'><td>DEPARTMENT ADDED</td></table>"); } } catch(Exception e){ System.out.println(e);e.printStackTrace();} return "vv"; } } package vik; import java.sql.*; import cont.Connec; public class Admin4 { Connection c=Connec.getConnection(); String name="name"; static String fid="fid"; static String dep="dep"; String fname="fname"; String fadd="fadd"; String fph="fph"; String fmail="fmail"; String fsex="fsex"; static String depid="depid"; javax.servlet.jsp.JspWriter out; public void setFid(String fid) { if(!fid.equals(null)) this.fid=fid; } public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setDep(String dep) { if(!dep.equals(null))
42 | P a g e

this.dep=dep; } public void setFname(String fname) { if(!fname.equals(null)) this.fname=fname; } public void setFadd(String fadd) { if(!fadd.equals(null)) this.fadd=fadd; } public void setFph(String fph) { if(!fph.equals(null)) this.fph=fph; } public void setFmail(String fmail) { if(!fmail.equals(null)) this.fmail=fmail; } public void setFsex(String fsex) { if(!fsex.equals(null)) this.fsex=fsex; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ ////****///INITIAL if(name.equals("name")||name.equals("Home")) { String departments=""; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT depname FROM Departments");
43 | P a g e

while(rs1.next()) { String s=rs1.getString(1); departments=departments+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'>Faculties and Departments Modification </div></td></tr><tr><td><div align='center' class='style2'>Departments: <select name='dep'>"+departments +"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='Department'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Faculties'></div></td></tr></form></table>"); } ////*****/////CHOSE Faculty******///// if(name.equals("Faculties")||name.equals("BACK")) { //System.out.println(dep); Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments where depname='"+dep+"'"); while(rs.next()) { depid=rs.getString(1); } String facl=""; int id1=Integer.parseInt(depid); ResultSet rs1=st.executeQuery("SELECT fname,fid FROM Depdetail where id="+id1); while(rs1.next()) { String s=rs1.getString(1); String s1=rs1.getString(2); facl=facl+"<option value="+s1+" >"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp?name=n'><tr><td><div align='center' class='style1'>Faculty Modification </div></td></tr><tr><td><div align='center' class='style2'>Faculties of "+dep+": <select name='fid'>"+facl+"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='MODIFY'>&nbsp;&nbsp;&nbsp;<input type='submit' name='name'

44 | P a g e

value='NEW'>&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); } //FACULTY "MODIFY"// if(name.equals("MODIFY")) { Statement st1=c.createStatement(); int id1=Integer.parseInt(fid); ResultSet rs1=st1.executeQuery("SELECT *from Depdetail where fid="+id1); while(rs1.next()) { fname=rs1.getString(2); fadd=rs1.getString(3); fph=rs1.getString(4); fmail=rs1.getString(5); fsex=rs1.getString(6); } out.println("<table bgcolor='' WIDTH='500' bordercolor='' border='1'><td><form name='form1' method='' action='Admin4.jsp'><p><div align='CENTER'>Faculty :&nbsp;&nbsp;&nbsp; <input type='text' name='fname' value='"+fname+"'></div></p><p><div align='center'><p><div align='CENTER'>Address :&nbsp;&nbsp;&nbsp; <input type='text' name='fadd' value='"+fadd+"'></div></p><p><div align='CENTER'>Contect no. :&nbsp;&nbsp;&nbsp; <input type='text' name='fph' value='"+fph+"'></div></p><p><div align='CENTER'>Mail ID :&nbsp;&nbsp;&nbsp; <input type='text' name='fmail' value='"+fmail+"'></div></p><p><div align='CENTER'>Gender :&nbsp;&nbsp;&nbsp; <select name='fsex'><option value="+fsex+" selected>"+fsex+"</option><option>Male</option><option>Fimale</option></select></div></p> <input type='submit' name='name' value= 'CONFORM' onclick='return validationTxt()'>&nbsp;&nbsp;<input type='submit' name='name' value= 'BACK'>&nbsp;&nbsp;<input type='submit' name='name' value= 'DELETE'>&nbsp;&nbsp;<input type='submit' name='name' value= 'Home'></div></form></td></table>"); } //**//CONFORM if(name.equals("CONFORM")) { int id1=Integer.parseInt(fid); PreparedStatement ps=c.prepareStatement("update Depdetail set fname=?,fadd=?,fph=?,fmail=?,fsex=? where fid=?"); ps.setString(1,fname);
45 | P a g e

ps.setString(2,fadd); ps.setString(3,fph); ps.setString(4,fmail); ps.setString(5,fsex); ps.setInt(6,id1); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>Faculty Details Modified=> "+fname+" "+fadd+" "+fph+" "+fmail+" "+fsex+"</td></table>"); } //***FACULTY DELETE****//// if(name.equals("DELETE")) { int id1=Integer.parseInt(fid); PreparedStatement ps=c.prepareStatement("delete *from Depdetail where fid=?"); ps.setInt(1,id1); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>FACUTLY DELETED</td></table>"); } ///*******NEW FACULTY ADD*****// if(name.equals("NEW")) { out.println("<table bgcolor='' bordercolor='' border='1'><td><form name='form1' method='' action='Admin4.jsp'><p><div align='right'>Faculty :&nbsp;&nbsp;&nbsp; <input type='text' name='fname' ></div></p><p><div align='center'><p><div align='right'>Address :&nbsp;&nbsp;&nbsp; <input type='text' name='fadd'></div></p><p><div align='right'>Contect no. :&nbsp;&nbsp;&nbsp; <input type='text' name='fph' ></div></p><p><div align='right'>Mail ID :&nbsp;&nbsp;&nbsp; <input type='text' name='fmail' ></div></p><p><div align='right'>Gender :&nbsp;&nbsp;&nbsp; <select name='fsex'><option>Male</option><option>Fimale</option></select></div></p><input type='submit' name='name' value= 'ADD' onclick='return validationTxt()'>&nbsp;&nbsp;<input type='submit' name='name' value= 'BACK'>&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></form></td></table>"); } if(name.equals("ADD")) { int id1=Integer.parseInt(depid); Statement st1=c.createStatement();
46 | P a g e

int fid1=0; ResultSet rs1=st1.executeQuery("SELECT fid from Depdetail"); while(rs1.next()) { fid1=rs1.getInt(1); } fid1=fid1+1; PreparedStatement ps=c.prepareStatement("INSERT into Depdetail Values(?,?,?,?,?,?,?)"); ps.setInt(1,id1); ps.setString(2,fname); ps.setString(3,fadd); ps.setString(4,fph); ps.setString(5,fmail); ps.setString(6,fsex); ps.setInt(7,fid1); int ii=ps.executeUpdate(); if(ii==1) out.println("<table bordercolor='' border='1'><td>NEW FACULTY ADDED IN "+dep+"</td></table>"); } /////***** Depatments ****///// if(name.equals("Department")) { String departments=""; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT depname FROM Departments"); while(rs1.next()) { String s=rs1.getString(1); departments=departments+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'>Departments Modification </div></td></tr><tr><td><div align='center' class='style2'>Departments: <select name='dep'>"+departments +"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='REMOVE'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='ADD NEW' >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); }
47 | P a g e

if(name.equals("REMOVE")) { int id=0; Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments where depname='"+dep+"'"); while(rs.next()) { id=Integer.parseInt(rs.getString(1)); } PreparedStatement ps=c.prepareStatement("delete *from Depdetail where id=?"); ps.setInt(1,id); int a=ps.executeUpdate(); PreparedStatement ps1=c.prepareStatement("delete *from Departments where id=?"); ps1.setInt(1,id); int a1=ps1.executeUpdate(); //if(a==1&&a1==1) out.println("<table BGCOLOR='' bordercolor='' border='1'><td>DEPARTMENT REMOVED</td></table>"); } } if(name.equals("ADD NEW")) { out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form2' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'> New Department </div></td></tr><tr><td><div align='center' class='style2'>Department: <input type='text' name='dep'></div></td></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Add' onclick='return validationTxt1()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); } if(name.equals("Add")) { String Id="0"; Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments"); while(rs.next()) { Id=rs.getString(1); } int i=Integer.parseInt(Id);
48 | P a g e

i=i+1; PreparedStatement ps=c.prepareStatement("INSERT into Departments Values(?,?)"); ps.setInt(1,i); ps.setString(2,dep); int a=ps.executeUpdate(); if(a==1) out.println("<table BGCOLOR='' bordercolor='' border='1'><td>DEPARTMENT ADDED</td></table>"); } }catch(Exception e){ System.out.println(e);e.printStackTrace();} return "vv"; } }package vik; import java.sql.*; import cont.Connec; public class Admin4 { Connection c=Connec.getConnection(); String name="name"; static String fid="fid"; static String dep="dep"; String fname="fname"; string fadd="fadd"; String fph="fph"; String fmail="fmail"; String fsex="fsex"; static String depid="depid"; javax.servlet.jsp.JspWriter out; public void setFid(String fid) { if(!fid.equals(null)) this.fid=fid; } public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setDep(String dep)
49 | P a g e

{ if(!dep.equals(null)) this.dep=dep; } public void setFname(String fname) { if(!fname.equals(null)) this.fname=fname; } public void setFadd(String fadd) { if(!fadd.equals(null)) this.fadd=fadd; } public void setFph(String fph) { if(!fph.equals(null)) this.fph=fph; } public void setFmail(String fmail) { if(!fmail.equals(null)) this.fmail=fmail; } public void setFsex(String fsex) { if(!fsex.equals(null)) this.fsex=fsex; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ ////****///INITIAL if(name.equals("name")||name.equals("Home"))
50 | P a g e

{ String departments=""; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT depname FROM Departments"); while(rs1.next()) { String s=rs1.getString(1); departments=departments+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'>Faculties and Departments Modification </div></td></tr><tr><td><div align='center' class='style2'>Departments: <select name='dep'>"+departments +"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='Department'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Faculties'></div></td></tr></form></table>"); } ////*****/////CHOSE Faculty******///// if(name.equals("Faculties")||name.equals("BACK")) { //System.out.println(dep); Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments where depname='"+dep+"'"); while(rs.next()) { depid=rs.getString(1); } String facl=""; int id1=Integer.parseInt(depid); ResultSet rs1=st.executeQuery("SELECT fname,fid FROM Depdetail where id="+id1); while(rs1.next()) { String s=rs1.getString(1); String s1=rs1.getString(2); facl=facl+"<option value="+s1+" >"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp?name=n'><tr><td><div align='center' class='style1'>Faculty Modification </div></td></tr><tr><td><div align='center' class='style2'>Faculties of "+dep+": <select
51 | P a g e

name='fid'>"+facl+"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='MODIFY'>&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='NEW'>&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); } //FACULTY "MODIFY"// if(name.equals("MODIFY")) { Statement st1=c.createStatement(); int id1=Integer.parseInt(fid); ResultSet rs1=st1.executeQuery("SELECT *from Depdetail where fid="+id1); while(rs1.next()) { fname=rs1.getString(2); fadd=rs1.getString(3); fph=rs1.getString(4); fmail=rs1.getString(5); fsex=rs1.getString(6); } out.println("<table bgcolor='' WIDTH='500' bordercolor='' border='1'><td><form name='form1' method='' action='Admin4.jsp'><p><div align='CENTER'>Faculty :&nbsp;&nbsp;&nbsp; <input type='text' name='fname' value='"+fname+"'></div></p><p><div align='center'><p><div align='CENTER'>Address :&nbsp;&nbsp;&nbsp; <input type='text' name='fadd' value='"+fadd+"'></div></p><p><div align='CENTER'>Contect no. :&nbsp;&nbsp;&nbsp; <input type='text' name='fph' value='"+fph+"'></div></p><p><div align='CENTER'>Mail ID :&nbsp;&nbsp;&nbsp; <input type='text' name='fmail' value='"+fmail+"'></div></p><p><div align='CENTER'>Gender :&nbsp;&nbsp;&nbsp; <select name='fsex'><option value="+fsex+" selected>"+fsex+"</option><option>Male</option><option>Fimale</option></select></div></p> <input type='submit' name='name' value= 'CONFORM' onclick='return validationTxt()'>&nbsp;&nbsp;<input type='submit' name='name' value= 'BACK'>&nbsp;&nbsp;<input type='submit' name='name' value= 'DELETE'>&nbsp;&nbsp;<input type='submit' name='name' value= 'Home'></div></form></td></table>"); } //**//CONFORM if(name.equals("CONFORM")) { int id1=Integer.parseInt(fid); PreparedStatement ps=c.prepareStatement("update Depdetail set fname=?,fadd=?,fph=?,fmail=?,fsex=? where fid=?");
52 | P a g e

ps.setString(1,fname); ps.setString(2,fadd); ps.setString(3,fph); ps.setString(4,fmail); ps.setString(5,fsex); ps.setInt(6,id1); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>Faculty Details Modified=> "+fname+" "+fadd+" "+fph+" "+fmail+" "+fsex+"</td></table>"); } //***FACULTY DELETE****//// if(name.equals("DELETE")) { int id1=Integer.parseInt(fid); PreparedStatement ps=c.prepareStatement("delete *from Depdetail where fid=?"); ps.setInt(1,id1); int a=ps.executeUpdate(); if(a==1) out.println("<table bgcolor='' bordercolor='' border='1'><td>FACUTLY DELETED</td></table>"); } ///*******NEW FACULTY ADD*****// if(name.equals("NEW")) { out.println("<table bgcolor='' bordercolor='' border='1'><td><form name='form1' method='' action='Admin4.jsp'><p><div align='right'>Faculty :&nbsp;&nbsp;&nbsp; <input type='text' name='fname' ></div></p><p><div align='center'><p><div align='right'>Address :&nbsp;&nbsp;&nbsp; <input type='text' name='fadd'></div></p><p><div align='right'>Contect no. :&nbsp;&nbsp;&nbsp; <input type='text' name='fph' ></div></p><p><div align='right'>Mail ID :&nbsp;&nbsp;&nbsp; <input type='text' name='fmail' ></div></p><p><div align='right'>Gender :&nbsp;&nbsp;&nbsp; <select name='fsex'><option>Male</option><option>Fimale</option></select></div></p><input type='submit' name='name' value= 'ADD' onclick='return validationTxt()'>&nbsp;&nbsp;<input type='submit' name='name' value= 'BACK'>&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></form></td></table>"); } if(name.equals("ADD")) { int id1=Integer.parseInt(depid);
53 | P a g e

Statement st1=c.createStatement(); int fid1=0; ResultSet rs1=st1.executeQuery("SELECT fid from Depdetail"); while(rs1.next()) { fid1=rs1.getInt(1); } fid1=fid1+1; PreparedStatement ps=c.prepareStatement("INSERT into Depdetail Values(?,?,?,?,?,?,?)"); ps.setInt(1,id1); ps.setString(2,fname); ps.setString(3,fadd); ps.setString(4,fph); ps.setString(5,fmail); ps.setString(6,fsex); ps.setInt(7,fid1); int ii=ps.executeUpdate(); if(ii==1) out.println("<table bordercolor='' border='1'><td>NEW FACULTY ADDED IN "+dep+"</td></table>"); } /////***** Depatments ****///// if(name.equals("Department")) { String departments=""; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("SELECT depname FROM Departments"); while(rs1.next()) { String s=rs1.getString(1); departments=departments+"<option value="+s+">"+s+"</option>"; } out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form1' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'>Departments Modification </div></td></tr><tr><td><div align='center' class='style2'>Departments: <select name='dep'>"+departments +"</select></div></td></tr><tr><td><div align='center'><input type='submit' name='name' value='REMOVE'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='ADD NEW' >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>");
54 | P a g e

} if(name.equals("REMOVE")) { int id=0; Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments where depname='"+dep+"'"); while(rs.next()) { id=Integer.parseInt(rs.getString(1)); } PreparedStatement ps=c.prepareStatement("delete *from Depdetail where id=?"); ps.setInt(1,id); int a=ps.executeUpdate(); PreparedStatement ps1=c.prepareStatement("delete *from Departments where id=?"); ps1.setInt(1,id); int a1=ps1.executeUpdate(); //if(a==1&&a1==1) out.println("<table BGCOLOR='' bordercolor='' border='1'><td>DEPARTMENT REMOVED</td></table>"); } if(name.equals("ADD NEW")) { out.println("<table width='341' height='119' bordercolor='' border='1' bgcolor=''><form name='form2' method='' action='Admin4.jsp'><tr><td><div align='center' class='style1'> New Department </div></td></tr><tr><td><div align='center' class='style2'>Department: <input type='text' name='dep'></div></td></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Add' onclick='return validationTxt1()'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' name='name' value='Home'></div></td></tr></form></table>"); } if(name.equals("Add")) { String Id="0"; Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT id FROM Departments"); while(rs.next()) { Id=rs.getString(1); } int i=Integer.parseInt(Id);
55 | P a g e

i=i+1; PreparedStatement ps=c.prepareStatement("INSERT into Departments Values(?,?)"); ps.setInt(1,i); ps.setString(2,dep); int a=ps.executeUpdate(); if(a==1) out.println("<table BGCOLOR='' bordercolor='' border='1'><td>DEPARTMENT ADDED</td></table>"); } }catch(Exception e){ System.out.println(e);e.printStackTrace(); package vik; import java.sql.*; import java.util.*; import cont.Connec; public class Admin5 { Connection c=Connec.getConnection(); static String course="course"; static String session="session"; static String year="year"; String name="name"; String roll="roll"; String student="student"; String result="result"; String division="division"; static int i1=0; javax.servlet.jsp.JspWriter out; public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setCourse(String course) { if(!course.equals(null)) this.course=course; } public void setSession(String session) {
56 | P a g e

if(!session.equals(null)) this.session=session; } public void setYear(String year) { if(!year.equals(null)) this.year=year; } public void setRoll(String roll) { if(!roll.equals(null)) this.roll=roll; } public void setStudent(String student) { if(!student.equals(null)) this.student=student; } public void setResult(String result) { if(!result.equals(null)) this.result=result; } public void setDivision(String division) { if(!division.equals(null)) this.division=division; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ String td="<table cellspacing='2' bgcolor='' border='1' bordercolor=''><tr><th><div align='right'>RESULT UPLOADING FOR "+course+ " Session "+session +" Year "+year+"</div></th></tr><p><div align='center'>RESULT UPLOADING......</div></p></table>"; if(!name.equals("name"))
57 | P a g e

out.println(td); }catch(Exception e){ System.out.println(e);} return "vv"; } public String student() { try{ int a=0; if(name.equals("name")) { Statement st=c.createStatement(); ResultSet rs=st.executeQuery("SELECT *FROM Courses"); String td="<TABLE cellspacing='2' bgcolor='' border='1' bordercolor=''><form name=form1 action='Admin5.jsp?name=NEXT' method='post'><tr><td><div align='center'>Courses available in University :<select name='course'>"; while(rs.next()) { td=td+"<option>"+rs.getString(1)+"</option>"; } td=td+"</select></div></tr><tr><td><div align='center'>Session: <select name='session'><option>2004</option><option>2005</option><option>2006</option><option>2 007</option><option>2008</option><option>2009</option></select>Year: <select name='year'><option>I</option><option>II</option><option>III</option><option>IV</option>< option>V</option></select></div></td></tr><tr><td><div align='center'><input style='FONTWEIGHT: bold' type='submit' value= 'NEXT' ></div></td></tr></form></TABLE>"; out.println(td); } if(name.equals("NEXT")||name.equals("UPLOAD")) { out.println("<TABLE width='450' cellspacing='2' bgcolor='' border='1' bordercolor='' ><TH BGCOLOR=''>PREVIOUS "+roll+" "+student+" "+result+" "+division+" </TH></TABLE>"); String td="<TABLE width='450' cellspacing='2' bgcolor='' border='1' bordercolor='' ><form name=form1 action='Admin5.jsp?name=UPLOAD' method='post'><tr><td><p><div align='center'>NEW RESULT UPLOAD</div></p>"; td=td+"</td></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;ROLL NUMBER:<input type='text' name='roll'></div></td></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;STUDENT NAME:<input type='text' name='student'></div></td></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;STUDENT
58 | P a g e

RESULT:<select name='result'><option>PASS</option><option>FAIL</option></select></div></td></tr><tr><td ><div align='center'>&nbsp;&nbsp;&nbsp;STUDENT DIVISION:<select name='division'><option>I</option><option>II</option><option>III</option></select></div></td ></tr><tr><td><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;<input style='FONT-WEIGHT: bold' type='submit' value= 'UPLOAD' onclick='return validationTxt()'>&nbsp;&nbsp;&nbsp;<INPUT style='FONT-WEIGHT: bold' type=reset value=Reset></td></tr></div></td></tr></form></TABLE>"; out.println(td); Statement st=c.createStatement(); ResultSet rs=st.executeQuery("select Roll from Validroll"); while(rs.next()) { if(roll.equals(rs.getString(1))) { a=1; } } if(a==1) { out.println("ROLL NUMBER ALLREADY EXIST TRY ANOTHER ROLL NUMBER"); } if(!roll.equals("roll")) { if(a==0) { String s[]={roll,student,result,year,division,course,session}; PreparedStatement ps=c.prepareStatement("insert into Validroll Values(?,?,?,?,?,?,?)"); for(int j=1;j<8;j++) { ps.setString(j,s[j-1]); } int aa=ps.executeUpdate(); if(aa==1) out.println("UPLOADED SUCCESSFULL"); } } } }catch(Exception e){System.out.println(e);e.printStackTrace();} return "aa";
59 | P a g e

} } //static ArrayList list=new ArrayList(); /*Object a[]=list.toArray(); String s[]=new String[a.length]; int b=0; for(int i=0;i<a.length;i++) { s[i]=(String)a[i]; int a1=(i+1)%5; if(a1==1) { b=b+1; //System.out.println("list="+b+course); } } list.clear(); PreparedStatement ps=c.prepareStatement("insert into Validroll Values(?,?,?,?,?,?,?)"); for(int i=0;i<b;i++) { int ii=0; int aa[]=new int[b]; for(int j=i*5;j<i*5+5;j++) { ii++; ps.setString(ii,s[j]); if(ii==5) { ps.setString(6,course); ps.setString(7,session); aa[i]=ps.executeUpdate(); if(aa[b-1]==1) out.println("<table border='1'><th bgcolor='' border='1'>UPLOADED SUCCESSFULL</th></table>"); //System.out.println(aa+course); } //System.out.println(i+" "+ii+" "+j+" "+s[j]); } if(!roll.equals("roll"))
60 | P a g e

{ list.add(roll); list.add(student); list.add(result); list.add(year); list.add(division); //list.add(college); }*/ package vik; import java.sql.*; import cont.Connec; public class Admin6 { Connection c=Connec.getConnection(); String name="name"; String name1="name1"; javax.servlet.jsp.JspWriter out; public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setName1(String name1) { if(!name1.equals(null)) this.name1=name1; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ Statement st=c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABL E); int data=0; int i=0;
61 | P a g e

int j=0; int k=1; String s1=""; ResultSet rs=st.executeQuery("SELECT stid FROM applications where college='UNIVERSITY'"); while(rs.next()) { ///System.out.println(rs.getString(1)); i++; int a=i%5; if(a==1) { j++; s1=s1+"&nbsp;&nbsp;<a href=Admin6.jsp?name="+j+">"+j+"</a>"; } } data=i; //System.out.println("name= "+name+" name1= "+name1); ResultSet rs1=st.executeQuery("SELECT * FROM applications where college='UNIVERSITY'"); String s="<table><tr><th bgcolor=''>REJECT</th><th bgcolor=''>STUDENT</th><th bgcolor=''>FATHER'S NAME</th><th bgcolor=''>DOB</th><th bgcolor=''>SEX</th><th bgcolor=''>ADDRESS</th><th bgcolor=''>CITY</th><th bgcolor=''>STATE</th><th bgcolor=''>POSTAL CODE</th><th bgcolor=''>CONTECT</th><th bgcolor=''>% IN 10TH</th><th bgcolor=''>%IN 12TH</th><th bgcolor=''>APPLIED FOR</th></tr>"; if(!name.equals("name")) { k=Integer.parseInt(name); } //System.out.println("@@@= "+data); if(rs1.next()==true) { for(int i1=k*5-4;i1<=(k*5-4)+4;i1++) { if(i1>data) break; rs1.absolute(i1); int id=rs1.getInt(15);

62 | P a g e

///s=s+"<tr><td bgcolor=''><a href=Faculties.jsp? name1="+id+">"+rs1.getString(2)+"</a><td></tr>"; for(i=2;i<=13;i++) { if(i==2) s=s+"<tr><td bgcolor=''><a href=Admin6.jsp?name1="+id+">Reject Form</a></td>"; String s2=rs1.getString(i); s=s+"<td bgcolor=''>"+s2+"</td>"; if(i==14) s=s+"</tr>"; } } s=s+"</table>"; out.println(s); out.println(s1); } if(i==0) { out.println("NO FORM IS SUBMITED FOR UNIVERSITY"); } if(!name1.equals("name1")) { int id=Integer.parseInt(name1); PreparedStatement ps=c.prepareStatement("delete * from applications where stid=?"); ps.setInt(1,id); int a=ps.executeUpdate(); if(a==1) out.println("FORM REJECTED"); } }catch(Exception e){ System.out.println(e);e.printStackTrace();} return "vv"; } } package vik; import java.sql.*; import cont.Connec; public class Admin7 { Connection c=Connec.getConnection();
63 | P a g e

javax.servlet.jsp.JspWriter out; String name="name"; String pold="pold"; String pwold="pwold"; String pnew="pnew"; String pwnew="pwnew"; public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setPold(String pold) { if(!pold.equals(null)) this.pold=pold; } public void setPwold(String pwold) { if(!pwold.equals(null)) this.pwold=pwold; } public void setPnew(String pnew) { if(!pnew.equals(null)) this.pnew=pnew; } public void setPwnew(String pwnew) { if(!pwnew.equals(null)) this.pwnew=pwnew; } public String form() { try{ if(name.equals("name")) {
64 | P a g e

String td="<TABLE border='1'><form name=form1 action='Admin7.jsp?name=CHANGE' method='post'><tr><td BGCOLOR=''><p><div align='center'>CHANGE PASSWORD</div></p>"; td=td+"<p><div align='right'>&nbsp;&nbsp;&nbsp;NAME:<input type='text' name='pold'></div></p><p><p><div align='right'>&nbsp;&nbsp;&nbsp;OLD PASSWORD:<input type='password' name='pwold'></div></p><p><div align='right'>&nbsp;&nbsp;&nbsp;NEW PASSWORD:<input type='password' name='pnew'></div></p><p><div align='right'>&nbsp;&nbsp;&nbsp;REPEAT PASSWORD:<input type='password' name='pwnew'></div></p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style='FONT-WEIGHT: bold' type='submit' value= 'CHANGE' >&nbsp;&nbsp;&nbsp;<INPUT style='FONT-WEIGHT: bold' type=reset value=Reset ></p></div></td></tr></form></TABLE>"; out.println(td); } if(name.equals("CHANGE")) { int c1=0; int id1=0; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("select * from Login where Login.id="+id1); if(pnew.equals(pwnew)) { while(rs1.next()) { String s1=rs1.getString(2); String s2=rs1.getString(3); if(pold.equals(s1)&&pwold.equals(s2)) { c1=1; PreparedStatement ps=c.prepareStatement("update Login set Login.password=? where Login.id=?"); ps.setString(1,pwnew); ps.setInt(2,id1); int a=ps.executeUpdate(); if(a==1) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>CHANGED= "+pold+" "+pwold+" "+pold+" "+pwnew+"</td></tr><tr><td bgcolor=''><div align='center'><a href='Login2.jsp'>NOW TRY THIS LOGIN AGAIN</a></div></td></tr></table>"); }
65 | P a g e

if(a==0) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>PASSWORD IS MISSMATCH</td></tr></table>"); } } } if(c1==0) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>NAME OR PASSWORD IS MISSMATCH</td></tr></table>"); } } else { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>NEW PASSWORD AND CONFORM PASSWORD MISSMATCH</td></tr></table>"); } } }catch(Exception e){e.printStackTrace(); System.out.println(e);} return "vv"; } } package vik; import java.sql.*; import cont.Connec; public class Admin11 { Connection c=Connec.getConnection(); static String name1="name1"; static String course=""; String name=""; static int i1=0; javax.servlet.jsp.JspWriter out; public void setName1(String name1) { if(!name.equals(null)) this.name1=name1; }
66 | P a g e

public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String details() { try{ Statement st=c.createStatement(); String td="<table width='100%' height='100%'><div align='center'><br><tr><th bgcolor=''>RESULT OUT</th><th bgcolor=''>STUDENTS<th></tr>"; course=name1;td=td+"<tr><td bgcolor=''>"+course+"</td>"+"<td bgcolor=''><a href=Admin11.jsp?name=1>STUDENTS</a></td>"; td=td+"<div></table>"; out.println(td); }catch(Exception e){ System.out.println(e);} return "vv"; } public String result() { try{ //System.out.println(course+"dddddd"+name); if(!name.equals("")) { Statement st=c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABL E); int i=0; int j=0; int k=1; int data=0; String s1=""; ResultSet rs=st.executeQuery("select Stream from Validroll where Stream='"+course+"'"); while(rs.next()) {
67 | P a g e

i++; int a=i%5; if(a==1) { j++; s1=s1+"&nbsp;&nbsp;<a href=Admin11.jsp?name="+j+">"+j+"</a>"; } } data=i; if(!name.equals("name")) { k=Integer.parseInt(name); } ResultSet rs1=st.executeQuery("select * from Validroll where Stream='"+course+"'"); String s="<table border='0' background='' cellspacing='1'><tr><th colspan='8' bgcolor=''>Students Details</th></tr><tr><th bgcolor=''>Roll Number</th><th bgcolor=''>Name</th><th bgcolor=''>Result</th><th bgcolor=''>Year</th><th bgcolor=''>Division</th><th bgcolor=''>Course</th><th bgcolor=''>Session</th></tr>"; try{ for(int i1=k*5-4;i1<=(k*5-4)+4;i1++) { if(i1>data) break; rs1.absolute(i1); s=s+"<tr>"; for(int ii=1;ii<8;ii++) s=s+"<td bgcolor=''><div align='center'>"+rs1.getString(ii)+"</div></td>"; s=s+"</tr>"; } s=s+"</table>"; out.println(s); out.println(s1); }catch(Exception e1){out.println(e1);} } }catch(Exception e){System.out.println(e);} return "aa"; } } package vik; import java.sql.*;
68 | P a g e

import cont.Connec; public class Admininfo { Connection c=Connec.getConnection(); static String name="",pass=""; String name1=""; javax.servlet.jsp.JspWriter out; int i=0; public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setName1(String name1) { if(!name1.equals(null)) this.name1=name1; } public void setPass(String pass) { if(!pass.equals(null)) this.pass=pass; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String Info() { try{ Statement st=c.createStatement(); ResultSet rs=st.executeQuery("select *from Login where Login.id=0"); while(rs.next()) { String s1=rs.getString(2); String s2=rs.getString(3); if(name.equals(s1)&&pass.equals(s2)) { i=1; name=s1;
69 | P a g e

pass=s2; } } if(i==0) out.println("<table cellspacing='1' bgcolor='' border='2' bordercolor=''><tr><td >USER NAME OR PASSWORD IS NOT VALID LOGIN AGAIN</td></tr><tr><td><div align='center'><a href='Login2.jsp'>TRY AGAIN</a></div></td></tr></table>"); //System.out.println(name+name1) if(i==1) { String tb="<table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'><tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' ><table width='100%' height='350' border='0' cellspacing='1' bgcolor=''><tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr><tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table></td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr><tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'></div></td></tr></table>"; out.println(tb); } }catch(Exception e){ System.out.println(e);} return "vv"; } }

70 | P a g e

/*//////////////////////////////////////////////////////////////////table////////////////////////////////////////////////////// <table width="100%" height="275" border="1"> <tr> <td width="27%" height="287" rowspan="2" bgcolor="#00FFCC"><table width="100%" height="278" border="0" cellspacing="0"> <tr> <td height="23" bgcolor="#990000"><div align="center" class="style1 style2">ADMIN AUTHORITY</div></td> </tr> <tr> <td height="40%" bgcolor="#0000FF"><div align="center" class="style1"><a href="Admin.jsp?name=1">RESULT VIEW</a></div></td> </tr> <tr> <td height="40%" bgcolor="#0000FF"><div align="center"><a href="Admin.jsp? name=2">ADD NEW COURSE </a></div></td> </tr> <tr> <td height="40%" bgcolor="#0000FF"><div align="center"><a href="Admin.jsp? name=3">ADD NEW COLLEGE </a></div></td> </tr> <tr> <td height="40%" bgcolor="#0000FF"><div align="center"><a href="Admin.jsp? name=4">NEW RESULT UPLOAD</a></div></td> </tr> <tr> <td height="40%" bgcolor="#0000FF"><div align="center"><a href="Admin.jsp? name=5">SEE INFORMATION</a></div></td> </tr> </table></td> <td width="73%" bgcolor="#00FFCC"><div align="center">BE</div></td> </tr> <tr> <td height="244" bgcolor="#00FFCC"><div align="center"><%=name%></div></td> </tr> </table package vik; import java.sql.*; import cont.Connec; public class Admininfo {
71 | P a g e

Connection c=Connec.getConnection(); static String name="",pass=""; String name1=""; javax.servlet.jsp.JspWriter out; int i=0; public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setName1(String name1) { if(!name1.equals(null)) this.name1=name1; } public void setPass(String pass) { if(!pass.equals(null)) this.pass=pass; } public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public String Info() { try{ Statement st=c.createStatement(); ResultSet rs=st.executeQuery("select *from Login where Login.id=0"); while(rs.next()) { String s1=rs.getString(2); String s2=rs.getString(3); if(name.equals(s1)&&pass.equals(s2)) { i=1; name=s1; pass=s2; }
72 | P a g e

} if(i==0) out.println("<table cellspacing='1' bgcolor='' border='2' bordercolor=''><tr><td >USER NAME OR PASSWORD IS NOT VALID LOGIN AGAIN</td></tr><tr><td><div align='center'><a href='Login2.jsp'>TRY AGAIN</a></div></td></tr></table>"); //System.out.println(name+name1); if(i==1) { String tb="<table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'><tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' ><table width='100%' height='350' border='0' cellspacing='1' bgcolor=''><tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr><tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr><tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table></td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr><tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'></div></td></tr></table>"; out.println(tb); } }catch(Exception e){ System.out.println(e);} return "vv"; }

73 | P a g e

Jsp codes: <jsp:include page="home.html"/> <%application.setAttribute("id","0");%> <jsp:useBean id="obj" class="vik.Admininfo"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/>

<style type="text/css"> <!-body { background-image: url(images/index_07-081.jpg); }


74 | P a g e

--> </style><body> <TABLE WIDTH='100%' height="367" border="1"> <TR><TD height="287" > <DIV ALIGN="CENTER"><%obj.Info();%></DIV></TD></TR> </TABLE> </body>

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin1"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/> <style type="text/css"> <!-.style1 {color: #FFFFFF} --> </style> <body> <TABLE WIDTH='100%' background='images/1.jpg'><TR><TD > <DIV ALIGN="CENTER"> <table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'> <tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' > <table width='100%' height='350' border='0' cellspacing='1' bgcolor=''> <tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td>

75 | P a g e

</tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr> <tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table> </td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr> <tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'>< %obj.details();%></div></td></tr></table> </DIV></TD></TR> </TABLE> </body>

<SCRIPT language=javascript> function validationTxt() {

76 | P a g e

if ((form1.course.value == "") || (form1.course.value == null)||(! isNaN(form1.course.value))) { alert("Please Enter Course in Words") form1.course.focus() return false } if ((form1.desc.value == null)||(form1.desc.value == "")||(! isNaN(form1.desc.value))) { alert("Please Enter Description in Words") form1.desc.focus() return false } }

</SCRIPT> <jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin2"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/>

<style type="text/css"> <!-.style1 {color: #FFFFFF} --> </style> <body> <TABLE WIDTH='100%' background='images/1.jpg'><TR><TD > <DIV ALIGN="CENTER"> <table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'>
77 | P a g e

<tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' > <table width='100%' height='350' border='0' cellspacing='1' bgcolor=''> <tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr> <tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table> </td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr> <tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'>< %obj.details();%></div></td></tr></table> </DIV></TD></TR> </TABLE> </body>

78 | P a g e

<SCRIPT language=javascript> function validationTxt() {

if((form1.coll.value == "") || (form1.coll.value == null)||(!isNaN(form1.coll.value))) { alert("Please Enter College Name in Words") form1.coll.focus() return false } if((form1.place.value == null)||(form1.place.value == "")||(! isNaN(form1.place.value))) { alert("Please Enter PlacedAt in Words") form1.place.focus() return false } if((form1.cph.value == "") || (form1.cph.value == null)||(isNaN(form1.cph.value))) { alert("Please Enter College Contect in Number") form1.cph.focus() return false } if((form1.fax.value == "") || (form1.fax.value == null)||(isNaN(form1.fax.value))) { alert("Please Enter College Fax Number in Number") form1.fax.focus() return false } if((form1.princ.value == "") || (form1.princ.value == null)||(! isNaN(form1.princ.value)))
79 | P a g e

{ alert("Please Enter Principle Name in Words") form1.princ.focus() return false } if((form1.pno.value == "") || (form1.pno.value == null)||(isNaN(form1.pno.value))) { alert("Please Enter Principle Contect in Number") form1.pno.focus() return false } if((form1.mail.value == "") || (form1.mail.value == null)||(! isNaN(form1.mail.value))) { alert("Please Enter Principle Mail@ Id Words") form1.mail.focus() return false } if((form1.login.value == "") || (form1.login.value == null)||(! isNaN(form1.login.value))) { alert("Please Enter Initial Login Name in Words") form1.login.focus() return false }

if((form1.pass.value == "") || (form1.pass.value == null)) { alert("Please Enter Initial Passsword") form1.pass.focus() return false } }

80 | P a g e

</SCRIPT> <jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin3"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/>

<style type="text/css"> <!-.style1 {color: #FFFFFF} --> </style> <body> <TABLE WIDTH='100%' background='images/1.jpg'><TR><TD > <DIV ALIGN="CENTER"> <table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'> <tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' > <table width='100%' height='350' border='0' cellspacing='1' bgcolor=''> <tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr> <tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table> </td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr>
81 | P a g e

<tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'>< %obj.details();%></div></td></tr></table> </DIV></TD></TR> </TABLE> </body>

<SCRIPT language=javascript> function validationTxt1() { if((form2.dep.value == "") || (form1.dep.value == null)||(!isNaN(form1.dep.value))) { alert("Please Enter Department Name in Words") form2.dep.focus() return false } } function validationTxt() {

82 | P a g e

if((form1.fname.value == "") || (form1.fname.value == null)||(! isNaN(form1.fname.value))) { alert("Please Enter Faculty Name in Words") form1.fname.focus() return false } if((form1.fadd.value == "") || (form1.fadd.value == null)||(! isNaN(form1.fadd.value))) { alert("Please Enter Faculty Address in Words") form1.fadd.focus() return false } if((form1.fph.value == "") || (form1.fph.value == null)||(isNaN(form1.fph.value))) { alert("Please Enter Faculty Contect in Number") form1.fph.focus() return false } if((form1.fmail.value == "") || (form1.fmail.value == null)||(! isNaN(form1.fmail.value))) { alert("Please Enter Faculty Mail@ in Words") form1.fmail.focus() return false }

} </SCRIPT> <jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin4"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/>
83 | P a g e

<jsp:setProperty name= "obj" property="*"/>

<style type="text/css"> <!-.style1 {color: #FFFFFF} --> </style> <body> <TABLE WIDTH='100%' background='images/1.jpg'><TR><TD > <DIV ALIGN="CENTER"> <table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'> <tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' > <table width='100%' height='350' border='0' cellspacing='1' bgcolor=''> <tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr> <tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table> </td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr> <tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'>< %obj.details();%></div></td></tr></table> </DIV></TD></TR> </TABLE> </body>

84 | P a g e

<SCRIPT language=javascript> function validationTxt() {

if ((form1.roll.value == "") || (form1.roll.value == null)||(isNaN(form1.roll.value))) { alert("Please Enter Roll No. in Number") form1.roll.focus() return false } if ((form1.student.value == "")||(!isNaN(form1.student.value))) { alert("Please Enter Student Name in Words") form1.student.focus() return false } }
85 | P a g e

</SCRIPT> <jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin5"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/> <body> <table border="0" width="100%" height="400" bgcolor="" background="images/1.jpg"> <tr> <td width="20%" background="images/index_07-081.jpg"><a href="Admin1.jsp"><div align="center">ADMIN HOME</div></a><%obj.details();%> </td><td background="images/index_07-081.jpg" height="200"><div align="center">< %obj.student();%></div></td></tr></table> </body>

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin6"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/>

86 | P a g e

<style type="text/css"> <!-.style1 {color: #FFFFFF} --> </style> <body> <TABLE WIDTH='100%' background='images/1.jpg'><TR><TD > <DIV ALIGN="CENTER"> <table width='100%' background='images/index_07-081.jpg' height='100' border='1' bordercolor='' cellspacing='1'> <tr><td background='images/index_07-081.jpg' width='20%' height=150' rowspan='2' > <table width='100%' height='350' border='0' cellspacing='1' bgcolor=''> <tr><td width='10%' height='15%' ><div align='center' class='style1 style2'><strong>ADMIN AUTHORITY</strong></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin1.jsp'><strong>RESULT VIEW</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin2.jsp'><strong>COURSES</strong></a></div></td> </tr><tr><td height='18%' ><div align='center'><a href='Admin3.jsp'><strong>COLLEGES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin4.jsp'><strong>FACULTIES</strong></a></div></td></tr> <tr><td height='18%' ><div align='center'><a href='Admin5.jsp'><strong>NEW RESULT UPLOAD</strong></a></div></td></tr> <tr><td height='18%'><div align='center'><a href='Admin6.jsp'><strong>ADDMISION FORMS</strong></a></div></td></tr></table> </td><td width='70%' bgcolor=''><div align='CENTER' class='style1'><a href='Admin7.jsp'><strong>CHANGE PASSWORD</strong></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='Logout.jsp'><strong>LOG OUT</strong></a></div></td></tr> <tr><td height='144' background='images/index_07-081.jpg' bgcolor=''><div align='center'>< %obj.details();%></div></td></tr></table> </DIV></TD></TR> </TABLE> </body>

87 | P a g e

package vik; import java.sql.*; import cont.Connec; public class Admin7 { Connection c=Connec.getConnection(); javax.servlet.jsp.JspWriter out; String name="name"; String pold="pold"; String pwold="pwold"; String pnew="pnew"; String pwnew="pwnew"; public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setPold(String pold) { if(!pold.equals(null))
88 | P a g e

this.pold=pold; } public void setPwold(String pwold) { if(!pwold.equals(null)) this.pwold=pwold; } public void setPnew(String pnew) { if(!pnew.equals(null)) this.pnew=pnew; } public void setPwnew(String pwnew) { if(!pwnew.equals(null)) this.pwnew=pwnew; } public String form() { try{ if(name.equals("name")) { String td="<TABLE border='1'><form name=form1 action='Admin7.jsp?name=CHANGE' method='post'><tr><td BGCOLOR=''><p><div align='center'>CHANGE PASSWORD</div></p>"; td=td+"<p><div align='right'>&nbsp;&nbsp;&nbsp;NAME:<input type='text' name='pold'></div></p><p><p><div align='right'>&nbsp;&nbsp;&nbsp;OLD PASSWORD:<input type='password' name='pwold'></div></p><p><div align='right'>&nbsp;&nbsp;&nbsp;NEW PASSWORD:<input type='password' name='pnew'></div></p><p><div align='right'>&nbsp;&nbsp;&nbsp;REPEAT PASSWORD:<input type='password' name='pwnew'></div></p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style='FONT-WEIGHT: bold'

89 | P a g e

type='submit' value= 'CHANGE' >&nbsp;&nbsp;&nbsp;<INPUT style='FONT-WEIGHT: bold' type=reset value=Reset ></p></div></td></tr></form></TABLE>"; out.println(td); }

if(name.equals("CHANGE")) { int c1=0; int id1=0; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("select * from Login where Login.id="+id1); if(pnew.equals(pwnew)) { while(rs1.next()) { String s1=rs1.getString(2); String s2=rs1.getString(3); if(pold.equals(s1)&&pwold.equals(s2)) { c1=1; PreparedStatement ps=c.prepareStatement("update Login set Login.password=? where Login.id=?"); ps.setString(1,pwnew); ps.setInt(2,id1); int a=ps.executeUpdate(); if(a==1) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>CHANGED= "+pold+" "+pwold+" "+pold+" "+pwnew+"</td></tr><tr><td bgcolor=''><div align='center'><a href='Login2.jsp'>NOW TRY THIS LOGIN AGAIN</a></div></td></tr></table>"); } if(a==0) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>PASSWORD IS MISSMATCH</td></tr></table>"); }

90 | P a g e

} } if(c1==0) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>NAME OR PASSWORD IS MISSMATCH</td></tr></table>"); } } else { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>NEW PASSWORD AND CONFORM PASSWORD MISSMATCH</td></tr></table>"); } } } catch(Exception e){e.printStackTrace(); System.out.println(e);} return "vv"; } }

91 | P a g e

package vik; import java.sql.*; import cont.Connec; public class Admin7 { Connection c=Connec.getConnection(); javax.servlet.jsp.JspWriter out; String name="name"; String pold="pold"; String pwold="pwold"; String pnew="pnew"; String pwnew="pwnew"; public void setOut(javax.servlet.jsp.JspWriter out) { this.out=out; } public void setName(String name) { if(!name.equals(null)) this.name=name; } public void setPold(String pold) { if(!pold.equals(null)) this.pold=pold; } public void setPwold(String pwold) { if(!pwold.equals(null)) this.pwold=pwold; }
92 | P a g e

public void setPnew(String pnew) { if(!pnew.equals(null)) this.pnew=pnew; } public void setPwnew(String pwnew) { if(!pwnew.equals(null)) this.pwnew=pwnew; } public String form() { try{ if(name.equals("name")) { String td="<TABLE border='1'><form name=form1 action='Admin7.jsp?name=CHANGE' method='post'><tr><td BGCOLOR=''><p><div align='center'>CHANGE PASSWORD</div></p>"; td=td+"<p><div align='right'>&nbsp;&nbsp;&nbsp;NAME:<input type='text' name='pold'></div></p><p><p><div align='right'>&nbsp;&nbsp;&nbsp;OLD PASSWORD:<input type='password' name='pwold'></div></p><p><div align='right'>&nbsp;&nbsp;&nbsp;NEW PASSWORD:<input type='password' name='pnew'></div></p><p><div align='right'>&nbsp;&nbsp;&nbsp;REPEAT PASSWORD:<input type='password' name='pwnew'></div></p><div align='center'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style='FONT-WEIGHT: bold' type='submit' value= 'CHANGE' >&nbsp;&nbsp;&nbsp;<INPUT style='FONT-WEIGHT: bold' type=reset value=Reset ></p></div></td></tr></form></TABLE>"; out.println(td); }

if(name.equals("CHANGE")) { int c1=0;


93 | P a g e

int id1=0; Statement st1=c.createStatement(); ResultSet rs1=st1.executeQuery("select * from Login where Login.id="+id1); if(pnew.equals(pwnew)) { while(rs1.next()) { String s1=rs1.getString(2); String s2=rs1.getString(3); if(pold.equals(s1)&&pwold.equals(s2)) { c1=1; PreparedStatement ps=c.prepareStatement("update Login set Login.password=? where Login.id=?"); ps.setString(1,pwnew); ps.setInt(2,id1); int a=ps.executeUpdate(); if(a==1) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>CHANGED= "+pold+" "+pwold+" "+pold+" "+pwnew+"</td></tr><tr><td bgcolor=''><div align='center'><a href='Login2.jsp'>NOW TRY THIS LOGIN AGAIN</a></div></td></tr></table>"); } if(a==0) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>PASSWORD IS MISSMATCH</td></tr></table>"); } } } if(c1==0) { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>NAME OR PASSWORD IS MISSMATCH</td></tr></table>"); }

94 | P a g e

} else { out.println("<table bordercolor='' border='1'><tr><td bgcolor=''>NEW PASSWORD AND CONFORM PASSWORD MISSMATCH</td></tr></table>"); } }

}catch(Exception e){e.printStackTrace(); System.out.println(e);}

return "vv"; } }

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Admin11"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/> <body> <TABLE WIDTH='100%' background='images/1.jpg'><TR><TD > <DIV ALIGN="CENTER"> <table height="400" background="images/index_07-081.jpg" border="0" width="100%" bgcolor=""> <tr> <td width="20%"><a href="Admin1.jsp"><div align="center">ADMIN HOME</div></a>< %obj.details();%> </td><td background="images/index_07-081.jpg" height="200"><div align="center">< %obj.result();%></div></td></tr></table> </DIV></TD></TR> </TABLE>
95 | P a g e

</body>

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Forms"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <SCRIPT language=javascript> function validationTxt() { if (form1.select.value == 0) { alert("Please Select Your College Name") form1.select.focus() return false } }

</SCRIPT> <style type="text/css"> <!-.style1 {font-size: 24px} .style6 {font-size: 18px} --> </style> <body> <table width="100%" height="406" border="1" cellpadding="1" cellspacing="1" background="images/index_07-081.jpg">
96 | P a g e

<tr> <td height="83" colspan="2"><div align="center"><span class="style3 style1"><strong>CHOOSE OPTION FOR ADMISSION </strong></span></div></td> </tr> <tr> <td width="52%" height="277"><form name="form1" method="" action="Submitfm.jsp? name=coll" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input name="imgf" type="image" onClick="return validationTxt()" src="images/titleimage1.jpg" width="165" height="151" border="0"> <select name=select><option value=0></option><%obj.option();%> </select> <span class="style4 style6">COLLEGE'S</span> </form></td> <td width="48%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Submitfm.jsp?name=uni"><img src="images/VCComp8.jpg" width="188" height="150" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="style4 style6">UNIVERSITY </span></td> </tr> </table> </body> </html>

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Collcourse"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/> <style type="text/css"> <!-body { background-image: url(images/index_07-081.jpg); }
97 | P a g e

--> </style> <div id="Layer1" style="position:absolute; width:274px; height:63px; z-index:1; left: 9px; top: 273px;"> <h1 class="style2"> <marquee direction="right" behavior="slide"> <img src="images/cour.JPG" width="263" height="48"> </marquee> </h1> </div> <div id="Layer1" style="position:absolute; width:280px; height:37px; z-index:1; left: 7px; top: 351px;"> <h1 align="center" class="style2"><%obj.links();%> </h1> </div> <div id="Layer1" style="position:absolute; width:557px; height:37px; z-index:1; left: 431px; top: 353px;"> <div align="center"> <%obj.linkcol();%> </div> </div> </body></body> </html>

98 | P a g e

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Colleges"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/>

<style type="text/css"> <!-body { background-image: url(images/index_07-081.jpg); } --> </style> <div id="Layer1" style="position:absolute; width:274px; height:63px; z-index:1; left: 9px; top: 273px;"> <h1 class="style2"> <marquee direction="right" behavior="slide"> <img src="images/COLL.JPG" width="263" height="48"> </marquee> </h1> </div> <div id="Layer1" style="position:absolute; width:280px; height:37px; z-index:1; left: 7px; top: 351px;"> <h1 align="center" class="style2"><%obj.links();%> </h1>
99 | P a g e

</div> <div id="Layer1" style="position:absolute; width:645px; height:37px; z-index:1; left: 310px; top: 340px;"> <div align="center"> <%obj.linkcol();%> </div> </div> </body> </html> </body> </html>

<jsp:include page="home.html"/> <jsp:useBean id="obj" class="vik.Course"/> <jsp:setProperty name= "obj" property="out" value="<%=out%>"/> <jsp:setProperty name= "obj" property="*"/> <style type="text/css"> <!-body { background-image: url(images/index_07-081.jpg); } --> </style> <div id="Layer1" style="position:absolute; width:274px; height:63px; z-index:1; left: 9px; top: 273px;">
100 | P a g e

<h1 class="style2"> <marquee direction="right" behavior="slide"> <img src="images/cour.JPG" width="263" height="48"> </marquee> </h1> </div> <div id="Layer1" style="position:absolute; width:280px; height:37px; z-index:1; left: 7px; top: 351px;"> <h1 align="center" class="style2"><%obj.links();%> </h1> </div> <div id="Layer1" style="position:absolute; width:701px; height:37px; z-index:1; left: 305px; top: 351px;"> <div align="center"> <%obj.linkcol();%> </div> </div> </body></html>

<jsp:include page="home.html"/> <SCRIPT language=JavaScript type=text/javascript>


101 | P a g e

<!-// Use Freely as long as following disclaimer is intact :: //--------------------------------------------------------------// Cross Browser Multi-Directional Scroller v1.0 24th August 2004 // This script written by Rik Comery. www.ricom.co.uk // For support, visit the "Resources" section at www.ricom.co.uk // All rights reserved. // Featured in the SimplytheBest DHTML Scripts Library at http://simplythebest.net/scripts/ Article = new Array; i=0; /* DEFINE SCROLLER ELEMENTS Define new scroller elements here in the following format. Article[i] = new Array ("display text", "URL", "frame target to load link in");i++ Note: If you do not want the item to be a link, change the URL value to "none". */ Article[i] = new Array ("All India Seminar on Energy Management in Indian Perspective", "news/power_plant_august_31_revised.pdf", "_blank");i++ Article[i] = new Array ("Paper Id for New Subjects for Session 08-09", "news/subjects_for_session_2008-09.xls", "_blank");i++ Article[i] = new Array ("Paper Id for Existing Subjects", "news/existing_subjects.xls", "_blank");i++ Article[i] = new Array ("Procedure and Evaluation Process for Practical Subjects of Ist Year.", "circular/circular/circular_15_09_08_b.pdf", "_blank");i++ Article[i] = new Array ("Counselling Schedule & Short Listed Candidates of M.Tech./M.Pharm.", "news/mtech_counselling_040908.pdf", "_blank");i++ Article[i] = new Array ("National Conference on Recent Advances in Waste Management February 20-21, 2009 Organized by IT, BHU, Varanasi", "news/news_210808.pdf", "_blank");i++ Article[i] = new Array ("Scrutiny Results 2008", "scrutiny_2008.htm", "_blank");i++ Article[i] = new Array ("Even Semester Carry Over Marks Statement", "results/exam_even_2008/co_marks.asp", "_blank");i++ Article[i] = new Array ("Letter for Identified Institution for Practical Training ", "news/vcdesk_matter.htm", "_top");i++ Article[i] = new Array ("Scrutiny Results Announced", "latest_news/scrutiny.asp", "_blank");i++ Article[i] = new Array ("Paper id for new course (2004 onwards) for B.Tech, B.Pharm, B.Arch., BHMCT, MBA, MCA", "news/new_paper_id_even.xls", "_blank");i++ Article[i] = new Array ("Paper ID for Even Semester Practical Subjects ", "news/even_sem_practical_new.xls", "_blank");i++

102 | P a g e

Article[i] = new Array ("Odd Semester Theory Examination (old syllabus subjects prior to 2004) November-2008 <img src='images/new3.gif' width='50' height='18' align='right' style='border:0; text-decoration:none'/>", "news/s_s_old_odd_08_09.pdf", "_blank");i++ Article[i] = new Array ("National BHU Alumni Meet 2009 & National Seminar on Mahamana's Vision for a Self Reliant India: Current Issues and Future Prospects on January 29-30,2009 <img src='images/new3.gif' width='50' height='18' align='right' style='border:0; text-decoration:none'/>", "news/bhu_alumni_meet2009.pdf", "_blank");i++ ////// SCROLLER CONFIGURATION /////////////////////////////////////////////////////////////////// orientation = "vertical" // Orientation of scroller (Horizontal or vertical) scrollerWidth = "285px" // Width of entire scroller. scrollerHeight = "190px" // Height of Scroller. borderWidth = 0 // Width of border. (use 0 for no border). borderColour = "#006600" // Colour of scroller border. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") backColour = "#ffffff" // Colour of scroller background. (Use either hexadecimal or text values. e.g. "#FF0000" or "Red") staticColour = "#000000" // Colour of scroller items that are NOT a link. (including scrollerDivider characters) stopScroll = 1 // Pause the scroller on mouseOver. (use 0 for no.) textAlignment="left" // Alignment of each scroller item. Only really makes a difference on vertical scroller // (center, left, right, justify) // Scroller Links linkFont = "Verdana" linkWeight = "normal" linkColour = "#003366" linkSize = "10" linkDecoration = "none"

// Font of scroller links; // Weight of scroller links; // Colour of scroller links // Size of links (in points) // Decoration of links. (underline, overline, none)

// Scroller Links On MouseOver slinkFont = "Verdana" // Font of scroller links; slinkWeight = "normal" // Weight of scroller links; slinkColour = "#3366CC" // Colour of scroller links slinkSize = "10" // Size of links (in points) slinkDecoration = "underline" // Decoration of links. (underline, overline, none) scrollerDivider = "" // Character to place between each scroller item.
103 | P a g e

// <img> tags can be used if an image is required. // Use "0" for nothing. For Vertical scrollers, it is best to use "<br>" /* Because Netscape version 4 does not support this scroller, configure the values below so NS4 users do not see an error. In the scroller's place will be a static title which can be a link if require. The appearance of the static text (colour, scroller border etc) will be exactly the same as for the working version in other browsers. */ ns4Text = "Click Here to visit our Company"; // Alternative text to display in Netscape 4. ns4URL = "http://www.otpl.co.in"; // URL of link in NS4. If no URL is required, enter "none" ns4Target = "_top"; // Frame target for link in NS4 ////// DO NOT EDIT BELOW THIS LINE /////////////////////////////////////////////////////////////////// //Browser Sniffer var isIE = (document.getElementById && document.all)?true:false; var isNS4 = (document.layers)?true:false; var isNS6 = (document.getElementById && !document.all)?true:false; style='<style type="text/css">'; style+='p{font-family:'+linkFont+'; color:'+staticColour+'; font-size:'+linkSize+'pt; fontweight:'+linkWeight+'; text-align:'+textAlignment+'}'; style+='a.rcScroller,a.rcScroller:active,a.rcScroller:visited{color:'+linkColour+';textdecoration:'+linkDecoration+'; font-weight:'+linkWeight+'}'; style+='a.rcScroller:hover{color:'+slinkColour+';text-decoration:'+slinkDecoration+'; fontweight:'+slinkWeight+'}'; style+='rcScrollerHoverNS{color:red;text-decoration:'+slinkDecoration+'; fontweight:'+slinkWeight+'}'; style+='<\/style>'; document.writeln(style); // Build the scroller and place it on the page function buildScroller() { if(isNS4){ scroller='<table border="0" cellpadding="0" cellspacing="0" width="'+scrollerWidth+'" bgcolor="'+borderColour+'"><tr><td>'
104 | P a g e

scroller+='<table border="0" cellpadding="3" cellspacing="1" width="100%" height="'+scrollerHeight+'" bgcolor="'+backColour+'"><tr><td align="center" nowrap><p>'; if(ns4URL.toLowerCase()!="none"){scroller+='<a href="'+ns4URL+'" class="rcScroller" target="'+ns4Target+'">'+ns4Text+'</a>';} else{scroller+=ns4Text;} scroller+='</p></td></tr></table></td></tr></table>' }else{ scroller='<table border="0" cellpadding="4" cellspacing="4" style="width:'+scrollerWidth+';height:'+scrollerHeight+';border:'+borderWidth+'px solid '+borderColour+';background-color:'+backColour+'">'; scroller+='<tr valign="middle"><td><div id="div" style="'; if(orientation.toLowerCase()=="vertical"){scroller+='height:'+scrollerHeight+';';} scroller+='width:'+scrollerWidth+'; position:relative; background-color:'+backColour+'; overflow:hidden">'; scroller+='<div id="div1" style="position:relative; left:0; z-index:1">'; scroller+='<table border="0" name="table" id="table"'; if(orientation.toLowerCase()=="vertical"){scroller+='style="width:'+scrollerWidth+'"';} scroller+='><tr>'; y=0; while (y<4) { for (x=0; x<(Article.length); x++) { if(orientation.toLowerCase()=="vertical"){scroller+='<tr>';} //scroller+='<td valign="top"><table width="100%" cellspacing="0" cellpadding="0"><tr><td><img src="images/1.jpg" width="9" height="8"></td></tr></table></td>'; scroller+='<td '; if(orientation.toLowerCase()=="horizontal"){scroller+='nowrap';} if(stopScroll==1) {scroller+=' onMouseOver="stopScroller();" onMouseOut="setWidth()"';} scroller+='><ul><li>'; if(Article[x][1].toLowerCase()!="none"){scroller+='<a class="rcScroller" href="'+Article[x] [1]+'" target="'+Article[x][2]+'" >'+Article[x][0]+'<\/a>'; }else{scroller+=Article[x][0];} scroller+='</li></ul><\/td>';

if(orientation.toLowerCase()=="vertical"){scroller+='<\/tr>';}

105 | P a g e

if(scrollerDivider.toLowerCase() != "none"){scroller+='<td nowrap><p>'+scrollerDivider+'<\/p><\/td>';} } y++ } scroller+='<\/tr><\/table><\/div><\/div><\/td><\/tr><\/table>'; } document.writeln(scroller); } // Ensure the width of the scroller is divisible by 2. This allows smooth flowing of the scrolled content function setWidth() { tableObj=(isIE)?document.all("table"):document.getElementById("table"); obj=(isIE)?document.all.div1:document.getElementById("div1"); objWidth=(orientation.toLowerCase()=="horizontal")? getOffset(tableObj,"width"):getOffset(tableObj,"height"); HalfWidth=Math.floor(objWidth/2); newWidth = (HalfWidth*2)+2; obj.style.width=newWidth moveLayer(obj, newWidth); } // Move the layer by one pixel to the left function moveLayer(obj, width) { maxLeft = (0-(width/2)+2)/2 if(orientation.toLowerCase()=="horizontal"){ obj.style.left=(parseInt(obj.style.left) <= maxLeft)?0:parseInt(obj.style.left)-1 }else{ if(obj.style.top==""){obj.style.top=0;} // alert(obj.style.top) if (parseInt(obj.style.top)<(0-(width/2)+6)){ obj.style.top = 0 }else{ obj.style.top = parseInt(obj.style.top)-1 } }
106 | P a g e

timer = setTimeout ("moveLayer(obj, "+width+");", 50); } // Get width and height of layer function getOffset(obj, dim) { if(dim=="width") { oWidth = obj.offsetWidth return oWidth } else if(dim=="height") { oHeight = obj.offsetHeight return oHeight } } function stopScroller() { clearTimeout(timer) } function runScroller(){ if(!isNS4){setWidth()} } ////// END OF SCRIPT /////////////////////////////////////////////////////////////////// //--> </SCRIPT> <SCRIPT language=JavaScript src="images/mm_menu.js"></SCRIPT> <SCRIPT language=JavaScript src="images/menu.js"></SCRIPT> <META content="MSHTML 6.00.2900.2180" name=GENERATOR> <script language="JavaScript" type="text/JavaScript"> <!-function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
107 | P a g e

else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> </HEAD> <BODY onload=runScroller()> <table cellspacing=0 cellpadding=0 width=100% align=center border=0> <tbody> <tr> <td width="1201" height="507" background="images/index_07-081.jpg"> <table cellspacing=0 cellpadding=0 width="110%" border=0> <tbody> <tr> <td width=14 height="509" background="images/index_01.jpg">&nbsp;</td> <td width="1227"> <table cellspacing=0 cellpadding=0 width="100%" border=0> <tbody> <tr> <td> <script src="images/banner_home.js" type=text/javascript></script> </td> </tr> <tr> </tr> <tr> <td> <tr> <td valign=top bgcolor=#ffffff> <table cellspacing=0 cellpadding=0 width="100%" border=0> <tbody> <tr> <td valign=top width=251 background="images/index_07-081.jpg" height=449> <table cellspacing=2 cellpadding=1 width="100%"> <tbody> <tr> <td class=header_white colspan=3 height=36> Other Links </td> <td width=57 height=36>&nbsp; </td> </tr>
108 | P a g e

<tr> <td>&nbsp; </td> <td>&nbsp; </td> <td>&nbsp; </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td> <img height=8 src="images/3.jpg" width=8> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/academic_excellence/academic_excellence.htm">Academic Excellence Award</a> </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td> <img height=8 src="images/3.jpg" width=8> </td> <td class=textlinks width=248> <a href="http://www.uptu.ac.in/alumni.htm">Alumni</a> </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td height=12> <img height=8 src="images/3.jpg" width=8> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/about/vcs_message.asp">From VC's Desk</a> </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td height=12> <img height=8 src="images/3.jpg" width=8> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/collaborations.htm">Collaborations</a> </td> <td>&nbsp; </td> </tr> <tr> <td width=2>&nbsp; </td> <td width=13 height=12> <img src="images/3.jpg"> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/kulgeet.mp3" target=_blank>Kulgeet</a> </td>
109 | P a g e

<td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td> <img src="images/3.jpg"> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/photogallery.htm">Photo Gallery </a> </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td> <img src="images/3.jpg"> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/#">Quality Assurance Cell </a> </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td> <img src="images/3.jpg"> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/rti.htm">Right to Information</a> </td> <td>&nbsp; </td> </tr> <tr> <td width=2>&nbsp; </td> <td width=13> <img src="images/3.jpg"> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/downloads.htm">Downloads</a> </td> <td>&nbsp; </td> </tr> <tr> <td>&nbsp; </td> <td> <img src="images/3.jpg"> </td> <td class=textlinks> <a href="http://www.uptu.ac.in/#">Parent's Interface </a> </td> <td>&nbsp; </td> </tr> <tr> <td width=2>&nbsp; </td> <td width=13>&nbsp; </td>
110 | P a g e

<td class=left>&nbsp; </td> <td>&nbsp; </td> </tr> </tbody> </table></td> <td valign=top width=309> <table cellspacing=3 cellpadding=2 width="129%" align=center> <tbody> <tr> <td class=headertitle colspan=3 height=36> Highlights </td> <td width="2%">&nbsp; </td> </tr> <tr> <td valign=top colspan=3>&nbsp; </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top width="3%"> <table cellspacing=2 cellpadding=2 width="100%"> <tbody> <tr> <td> <img height=8 src="images/1.jpg" width=9> </td> </tr> </tbody> </table></td> <td valign=top colspan=2> <a href="http://www.uptu.ac.in/highlights/old_q_paper.htm">Old Question Papers</a> </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top colspan=4 height=3> <img height=1 src="images/spacer.gif" width=1> </td> </tr> <tr> <td valign=top> <table cellspacing=2 cellpadding=2 width="100%"> <tbody> <tr> <td> <img height=8 src="images/1.jpg" width=9> </td> </tr>
111 | P a g e

</tbody> </table></td> <td valign=top colspan=2> <a href="http://www.uptu.ac.in/examination/model_q_paper.htm">Model Question Paper</a> </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top colspan=4> <img height=1 src="Uttar Pradesh Technical University (UPTU)_files/spacer.gif" width=1> </td> </tr> <tr> <td valign=top> <table cellspacing=2 cellpadding=2 width="100%"> <tbody> <tr> <td> <img height=8 src="images/1.jpg" width=9> </td> </tr> </tbody> </table></td> <td valign=top colspan=2> <a href="http://www.uptu.ac.in/highlights/uptu_29_5_2008a.pdf" target=_blank>UPTU-Florida International University, USA Dual Degree Programme</a> </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top colspan=4> <img height=1 src="Uttar Pradesh Technical University (UPTU)_files/spacer.gif" width=1> </td> </tr> <tr> <td valign=top> <img height=8 src="images/1.jpg" width=9> </td> <td valign=top colspan=2> <a href="http://www.uptu.ac.in/results/merit_list.asp">Final Year Merit List : 2007-08</a> </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top colspan=4> <img height=1 src="Uttar Pradesh Technical University (UPTU)_files/spacer.gif" width=1> </td> </tr> <tr> <td valign=top> <img height=8 src="images/1.jpg" width=9> </td>
112 | P a g e

<td valign=top colspan=2> <a href="http://www.uptu.ac.in/circular/circular/circular_18102008.pdf" target=_blank><img style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOMWIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none" height=18

src="images/new3.gif" width=50 align=right>State Entrance Examination (SEE) 2009 shall be held on 18th &amp; 19th April, 2009 </a> </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top colspan=4> <img height=1 src="Uttar Pradesh Technical University (UPTU)_files/spacer.gif" width=1> </td> </tr> <tr> <td valign=top> <img height=8 src="images/1.jpg" width=9> </td> <td valign=top colspan=2> <img style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none" height=18 src="images/new3.gif" width=50 align=right> <a href="http://www.uptu.ac.in/results/scrutiny_struct.asp">Status of Scrutiny Forms: Even Semester 2007-08 </a> </td> <td valign=top>&nbsp; </td> </tr> <tr> <td valign=top colspan=4> <img height=1 src="Uttar Pradesh Technical University (UPTU)_files/spacer.gif" width=1> </td> </tr> <tr> <td valign=top> <img height=8 src="images/1.jpg" width=9> </td> <td valign=top colspan=2> <img style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; TEXT-DECORATION: none" height=18 src="images/new3.gif" width=50 align=right> <a href="http://www.uptu.ac.in/results/result_pharma.htm">Masters of Pharmacy First Year First Semester Examination 2007-08 - <strong>RESULT</strong> </a> </td> <td valign=top>&nbsp; </td> </tr> </tbody> </table></td> <td style="BORDER-LEFT: #5577b7 1px dotted" valign=top width=434> <table width="100%" height="295" cellpadding=2 cellspacing=2>
113 | P a g e

<tbody> <tr> <td class=headertitle height=36> University News </td> <td width="2%">&nbsp; </td> </tr> <tr> <td valign=top height=251> <script language=JavaScript type=text/javascript>buildScroller()</script> </td> <td>&nbsp; </td> </tr> </tbody> </table></td> </tr> </tbody> </table></td> </tr> <tr> <td background="images/index1_11.jpg" height=18>&nbsp; </td> </tr> <tr> <td style="BACKGROUND-REPEAT: no-repeat" valign=bottom align=middle background="images/index1_13.jpg" height=40> <div class=dblue align=center> <div align=center></div> <table cellspacing=0 cellpadding=0 width="100%" align=center border=0> <tbody> <tr> <td width=279 height="18" class=dblue> <div align=left>Manish bhatia |<a href="http://www.uptu.ac.in/mail.htm">mailtomanish15@gmail.com </a></div></td> <td class=dblue width=438>|<a href="http://www.uptu.ac.in/mail.htm"></a></td> <td width=237> <table cellspacing=0 cellpadding=0 width="100%" border=0> <tbody> <tr> <td class=dblue>Developed by : Manish Bhatia</td> </tr>
114 | P a g e

</tbody> </table></td> <td class=dblue width=6>&nbsp;</td> </tr> </tbody> </table> <font color=#0099ff></font> </div></td> </tr> </tbody> </table></td> <td width=10 background="images/index_03.jpg">&nbsp;</td> </tr> </tbody> </table></td> </tr> <tr> <td height="19" background="images/index_07-081.jpg">&nbsp; </tr> </tbody></table>

</td>

115 | P a g e

8.EXECUTION
Snaps shots of each page is shown to show the execution of the project.

116 | P a g e

117 | P a g e

118 | P a g e

119 | P a g e

120 | P a g e

121 | P a g e

122 | P a g e

123 | P a g e

124 | P a g e

125 | P a g e

126 | P a g e

9.TESTING
The project ONLINE UNIVERSITY CAMPUS has gone through a series of testing methods which includes: 1. Isolation testing. 2. Integration testing. 3. Acceptance testing.

ISOLATION TESTING :Each module of the project ONLINE UNIVERSITY CAMPUS is being first designed and tested , whether it is working in a efficient manner or not . The nine modules in which the project is divided are as follows :Login Management Registration Process Student Management Staff Management Fee Management Query Management Exam Management Result Management Help

The above modules are tested in isolation for checking their efficient working .

127 | P a g e

INTEGRATION TESTING :-

All the modules of the project are tested together for their efficient working which forms the part of the integration testing .Both of the above testing (isolation & integration ) forms the part of alpha testing .

ACCEPTANCE TESTING :-

This form of testing is done in the presence of the guide or the end-user so as to assure that the project we have developed satisfies the requirements of by the end-user. The project ONLINE UNIVERSITY CAMPUS is finally implemented.

128 | P a g e

10.CONCLUSIONS AND FUTURE


With the increasing number of students applying for Universities & Colleges, managing the work has become a tedious task. This has led to a need to automate the admission & other working processes. This project aims at the automation of the routine work of a University including admissions, managing results, providing information about the courses, information about the university & various different affiliated colleges and the faculty. Thus, making all the essentials of a university available online. Current students can find out various information such as schedule of examination and other various important events, their results etc.Automates a university by making its working online. Prospective students can find out the listof colleges affiliated to the university, courses offered by them, admission procedure,discussion forums etc. Students can also download registration forms for applying for variouscourses, or can also apply online using the portal. Hence it could be concluded that for a modern day university a portal like this is necessary and successful.

Future scope

Fully works as a online. Reducing the time. Reducing the paper work. Centralized maintain all information. Easy to Searching the information about college or university. Easy to managing whole counseling procedure.

129 | P a g e

11.REFERENCES

1. JAVA: The Complete Reference Herbert Schildt 2. Head First Java ORielly

3. A Programmers Guide To SCJP Certification Khalid A Mughal, Rolf Rasmussen

4. Introduction to Web-technology-Ivan bruce(part 1 and part 2) 5. Java-2 Complete Reference - by Patrick Naughton 6. Java Servlet Programming - by O'Reilly 7. Pure JavaScript 8. HTML completes 9. www.google.com 10. www..com 11.www.wikipedia.com 12.www.sourcecodeonline.com - by Jason Gilliam, Charlton Try, R.Allen Wyke - BPB publications.

130 | P a g e

Anda mungkin juga menyukai