"; echo ""; echo ""; } } else echo "The details of this company cannot be displayed at this time."; echo "
"; } function get_comp($catid) { // if (!$catid || $catid=="") // return false; $conn = db_connect(); $query = "select * from company where catid=$catid"; $result = @mysql_query($query); if (!$result) return false; $num_comp = @mysql_num_rows($result); if ($num_comp ==0) return false; $result = db_result_to_array($result); return $result; } function get_comp_details($hid) { if (!$hid || $hid=="") return false; $conn = db_connect(); $query = "select * from company where hid='$hid'"; $result = @mysql_query($query); if (!$result) return false; $result = @mysql_fetch_array($result); return $result; } function display_button($target, $image, $alt) { echo "
\"$alt\"
"; } ///////////////////////////////////////////////////////////// function get_jobs() { // query database for a list of categories $conn = db_connect(); $query = "select jobid, jobname from jobs"; $result = @mysql_query($query); if (!$result) return false; $num_cats = @mysql_num_rows($result); if ($num_cats ==0) return false; $result = db_result_to_array($result); return $result; } function get_job_name($jobid) { // query database for the name for a category id $conn = db_connect(); $query = "select jobname from jobs where jobid = $jobid"; $result = @mysql_query($query); if (!$result) return false; $num_cats = @mysql_num_rows($result); if ($num_cats ==0) return false; $result = mysql_result($result, 0, "jobname"); return $result; } function display_jobs($job_array) { if (!is_array($job_array)) { echo "No categories currently available
"; return; } //echo ""; echo "
"; } function do_list1_URL($url, $name) { // output URL as link and br ?>

Select District:

"; return; } //echo "
    "; foreach ($cat_array as $row) { $url = "companylist.php?catid=".($row["catid"]); $title = $row["catname"]; echo "
  • "; do_list_url($url, $title); //echo "
    "; } //echo "
"; echo "
"; } function do_list_URL($url, $name) { // output URL as link and br ?> No companies currently available in this category
"; } else { //create table echo ""; //create a table row for each comp foreach ($comp_array as $row) { $url = "show_comp.php?hid=".($row["hid"]); echo ""; } echo "
"; if (@file_exists("images/".$row["hid"].".jpg")) { $title = ""; do_html_url($url, $title); } else { echo " "; } echo ""; $title = $row["name"]." - ".$row["kind"]; do_html_url($url, $title); echo "
"; } echo "
"; } function display_comp_details($comp) { //display all details about this company if (is_array($comp)) {$url="kratisi.php?hid=".($comp["hid"]);?>
0 && $size[1]>0) echo "