0% found this document useful (0 votes)
85 views32 pages

Project Sarthak

This document contains HTML and PHP code for a job portal website. It includes code for website headers, menus, pages and articles. There is PHP code to include separate files for headers, menus, etc. Articles describe the purpose of the site for job seekers and employers. Code is also shown to register employers by inserting their details into a database table.

Uploaded by

Sarthak Sain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
85 views32 pages

Project Sarthak

This document contains HTML and PHP code for a job portal website. It includes code for website headers, menus, pages and articles. There is PHP code to include separate files for headers, menus, etc. Articles describe the purpose of the site for job seekers and employers. Code is also shown to register employers by inserting their details into a database table.

Uploaded by

Sarthak Sain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

CODING:

<!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" />

<title>JOB PORTAL BY JITESH</title>


<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="Home" />


<link rel="stylesheet" media="screen,projection" type="text/css"
href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css"
href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css"
href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
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">

<div id="strip" class="box noprint">


<!-- RSS feeds -->
<hr class="noscreen" />

<!-- Breadcrumbs -->


<p id="breadcrumbs">&nbsp;</p>
<hr class="noscreen" />

</div> <!-- /strip -->

<!-- Content -->


<div id="content">

<!-- /article -->

<hr class="noscreen" />

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->


<div class="article">
<h2><span><a href="#">About Us</a></span></h2>

<p>Welcome 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><b><b>

<p class="btn-more box noprint">&nbsp;</p>


</div> <!-- /article -->
<hr class="noscreen" />

</div> <!-- /content -->

<?php
include "right.php"
?>

</div> <!-- /page-in -->


</div> <!-- /page -->

<?php
include "footer.php"
?>
</div> <!-- /main -->

</body>
</html>

<!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" />

<title>JOB-PORTAL BY JITESH</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="Home" />


<link rel="stylesheet" media="screen,projection" type="text/css"
href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css"
href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css"
href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
font-weight: bold;
}
-->
</style>
<script src="SpryAssets/SpryValidationTextarea.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet"
type="text/css" />
</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">

<div id="strip" class="box noprint">

<!-- RSS feeds -->


<hr class="noscreen" />

<!-- Breadcrumbs -->


<p id="breadcrumbs">&nbsp;</p>
<hr class="noscreen" />

</div> <!-- /strip -->

<!-- Content -->


<div id="content">

<!-- /article -->

<hr class="noscreen" />

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->

<!-- /article -->


<hr class="noscreen" />

<!-- Article -->


<div class="article">
<h2><span><a href="#">Contact Us</a></span></h2>

<table width="100%" border="0" cellspacing="0"


cellpadding="0">
<tr>
<td width="6%"><img src="design/ico_archive2.gif" alt=""
width="9" height="11" /></td>
<td width="94%"><strong>jobportal.com<br/>
MG road,<br/>
Bangalore, India<br/>
Pincode:560086</strong></td>
</tr>
<tr>
<td><img src="design/ico_archive2.gif" alt="" width="9"
height="11" /></td>
<td><strong>Office No:52061<b>
Mobile: +917982348094
</strong></td>

</tr>
<tr>
<td><img src="design/ico_archive2.gif" alt="" width="9"
height="11" /></td>
<td><strong>Email:jobportal.com</strong></td>
</tr>
<tr>
<td><img src="design/ico_archive2.gif" alt="" width="9"
height="11" /></td>
<td><strong>Website:jobportal.com</strong></td>
</tr>

</table>
<p><img src="#" alt="" width="500" height="300" /></p>

<p>&nbsp;</p>

<p class="btn-more box noprint">&nbsp;</p>


</div> <!-- /article -->

<hr class="noscreen" />

</div> <!-- /content -->


<?php
include "right.php"
?>

</div> <!-- /page-in -->


</div> <!-- /page -->

<?php
include "footer.php"
?>
</div> <!-- /main -->

</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php

