<?php |
<?php |
/* |
|
search ABNs |
|
search agency name |
|
search categories |
|
search supplier names |
|
--search supplier postcodes/suburbs/cities-- |
|
search CN number |
|
search description full text |
|
*/ |
|
include('./lib/common.inc.php'); |
|
if ($_REQUEST['searchID']) { |
|
$searchIDParts = explode("-",$_REQUEST['searchID']); |
|
$type = array_shift($searchIDParts); |
|
$host = $_SERVER['HTTP_HOST']; |
|
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); |
|
|
|
if ($type == "agency") { |
|
header("Location: http://$host$uri/displayAgency.php?agency=".implode("-",$searchIDParts)); |
|
} |
|
if ($type == "supplier") { |
|
header("Location: http://$host$uri/displaySupplier.php?supplier=".implode("-",$searchIDParts)); |
|
} |
|
exit; |
|
} else { |
|
include_header("Search Results"); |
|
print_r($_REQUEST); |
|
include_footer(); |
|
} |
|
?> |
|
|
|
|
/* |
|
search ABNs |
|
search agency name |
|
search categories |
|
search supplier names |
|
--search supplier postcodes/suburbs/cities-- |
|
search CN number |
|
search description full text |
|
*/ |
|
include('./lib/common.inc.php'); |
|
if ($_REQUEST['searchID']) { |
|
$searchIDParts = explode("-", $_REQUEST['searchID']); |
|
$type = array_shift($searchIDParts); |
|
$host = $_SERVER['HTTP_HOST']; |
|
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); |
|
|
|
if ($type == "agency") { |
|
header("Location: http://$host$uri/displayAgency.php?agency=" . implode("-", $searchIDParts)); |
|
} |
|
if ($type == "supplier") { |
|
header("Location: http://$host$uri/displaySupplier.php?supplier=" . implode("-", $searchIDParts)); |
|
} |
|
if ($type == "cnid") { |
|
header("Location: http://$host$uri/displayContract.php?CNID=" . implode("-", $searchIDParts)); |
|
} |
|
exit; |
|
} else { |
|
include_header("Search Results"); |
|
print_r($_REQUEST); |
|
include_footer(); |
|
} |
|
?> |
|
|