Project - Report
Project - Report
Himanshu
Abhijeet
kshitiz
ACKNOWLEDGEMENT
This project has been designed by our great effort and with the help and guidance of
our great helpful teacher Mr. K.K. Khatri Head of Department ,Department Of Computer
We express our heartiest thankfulness to Mr. Rakesh Sir, Mr. Ganesh Sir and Mr.
Sanjay Sir Without him; we could not complete our project with this progress. Whenever we
felt problems in the project, he stepped down to our level and listened patiently to our
problems and then solved them. He has given us his full support, help and his most valuable
time.
CERTIFICATE
This is certified that this project entitled “Online Job portal” submitted in partial
fulfillment of the degree of BCA to the Maharaja Ganga Singh University Through done by
Himanshu ,Kshitiz and Abhijeet is an authentic work carried out by them at computer lab
under my guidance. The matter embodied in this project work has not been submitted earlier
for award of any degree or diploma to the best of my knowledge and belief.
SELF CERTIFICATE
This is certified that the dissertation/project report entitled “Online Job portal” is done by
us in an authentic work carried out for the partial fulfillment of the requirements for the
award of the degree of BCA under the guidance of Mr. Ankur sir and Department faculty
members. The matter embodied in this project work has not been submitted earlier for
award of any degree or diploma to the best of our knowledge and belief.
Table of Contents
o Introduction
o About php
o php file
o Scope
o References
o Technologies
o Overview
o Overall Description
o Product Perspective
o Software Interface
o Hardware Interface
o Communication Interface
o Product Functions
o User Characteristics
o Code files
o Design layout
o Supplementary Requirements:
1. Introduction
PHP is a powerful tool for making dynamic and interactive Web pages.
PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.
In our PHP tutorial you will learn about PHP, and how to execute scripts on your server.
What is PHP?
PHP stands for PHP: Hypertext Preprocessor
PHP is a server-side scripting language, like ASP
PHP scripts are executed on the server
PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, Postures,
Generic ODBC, etc.)
PHP is an open source software
PHP is free to download and use
What is MySQL?
MySQL is a database server
MySQL is ideal for both small and large applications
MySQL supports standard SQL
MySQL compiles on a number of platforms
MySQL is free to download and use
PHP + MySQL
PHP combined with MySQL are cross-platform (you can develop in Windows and
serve on a Unix platform)
Why PHP?
PHP runs on different platforms (Windows, Linux, Unix, etc.)
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
PHP is FREE to download from the official PHP
PHP is easy to learn and runs efficiently on the server side
Just create some .php files in your web directory, and the server will parse them for you. Because
it is free, most web hosts offer PHP support.
CSS: CSS stands for Cascading Style Sheets. Styles define how to display HTML
elements. Styles were added to HTML 4.0 to solve a problem. External Style
Sheets can save a lot of work. External Style Sheets are stored in CSS files.
XAMPP
XAMPP is an abbreviation where X stands for Cross-Platform, A stands for Apache, M stands
for MYSQL, and the Ps stand for PHP and Perl, respectively. It is an open-source package of
web solutions that includes Apache distribution for many servers and command-line executables
along with modules such as Apache server, MariaDB, PHP, and Perl.
XAMPP helps a local host or server to test its website and clients via computers and laptops
before releasing it to the main server. It is a platform that furnishes a suitable environment to test
and verify the working of projects based on Apache, Perl, MySQL database, and PHP through
the system of the host itself.
Many other components are also part of this collection of software and are explained below.
9. Webalizer: It is a Web Analytics software solution used for User logs and provide details
about the usage.
10. Mercury: It is a mail transport system, and its latest version is 4.62. It is a mail server,
which helps to manage the mails across the web.
11. Tomcat: Version 7.0.42 is currently being used in XAMPP. It is a servlet based on
JAVA to provide JAVA functionalities.
12. Filezilla: It is a File Transfer Protocol Server, which supports and eases the transfer
operations performed on files. Its recently updated version is 0.9.41.
Database
MySQL is a Relational Database Management System (RDBMS) software that provides many
things, which are as follows:
MySQL is an open-source database, so you don't have to pay a single penny to use it.
MySQL is a very powerful program that can handle a large set of functionality of the
most expensive and powerful database packages.
MySQL is customizable because it is an open-source database, and the open-source GPL
license facilitates programmers to modify the SQL software according to their own
specific environment.
MySQL is quicker than other databases, so it can work well even with the large data set.
MySQL supports many operating systems with many languages like PHP, PERL, C,
C++, JAVA, etc.
MySQL uses a standard form of the well-known SQL data language.
MySQL is very friendly with PHP, the most popular language for web development.
1.1. Technologies
1.2. Overview
2. Overall Description
The software requires certain tables to be present already as a prerequisite. Tables like the
rank list of entrance LOGIN are presumed to be already present and are accessible by the
system. Each actor in the system has a role and has a set of permissions defined for him. These
permissions specify the access privileges of the user. The user are required to have internet
connection for filling up application forms.
The WebPages are presented to provide a user interface to the customers who want to
set a carrier with company .
Communication between the client and server is provided through HTTP/HTTPS
protocols.
Client software is provided with privileges and restrictions to the actors.
The administrator is provided with a client so that he can create and manage every
actor in the system.
The server communicates to external databases via internet
External
Databases
(SQL
format)
USER
Internet
Internet
WEB
BROWSER APPCHE
HTTP/HTTPS Application PHP
Server
Intranet
System Users
Sl No
1 Client on the Internet Web browser, Operating System(Any)
2 Client on the Internet Web Browser, Operating System(any)
3 Application Server WA, Operating System(Any)
4 Database Server Appche , Operating System(Any)
5 Development Dreamweaver, notepad, internet
Environment explorer, database scheme adviser.
All users of the system are expected to have basic knowledge of using a computer as well
as using the internet.
2.6. Constraints
i. Administrator
Code in project
In various file in our project in which
DFD
ER diagram:
Database
DESIGN :-
Code :
Index :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="cs" />
<meta name="robots" content="all,follow" />
<meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: [email protected]" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail:
[email protected]" />
<title>JOB PORTAL</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />
.style2 {
font-size: medium;
font-weight: bold;
}
-->
</style>
</head>
<body id="www-url-cz">
<!-- Main -->
<div id="main" class="box">
<?php
include "Header.php"
?>
<?php
include "menu.php"
?>
<!-- Page (2 columns) -->
<div id="page" class="box">
<div id="page-in" class="box">
<p> <span class="style2">W</span>elcome to online Job Portal. It provides facility to the Job
Seeker to search for various jobs as per his qualification. Here Job Seeker can registered himself on the
web portal and create his profile along with his educational information. Job Seeker can search various
jobs and apply for the Job.</p>
<p>This Portal is also designed for the various employer who required to recruit employees in
their organization. Employer can registered himself on the web portal and then he can upload
information of various job vacancies in their organization. Employeer can view the applications of Job
Seeker and send call latter to the job seekers.</p>
<p align="right"> <img src="design/banner2.jpg" alt="" width="431" height="117" /></p>
<p class="btn-more box noprint"> </p>
</div> <!-- /article -->
<?php
include "right.php"
?>
<?php
include "footer.php"
?>
</div> <!-- /main -->
</body>
</html>
Login :
<body>
<?php
if($_POST)
{
session_start();
$UserName=$_POST['txtUser'];
$Password=$_POST['txtPass'];
$con = mysqli_connect("localhost","root","","job");
$sql = "select * from user_master where UserName='".$UserName."' and
Password='".$Password."'";
$query = $con->query($sql);
$result = $query->fetch_all(MYSQLI_ASSOC);
if(count($result)){
$result = $result[0];
$_SESSION['UserId'] = $result['UserId'];
}
header("location:index.php");
// $con = mysqli_connect("localhost","root","","job");
// $sql = "select * from user_master where UserName='".$UserName."' and
Password='".$Password."'";
ONLINE Job Portal
MGSU
35
// // Execute query
// $query = $con->query($sql);
// $records = mysqli_num_rows($result);
// $row = mysqli_fetch_array($result);
// if ($records==0)
// {
// echo '<script type="text/javascript">alert("Wrong UserName or
Password");window.location=\'index.php\';</script>';
// }
// else
// {
// header("location:Admin/index.php");
// }
// mysqli_close($con);
// }
// else if($UserType=="JobSeeker")
// {
// $con = mysqli_connect("localhost","root");
// mysqli_select_db("job", $con);
// $sql = "select * from jobseeker_reg where UserName='".$UserName."' and
Password='".$Password."' and Status='Confirm'";
// $result = mysqli_query($sql,$con);
// $records = mysqli_num_rows($result);
// $row = mysqli_fetch_array($result);
// if ($records==0)
// {
// echo '<script type="text/javascript">alert("Wrong UserName or
Password");window.location=\'index.php\';</script>';
// }
ONLINE Job Portal
MGSU
36
// else
// {
// $_SESSION['ID']=$row['JobSeekId'];
// $_SESSION['Name']=$row['JobSeekerName'];
// header("location:JobSeeker/index.php");
// }
// mysqli_close($con);
// }
// else
// {
// $con = mysqli_connect("localhost","root");
// mysqli_select_db("job", $con);
// $sql = "select * from employer_reg where UserName='".$UserName."' and
Password='".$Password."' and Status='Confirm'";
// $result = mysqli_query($sql,$con);
// $records = mysqli_num_rows($result);
// $row = mysqli_fetch_array($result);
// if ($records==0)
// {
// echo '<script type="text/javascript">alert("Wrong UserName or
Password");window.location=\'index.php\';</script>';
// }
// else
// {
// $_SESSION['ID']=$row['EmployerId'];
// $_SESSION['Name']=$row['CompanyName'];
// header("location:Employer/index.php");
// }
mysqli_close($con);
}
ONLINE Job Portal
MGSU
37
?>
</body>
</html>
Logout
<?php
session_start();
session_destroy();
header("location:index.php");
exit();
?>
Registration :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="cs" />
<meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: [email protected]" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-
mail: [email protected]" />
<title>Job Portal</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />
<body id="www-url-cz">
<SCRIPT language="JavaScript1.2" src="gen_validation.js"></SCRIPT>
<SCRIPT language="JavaScript1.2">
var arrFormValidation=
ONLINE Job Portal
MGSU
39
[
[//Name
["minlen=1",
"Please Enter Company Name"
]
],
[//Contact Person
["minlen=1",
"Please Enter Contact Person"
]
],
[//Address
["minlen=1",
"Please Enter Address"
]
],
[//City
["minlen=1",
"Please Enter City"
]
],
[//Email
["minlen=1",
"Please Enter Email "
],
ONLINE Job Portal
MGSU
40
["email",
"Please Enter valid email "
]
],
[//Mobile
["num",
"Please Enter valid Mobile "
],
["minlen=10",
"Please Enter valid Mobile "
]
],
[//Area
["minlen=1",
"Please Enter Area of Work"
]
],
[//User
["minlen=1",
"Please Enter UserName "
]
],
[//Password
["minlen=1",
ONLINE Job Portal
MGSU
41
],
[//Que
],
[//Answer
["minlen=1",
"Please Enter Answer "
]
];
</SCRIPT>
<!-- Main -->
<div id="main" class="box">
<?php
include "Header.php"
?>
<?php
include "menu.php"
?>
<!-- Page (2 columns) -->
<div id="page" class="box">
<div id="page-in" class="box">
ONLINE Job Portal
MGSU
42
<tr>
<td>Contact Person:</td>
<td><span id="sprytextfield8">
<label>
<input type="text" name="txtPerson" id="txtPerson" />
</label>
<span class="textfieldRequiredMsg">Enter Contact Person</span></span></td>
</tr>
<tr>
<td>Address:</td>
<td><span id="sprytextarea1">
<label>
ONLINE Job Portal
MGSU
44
<td><span id="sprytextfield7">
<input type="text" name="txtAreaWork" id="txtAreaWork" />
<span class="textfieldRequiredMsg">Enter Area of Work</span></span></td>
</tr>
<tr>
<td>User Name:</td>
<td><span id="sprytextfield9">
<label>
<input type="text" name="txtUserName" id="txtUserName" />
</label>
<span class="textfieldRequiredMsg">Enter User Name</span></span></td>
</tr>
<tr>
<td>Password:</td>
<td><label><span id="sprytextfield10">
<input type="password" name="txtPassword" id="txtPassword" />
<span class="textfieldRequiredMsg">Enter
Password</span></span></label></td>
</tr>
<tr>
<td>Security Question:</td>
<td><select name="cmbQue" id="cmbQue">
<option>What is Your Pet Name?</option>
<option selected="selected">Who is Your Favourite Person?</option>
<option>What is the Name of Your First School?</option>
</select></td>
</tr>
<tr>
<td>Answer:</td>
<td><span id="sprytextfield11">
ONLINE Job Portal
MGSU
46
<label>
<input type="text" name="txtAnswer" id="txtAnswer" />
</label>
<span class="textfieldRequiredMsg">Enter Answer.</span></span></td>
</tr>
<tr>
<td colspan="2"><label>
<div align="center">
<input type="submit" name="button2" id="button2" value="Submit" />
</div>
</label></td>
</tr>
</table>
</form>
</div>
<p> </p>
<?php
include "right.php"
?>
<?php
include "footer.php"
?>
</div> <!-- /main -->
<script type="text/javascript">
<!--
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1");
var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8");
var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9");
var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10");
var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11");
//-->
</script>
</body>
</html>
Career:
<meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: [email protected]" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-
mail: [email protected]" />
<title>Upload Resume</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />
<body id="www-url-cz">
<?php
include "Header.php"
?>
<?php
include "menu.php"
?>
<?php
$status = '';
if($_POST){
$con = mysqli_connect("localhost","root","","job");
if(isset($_FILES['resume'])){
$errors= array();
$file_name = $_FILES['resume']['name'];
$file_tmp =$_FILES['resume']['tmp_name'];
$file_ext= pathinfo($file_name, PATHINFO_EXTENSION);
$extensions= array("jpeg","jpg","png","pdf","doc");
if(in_array($file_ext,$extensions)=== false){
$errors[]="extension not allowed, please choose a JPEG or PNG file.";
}
if(empty($errors)==true){
$resume = time().'.'.$file_ext;
move_uploaded_file($file_tmp,"resume/".$resume);
('".$_POST['name']."','".$_POST['address']."','".$_POST['city']."','".$_POST['email']."','".$_POS
T['mobile']."','".$_POST['qualification']."','".$_POST['gender']."','".$_POST['dob']."','".$resume."
','pending','N/A','N/A','N/A','N/A')";
?>
<!-- Page (2 columns) -->
<div id="page" class="box">
<div id="page-in" class="box">
<tr>
<td>Email:</td>
<td>
<label>
<input type="email" name="email" required/>
</label>
</tr>
<tr>
<td>Mobile:</td>
<td>
<label>
<input type="text" name="mobile" required/>
</label>
</tr>
<tr>
<tr>
<td>Address:</td>
<td>
<label>
<textarea name="address" required cols="45" rows="5"></textarea>
</label>
ONLINE Job Portal
MGSU
53
</tr>
<tr>
<td>City:</td>
<td>
<label>
<input type="text" name="city" required />
</label>
</tr>
<tr>
<td>Qualification:</td>
<td>
<label>
<select name="qualification" required>
<option>B.A</option>
<option>M.A</option>
<option>BCA</option>
<option>MCA</option>
<option>BCS</option>
<option>MSC</option>
</select>
</label>
</tr>
<tr>
<td>Gender:</td>
<td>
<label>Male</label>
<input type="radio" checked name="gender" value="male"/>
<label>FeMale</label>
<input type="radio" name="gender" value="female"/>
</tr>
ONLINE Job Portal
MGSU
54
<tr>
<td>Dob:</td>
<td>
<label>
<input type="date" name="dob" id="dob" required />
</label>
</tr>
<tr>
<td>Resume:</td>
<td>
<label>
<input type="file" name="resume" required/>
</label>
</tr>
<tr>
<td colspan="2"><label>
<div align="center">
<input type="submit" name="button2" id="button2" value="Submit" />
</div>
</label></td>
</tr>
</table>
</form>
</div>
<p> </p>
<?php
include "right.php"
?>
<?php
include "footer.php"
?>
</div> <!-- /main -->
</body>
</html>
Reference :
1. https://www.codecademy.com/catalog/language/php
2. https://www.tutorialspoint.com/php/index.htm
3. https://www.javatpoint.com/php-tutorial
4. https://www.php.net/manual/en/tutorial.php
5. https://projectworlds.in/free-projects/php-projects/
6. https://phpgurukul.com/php-projects-free-downloads/
7. https://code-projects.org/c/languages/project/phpprojects/
8. https://www.studentstutorial.com/php/php-introduction