include("../config.php"); include_once( "../include/class/class.phpmailer.php" ); $askdep=array(); $askdep["qa1"] = "內科部"; $askdep["qa10"] = "神經內科"; $askdep["qa11"] = "神經外科"; $askdep["qa12"] = "骨科部"; $askdep["qa13"] = "眼科部"; $askdep["qa14"] = "牙醫部"; $askdep["qa15"] = "泌尿部"; $askdep["qa16"] = "皮膚科"; $askdep["qa17"] = "美容中心"; $askdep["qa18"] = "耳鼻喉部"; $askdep["qa19"] = "婦產部"; $askdep["qa2"] = "外科部"; $askdep["qa20"] = "兒童醫學中心"; $askdep["qa21"] = "護理衛教諮詢"; $askdep["qa22"] = "健康檢查中心"; $askdep["qa23"] = "復健部"; $askdep["qa24"] = "放射腫瘤科"; $askdep["qa25"] = "放射線部"; $askdep["qa26"] = "核子醫學科"; $askdep["qa27"] = "藥劑部"; $askdep["qa28"] = "麻醉部"; $askdep["qa29"] = "台北分院諮詢"; $askdep["qa3"] = "中醫信箱"; $askdep["qa30"] = "費用諮詢"; $askdep["qa31"] = "檢驗醫學部"; $askdep["qa32"] = "豐原分院"; $askdep["qa33"] = "東區分院"; $askdep["qa34"] = "草屯分院"; $askdep["qa4"] = "中西醫結合科"; $askdep["qa5"] = "精神醫學部"; $askdep["qa6"] = "臨床營養科"; $askdep["qa7"] = "家庭醫學部"; $askdep["qa8"] = "感染科"; $askdep["qa9"] = "高壓氧中心"; $data = array(); $data["yourname"] = $_POST["yourname"]; $data["youremail"] = $_POST["youremail"]; $data["title"] = $_POST["title"]; $data["question"] = $_POST["question"]; $data["catid"] = $_POST["catId"]; $data["askdep"] = $askdep[$_POST["catId"]]; $data["bdate"] = date("Y-m-d H:i:s"); $g_db->create( "ask" , $data, ""); $temp_mail_subject=" 網站的民眾發問 "; $subject = "=?UTF-8?B?" . base64_encode($temp_mail_subject) . "?="; $message = "
民眾姓名 | ".$_POST["yourname"]." | "; $message .= "
---|---|
民眾EMAIL | ".$_POST["youremail"]." | "; $message .= "
問題標題 | ".$_POST["title"]." | "; $message .= "
問題內容 | ".$_POST["question"]." | "; $message .= "
指定科室 | ".$data["askdep"]." | "; $message .= "
發問時間 | ".date("Y-m-d H:i:s")." | "; $message .= "