session_start();
header("Cache-control: private"); // IE 6 Fix.
if (isset($_SESSION["cfgfile"])) {
include("/home/config/".$_SESSION["cfgfile"]);
} else {
echo("No config file");
exit();
}
if (!isset($_SESSION["visitor"])) {
header("Location:$site/main/members.php");
}
include("/home/hiring_template/include/header.tpl");
include("/home/config/common.php");
//connect to the mysql server
dbconn( $host, $user, $pass, $dbname);
if ($delete==1) {
$sql="DELETE FROM headhunts WHERE ref='$ref'";
mysql_query($sql);
}
$sql="SELECT * FROM headhunts WHERE cid='$visitor' ORDER BY date DESC";
$result=mysql_query($sql);
if (!$result){
echo("
Error performing query : ". mysql_error()."
");
}
$num_headhunts=mysql_num_rows($result);
?>
|
include("$serveraddr/include/candnav.php");
?>
|
|
if ($num_headhunts==0) :
echo("
BeHeadhunted
You are not being headhunted at this time.
Click here to view/update your details. | ");
else :
echo("
You are being Headhunted!
$num_headhunts employer(s) have vacancies that may be of interest to you.");
while ($row=mysql_fetch_array($result)) {
$date=getnicedate($row["date"]);
echo(" |
| Title |
Description |
| Employer |
".$row["employer"]." |
| Address |
".$row["address1"]."
".$row["address2"]."
".$row["address3"]."
".$row["empcountry"]." |
| Contact |
".$row["contactfirstname"]." ".$row["contactsurname"]." |
| Telephone |
".$row["contacttelcountry"]." ".$row["contacttellocal"]." ".$row["contacttelnumber"]." |
| Email |
".$row["contactemail"]." | ");
if ($row["message"]) {
echo("
| Message |
".nl2br($row["message"])." | ");
}
echo("
| Date |
".$date." | ");
$ref=$row["ref"];
echo("
| Action |
Delete | ");
?>
|
} // endwhile;
endif;
?>
|
| |
include("/home/hiring_template/include/footer.tpl");
?>
|