0){ $Page="check"; }else{ $subject="WebForm お問い合せ ご登録内容"; $subject_c="WebFormお問い合せ from JDM"; $MAIL_MESSAGE=""; if(file_exists("../estate_inc/set_mail_C_c.txt")){$MAIL_MESSAGE.=File_no_yomikomi("../estate_inc/set_mail_C_c.txt");} $MAIL_MESSAGE.="\n---ご登録内容---------------------------------------"; $MAIL_MESSAGE.="\nお名前 :".$user_name ; $MAIL_MESSAGE.="\nヨミガナ:".$user_name_yomi ; $MAIL_MESSAGE.="\n郵便番号:".$user_zip ; $MAIL_MESSAGE.="\n都道府県:".$user_ken ; $MAIL_MESSAGE.="\n市区町村:".$user_addr ; $MAIL_MESSAGE.="\n番地など:".$user_addr2 ; $MAIL_MESSAGE.="\nTEL  :".$user_tel ; $MAIL_MESSAGE.="\n携帯電話:".$user_ktel ; $MAIL_MESSAGE.="\nFAX:".$user_fax ; $MAIL_MESSAGE.="\nEmail:".$user_email ; $MAIL_MESSAGE.="\n性別:".$user_sex ; $MAIL_MESSAGE.="\n年齢:".$user_old ; $MAIL_MESSAGE.="\nメッセージ:".$user_msg ; $MAIL_MESSAGE.="\n--------------------------------------\n" ; if(file_exists("../estate_inc/set_mail_C_f.txt")){$MAIL_MESSAGE.=File_no_yomikomi("../estate_inc/set_mail_C_f.txt");} $MAIL_HEADER="From:".$C_MAIL; //===お客様に送信=== mb_send_mail($user_email,$subject,$MAIL_MESSAGE,$MAIL_HEADER); //===クライアントに送信=== $MAIL_HEADER="From:".$user_email; $MAIL_MESSAGE_c=$MAIL_MESSAGE; mb_send_mail($C_MAIL,$subject_c,$MAIL_MESSAGE_c,$MAIL_HEADER); $Page="thanks"; } } } //===POST END====== switch($Page){ case("thanks"): $CONTENTS.="送信されました。"; break; case("check"): $m_smarty = new Smarty; if($user_name !=""){$temp_user_name="";}else{$temp_user_name=" お名前をご記入下さい。";} $m_smarty->assign("User_name",$user_name."".$temp_user_name); if($user_name_yomi !=""){$temp_user_name_yomi="";}else{$temp_user_name_yomi=" ヨミガナをご記入下さい。";} $m_smarty->assign("User_name_yomi",$user_name_yomi."".$temp_user_name_yomi); $m_smarty->assign("User_zip",$user_zip.""); $m_smarty->assign("User_ken",$user_ken.""); $m_smarty->assign("User_addr",$user_addr.""); $m_smarty->assign("User_addr2",$user_addr2.""); $m_smarty->assign("User_tel",$user_tel.""); $m_smarty->assign("User_fax",$user_fax.""); $m_smarty->assign("User_ktel",$user_ktel.""); if($user_email !=""){$temp_user_email="";}else{$temp_user_email=" Emailをご記入下さい。";} $m_smarty->assign("User_email",$user_email."".$temp_user_email); $m_smarty->assign("User_sex",$user_sex.""); $m_smarty->assign("User_old",$user_old.""); $m_smarty->assign("User_msg",$user_msg.""); if($user_name !="" && $user_name_yomi !="" && $user_email !="" && $ERROR_CNT==0){ $m_smarty->assign("SUBMIT_VALUE","送信実行"); }else{ $m_smarty->assign("SUBMIT_VALUE","再入力"); } $m_smarty->assign("HISTORY_BACK","---"); $CONTENTS.=$m_smarty->fetch("/Users/estate/Sites/estate/templates/contact.html"); break; //===== case("form"): $INCLUDE_SCRIPT_FILE=''; $m_smarty = new Smarty; $m_smarty->assign("User_name",""); $m_smarty->assign("User_name_yomi",""); $m_smarty->assign("User_zip",""); $m_smarty->assign("User_ken",""); $m_smarty->assign("User_addr",""); $m_smarty->assign("User_addr2",""); $m_smarty->assign("User_tel",""); $m_smarty->assign("User_fax",""); $m_smarty->assign("User_ktel",""); $m_smarty->assign("User_email",""); $m_smarty->assign("User_sex",""); $m_smarty->assign("User_old","歳"); $m_smarty->assign("User_msg",""); $m_smarty->assign("SUBMIT_VALUE","内容確認"); $m_smarty->assign("HISTORY_BACK","---"); $CONTENTS.=$m_smarty->fetch("/Users/estate/Sites/estate/templates/contact.html"); break; default: $CONTENTS.="

ただいま準備中です。"; } $MAIN_MENU=MAIN_MENU($MMENU); //=========== $CONTENTS_LAYTYPE='2';$SUB_CONTENTS=""; if(file_exists("../estate_inc/top_contents_type.php")){include_once("../estate_inc/top_contents_type.php");} include("../estate_modules/side_sub_contents.php"); //=========== $c_smarty = new Smarty; $c_smarty->assign("C_MAIN",$CONTENTS); $c_smarty->assign("C_SUB",$SUB_CONTENTS); $CONTENTS_ALL=$c_smarty->fetch("/Users/estate/Sites/_format/contentstype/type_".$CONTENTS_LAYTYPE.".html"); //=========== if(file_exists($DIR_PATH."estate_inc/ori.css")){$INCLUDE_STYLE_FILE.='';} $CHANGEWIDTH=""; if(file_exists($DIR_PATH."estate_inc/inc_master_width.php")){include($DIR_PATH."estate_inc/inc_master_width.php"); if($MASTER_FORMAT_WIDTH=="980"){$CHANGEWIDTH=$MASTER_FORMAT_WIDTH;}else{$CHANGEWIDTH="";}}else{$CHANGEWIDTH="";} //=========== $z_smarty = new Smarty; $z_smarty->assign("SITE_TITLE",SITE_TITLE("../")); $z_smarty->assign("Header",HEADER_TXT("../")); $z_smarty->assign("INCLUDE_SCRIPT_FILE",$INCLUDE_SCRIPT_FILE); $z_smarty->assign("INCLUDE_SCRIPT_TAGS",$INCLUDE_SCRIPT_TAGS); $z_smarty->assign("INCLUDE_STYLE_FILE",$INCLUDE_STYLE_FILE); $z_smarty->assign("INCLUDE_STYLE_TAGS",$INCLUDE_STYLE_TAGS); $z_smarty->assign("HEADER_TOP_MEMO",HEADER_TOP_MEMO("../")); $z_smarty->assign("MAIN_MENU",$MAIN_MENU); $z_smarty->assign("Contents",$CONTENTS_ALL); $z_smarty->assign("Footer",FOOTER("../estate_inc/footer.txt")."
"); $z_smarty->assign("Google_Analytics",Google_Analytics($DIR_PATH)); $z_smarty->display("/Users/estate/Sites/_format/".$MASTER_FORMAT."/index".$CHANGEWIDTH.".html"); //=========== ?>