Академический Документы
Профессиональный Документы
Культура Документы
ON
NEWLEAF
SUBMITTED IN THE PARTIAL FULFILLMENT OF THE
REQUIREMENT FOR THE AWARD OF DEGREE OF
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING
Batch
(2013-2017)
Submitted to : Submitted by :
HOD(CSE) Abeyjit Singh(1300290)
Atul Mahajan (1300306)
Harmanjit Singh(1300327)
Kanish (1300343)
We are highly grateful to Mr. Amarpreeet Singh HOD of CSE Department, for
providing this opportunity to carry out the major project. It was purely on the
basis of his experience and knowledge that I was able to clear all the theoretical
and technical hurdles during the development phases of this project work. I want
to express gratitude to other faculty members of Department of Computer
Science and Engineering for their intellectual support throughout the training
course.
We have taken efforts in this project. However, it would not have been possible
without the kind support and help of Mr.Ajay Sharma. I would like to extend my
sincere thanks to him. We are highly indebted to our college Amritsar College Of
Engineering & Technology for their guidance and constant supervision as well as
for providing necessary information regarding the project & also for their support
in completing the project.
We would like to express our gratitude towards our parents for their kind co-operation and
encouragement which help me in completion of this project.
We would like to express our special gratitude our thanks and appreciations also go to my
colleague in developing the project and people who have willingly helped me out with their
abilities.
Abeyjit Singh
Atul Mahajan
Harmannjit Singh
Kanish
1
Table of Contents
6. Coding 21-36
7. Bibliography 37
2
1.INTRODUCTION TO PROJECT
Our project Newleaf helps to provide Grooms and Brides with excellent matchmaking experience
by exploring the opportunities and resources to meet true potential partner. Keeping our objective in
mind, we have created a world renowned online matchmaking services that will touch the souls of
millions of people all over the globe. The main purpose of this application is to facilitate
matchmaking business by applying the information in the field.
It helps the user by providing profiles of perspective Bride or Groom and other information
regarding them online. User can get information regarding their dream life partner at his/her home at
his/her convenience. This application also provides a search utility which helps those users who have
a certain criteria of qualities in mind to make online matrimonial easier. Since internet is a pivot for
modern business, our project which is based on internet paves a path for modernization in trade.
Matrimonial Web Application will allow a new user to register and after successfully registration user
can get email confirmation, after comple3ting registration users profile will be visible to other users
3
Features of our project
Visitor Section
Browse categories
Admin Section
Configuration Options
Add/edit/delete/activate/deactivate categories
Add/edit/delete profiles
4
Search for classified ads by keywords, categories, cities, status
Members Management
Add/edit/delete/activate/deactivate users
5
Objective of project
Matrimonial website which will provide platform to a lot of Bride/Groom for finding perfect match.
There are different sectors like Registration, Partner , Search, etc. So the6Bride/Groom can get their
interest for find their partner. Bride/Groom can directly search Partner according to their required
criteria. The Bride/Groom can use match By Email functionality so he/she can get directly E-mail
alert for the match which fulfil their required criteria.
The main objective of this application is to facilitate matchmaking business by applying the
information in the field.
It helps the user by providing profiles of perspective Bride and Groom and other
information regarding them online.
User can get information regarding their dream life partner at his/her home at his/her
convenience.
This application also provides a search utility which helps those users who have a certain
criteria of qualities in mind to make online matrimonial easier.
Since internet is a pivot for modern business, our project which is based on internet paves a
path for modernization in trade
This application also provides a search utility which helps those users who have
a certain criteria of qualities in mind to make online matrimonial easier. S i n c e i n t e r n e t i s
a p i v o t f o r m o d e r n b u s i n e s s , o u r p r o j e c t w h i c h i s b a s e d o n internet paves
a path for modernization in trade
6
Modules of the project
1) Login
2) Report generation
User management
3) Logout
In this module when user fill-ups first three registration form user will get a member id and will also
get conformation message on his/her Email id.
After getting member id user will use his/her member id to login, and user can modify his/her
profile, fill-up remaining form of registration, image upload, create album .
User can change his/her photo, Image uploading is done after registration only, so user must have
member id for image uploading.
Advance Search,
Quick Search,
7
Search by City,
Search by Id,
Search by Profession,
Here after searching the profile user can send a express interest to a profile of his liking .The
messages here will be pre-defined here .
Here after searching the profile user can send a Personal Message to a profile of his liking .For this
functionality user must be a paid member.
8
2.INTRODUCTION TO FRONT END
Java is a general purpose and the most popular object-oriented programming language. Java was
developed by James Gosling and his colleagues at Sun Microsystems in the early 1990s.
Due to its simplicity and easy to learn and advanced features, we opted this language for our six
months industrial training. This language supports many interesting features that make it an ideal
language for software development. In addition to the object oriented features, it also provides
features such as platform independence, security, multithreading, portability; etc which makes it well
suited for the web and networked services, applications, platform-independent desktops, robotics and
any other embedded devices.
Features of Java:
Robust
Multi
Threaded
High
Performance
9
Simple: Java is a compact and simple language. Programs are easy to write and debug as it omits
many clumsy, poorly understood and confusing features of other programming languages such as C+
+.
Distributed: Java is a distributed language which means that the programs can be designed to run on
computer networks. Java provides an extensive library of classes for communicating using TCP/IP
protocols such as HTTP and FTP. This makes creating network connections much easier.
Robust: Java is designed for writing programs that are highly robust. By robust, we mean reliable.
Architectural Neutral: This means that the programs written on one platform can run on any other
platform without having to rewrite or recompile them. It follows Write-once-run-anywhere
approach.
Portable: In Java, the size of the primitive data types is machine independent. These consistencies
make java program portable among different platforms such as Windows, UNIX and Mac.
Interpreted: Java is such a language that is both compiled and interpreted. The two steps of
compilation and interpretation allow extensive code checking and improved security.
High performance: Java programs are complied with portable intermediate form known as byte
codes, rather than to native machine level instructions and JVM executes java byte codes on any
machine on which it is installed. This architecture means that java programs are faster.
Multithreaded: Java is also a multithreaded programming language. It allows you to write a program
that can do many tasks simultaneously.
Dynamic: Java is designed to be dynamic. Classes are stored in separate files and are loaded into the
Java Interpreter only when they are needed.
10
JAVA DEVELOPMENT KIT (JDK)
The Java Development Kit (JDK) is a software package that sun has made available to public. It includes
all the basic components that makeup the java environment. These include the Java compiler, Java
Interpreter, an applet viewer that lets you see applets without opening a Java-compatible web browser.
11
APPLICATIONS OF JAVA
Java has evolved from a simple language providing interactive dynamic content for webpages to a
predominant enterprise-enables programming language suitable for developing significant and critical
applications.
Financial applications
Gaming applications
Embedded applications
Mobile applications
Image applications
E-business applications
Architecturally, JSP may be viewed as a high-level abstraction of Java servlets. JSPs are translated
into servlets at runtime; each JSP servlet is cached and re-used until the original JSP is modified.
JSP allows Java code and certain pre-defined actions to be interleaved with static web markup
content, such as HTML, with the resulting page being compiled and executed on the server to deliver
a document. The compiled pages, as well as any dependent Java libraries, contain Java bytecode
rather than machine code. Like any other Java program, they must be executed within a Java virtual
machine (JVM) that interacts with the server's host operating system to provide an abstract, platform-
neutral environment.
12
3.INTRODUCTION TO BACK END
MySQL
MySQL is a open source Relational Database Management System. MySQL is very fast reliable and
flexible Database Management System. It provides a very high performance and it is multi threaded
and multi user Relational Database management system.
MySQL is one of the most popular relational database Management System on the web. The MySQL
Database has become the world's most popular open source Database, because it is free and available
on almost all the platforms. The MySQL can run on Unix , window, and Mac OS. .
MySQL source code is available that's why now you can recompile the source code.
Features:
The following list describes some of the important Features of MySQL Database Software.
Column Types
Many column types: signed/unsigned integers 1, 2, 3, 4, and 8 bytes long,
FLOAT, DOUBLE, CHAR, VARCHAR, TEXT, BLOB, DATE, TIME,
DATETIME, TIMESTAMP, YEAR, SET, ENUM, and OpenGIS spatial
types.
Fixed-length and variable-length records.
13
Statements and Functions
Full operator and function support in the SELECT and WHERE clauses of
queries. For example:
Full support for SQL GROUP BY and ORDER BY clauses. Support for
group functions (COUNT(), COUNT(DISTINCT ...), AVG(), STD(), SUM(),
MAX(), MIN(), and GROUP_CONCAT()).
Support for LEFT OUTER JOIN and RIGHT OUTER JOIN with both
standard SQL and ODBC syntax.
Support for aliases on tables and columns as required by standard SQL.
DELETE, INSERT, REPLACE, and UPDATE return the number of rows that
were changed (affected). It is possible to return the number of rows matched
instead by setting a flag when connecting to the server.
Security
A privilege and password system that is very flexible and secure, and that
allows host-based verification. Passwords are secure because all password
traffic is encrypted when you connect to a server.
Connectivity
Clients can connect to the MySQL server using TCP/IP sockets on any
platform. On Windows systems in the NT family (NT, 2000, XP, or 2003),
clients can connect using named pipes. On Unix systems, clients can connect
using Unix domain socket files.
14
In MySQL versions 4.1 and higher, Windows servers also support shared-
memory connections if started with the --shared-memory option. Clients can
connect through shared memory by using the --protocol=memory option.
The Connector/J interface provides MySQL support for Java client programs
that use JDBC connections. Clients can be run on Windows or Unix.
Connector/J source is available.
Localization
The server can provide error messages to clients in many languages.
Full support for several different character sets, including latin1 (ISO-8859-
1), german, big5, ujis, and more. For example, the Scandinavian characters
'', '' and '' are allowed in table and column names. Unicode support is
available as of MySQL 4.1.
All data is saved in the chosen character set. All comparisons for normal
string columns are case-insensitive.
15
4.SNAPSSHOTS
Public home
16
Add profile
17
Admin Login
18
User login
19
20
21
5. DATABASE SNAPSHOTS
1. ADMIN TABLE
22
2. CATEGORY TABLE
3. GALLERY TABLE
23
4. POST QUERY TABLE
24
6.USER TABLE
Coding
Admin login
<head>
<title>JSP Page</title>
<style>
body
background-image: url('bckimages/fcbec43be1.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
25
}
</style>
</head>
<body>
<table>
<tr>
</tr>
<tr>
<td>password</td>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
Public home:
<html>
26
<head>
<meta charset="UTF-8">
<style>
</style>
</head>
<body>
<div>
<jsp:include page="header.jsp"/>
</div>
<div>
</div>
<div class="carousel-caption">
<div class="col-sm-5">
</div>
<div class="col-sm-5">
27
<input class="form-control" style="width: 100%" type="text" name="age" id="age"
placeholder="age"/>
</div>
<div class="col-sm-5">
</div>
<div class="col-sm-5">
</div>
<div class="col-sm-2">
</div>
</div>
</div>
<hr class="featurette-divider">
<div class="row">
<div class="col-lg-4">
<h2>Deepika Sharma</h2>
28
<p>Hi..It was a great experience with Newleaf.com. It was very convenient to contact each
other through this site.Thanks NewLeaf.com to help us to find the love of our lives.</p>
<div class="col-lg-4">
<h2>Ashish</h2>
<p>I am pleased to inform NewLeaf.com that I've found my life partner on your platform. We
considered each other's profiles and thought to be a compatible match. Subsequently we got
married.</p>
<div class="col-lg-4">
<h2>Priya</h2>
<p>My parents were searching a guy for me since 5 years but couldn't get suitable match. They
searched everywhere in UP/Delhi/NCR. Then they registered in NewLeaf.com and started searching
my match</p>
<hr class="featurette-divider">
<div class="col-md-7">
29
<h2 class="featurette-heading">Aman & Anita<span class="text-muted"></span></h2>
<p class="lead">Its true that marriages are made in heaven and solemnised on earth but few
love stories need a wonderful connecting medium like NewLeaf.com. I signed up on NewLeaf.com
after being recommended by a friend...</p>
</div>
<div class="col-md-5">
</div>
</div>
<hr class="featurette-divider">
<p class="lead">Ours is an arranged marriage but I would not agree because I fell in love with
her with every day passing. Since the day(i.e. 4th March 2017) Raman accepted my interest on
NewLeaf.com my life changed.</p>
</div>
</div>
</div>
<hr class="featurette-divider">
<div class="col-md-7">
30
<h2 class="featurette-heading">Niren & Renu<span class="text-muted"></span></h2>
<p class="lead">I & Niren found the best for each other. He is Gujarati & I'm South Indian but
it doesn't seems like, as our preferences are just same. It was his eyes that made me fall for him & his
maturity.</p>
</div>
<div class="col-md-5">
</div>
</div>
<hr class="featurette-divider">
<footer>
<p>© 2017 Company, Inc. · <a href="#">About Us</a> · <a
href="#">Contact Us</a></p>
</footer>
</body>
</html>
Signup
<%@page import="java.sql.Statement"%>
31
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.DriverManager"%>
<%@page import="java.sql.Connection"%>
<%
String name=request.getParameter("uname");
String email=request.getParameter("uemail");
String password=request.getParameter("upass");
String numb=request.getParameter("unumber");
String secq=request.getParameter("uquestion");
String secans=request.getParameter("uanswer");
try
Class.forName("com.mysql.jdbc.Driver");
ResultSet rs;
if(i>0)
request.getSession().setAttribute("email", email);
response.sendRedirect("home.jsp");
32
}
else
response.sendRedirect("usersignup.jsp");
catch(Exception e)
e.printStackTrace();
UserSignup
<html>
<head>
<script>
function checkPassword()
33
return true;
} else
return false;
</script>
<style>
body
background-image: url('bckimages/mangl.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
</style>
</head>
<body>
<div class="container-fluid">
<div class="form-group">
34
<div class="col-sm-9">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
</div>
</div>
35
<div class="form-group">
<div class="col-sm-9">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
</div>
</div>
<div class="form-group">
<div class="col-sm-9">
</div>
</div>
<div class="form-group">
</div>
36
</div>
</form>
</div>
</div>
</body>
</html>
Header
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
function changeColor(div)
div.style.backgroundColor = "gray";
function revertColor(div)
div.style.backgroundColor = "black";
</script>
<h1
onclick="window.location.href = 'public_home.jsp'"
37
style="color: white; margin-left: 15px; margin-right: 15px; margin-top: 40px; display: inline-
block; float: left">NEW LEAF</h1>
<%
if (adminEmail != null)
%>
<div
style="float: left; background-color: black ; height: 80px; margin-right: 0px; padding: 15px"
onclick="window.location.href = 'home.jsp'"
onmousemove="changeColor(this)"
onmouseout="revertColor(this)">
</div>
<div
style="float: left; background-color: black ; height: 80px; margin-right: 0px; padding: 15px"
onclick="window.location.href = 'logout.jsp'"
onmousemove="changeColor(this)"
onmouseout="revertColor(this)">
</div>
<%
38
%>
if (userEmail == null)
%>
<div
style="float: right; background-color: black ; height: 80px; margin-right: 0px; padding: 15px"
onclick="window.location.href = 'userlogin.jsp'"
onmousemove="changeColor(this)"
onmouseout="revertColor(this)">
</div>
<div
style="float: right; background-color: black; height: 80px; margin-right: 0px; padding: 15px"
onclick="window.location.href = 'AddProfile.jsp'"
onmousemove="changeColor(this)"
onmouseout="revertColor(this)"
</div>
<%
} else
%>
<div
39
style="float: right; background-color: black ; height: 80px; margin-right: 0px; padding: 15px"
onclick="window.location.href = 'ulogout.jsp'"
onmousemove="changeColor(this)"
onmouseout="revertColor(this)">
</div>
<div
onmousemove="changeColor(this)"
onmouseout="revertColor(this)"
style="float: right; background-color: black; height: 80px; margin-right: 0px; padding: 15px"
onclick="window.location.href = 'myhome.jsp'">
<h3 style="color: white; margin-top: 35px; color: white; display: inline-block">My Home</h3>
</div>
<%
%>
</div>
40
BIBLIOGRAPHY
BOOKS REFERRED:
JAVA SE 7 by Oracle
Java : The Complete Reference by Herbert Schildt
Java 8: The Fundamentals by Dane Cameron.
WEBSITES REFERRED:
www.w3schools.com
www.ListOfCountries.net
https://maps.google.co.in/
http://stackoverflow.com/questions/
https://en.wikipedia.org/wiki/MySQL
https://en.wikipedia.org/wiki/MySQL_Workbench
www.real-estate-management-system.nic.in
www.project-management-basics.com
41