$value ) { $ar_request["$key"] = htmlspecialchars( $value, ENT_QUOTES, "EUC-JP" ); } /* --------------------------------------------------------------- */ /* 入力フェーズ設定 */ /* --------------------------------------------------------------- */ $_SESSION[G_SS_ENQUETE_STEP] = G_SS_ENQUETE_STEP_INPUT; /* --------------------------------------------------------------- */ /* HTML読込 & 出力 */ /* --------------------------------------------------------------- */ // $s_tpl_filename = "w_peti01_tpl_eoc_2017.html"; // $s_tpl_filename = "w_peti01_tpl_waron_20180215.html"; // $s_tpl_filename = "w_peti01_tpl_swoc_20190422.html"; // $s_tpl_filename = "w_peti01_tpl_swoc_20191007.html"; $s_tpl_filename = "w_peti01_tpl_swoc_20201028.html"; /* --------------------------------------------------------------- */ /* HTML読込 & 出力 */ /* --------------------------------------------------------------- */ $n_count_tpldata = 2; if( pbbf_GetTplFile($s_tpl_filename, $ar_tpldata) == false) { print("テンプレートファイルのオープンに失敗しました。"); exit; } $i=0; While($i <= $n_count_tpldata) { //************************************************** // HTMLの編集ブロックをワーク変数に移送 //************************************************** $tmp = $ar_tpldata[$i] ; //************************************************** // HTMLブロックのインデックスによる処理の振り分け //************************************************** Switch ($i) { Case G_HTML_SPLIT_IDX_HEADER: // ヘッダ // pbbf_SetHtmlText(G_HTML_SPLIT_IDX_HEADER, $tmp, $s_htmltext); $s_htmltext = $tmp; $html_tmp .= $s_htmltext; break; Case G_HTML_SPLIT_IDX_MAIN_BODY: // メインボディ(Page固有部) //画面編集処理 pibf_mainbody_edit($ar_request, $tmp, $s_htmltext); $html_tmp .= $s_htmltext; break; Case G_HTML_SPLIT_IDX_FOOTER: // フッタ // pbbf_SetHtmlText(G_HTML_SPLIT_IDX_FOOTER, $tmp, $s_htmltext); $s_htmltext = $tmp; $html_tmp .= $s_htmltext; break; } $i++; } //↓2020.09.01 IL 追加 Canonicalタグ設置 $ar_PARAM = array(); $ar_PARAM["URL_MAIN"] = G_FORM_URL_PETITION; $w_CanonicalTag = pbsf_GenHTML_CanonicalTag($ar_PARAM); $html_tmp = str_replace("", $w_CanonicalTag, $html_tmp); //↑2020.09.01 IL 追加 Canonicalタグ設置 print $html_tmp; exit; ###################################################################### # 内部関数 ###################################################################### #********************************************************************* #【機 能】画面編集 #--------------------------------------------------------------------- #【引 数】$par_request : POSTデータ(配列変数) # $ps_TplText : テンプレートのHTMLデータ # &$ps_OutText : テンプレートファイルのデータ格納先(配列) #【戻り値】True : 成功 false : 失敗 #【作成日】2014.08.19 #********************************************************************* function pibf_mainbody_edit($par_request, $ps_TplText, &$ps_OutText) { $tmp = $ps_TplText; $ps_OutText = $tmp; /*----------------------------------*/ /* オンライン署名情報 */ /*----------------------------------*/ // -- emailアドレス $w_buf = trim($par_request["sc_email"]); $tmp = str_replace("-/v_email/-", $w_buf, $tmp); // -- 氏名(日本語) // ------ 姓 $w_buf = trim($par_request["sc_last_name"]); $tmp = str_replace("-/v_last_name/-", $w_buf, $tmp); // ------ 名 $w_buf = trim($par_request["sc_first_name"]); $tmp = str_replace("-/v_first_name/-", $w_buf, $tmp); // -- 氏名(英語) // ------ 姓 $w_buf = trim($par_request["sc_last_name_eng"]); $tmp = str_replace("-/v_last_name_eng/-", $w_buf, $tmp); // ------ 名 $w_buf = trim($par_request["sc_first_name_eng"]); $tmp = str_replace("-/v_first_name_eng/-", $w_buf, $tmp); // -- 郵便番号 $w_buf = trim($par_request["sc_zipcode"]); $tmp = str_replace("-/v_zipcode/-", $w_buf, $tmp); //↓2017.05.30 K.Kazuno 追加 eoc対応 // -- 電話番号 // ---------- 1 $w_buf = trim($par_request["sc_tel1"]); $tmp = str_replace("-/v_tel1/-", $w_buf, $tmp); // ---------- 2 $w_buf = trim($par_request["sc_tel2"]); $tmp = str_replace("-/v_tel2/-", $w_buf, $tmp); // ---------- 3 $w_buf = trim($par_request["sc_tel3"]); $tmp = str_replace("-/v_tel3/-", $w_buf, $tmp); //↑2017.05.30 K.Kazuno 追加 eoc対応 // -- エラーメッセージ $tmp = str_replace("-/v_email_err_label/-" , trim($par_request["sc_email_err_label"]) , $tmp); $tmp = str_replace("-/v_last_name_err_label/-" , trim($par_request["sc_last_name_err_label"]) , $tmp); $tmp = str_replace("-/v_first_name_err_label/-" , trim($par_request["sc_first_name_err_label"]) , $tmp); $tmp = str_replace("-/v_last_name_eng_err_label/-" , trim($par_request["sc_last_name_eng_err_label"]) , $tmp); $tmp = str_replace("-/v_first_name_eng_err_label/-", trim($par_request["sc_first_name_eng_err_label"]), $tmp); $tmp = str_replace("-/v_zipcode_err_label/-" , trim($par_request["sc_zipcode_err_label"]) , $tmp); //↓2017.05.30 K.Kazuno 追加 eoc対応 $tmp = str_replace("-/v_tel_err_label/-" , trim($par_request["sc_tel_err_label"]) , $tmp); //↑2017.05.30 K.Kazuno 追加 eoc対応 /*----------------------------------*/ /* hidden項目 */ /*----------------------------------*/ // -- 署名ID(署名する情報の種類) $tmp = str_replace("-/v_ptid/-", trim($par_request["ptid"]), $tmp); /*----------------------------------*/ /* 前画面URL */ /*----------------------------------*/ $tmp = str_replace("-/v_prePage/-", trim($_SESSION["prePage"]), $tmp); $ps_OutText = $tmp; return true; } ?>