$CompnayName=$_POST['txtName'];
$ContactPerson=$_POST['txtPerson'];
$Address=$_POST['txtAddress'];
$City=$_POST['txtCity'];
$Email=$_POST['txtEmail'];
$Mobile=$_POST['txtMobile'];
$Area=$_POST['txtAreaWork'];
$Status="Pending";
$UserName=$_POST['txtUserName'];
$Password=$_POST['txtPassword'];
$UserType="Employer";
$Question=$_POST['cmbQue'];
$Answer=$_POST['txtAnswer'];
// Establish Connection with MYSQL
$con = mysqli_connect ("localhost","root","","job");

// Specify the query to Insert Record


$sql = "insert into
employer_reg(CompanyName,ContactPerson,Address,City,Email,Mobile,Area_Work,Sta
tus,UserName,Password,Question,Answer)
values('".$CompnayName."','".$ContactPerson."','".$Address."','".$City."','".$
Email."',".$Mobile.",'".$Area."','".$Status."','".$UserName."','".$Password."'
,'".$Question."','".$Answer."')";
// execute query

mysqli_query ($con,$sql);
// Close The Connection
mysqli_close ($con);

echo '<script type="text/javascript">alert("Registration Completed


Succesfully");window.location=\'index.php\';</script>';

?>
</body>
</html>

<!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" />

<title>JOB PORTAL BY JITESH</title>


<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="Home" />


<link rel="stylesheet" media="screen,projection" type="text/css"
href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css"
href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css"
href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
font-weight: bold;
}
.style2 {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">

<div id="strip" class="box noprint">

<!-- RSS feeds -->


<hr class="noscreen" />

<!-- Breadcrumbs -->


<p id="breadcrumbs">&nbsp;</p>
<hr class="noscreen" />

</div>

<!-- Content -->


<div id="content">

<hr class="noscreen" />

<!-- /article -->

<hr class="noscreen" />

<hr class="noscreen" />

<!-- Article -->


<div class="article">
<h2><span><a href="#">Our Employers</a></span></h2>

<p>
<table width="100%" border="1" cellpadding="1" cellspacing="2"
bordercolor="#006699" >
<tr>
<th height="32" bgcolor="#006699" class="style3"><div align="left"
class="style9 style5 style2"><strong>Company Name</strong></div></th>
<th bgcolor="#006699" class="style3"><div align="left" class="style9 style5
style2"><strong>Contact Person</strong></div></th>
<th bgcolor="#006699" class="style3"><div align="left" class="style9 style5
style2"><strong>Email</strong></div></th>
</tr>
<?php
// Establish Connection with Database
$con = mysqli_connect("localhost","root","","job");

// Specify the query to execute


$sql = "select * from employer_reg where Status='Confirm'";
// Execute query
$result = mysqli_query($con,$sql);
// Loop through each records
//var_dump($result);
while($row = mysqli_fetch_array($result))
{
$CompanyName=$row['CompanyName'];
$ContactPerson=$row['ContactPerson'];
$Email=$row['Email'];

?>
<tr>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo
$CompanyName;?></strong></div></td>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo
$ContactPerson;?></strong></div></td>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo
$Email;?></strong></div></td>
</tr>
<?php
}
// Retrieve Number of records returned
$records = mysqli_num_rows($result);
?>

<?php
// Close the connection
mysqli_close($con);
?>
</table>
</td>
</tr>
</table>
</p>

<div align="center"><a href="EmployerReg.php"><strong>New


Employer? Register Here</strong></a>
</div>
<p class="btn-more box noprint">&nbsp;</p>
</div> <!-- /article -->

<hr class="noscreen" />

</div> <!-- /content -->

<?php
include "right.php"
?>

</div> <!-- /page-in -->


</div> <!-- /page -->

<?php
include "footer.php"
?>
</div> <!-- /main -->

</body>
</html>

<!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" />

<title>JOB PORTAL BY JITESH</title>


<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="Home" />


<link rel="stylesheet" media="screen,projection" type="text/css"
href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css"
href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css"
href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
font-weight: bold;
}
-->
</style>
<script src="SpryAssets/SpryValidationTextarea.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet"
type="text/css" />
</head>

