require_once("common.inc.php"); if ( strpos( $_SERVER["HTTP_REFERER"], "job-hunter.com.hk")){ }else { header("Location: index.php"); } $type_str[0]="Permanent"; $type_str[1]="Temporary"; $type_str[2]="Contract"; $time_string_str[0]="Full Time"; $time_string_str[1]="Part-time"; function funNumber($input){ return 'JH'.str_pad($input, 6, "0", STR_PAD_LEFT); } //============== $tbname="job"; $perpage="1000"; $address=$_SERVER['SCRIPT_NAME']; //============== $array=$db->getrow("SELECT * FROM `".$tbname."` where display='1' and id=".escapeit($id)." "); $description_array=explode("\n",$array["description"]); if($array["description"]!=""){ foreach($description_array as $index=>$value){ if(trim($value)!=""){ $description.='
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||