Professional Documents
Culture Documents
Job Portal Code
Job Portal Code
Job Portal Code
30
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: info@url.cz" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail:
vit.dlouhy@nuvio.cz" />
<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: info@url.cz" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-
mail: vit.dlouhy@nuvio.cz" />
<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: info@url.cz" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-
mail: vit.dlouhy@nuvio.cz" />
<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