Commit fb1a33f3 authored by Antonio.Suerte's avatar Antonio.Suerte

Unhide CS Inquiry Form

parent 97b2fae4
...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php'); ...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div> </div>
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75;">
*We are currently enhancing server functions and are temporarily unable to receive inquiries sent via this online inquiry form. We request that you email us directly at <img src="../../files/img/cs_iwl_world.PNG" alt="cs-iwl-world" class="img-responsive" style="display:inline-block; height:22px; margin-top: -2px;"> so and we will immediately attend to your needs. Thank you.
<br><br>
</h5>
<h5>Please refer to our FAQ for frequent question anwsers</h5> <h5>Please refer to our FAQ for frequent question anwsers</h5>
<p>Or use this form below and submit your question(s) to us. We will reply to your question(s) through your contact email within 24 hours during business days. However, our response time may be delayed during weekends or holidays. All communication between iWallet customer service and iWallet customers will not be disclosed to third party. We are currently providing customer service in English, Japanese, Chinese and Korean. <p>Or use this form below and submit your question(s) to us. We will reply to your question(s) through your contact email within 24 hours during business days. However, our response time may be delayed during weekends or holidays. All communication between iWallet customer service and iWallet customers will not be disclosed to third party. We are currently providing customer service in English, Japanese, Chinese and Korean.
</p> </p>
......
<?php <?php
$page_title = "Online Questions"; $page_title = "Online Questions -Edit";
include_once('site_config.php'); include_once('site_config.php');
include_once('template/base_site_head.php'); include_once('template/base_site_head.php');
?> ?>
...@@ -18,22 +18,14 @@ include_once('template/base_site_head.php'); ...@@ -18,22 +18,14 @@ include_once('template/base_site_head.php');
<div id="main" class="container"> <div id="main" class="container">
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75; font-size:20px;">
*We are currently enhancing server functions and are temporarily unable to receive inquiries sent via this online inquiry form. We request that you email us directly at
<span style="color:#648CEF;font-weight:bold;">cs@iwl.world</span> so and we will immediately attend to your needs. Thank you.
<br><br>
</h5>
</div>
<div class="col-sm-12" style="display:none;">
<h5>Please refer to our FAQ for frequent question answers</h5> <h5>Please refer to our FAQ for frequent question answers</h5>
<p>Or use this form below and submit your question(s) to us. We will reply to your question(s) through your contact email within 24 hours during business days. However, our response time may be delayed during weekends or holidays. All communication between iWallet customer service and iWallet customers will not be disclosed to third party. We are currently providing customer service in English, Japanese, Chinese and Korean. <p>Or use this form below and submit your question(s) to us. We will reply to your question(s) through your contact email within 24 hours during business days. However, our response time may be delayed during weekends or holidays. All communication between iWallet customer service and iWallet customers will not be disclosed to third party. We are currently providing customer service in English, Japanese, Chinese and Korean.
</p> </p>
</div> </div>
</div>
<div class="tab-content" style="display:none;"> </div>
<div class="tab-content">
<div class="tab-pane fade in active"> <div class="tab-pane fade in active">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
<form id="acForm" action="" method="post"> <form id="acForm" action="" method="post">
...@@ -45,7 +37,7 @@ include_once('template/base_site_head.php'); ...@@ -45,7 +37,7 @@ include_once('template/base_site_head.php');
</ul> </ul>
</div> </div>
</div> </div>
<?php $this -> dispInput(); ?> <?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01"> <div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">Company Name: <label class="col-sm-3 info-label" for="email">Company Name:
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
...@@ -75,8 +67,9 @@ include_once('template/base_site_head.php'); ...@@ -75,8 +67,9 @@ include_once('template/base_site_head.php');
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
</label> </label>
<div class="col-sm-9 input-box"> <div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control"> <input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(Within 128 characters)</span> <span>(Within 128 characters)</span>
</div> </div>
</div> </div>
<div class="form-group row info-section" id="personal_block"> <div class="form-group row info-section" id="personal_block">
...@@ -86,18 +79,20 @@ include_once('template/base_site_head.php'); ...@@ -86,18 +79,20 @@ include_once('template/base_site_head.php');
<div class="col-sm-9 input-box"> <div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea> <textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(Within 500 characters)</span> <span>(Within 500 characters)</span>
</div> </div>
</div> </div>
<div class="col-sm-12 btn-box"> <div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">Next</button> <button class="btn-left" id="btnConfirm" type="submit" value="submit">Next</button>
</div> </div>
<input type="hidden" id="type" name="type" value="" /> <input type="hidden" id="type" name="type" value="" />
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -108,6 +103,7 @@ include_once('template/base_site_head.php'); ...@@ -108,6 +103,7 @@ include_once('template/base_site_head.php');
<!-- /メインエリア --> <!-- /メインエリア -->
<?php <?php
include_once('template/base_site_foot.php'); include_once('template/base_site_foot.php');
echo $endscripts;
?> ?>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php'); ...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div> </div>
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75;">
*We are currently enhancing server functions and are temporarily unable to receive inquiries sent via this online inquiry form. We request that you email us directly at <img src="../../files/img/cs_iwl_world.PNG" alt="cs-iwl-world" class="img-responsive" style="display:inline-block; height:22px; margin-top: -2px;"> so and we will immediately attend to your needs. Thank you.
<br><br>
</h5>
<h5>Silakan merujuk pada FAQ kami untuk pertanyaan yang sering dijawab</h5> <h5>Silakan merujuk pada FAQ kami untuk pertanyaan yang sering dijawab</h5>
<p>Atau gunakan formulir di bawah ini dan kirimkan pertanyaan Anda kepada kami. Kami akan membalas pertanyaan Anda melalui kontak email Anda dalam waktu 24 jam selama hari kerja. Namun, waktu tanggapan kami mungkin tertunda selama akhir pekan atau hari libur. Semua komunikasi antara layanan pelanggan iWallet dan pelanggan iWallet tidak akan diungkapkan kepada pihak ketiga. Saat ini kami menyediakan layanan pelanggan dalam bahasa Inggris, Jepang, Cina dan Korea. <p>Atau gunakan formulir di bawah ini dan kirimkan pertanyaan Anda kepada kami. Kami akan membalas pertanyaan Anda melalui kontak email Anda dalam waktu 24 jam selama hari kerja. Namun, waktu tanggapan kami mungkin tertunda selama akhir pekan atau hari libur. Semua komunikasi antara layanan pelanggan iWallet dan pelanggan iWallet tidak akan diungkapkan kepada pihak ketiga. Saat ini kami menyediakan layanan pelanggan dalam bahasa Inggris, Jepang, Cina dan Korea.
</p> </p>
......
<?php <?php
$page_title = "Pertanyaan Online"; $page_title = "Pertanyaan Online -Edit";
include_once('site_config.php'); include_once('site_config.php');
include_once('template/base_site_head.php'); include_once('template/base_site_head.php');
?> ?>
...@@ -18,22 +18,14 @@ include_once('template/base_site_head.php'); ...@@ -18,22 +18,14 @@ include_once('template/base_site_head.php');
<div id="main" class="container"> <div id="main" class="container">
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75; font-size:20px;">
*We are currently enhancing server functions and are temporarily unable to receive inquiries sent via this online inquiry form. We request that you email us directly at
<span style="color:#648CEF;font-weight:bold;">cs@iwl.world</span> so and we will immediately attend to your needs. Thank you.
<br><br>
</h5>
</div>
<div class="col-sm-12" style="display:none;">
<h5>Silakan merujuk pada FAQ kami untuk pertanyaan yang sering dijawab</h5> <h5>Silakan merujuk pada FAQ kami untuk pertanyaan yang sering dijawab</h5>
<p>Atau gunakan formulir di bawah ini dan kirimkan pertanyaan Anda kepada kami. Kami akan membalas pertanyaan Anda melalui kontak email Anda dalam waktu 24 jam selama hari kerja. Namun, waktu tanggapan kami mungkin tertunda selama akhir pekan atau hari libur. Semua komunikasi antara layanan pelanggan iWallet dan pelanggan iWallet tidak akan diungkapkan kepada pihak ketiga. Saat ini kami menyediakan layanan pelanggan dalam bahasa Inggris, Jepang, Cina dan Korea. <p>Atau gunakan formulir di bawah ini dan kirimkan pertanyaan Anda kepada kami. Kami akan membalas pertanyaan Anda melalui kontak email Anda dalam waktu 24 jam selama hari kerja. Namun, waktu tanggapan kami mungkin tertunda selama akhir pekan atau hari libur. Semua komunikasi antara layanan pelanggan iWallet dan pelanggan iWallet tidak akan diungkapkan kepada pihak ketiga. Saat ini kami menyediakan layanan pelanggan dalam bahasa Inggris, Jepang, Cina dan Korea.
</p> </p>
</div> </div>
</div>
<div class="tab-content" style="display:none;"> </div>
<div class="tab-content">
<div class="tab-pane fade in active"> <div class="tab-pane fade in active">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
<form id="acForm" action="" method="post"> <form id="acForm" action="" method="post">
...@@ -45,7 +37,7 @@ include_once('template/base_site_head.php'); ...@@ -45,7 +37,7 @@ include_once('template/base_site_head.php');
</ul> </ul>
</div> </div>
</div> </div>
<?php $this -> dispInput(); ?> <?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01"> <div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">Nama Perusahaan: <label class="col-sm-3 info-label" for="email">Nama Perusahaan:
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
...@@ -76,7 +68,7 @@ include_once('template/base_site_head.php'); ...@@ -76,7 +68,7 @@ include_once('template/base_site_head.php');
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
</label> </label>
<div class="col-sm-9 input-box"> <div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control"> <input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(Dalam 128 karakter)</span> <span>(Dalam 128 karakter)</span>
</div> </div>
...@@ -112,6 +104,7 @@ include_once('template/base_site_head.php'); ...@@ -112,6 +104,7 @@ include_once('template/base_site_head.php');
<!-- /メインエリア --> <!-- /メインエリア -->
<?php <?php
include_once('template/base_site_foot.php'); include_once('template/base_site_foot.php');
echo $endscripts;
?> ?>
</body> </body>
</html> </html>
...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php'); ...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div> </div>
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75;">
*サーバーの不具合により、以下のお問い合わせフォームから送信されたお客様のメールが受信ができない状態が続いております。お手数ですが、当該機能を修正できるまで、お問い合わせの際は <img src="../../files/img/cs_iwl_world.PNG" alt="cs-iwl-world" class="img-responsive" style="display:inline-block; height:22px; margin-top: -2px;"> まで直接メールにてご連絡ください。
<br><br>
</h5>
<h5>お問い合わせの前にFAQをご覧ください。</h5> <h5>お問い合わせの前にFAQをご覧ください。</h5>
<p>下記フォームにお問い合わせ内容をご記入ください。<br> <p>下記フォームにお問い合わせ内容をご記入ください。<br>
お返事は、原則として翌営業日までにEメールにてお答えさせて頂きます。但し、土日祝・夏季・冬季休業日のお問合せは、お待たせする場合がございます。<br> お返事は、原則として翌営業日までにEメールにてお答えさせて頂きます。但し、土日祝・夏季・冬季休業日のお問合せは、お待たせする場合がございます。<br>
......
<?php <?php
$page_title = "お問い合わせ"; $page_title = "お問い合わせ - 内容入力";
include_once('site_config.php'); include_once('site_config.php');
include_once('template/base_site_head.php'); include_once('template/base_site_head.php');
?> ?>
...@@ -16,25 +16,16 @@ include_once('template/base_site_head.php'); ...@@ -16,25 +16,16 @@ include_once('template/base_site_head.php');
<div id="main" class="container"> <div id="main" class="container">
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75; font-size:20px;">
*サーバーの不具合により、以下のお問い合わせフォームから送信されたお客様のメールが受信ができない状態が続いております。お手数ですが、当該機能を修正できるまで、お問い合わせの際は
<span style="color:#648CEF;font-weight:bold;">cs@iwl.world</span> まで直接メールにてご連絡ください。
<br><br>
</h5>
</div>
<div class="col-sm-12" style="display:none;">
<h5>お問い合わせの前にFAQをご覧ください。</h5> <h5>お問い合わせの前にFAQをご覧ください。</h5>
<p> <p>下記フォームにお問い合わせ内容をご記入ください。<br>
下記フォームにお問い合わせ内容をご記入ください。<br>
お返事は、原則として翌営業日までにEメールにてお答えさせて頂きます。但し、土日祝・夏季・冬季休業日のお問合せは、お待たせする場合がございます。<br> お返事は、原則として翌営業日までにEメールにてお答えさせて頂きます。但し、土日祝・夏季・冬季休業日のお問合せは、お待たせする場合がございます。<br>
弊社からのお返事は、お客様個人宛てにお送りするものです。お返事文面の一部または全部を転載、二次利用することはご遠慮ください。<br> 弊社からのお返事は、お客様個人宛てにお送りするものです。お返事文面の一部または全部を転載、二次利用することはご遠慮ください。<br>
英語、日本語、中国語、韓国語のお問い合わせに対応いたします。 英語、日本語、中国語、韓国語のお問い合わせに対応いたします。</p>
</p>
</div> </div>
</div> </div>
<div class="tab-content" style="display:none;"> <div class="tab-content">
<div class="tab-pane fade in active"> <div class="tab-pane fade in active">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
<form id="acForm" action="" method="post"> <form id="acForm" action="" method="post">
...@@ -46,7 +37,7 @@ include_once('template/base_site_head.php'); ...@@ -46,7 +37,7 @@ include_once('template/base_site_head.php');
</ul> </ul>
</div> </div>
</div> </div>
<?php $this -> dispInput(); ?> <?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01"> <div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">会社名: <label class="col-sm-3 info-label" for="email">会社名:
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
...@@ -76,7 +67,7 @@ include_once('template/base_site_head.php'); ...@@ -76,7 +67,7 @@ include_once('template/base_site_head.php');
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
</label> </label>
<div class="col-sm-9 input-box"> <div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="128" value="<?php $this -> echoTitle(); ?>" class="form-control"> <input type="text" name="title" min="10" max="128" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(128文字以内で入力してください。)</span> <span>(128文字以内で入力してください。)</span>
</div> </div>
</div> </div>
...@@ -107,8 +98,78 @@ include_once('template/base_site_head.php'); ...@@ -107,8 +98,78 @@ include_once('template/base_site_head.php');
</section> </section>
</wrapper> </wrapper>
<div id="main" class="container" style="display:none;">
<h2><?php echo $page_title; ?></h2>
<p>※お問い合わせの前にFAQをご覧ください。</p>
<p>下記フォームにお問い合わせ内容をご記入ください。<br>
お返事は、原則として翌営業日までにEメールにてお答えさせて頂きます。但し、土日祝・夏季・冬季休業日のお問合せは、お待たせする場合がございます。<br>
弊社からのお返事は、お客様個人宛てにお送りするものです。お返事文面の一部または全部を転載、二次利用することはご遠慮ください。<br>
英語、日本語、中国語、韓国語のお問い合わせに対応いたします。</p>
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<p>
<?php $this -> dispAccountType(); ?>
</p>
<table class="table table-bordered c_th mb20">
<colgroup>
<col class="w40p">
<col class="w60p">
</colgroup>
<tbody>
<?php $this -> dispInput(); ?>
<tr id="corp_block_01">
<th>会社名 <span class="label label-danger">必須</span></th>
<td>
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</td>
</tr>
<tr id="corp_block_02">
<th>ご担当者名 <span class="label label-danger">必須</span></th>
<td>
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</td>
</tr>
<tr id="personal_block">
<th>お名前 <span class="label label-danger">必須</span></th>
<td>
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</td>
</tr>
<tr>
<th>お問い合わせ件名 <span class="label label-danger">必須</span></th>
<td>
<input type="text" name="title" value="<?php $this -> echoTitle(); ?>" class="form-control w100p">
<span class="note_s">128文字以内で入力してください。</span>
</td>
</tr>
<tr>
<th>お問い合わせ内容 <span class="label label-danger">必須</span></th>
<td>
<textarea name="body" id="" rows="3" class="textarea w100p"><?php $this -> echoBody(); ?></textarea>
<span class="note_s">500文字以内で入力してください。</span>
</td>
</tr>
</tbody>
</table>
<p class="text-center"><input type="button" id="btnConfirm" value="確認ページへ進む" class="btn btn-primary btn-lg"></p>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
<script src="../js/support.js"></script>
<!-- /メインエリア -->
<?php <?php
include_once('template/base_site_foot.php'); include_once('template/base_site_foot.php');
echo $endscripts;
?> ?>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -23,7 +23,6 @@ class LogicSupport extends SupportModelClass { ...@@ -23,7 +23,6 @@ class LogicSupport extends SupportModelClass {
* @return : TRUE:ロジック成功、FALSE:ロジック失敗 * @return : TRUE:ロジック成功、FALSE:ロジック失敗
-------------------------------------------------------------------------*/ -------------------------------------------------------------------------*/
function logic() { function logic() {
try { try {
// 初期データ処理 // 初期データ処理
...@@ -43,7 +42,6 @@ class LogicSupport extends SupportModelClass { ...@@ -43,7 +42,6 @@ class LogicSupport extends SupportModelClass {
* @return : なし * @return : なし
-------------------------------------------------------------------------*/ -------------------------------------------------------------------------*/
private function biz() { private function biz() {
if($this -> getType() == NO_STRING if($this -> getType() == NO_STRING
|| $this -> getType() == TYPE_INPUT) { // 入力画面 || $this -> getType() == TYPE_INPUT) { // 入力画面
$this -> select(); $this -> select();
...@@ -59,10 +57,8 @@ class LogicSupport extends SupportModelClass { ...@@ -59,10 +57,8 @@ class LogicSupport extends SupportModelClass {
* @return : なし * @return : なし
-------------------------------------------------------------------------*/ -------------------------------------------------------------------------*/
private function select() { private function select() {
// 変数宣言部 // 変数宣言部
$rs = null; $rs = null;
$row = null;
// データの取得 // データの取得
$rs = $this -> getAccountCommon($this -> getUserData(PARAM_USER_ACCOUNT)); $rs = $this -> getAccountCommon($this -> getUserData(PARAM_USER_ACCOUNT));
...@@ -86,11 +82,28 @@ class LogicSupport extends SupportModelClass { ...@@ -86,11 +82,28 @@ class LogicSupport extends SupportModelClass {
// データ用生成用のデータを取得する // データ用生成用のデータを取得する
$rs = $this -> getAccountByEmailCommon($mail); $rs = $this -> getAccountByEmailCommon($mail);
// アドミン側へ送信 $template = $this -> getMailTemplate(
$this -> sendMailByTmp('send_mail_for_admin.xml' "send_mail_for_admin.xml",
, $this -> getSendParamsForAdmin($rs) $this -> getSendParamsForAdmin($rs)
, VAR_CS_MAIL_ADDRESS );
, $mail);
if($this -> isLoopData($rs)){
$rowData = $this -> getRowData($rs);
$firstName = $this -> getColumnData($rowData, PARAM_FIRST_NAME);
$lastName = $this -> getColumnData($rowData, PARAM_LAST_NAME);
$template["full_name"] = "{$firstName} {$lastName}";
}
$errorDetails = [];
if(!$this -> createZendeskTicket($template, $errorDetails)){
$details = "Unexpected response code found on Zendesk API [Inquiry Form Issue/Warning].\n\n".
"Response Code: {$errorDetails["response_code"]}\n".
"Response String: {$errorDetails["response_str"]}";
$this -> notifyErrorToSlack($details);
}
// ユーザ側へ送信 // ユーザ側へ送信
$this -> sendMailByTmp('send_mail_for_user.xml' $this -> sendMailByTmp('send_mail_for_user.xml'
...@@ -99,6 +112,98 @@ class LogicSupport extends SupportModelClass { ...@@ -99,6 +112,98 @@ class LogicSupport extends SupportModelClass {
, VAR_CS_MAIL_ADDRESS); , VAR_CS_MAIL_ADDRESS);
} }
/*-------------------------------------------------------------------------
* @function_name: Zendeskチケットの新規作成
* @parameter : template, details
* @return : boolean
-------------------------------------------------------------------------*/
private function createZendeskTicket(Array $template, &$details = null){
$ticketingConf = $this -> getSettingConfiguration("zendesk_ticketing_api_conf");
$hashed = base64_encode("{$ticketingConf -> username}:{$ticketingConf -> password}");
$handle = curl_init();
if($ticketingConf -> staging)
$template["body"] = "[STAGING TICKET]\n{$template["body"]}";
$params = [
"ticket" => [
"subject" => $template["title"],
"priority" => "urgent",
"recipient" => $ticketingConf -> recipient,
"comment" => [
"body" => $template["body"]
],
"requester" => [
"locale_id" => $this -> getZendeskLocaleCode(),
"name" => isset($template["full_name"]) ? $template["full_name"] : NO_STRING,
"email" => $this -> getEmail()
]
]
];
curl_setopt_array($handle, [
CURLOPT_URL => $ticketingConf -> endpoint_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => "utf8",
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => $ticketingConf -> request_method,
CURLOPT_POSTFIELDS => json_encode($params),
CURLOPT_HTTPHEADER => [
"Content-type: application/json",
"Authorization: Basic {$hashed}"
]
]);
$output = curl_exec($handle);
$httpcode = curl_getinfo($handle, CURLINFO_HTTP_CODE);
curl_close($handle);
$details = [
"response_code" => $httpcode,
"response_str" => $output
];
return $httpcode === 201;
}
/*-------------------------------------------------------------------------
* @function_name: Slackへのエラー通知
* @parameter : details
* @return : なし
-------------------------------------------------------------------------*/
private function notifyErrorToSlack($details){
$slackChannels = $this -> getSettingConfiguration("slack_notif_channel");
$handle = curl_init();
$message = ["text" => $details];
curl_setopt_array($handle, [
CURLOPT_URL => $slackChannels -> user_details_channel,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => "utf8",
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_POSTFIELDS => json_encode($message),
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Content-type: application/json",
]
]);
curl_exec($handle);
if($err = curl_error($handle))
echo $err;
curl_close($handle);
}
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* @function_name: ページ出力文字列取得関数 * @function_name: ページ出力文字列取得関数
* @parameter : なし * @parameter : なし
......
<?php <?php
class SupportModelClass extends ModelClassEx { class SupportModelClass extends ModelClassEx {
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
...@@ -540,5 +540,26 @@ class SupportModelClass extends ModelClassEx { ...@@ -540,5 +540,26 @@ class SupportModelClass extends ModelClassEx {
} else { // データが存在しない } else { // データが存在しない
} }
} }
/*-------------------------------------------------------------------------
* @function_name: Zendeskのローカルコード
* @parameter : なし
* @return : なし
-------------------------------------------------------------------------*/
function getZendeskLocaleCode() {
switch($this -> getLangage()){
case "ja":
return 67;
case "tc":
return 9;
case "sc":
return 10;
case "id":
return 77;
case "en":
default:
return 1;
}
}
} }
?> ?>
...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php'); ...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div> </div>
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75;">
我们目前正在增强伺服器功能,暂时无法接收通过在线查询表发送的查询。请直接发送电子邮件至<img src="../../files/img/cs_iwl_world.PNG" alt="cs-iwl-world" class="img-responsive" style="display:inline-block; height:22px; margin-top: -2px;">,以便我们向您提供协助。谢谢。
<br><br>
</h5>
<h5>※您可以参考“常见问题”。</h5> <h5>※您可以参考“常见问题”。</h5>
<p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们提供英,日,中,韩等多语种客户服务。 <p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们提供英,日,中,韩等多语种客户服务。
</p> </p>
......
<?php <?php
$page_title = "在线提问 "; $page_title = "在线提问 - 编辑";
include_once('site_config.php'); include_once('site_config.php');
include_once('template/base_site_head.php'); include_once('template/base_site_head.php');
?> ?>
...@@ -16,22 +16,14 @@ include_once('template/base_site_head.php'); ...@@ -16,22 +16,14 @@ include_once('template/base_site_head.php');
<div id="main" class="container"> <div id="main" class="container">
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75; font-size:20px;">
我们目前正在增强伺服器功能,暂时无法接收通过在线查询表发送的查询。请直接发送电子邮件至
<span style="color:#648CEF;font-weight:bold;">cs@iwl.world</span>,以便我们向您提供协助。谢谢。
<br><br>
</h5>
</div>
<div class="col-sm-12" style="display:none;">
<h5>※您可以参考“常见问题”。</h5> <h5>※您可以参考“常见问题”。</h5>
<p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们目前可提供英,日,中,韩多语种客户支持。 <p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们目前可提供英,日,中,韩多语种客户支持。
</p> </p>
</div> </div>
</div>
<div class="tab-content" style="display:none;"> </div>
<div class="tab-content">
<div class="tab-pane fade in active"> <div class="tab-pane fade in active">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
<form id="acForm" action="" method="post"> <form id="acForm" action="" method="post">
...@@ -43,7 +35,7 @@ include_once('template/base_site_head.php'); ...@@ -43,7 +35,7 @@ include_once('template/base_site_head.php');
</ul> </ul>
</div> </div>
</div> </div>
<?php $this -> dispInput(); ?> <?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01"> <div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">公司名称: <label class="col-sm-3 info-label" for="email">公司名称:
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
...@@ -73,7 +65,7 @@ include_once('template/base_site_head.php'); ...@@ -73,7 +65,7 @@ include_once('template/base_site_head.php');
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
</label> </label>
<div class="col-sm-9 input-box"> <div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control"> <input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(128个字符以内)</span> <span>(128个字符以内)</span>
</div> </div>
...@@ -91,15 +83,15 @@ include_once('template/base_site_head.php'); ...@@ -91,15 +83,15 @@ include_once('template/base_site_head.php');
<div class="col-sm-12 btn-box"> <div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">下一步</button> <button class="btn-left" id="btnConfirm" type="submit" value="submit">下一步</button>
</div> </div>
<input type="hidden" id="type" name="type" value="" /> <input type="hidden" id="type" name="type" value="" />
</form> </form>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<script src="../js/support.js"></script> <script src="../js/support.js"></script>
...@@ -109,6 +101,7 @@ include_once('template/base_site_head.php'); ...@@ -109,6 +101,7 @@ include_once('template/base_site_head.php');
<!-- /メインエリア --> <!-- /メインエリア -->
<?php <?php
include_once('template/base_site_foot.php'); include_once('template/base_site_foot.php');
echo $endscripts;
?> ?>
</body> </body>
</html> </html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<MAIL> <MAIL>
<title> <title>
Inquire from Mr./Ms. __ELEMENT01__ __ELEMENT02__ Inquiry from Mr./Ms. __ELEMENT01__ __ELEMENT02__
</title> </title>
<body> <body>
Inquire from Mr./Ms. __ELEMENT01__ Inquiry from Mr./Ms. __ELEMENT01__
Customer name・ Company name:__ELEMENT04__ Customer name・ Company name:__ELEMENT04__
Title :__ELEMENT02__ Title :__ELEMENT02__
......
...@@ -2942,43 +2942,20 @@ class Common extends HtmlBuilder { ...@@ -2942,43 +2942,20 @@ class Common extends HtmlBuilder {
$this -> sendMailByTmp($tmpName, $params, $mail, $from); $this -> sendMailByTmp($tmpName, $params, $mail, $from);
} }
/*------------------------------------------------------------------------- function getMailTemplate($tmpName, $params, $lang = "ja"){
* @function_name: メールの送信を行う(テンプレートを読み込むラッパー)
* @parameter : テンプレート名、パラメータ、送信先メールアドレス、送信元メールアドレス
* @return : なし
-------------------------------------------------------------------------*/
function sendMailByTmp($tmpName
, $params
, $address
, $from = NO_STRING
, $lang = 'ja'
, $file = null) {
// 変数宣言部
$path = MAIL_TEMPLATES . $tmpName; $path = MAIL_TEMPLATES . $tmpName;
$xml = null;
$title = NO_STRING;
$body = NO_STRING;
$cnt = VAL_INT_1; $cnt = VAL_INT_1;
$key = NO_STRING;
// XMLファイルの存在確認 // XMLファイルの存在確認
if(file_exists($path)) { if(!file_exists($path))
return false;
// xmlファイルロード // xmlファイルロード
if(($xml = simplexml_load_file($path))) { if(!($xml = simplexml_load_file($path)))
return false;
// 件名を取得する
$key = PARAM_TITLE;
if(NO_STRING == ($title = $xml -> $key)) {
return ;
}
// 件名を取得する if(NO_STRING == ($title = $xml -> title) || NO_STRING == ($body = $xml -> body))
$key = PARAM_BODY; return false;
if(NO_STRING == ($body = $xml -> $key)) {
return ;
}
// トリムをする(件名) // トリムをする(件名)
$title = str_replace("\t", NO_STRING, $title); $title = str_replace("\t", NO_STRING, $title);
...@@ -3009,18 +2986,35 @@ class Common extends HtmlBuilder { ...@@ -3009,18 +2986,35 @@ class Common extends HtmlBuilder {
$body = str_replace('__ELEMENT_SITE_SHORT_NAME__', SITE_SHORT_NAME, $body); $body = str_replace('__ELEMENT_SITE_SHORT_NAME__', SITE_SHORT_NAME, $body);
$body = str_replace('__ELEMENT_LANGAGE__', $lang, $body); $body = str_replace('__ELEMENT_LANGAGE__', $lang, $body);
$templateData = [
"body" => isset($body) ? $body : NO_STRING,
"title" => isset($title) ? $title : NO_STRING
];
return $templateData;
}
/*-------------------------------------------------------------------------
* @function_name: メールの送信を行う(テンプレートを読み込むラッパー)
* @parameter : テンプレート名、パラメータ、送信先メールアドレス、送信元メールアドレス
* @return : なし
-------------------------------------------------------------------------*/
function sendMailByTmp($tmpName
, $params
, $address
, $from = NO_STRING
, $lang = 'ja'
, $file = null) {
if($template = $this -> getMailTemplate($tmpName, $params, $lang)){
//check if there is a file to be attached (file is not null) //check if there is a file to be attached (file is not null)
if($file != null) { if($file != null) {
// 全部OKだったらメール送信 // 全部OKだったらメール送信
$this -> sendMail($address, $title, $body, $from, $file); $this -> sendMail($address, $template["title"], $template["body"], $from, $file);
} else { } else {
$this -> sendMail($address, $title, $body, $from); $this -> sendMail($address, $template["title"], $template["body"], $from);
}
} }
} }
return;
} }
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
......
...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php'); ...@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div> </div>
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75;">
我們目前正在增強伺服器功能,暫時無法接收通過在線查詢表發送的查詢。請直接發送電子郵件至<img src="../../files/img/cs_iwl_world.PNG" alt="cs-iwl-world" class="img-responsive" style="display:inline-block; height:22px; margin-top: -2px;">,以便我們向您提供協助。謝謝。
<br><br>
</h5>
<h5>※請參考“常見問題”。</h5> <h5>※請參考“常見問題”。</h5>
<p>或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不得向第三方透露。們提供英,日,中,韓等多語種客戶支援。 <p>或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不得向第三方透露。們提供英,日,中,韓等多語種客戶支援。
</p> </p>
......
<?php <?php
$page_title = "線上提問 "; $page_title = "線上提問 - 輸入問題";
include_once('site_config.php'); include_once('site_config.php');
include_once('template/base_site_head.php'); include_once('template/base_site_head.php');
?> ?>
...@@ -16,23 +16,14 @@ include_once('template/base_site_head.php'); ...@@ -16,23 +16,14 @@ include_once('template/base_site_head.php');
<div id="main" class="container"> <div id="main" class="container">
<div class="row no-border"> <div class="row no-border">
<div class="col-sm-12"> <div class="col-sm-12">
<h5 style="color: #f00f00; line-height: 1.75; font-size:20px;">
我們目前正在增強伺服器功能,暫時無法接收通過在線查詢表發送的查詢。請直接發送電子郵件至
<span style="color:#648CEF;font-weight:bold;">cs@iwl.world</span>,以便我們向您提供協助。謝謝。
<br><br>
</h5>
</div>
<div class="col-sm-12" style="display:none;">
<h5>※請參考“常見問題”。</h5> <h5>※請參考“常見問題”。</h5>
<p> <p>或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不會向第三方透露。我們提供英,日,中,韓等多語種客戶支持。
或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不會向第三方透露。我們提供英,日,中,韓等多語種客戶支持。
</p> </p>
</div> </div>
</div>
<div class="tab-content" style="display:none;"> </div>
<div class="tab-content">
<div class="tab-pane fade in active"> <div class="tab-pane fade in active">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
<form id="acForm" action="" method="post"> <form id="acForm" action="" method="post">
...@@ -44,7 +35,7 @@ include_once('template/base_site_head.php'); ...@@ -44,7 +35,7 @@ include_once('template/base_site_head.php');
</ul> </ul>
</div> </div>
</div> </div>
<?php $this -> dispInput(); ?> <?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01"> <div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">公司名稱: <label class="col-sm-3 info-label" for="email">公司名稱:
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
...@@ -74,7 +65,7 @@ include_once('template/base_site_head.php'); ...@@ -74,7 +65,7 @@ include_once('template/base_site_head.php');
<span id="required" class="required">*</span> <span id="required" class="required">*</span>
</label> </label>
<div class="col-sm-9 input-box"> <div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control"> <input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(必須在128個字以內))</span> <span>(必須在128個字以內))</span>
</div> </div>
...@@ -91,9 +82,11 @@ include_once('template/base_site_head.php'); ...@@ -91,9 +82,11 @@ include_once('template/base_site_head.php');
</div> </div>
<div class="col-sm-12 btn-box"> <div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="下一頁">下一頁</button> <button class="btn-left" id="btnConfirm" type="下一頁" value="submit">下一頁</button>
</div> </div>
<input type="hidden" id="type" name="type" value="" /> <input type="hidden" id="type" name="type" value="" />
</form> </form>
</div> </div>
...@@ -108,6 +101,7 @@ include_once('template/base_site_head.php'); ...@@ -108,6 +101,7 @@ include_once('template/base_site_head.php');
<!-- /メインエリア --> <!-- /メインエリア -->
<?php <?php
include_once('template/base_site_foot.php'); include_once('template/base_site_foot.php');
echo $endscripts;
?> ?>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment