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
$dbcnx = dbconn( $host, $user, $pass, $dbname);
//insert search
$sql="SELECT * FROM storedsearch WHERE cid='$visitor' ORDER BY ref DESC";
$result=mysql_query($sql);
if (!$result){
echo("
Error performing query : ". mysql_error()."
");
}
$num=mysql_num_rows($result);
?>
|
include("$serveraddr/include/candnav.php");
?>
|
|
searchAgents
if ($num==0) :
echo("You do not currently have any Search Agents stored on the system.
You can set up collections of search criteria that you can quickly access and use on future visits to the site to search for those jobs. Click here to create a Search Agent.");
else:
echo("Here are your Search Agents. Click here to create another Search Agent. ");
while ($row=mysql_fetch_array($result)) {
$row["searchcat"]=translate_categories($row["searchcat"]);
if ($row["searchregion"]=='0') {
$searchregion='All Regions';
} else {
$searchregion=$row["searchregion"];
}
if ($row["searchemployer"]=='0') {
$searchemployer='All Employers';
} else {
$searchemployer=$row["searchemployer"];
}
if ($row["searchname"]=='Enter Search Name') {
$row["searchname"]=' ';
}
if ($row["searchtype"]=='0') {
$jobtype='All Job Types';
} else {
$jobtype=$row["searchtype"];
}
if ($row["searchtext"]=='Keyword/Skills') {
$row["searchtext"]='';
}
if ($row["jobalert"]=='1') {
$row["jobalert"]='Yes';
} elseif ($row["jobalert"]=='0') {
$row["jobalert"]='No';
}
echo("
");
}
endif;
?>
|
|
include("/home/hiring_template/include/footer.tpl");
?>
|