$top_menu = "home";
$box_mode = "wo";
// Includes headers
include("../include/header.php");
if(isset($_SESSION['p_seq_no']) == false || !$_SESSION['p_seq_no']) {
include "../member/login_page.php";
} else {
if(!$_REQUEST['anum']) {
$message = "Sorry, you don't have a permission to access this page.";
include("../help/error_page.php");
include("../include/footer.php");
exit;
} else {
$rows1 = select_qry("j_auct_master","anum",$_REQUEST['anum'],$connect);
$com_row = select_qry("job_company","seq_num",$rows1[seq_num],$connect);
$query_category = "SELECT * FROM j_category WHERE catenum='$rows1[catenum]'";
include("../include/category.php");
$grey_box = $grey_box_tag;
$green_box_img = "icon11.gif";
$green_box = $catename;
if($rows1[photo]) {
$photo_url = "
";
} else {
$photo_url = "
";
}
if($rows1[state_no]) {
if($rows1[location]) {
$location_row = select_qry("local_area","no",$rows1[location],$connect);
$location = $location_row['city_name'];
if($location_row['town_name']) {
$location .= "-".$location_row['town_name'];
}
$location .= ", ".$location_row[state_name];
} else {
$location_row = select_qry("local_area","state_no",$rows1[state_no],$connect);
$location = $location_row[state_name];
}
} else {
$location = "Not Mentioned";
}
if($rows1[pay]) {
for($pa=0;$pa<21;$pa++) {
if($pa == 0) {
$pa_val = 1;
} else {
$pa_val = $pa * 5;
$n_pa_val = ($pa + 1) * 5;
}
if($pa_val == $rows1[pay]) {
if($pa == 0) {
$pay = "Less than $5k / annual";
} else if($pa == 20) {
$pay = "More than $100k / annual";
} else {
$pay = "$".$pa_val."k+ to ".$n_pa_val."k / annual";
}
break;
}
}
} else {
$pay = "Not Mentioned";
}
if($rows1[w_pay]) {
$w_pay = "(".$rows1[w_pay]." / week)";
}
if($rows1[e_type] == 'f') {
$e_type = "Full Time";
} else if($rows1[e_type] == 'p') {
$e_type = "Part Time";
} else if($rows1[e_type] == 'v') {
$e_type = "Voluntary";
} else {
$e_type = "Not Mentioned";
}
if($rows1[exp]) {
for($ex=1;$ex<22;$ex++) {
$p_ex = $ex - 1;
if($ex == $rows1[exp]) {
if($ex == 1) {
$exp = "Less than 1 Year";
} else if($ex == 21) {
$exp = "More than 20 Years";
} else {
$exp = $p_ex."+ to ".$ex." Years";
}
break;
}
}
} else {
$exp = "Not Mentioned";
}
if($rows1[w_hr]) {
if($rows1[w_hr] == 1) {
$w_hr = "Less than 10 Hours";
} else if($rows1[w_hr] == 60) {
$w_hr = "More than 60 Hours";
} else {
for($hr=1;$hr<6;$hr++) {
$hr_val = $hr * 10;
if($hr_val == $rows1[w_hr]) {
$n_hr_val = ($hr + 1) * 20;
$w_hr = $hr_val."+ to ".$n_hr_val." Hours";
break;
}
}
}
} else {
$w_hr = "Not Mentioned";
}
if($rows1[c_type] == 'f') {
$c_type = "Full Contract";
} else if($rows1[c_type] == 'p') {
$c_type = "Temporary Contract";
} else if($rows1[c_type] == 'v') {
$c_type = "Conjoined";
} else {
$c_type = "Not Mentioned";
}
if($rows1[shift] == 'y') {
$shift = "Allowed";
} else if($rows1[shift] == 'n') {
$shift = "N/A";
} else {
$shift = "Not Mentioned";
}
$benefit = nl2br($rows1[benefit]);
$description = nl2br($rows1[description]);
$reg_date = date("d/m/Y",strtotime($rows1[reg_date]));
$cls_tag = date("d/m/Y",strtotime($rows1[valid]));
if($keyword1) {
$keyword_pattern = "/$keyword1/i";
$description = preg_replace($keyword_pattern, "$keyword1", $description);
}
if($keyword2) {
$keyword_pattern = "/$keyword2/i";
$description = preg_replace($keyword_pattern, "$keyword2", $description);
}
if($keyword3) {
$keyword_pattern = "/$keyword3/i";
$description = preg_replace($keyword_pattern, "$keyword3", $description);
}
if($com_row[logo]) {
$com_logo = "http://jobimg.totalinfo.co.nz".$com_row[logo];
} else {
$com_logo = "/images/noimage3.gif";
}
if($com_row[company_location]) {
$com_lo_row = select_qry("local_area","no",$com_row[company_location],$connect);
$com_location = $com_row[company_addr1].", ".$com_lo_row['city_name'];
if($com_lo_row['town_name']) {
$com_location .= "-".$com_lo_row['town_name'];
}
$com_location .= ", ".$com_lo_row[state_name];
}
if($com_row[company_phone]) {
$full_phone = explode(";",$com_row['company_phone']);
$phone = "Tel: ".$full_phone[0]." ".$full_phone[1];
}
if($com_row[company_mobile]) {
$full_mobile = explode(";",$com_row['company_mobile']);
$mobile = "Fax : ".$full_mobile[0]." ".$full_mobile[1];
}
if($com_row[company_fax]) {
$full_fax = explode(";",$com_row['company_fax']);
$fax = "Mob : ".$full_fax[0]." ".$full_fax[1];
}
$today = date("Ymd");
$expiry = date("Ymd",strtotime($rows1[valid]));
include("./member_opt.php");
?>
|
|
 |
|
|
if($today > $expiry) {
echo("
|
|
");
} else if($rows1[withdrawn] == 'Y') {
echo("
|
|
");
} else if($rows1[seq_num] != $_SESSION[p_seq_no]) {
if($add_wish) {
echo("
|
|
");
}
if($apply) {
echo("
|
|
");
}
echo("
|
");
}
?>
Listed: no. |
|
|
|
include("../buying/flag.php");
?>
|
|
| Company |
|
|
| Location |
|
|
| Salary |
|
|
| Employment Type |
|
|
| Work Experience |
|
|
| Working Hours |
|
|
| Contract Type |
|
|
| Shift |
|
|
| Due Date |
|
|
| Benefits |
|
|
| Description |
|
|
| |
|
|
| |
|
|
|
|
 |
Company Details |
 |
include("qnastart.php");
?>
|
|
}
}
include("../include/footer.php");
?>