<body id="www-url-cz">
<SCRIPT language="JavaScript1.2" src="gen_validation.js"></SCRIPT>
<SCRIPT language="JavaScript1.2">
var arrFormValidation=
[
[//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 "
],
["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",
"Please Enter Password "
]

],
[//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">

<div id="strip" class="box noprint">

<!-- RSS feeds -->


<hr class="noscreen" />

<!-- Breadcrumbs -->


<p id="breadcrumbs">&nbsp;</p>
<hr class="noscreen" />

</div> <!-- /strip -->

<!-- Content -->


<div id="content">

<!-- /article -->

<hr class="noscreen" />

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->


<div class="article">
<h2><span><a href="#">Employer Registration
Form</a></span></h2>
<div class="login">
<form action="EmployeInsert.php" method="post"
onSubmit="return validateForm(this,arrFormValidation);"
enctype="multipart/form-data" id="form2">
<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td>Company Name:</td>
<td><span id="sprytextfield3">
<label>
<input type="text" name="txtName" id="txtName" />
</label>
<span class="textfieldRequiredMsg">Enter
Name</span></span></td>
</tr>

<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>
<textarea name="txtAddress" id="txtAddress" cols="45"
rows="5"></textarea>
</label>
<span class="textareaRequiredMsg">Enter
Address</span></span></td>
</tr>
<tr>
<td>City:</td>
<td><span id="sprytextfield4">
<label>
<input type="text" name="txtCity" id="txtCity" />
</label>
<span class="textfieldRequiredMsg">Enter
City</span></span></td>
</tr>
<tr>
<td>Email:</td>
<td><span id="sprytextfield5">
<label>
<input type="text" name="txtEmail" id="txtEmail" />
</label>
<span class="textfieldRequiredMsg">Enter
Email</span></span></td>
</tr>
<tr>
<td>Mobile:</td>
<td><span id="sprytextfield6">
<label>
<input type="text" name="txtMobile" id="txtMobile" />
</label>
<span class="textfieldRequiredMsg">Enter
Mobile</span></span></td>
</tr>
<tr>
<td>Area of Work: </td>
<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></t
d>
</tr>
<tr>
<td>Answer:</td>
<td><span id="sprytextfield11">
<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>&nbsp;</p>

<p class="btn-more box noprint">&nbsp;</p>


</div> <!-- /article -->

<hr class="noscreen" />

</div> <!-- /content -->

<?php
include "right.php"
?>

</div> <!-- /page-in -->


</div> <!-- /page -->

<?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>

<?xml version="1.0"?>
<!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" />

<title>JOB PORTAL BY JITESH</title>


<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="Home" />


<link rel="stylesheet" media="screen,projection" type="text/css"
href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css"
href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css"
href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
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">

<div id="strip" class="box noprint">

<!-- RSS feeds -->


<hr class="noscreen" />

<!-- Breadcrumbs -->


<p id="breadcrumbs">You are here: <a href="index.php">Home</a></p>
<hr class="noscreen" />

</div> <!-- /strip -->

<!-- Content -->


<div id="content">

<!-- /article -->

<hr class="noscreen" />

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->


<div class="article">
<h2><span><a href="#">Welcome To JOB PORTAL</a></span></h2>

<form id="form2" method="post" action="ForPass.php">


<table width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td align="left" valign="middle">Select User:</td>
<td><p>
<label>
<input type="radio" name="rdUser" value="Employer"
id="rdUser_0" />
Employer</label>
<br />
<label>
<input type="radio" name="rdUser" value="JobSeeker"
id="rdUser_1" />
JobSeeker</label>
<br />
</p></td>
</tr>
<tr>
<td>User Name:</td>
<td><span id="sprytextfield3">
<label>
<input type="text" name="txtUserName" id="txtUserName"
/>
</label>
<span class="textfieldRequiredMsg">A value is
required.</span></span></td>
</tr>
<tr>
<td>Security Question:</td>
<td><select name="cmbQue" id="cmbQue">
<option selected="selected">What is Your Pet
Name?</option>
<option>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="sprytextfield4">
<label>
<input type="text" name="txtAnswer" id="txtAnswer" />
</label>
<span class="textfieldRequiredMsg">A value is
required.</span></span></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><label>
<input type="submit" name="button2" id="button2"
value="Submit" />
</label></td>
</tr>
</table>
</form>
<p>&nbsp;</p>
<p class="btn-more box noprint">&nbsp;</p>
</div> <!-- /article -->

<hr class="noscreen" />

</div> <!-- /content -->

<?php
include "right.php"
?>

</div> <!-- /page-in -->


</div> <!-- /page -->

<?php
include "footer.php"
?>
</div> <!-- /main -->

<script type="text/javascript">
<!--
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
//-->
</script>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php

$Name=$_POST['txtName'];
$Address=$_POST['txtAddress'];
$City=$_POST['txtCity'];
$Email=$_POST['txtEmail'];
$Mobile=$_POST['txtMobile'];
$Qualification=$_POST['txtQualification'];
$Gender=$_POST['cmbGender'];
$BirthDate=$_POST['txtBirthDate'];
$path1 = $_FILES["txtFile"]["name"];
$Status="Pending";
$UserName=$_POST['txtUserName'];
$Password=$_POST['txtPassword'];
$Question=$_POST['cmbQue'];
$Answer=$_POST['txtAnswer'];
$UserType="JobSeeker";
if ($Qualification=="Other")
{
$Qualification=$_POST['txtOther'];
}
// move_uploaded_file($_FILES["txtFile"]["tmp_name"],"upload/" .$_FILES
["txtFile"]["name"]);
// Establish Connection with MYSQL
$con = mysqli_connect ("localhost","root","","job");
// Select Database mysql_select_db("job", $con);
// Specify the query to Insert Record
// $sql = "insert into
jobSeeker_reg(JobSeekerName,Address,City,Email,Mobile,Qualification,Gender,Bir
thDate,Resume,Status,UserName,Password,Question,Answer) values(
//'".$Name."','".$Address."','".$City."','".$Email."',".$Mobile.",'".$Qualific
ation."','".$Gender."',
//'".$BirthDate."','".$path1."','".$Status."','".$UserName."','".$Password."',
'".$Question."','".$Answer."')";

$sql="insert into
jobseeker_reg(JobSeekerName,Address,City,Email,Mobile,Qualification,Gender,Bir
thDate,Status,UserName,Password,Question,Answer) VALUES (
'$Name','$Address','$City','$Email','$Mobile','$Qualification','$Gender','$Bir
thDate','$Status','$UserName','$Password','$Question','$Answer'

)";
// execute query

// var_dump($sql);
if(mysqli_query ($con,$sql)){

echo '<script type="text/javascript">alert("Registration Completed


Succesfully");window.location=\'index.php\';</script>';
}
mysqli_close ($con);

// Close The Connection

?>
</body>
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
session_start();
$UserName=$_POST['txtUser'];
$Password=$_POST['txtPass'];
$UserType=$_POST['cmbUser'];
if($UserType=="Administrator")
{
$con = mysqli_connect("localhost","root","","job");

$sql = "select * from user_master where UserName='".$UserName."' and


Password='".$Password."'";
$result = mysqli_query($con,$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
{
$_SESSION['$UserName']=$UserName;
header("location:Admin/index.php");
}
mysqli_close($con);
}
else if($UserType=="JobSeeker")
{
$con = mysqli_connect("localhost","root","","job");
$sql = "select * from jobseeker_reg where UserName='".$UserName."' and
Password='".$Password."' and Status='Confirm'";
$result = mysqli_query($con,$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
{
$_SESSION['ID']=$row['JobSeekId'];
$_SESSION['Name']=$row['JobSeekerName'];
$_SESSION['$UserName_job']=$UserName;
header("location:JobSeeker/index.php");
}
mysqli_close($con);
}
else
{
$con = mysqli_connect("localhost","root","","job");
$sql = "select * from employer_reg where UserName='".$UserName."' and
Password='".$Password."' and Status='Confirm'";
$result = mysqli_query($con,$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
{
$_SESSION['ID']=$row['EmployerId'];
$_SESSION['Name']=$row['CompanyName'];
$_SESSION['$UserName_emp']=$UserName;
header("location:Employer/index.php");
}
mysqli_close($con);
}
?>

</body>
</html>

<html>
<frameset rows="25%,*">
<frame src="top.html" name="top" scrolling="no"
frameborder="0"></frame>
<frameset cols="255,75%">
<frame src="left.html" name="left" scrolling="no"
frameborder="0"></frame>
<frame src="right.html" name="right" scrolling="auto"
frameborder="0"></frame>
</frameset>
</frameset>
</html>

<!-- Main menu (tabs) -->


<div id="tabs" class="noprint">

<h3 class="noscreen">Navigation</h3>
<ul class="box">
<li><a href="index.php">Home<span class="tab-l"></span><span
class="tab-r"></span></a></li>
<li><a href="AboutUs.php">About Us<span class="tab-
l"></span><span class="tab-r"></span></a></li>
<li><a href="Employer.php">Employer<span class="tab-
l"></span><span class="tab-r"></span></a></li>
<li><a href="JobSeeker.php">Job Seeker<span class="tab-
l"></span><span class="tab-r"></span></a></li>
<li><a href="News.php">Latest News<span class="tab-
l"></span><span class="tab-r"></span></a></li>
<li><a href="ContactUs.php">Contact Us<span class="tab-
l"></span><span class="tab-r"></span></a></li>
</ul>

<hr class="noscreen" />


</div> <!-- /tabs -->

<!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" />

<title>JOB PORTAL</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="Home" />


<link rel="stylesheet" media="screen,projection" type="text/css"
href="./css/main.css" />
<link rel="stylesheet" media="print" type="text/css"
href="./css/print.css" />
<link rel="stylesheet" media="aural" type="text/css"
href="./css/aural.css" />
<style type="text/css">
<!--
.style1 {
color: #000066;
font-weight: bold;
}
.style2 {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">

<div id="strip" class="box noprint">

<!-- RSS feeds -->


<hr class="noscreen" />

<!-- Breadcrumbs -->


<p id="breadcrumbs">&nbsp;</p>
<hr class="noscreen" />

</div> <!-- /strip -->

<!-- Content -->


<div id="content">

<!-- /article -->

<hr class="noscreen" />


<!-- /article -->

<hr class="noscreen" />

<!-- Article -->

<!-- /article -->

<hr class="noscreen" />

<!-- Article -->


<div class="article">
<h2><span><a href="#">Latest News</a></span></h2>

<p>
<table width="100%" border="1" cellpadding="1" cellspacing="2"
bordercolor="#006699" >
<tr>
<th bgcolor="#006699" class="style3">&nbsp;</th>
<th height="32" bgcolor="#006699" class="style3"><div align="left"
class="style9 style5 style2"><strong>News</strong></div></th>
<th bgcolor="#006699" class="style3"><div align="left" class="style9 style5
style2"><strong>News Date</strong></div></th>
</tr>
<?php
// Establish Connection with Database
$con = mysqli_connect("localhost","root","","job");
// Select Database

// Specify the query to execute


$sql = "select * from news_master";
// Execute query
$result = mysqli_query($con,$sql) or die( mysqli_error($con));
// Loop through each records
while($row = mysqli_fetch_array($result))
{
$News=$row['News'];
$NewsDate=$row['NewsDate'];

?>
<tr>
<td class="style3"><img src="design/ico_archive2.gif" alt="" width="9"
height="11" /></td>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo
$News;?></strong></div></td>
<td class="style3"><div align="left" class="style9 style5"><strong><?php echo
$NewsDate;?></strong></div></td>
</tr>
<?php
}
// Retrieve Number of records returned
$records = mysqli_num_rows($result);
?>

<?php
// Close the connection
mysqli_close($con);
?>
</table>
</td>
</tr>
</table>
</p>
<p class="btn-more box noprint">&nbsp;</p>
</div> <!-- /article -->

<hr class="noscreen" />

</div> <!-- /content -->

<?php
include "right.php"
?>

</div> <!-- /page-in -->


</div> <!-- /page -->

<?php
include "footer.php"
?>
</div> <!-- /main -->

</body>
</html>

<!-- Right column -->


<script src="SpryAssets/SpryValidationTextField.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet"
type="text/css">
<div id="col" class="noprint">
<center>
<div id="col-in">

<!-- About Me -->


<h3>
<center>Contact Us</center>
</h3>

<div id="about-me">

<p><strong>JOB-PORTAL</strong></p>
<P>099-520612</P>
<p>982348094</p>
<p>jobportal.com<br />
</p>
<p><b>Bangalore, India</b></p>

</div> <!-- /about-me -->

<hr class="noscreen" />

<!-- Category -->


<center><h3>Login</h3></center>

<div class="login">
<form name="form1" method="post" action="login.php">
<table width="100%" border="0">
<tr>
<td><strong>User Name</strong></td>
</tr>
<tr>
<td><span id="sprytextfield1">
<label>
<input type="text" name="txtUser" id="txtUser">
</label>
<span class="textfieldRequiredMsg">*</span></span>
<label></label></td>
</tr>
<tr>
<td><strong>Password</strong></td>
</tr>
<tr>
<td><span id="sprytextfield2">
<label>
<input type="password" name="txtPass" id="txtPass">
</label>
<span class="textfieldRequiredMsg">*</span></span></td>
</tr>
<tr>
<td><strong>User Type</strong></td>
</tr>
<tr>
<td><label>
<select name="cmbUser" id="cmbUser">
<option value="JobSeeker">JobSeeker</option>
<option value="Employer" selected="selected">Employer</option>
<option value="Administrator">Administrator</option>
</select>
</label></td>
</tr>
<tr>
<td><label>
<div align="center">
<input type="submit" name="button" id="button" value="Login">
</div>
</label></td>
</tr>
<tr>
<td>
<div align="center"><a href="Forget.php"><strong>Forgot Password?
</strong></a></div>
</td>
</tr>
</table>
</form>
</div>
<br />

<hr class="noscreen" />

<!-- Archive -->

<hr class="noscreen" />

<!-- Links -->

<hr class="noscreen" />


</div>
</center>
<!-- /col-in -->
</div> <!-- /col -->
<script type="text/javascript">
<!--
var sprytextfield1 = new
Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new
Spry.Widget.ValidationTextField("sprytextfield2");
//
-->
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
echo date("Y-m-d")."<br/>";

?>
</body>
</html>

<!-- Right column -->


<script src="SpryAssets/SpryValidationTextField.js"
type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet"
type="text/css">
<div id="col" class="noprint">
<center>
<div id="col-in">

<!-- About Me -->


<h3>
<center>Contact Us</center>
</h3>

<div id="about-me">

<p><strong>JOB-PORTAL</strong></p>
<P>099-520612</P>
<p>982348094</p>
<p>jobportal.com<br />
</p>
<p><b>Bangalore, India</b></p>

</div> <!-- /about-me -->

<hr class="noscreen" />

<!-- Category -->


<center><h3>Login</h3></center>
<div class="login">
<form name="form1" method="post" action="login.php">
<table width="100%" border="0">
<tr>
<td><strong>User Name</strong></td>
</tr>
<tr>
<td><span id="sprytextfield1">
<label>
<input type="text" name="txtUser" id="txtUser">
</label>
<span class="textfieldRequiredMsg">*</span></span>
<label></label></td>
</tr>
<tr>
<td><strong>Password</strong></td>
</tr>
<tr>
<td><span id="sprytextfield2">
<label>
<input type="password" name="txtPass" id="txtPass">
</label>
<span class="textfieldRequiredMsg">*</span></span></td>
</tr>
<tr>
<td><strong>User Type</strong></td>
</tr>
<tr>
<td><label>
<select name="cmbUser" id="cmbUser">
<option value="JobSeeker">JobSeeker</option>
<option value="Employer" selected="selected">Employer</option>
<option value="Administrator">Administrator</option>
</select>
</label></td>
</tr>
<tr>
<td><label>
<div align="center">
<input type="submit" name="button" id="button" value="Login">
</div>
</label></td>
</tr>
<tr>
<td>
<div align="center"><a href="Forget.php"><strong>Forgot Password?
</strong></a></div>
</td>
</tr>
</table>
</form>
</div>
<br />

<hr class="noscreen" />

<!-- Archive -->

<hr class="noscreen" />

<!-- Links -->

<hr class="noscreen" />


</div>
</center>
<!-- /col-in -->
</div> <!-- /col -->
<script type="text/javascript">
<!--
var sprytextfield1 = new
Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new
Spry.Widget.ValidationTextField("sprytextfield2");
//
-->
</script>

You might also like