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

Unhide CS Inquiry Form

parent fcadd1fa
......@@ -13,11 +13,7 @@ include_once('template/base_site_head.php');
</div>
</div>
<div class="row no-border">
<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>
<div class="col-sm-12">
<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>
......
<?php
$page_title = "Online Questions";
$page_title = "Online Questions -Edit";
include_once('site_config.php');
include_once('template/base_site_head.php');
?>
......@@ -15,99 +15,95 @@ include_once('template/base_site_head.php');
</div>
</div>
<div id="main" class="container">
<div class="row no-border">
<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 id="main" class="container">
<div class="row no-border">
<div class="col-sm-12">
<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>
</div>
</div>
<div class="tab-content">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">Company Name:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">Contact Person:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Name:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">Subject:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(Within 128 characters)</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Content:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(Within 500 characters)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">Next</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
<div class="col-sm-12" style="display:none;">
<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>
</div>
</div>
<div class="tab-content" style="display:none;">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">Company Name:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">Contact Person:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Name:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">Subject:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(Within 128 characters)</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Content:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(Within 500 characters)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">Next</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script src="../js/support.js"></script>
</div>
</div>
</div>
<script src="../js/support.js"></script>
</section>
</wrapper>
<!-- /メインエリア -->
<?php
include_once('template/base_site_foot.php');
echo $endscripts;
?>
</body>
</html>
\ No newline at end of file
......@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div>
<div class="row no-border">
<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>
<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>
......
<?php
$page_title = "Pertanyaan Online";
$page_title = "Pertanyaan Online -Edit";
include_once('site_config.php');
include_once('template/base_site_head.php');
?>
......@@ -15,103 +15,96 @@ include_once('template/base_site_head.php');
</div>
</div>
<div id="main" class="container">
<div class="row no-border">
<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 id="main" class="container">
<div class="row no-border">
<div class="col-sm-12">
<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>
</div>
</div>
<div class="tab-content">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">Nama Perusahaan:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">Contact Person:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Nama:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">Subjek:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(Dalam 128 karakter)</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Pesan:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(Dalam 500 karakter)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">Selanjutnya</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
<div class="col-sm-12" style="display:none;">
<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>
</div>
</div>
<div class="tab-content" style="display:none;">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">Nama Perusahaan:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">Contact Person:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Nama:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">Subjek:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(Dalam 128 karakter)</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">Pesan:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(Dalam 500 karakter)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">Selanjutnya</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script src="../js/support.js"></script>
</div>
</div>
</div>
<script src="../js/support.js"></script>
</section>
</wrapper>
<!-- /メインエリア -->
<?php
include_once('template/base_site_foot.php');
echo $endscripts;
?>
</body>
</html>
......@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div>
<div class="row no-border">
<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>
<p>下記フォームにお問い合わせ内容をご記入ください。<br>
お返事は、原則として翌営業日までにEメールにてお答えさせて頂きます。但し、土日祝・夏季・冬季休業日のお問合せは、お待たせする場合がございます。<br>
......
This diff is collapsed.
......@@ -23,7 +23,6 @@ class LogicSupport extends SupportModelClass {
* @return : TRUE:ロジック成功、FALSE:ロジック失敗
-------------------------------------------------------------------------*/
function logic() {
try {
// 初期データ処理
......@@ -43,7 +42,6 @@ class LogicSupport extends SupportModelClass {
* @return : なし
-------------------------------------------------------------------------*/
private function biz() {
if($this -> getType() == NO_STRING
|| $this -> getType() == TYPE_INPUT) { // 入力画面
$this -> select();
......@@ -59,10 +57,8 @@ class LogicSupport extends SupportModelClass {
* @return : なし
-------------------------------------------------------------------------*/
private function select() {
// 変数宣言部
$rs = null;
$row = null;
// データの取得
$rs = $this -> getAccountCommon($this -> getUserData(PARAM_USER_ACCOUNT));
......@@ -85,20 +81,129 @@ class LogicSupport extends SupportModelClass {
// データ用生成用のデータを取得する
$rs = $this -> getAccountByEmailCommon($mail);
// アドミン側へ送信
$this -> sendMailByTmp('send_mail_for_admin.xml'
, $this -> getSendParamsForAdmin($rs)
, VAR_CS_MAIL_ADDRESS
, $mail);
$template = $this -> getMailTemplate(
"send_mail_for_admin.xml",
$this -> getSendParamsForAdmin($rs)
);
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 -> getSendParamsForUser($rs)
, $mail
, VAR_CS_MAIL_ADDRESS);
, $this -> getSendParamsForUser($rs)
, $mail
, 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: ページ出力文字列取得関数
* @parameter : なし
......
<?php
<?php
class SupportModelClass extends ModelClassEx {
/*-------------------------------------------------------------------------
......@@ -540,5 +540,26 @@ class SupportModelClass extends ModelClassEx {
} 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');
</div>
<div class="row no-border">
<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>
<p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们提供英,日,中,韩等多语种客户服务。
</p>
......
<?php
$page_title = "在线提问 ";
$page_title = "在线提问 - 编辑";
include_once('site_config.php');
include_once('template/base_site_head.php');
?>
......@@ -13,102 +13,95 @@ include_once('template/base_site_head.php');
</div>
</div>
<div id="main" class="container">
<div class="row no-border">
<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>
<p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们目前可提供英,日,中,韩多语种客户支持。
</p>
</div>
</div>
<div class="tab-content" style="display:none;">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">公司名称:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">联系人:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">姓名:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">主题:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(128个字符以内)</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">内容:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(500个字符以内)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">下一步</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script src="../js/support.js"></script>
<div id="main" class="container">
<div class="row no-border">
<div class="col-sm-12">
<h5>※您可以参考“常见问题”。</h5>
<p>或者请在以下表格内填写需要询问的事宜,您将在工作日的24小时内收到回复。如遇节假日和周末,会稍有延迟,还请谅解。所有内容将会被保密,不得向第三方透露。我们目前可提供英,日,中,韩多语种客户支持。
</p>
</div>
</div>
<div class="tab-content">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">公司名称:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">联系人:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">姓名:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">主题:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(128个字符以内)</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">内容:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(500个字符以内)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="submit">下一步</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script src="../js/support.js"></script>
</section>
</wrapper>
<!-- /メインエリア -->
<?php
include_once('template/base_site_foot.php');
echo $endscripts;
?>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<MAIL>
<title>
Inquire from Mr./Ms. __ELEMENT01__ __ELEMENT02__
Inquiry from Mr./Ms. __ELEMENT01__ __ELEMENT02__
</title>
<body>
Inquire from Mr./Ms. __ELEMENT01__
Inquiry from Mr./Ms. __ELEMENT01__
Customer name・ Company name:__ELEMENT04__
Title :__ELEMENT02__
......
......@@ -2942,6 +2942,58 @@ class Common extends HtmlBuilder {
$this -> sendMailByTmp($tmpName, $params, $mail, $from);
}
function getMailTemplate($tmpName, $params, $lang = "ja"){
$path = MAIL_TEMPLATES . $tmpName;
$cnt = VAL_INT_1;
// XMLファイルの存在確認
if(!file_exists($path))
return false;
// xmlファイルロード
if(!($xml = simplexml_load_file($path)))
return false;
if(NO_STRING == ($title = $xml -> title) || NO_STRING == ($body = $xml -> body))
return false;
// トリムをする(件名)
$title = str_replace("\t", NO_STRING, $title);
$title = str_replace("\r", NO_STRING, $title);
$title = str_replace("\0", NO_STRING, $title);
$title = str_replace("\x0B", NO_STRING, $title);
// トリムをする
$body = str_replace("\t", NO_STRING, $body);
$body = str_replace("\r", NO_STRING, $body);
$body = str_replace("\0", NO_STRING, $body);
$body = str_replace("\x0B", NO_STRING, $body);
// パラメータを設定する
foreach($params as $value) {
$title = str_replace("__ELEMENT" . sprintf("%02d", $cnt) . "__" , $value, $title);
$body = str_replace("__ELEMENT" . sprintf("%02d", $cnt) . "__" , $value, $body);
$cnt++;
}
// ドメインの変更
$title = str_replace('__ELEMENT_SITE_NAME__', SITE_NAME, $title);
$body = str_replace('__ELEMENT_DOMAIN__', SITE_DOMAIN, $body);
$body = str_replace('__ELEMENT_BASE_URL__', SITE_PROTOCOL.'://'.SITE_DOMAIN_FULL, $body);
$body = str_replace('__ELEMENT_SUB_DOMAIN__', SITE_SUB_DOMAIN, $body);
$body = str_replace('__ELEMENT_SITE_NAME__', SITE_NAME, $body);
$body = str_replace('__ELEMENT_SITE_CORP_SHORT_NAME__', SITE_CORP_SHORT_NAME, $body);
$body = str_replace('__ELEMENT_SITE_SHORT_NAME__', SITE_SHORT_NAME, $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 : テンプレート名、パラメータ、送信先メールアドレス、送信元メールアドレス
......@@ -2953,74 +3005,16 @@ class Common extends HtmlBuilder {
, $from = NO_STRING
, $lang = 'ja'
, $file = null) {
// 変数宣言部
$path = MAIL_TEMPLATES . $tmpName;
$xml = null;
$title = NO_STRING;
$body = NO_STRING;
$cnt = VAL_INT_1;
$key = NO_STRING;
// XMLファイルの存在確認
if(file_exists($path)) {
// xmlファイルロード
if(($xml = simplexml_load_file($path))) {
// 件名を取得する
$key = PARAM_TITLE;
if(NO_STRING == ($title = $xml -> $key)) {
return ;
}
// 件名を取得する
$key = PARAM_BODY;
if(NO_STRING == ($body = $xml -> $key)) {
return ;
}
// トリムをする(件名)
$title = str_replace("\t", NO_STRING, $title);
$title = str_replace("\r", NO_STRING, $title);
$title = str_replace("\0", NO_STRING, $title);
$title = str_replace("\x0B", NO_STRING, $title);
// トリムをする
$body = str_replace("\t", NO_STRING, $body);
$body = str_replace("\r", NO_STRING, $body);
$body = str_replace("\0", NO_STRING, $body);
$body = str_replace("\x0B", NO_STRING, $body);
// パラメータを設定する
foreach($params as $value) {
$title = str_replace("__ELEMENT" . sprintf("%02d", $cnt) . "__" , $value, $title);
$body = str_replace("__ELEMENT" . sprintf("%02d", $cnt) . "__" , $value, $body);
$cnt++;
}
// ドメインの変更
$title = str_replace('__ELEMENT_SITE_NAME__', SITE_NAME, $title);
$body = str_replace('__ELEMENT_DOMAIN__', SITE_DOMAIN, $body);
$body = str_replace('__ELEMENT_BASE_URL__', SITE_PROTOCOL.'://'.SITE_DOMAIN_FULL, $body);
$body = str_replace('__ELEMENT_SUB_DOMAIN__', SITE_SUB_DOMAIN, $body);
$body = str_replace('__ELEMENT_SITE_NAME__', SITE_NAME, $body);
$body = str_replace('__ELEMENT_SITE_CORP_SHORT_NAME__', SITE_CORP_SHORT_NAME, $body);
$body = str_replace('__ELEMENT_SITE_SHORT_NAME__', SITE_SHORT_NAME, $body);
$body = str_replace('__ELEMENT_LANGAGE__', $lang, $body);
//check if there is a file to be attached (file is not null)
if($file != null) {
// 全部OKだったらメール送信
$this -> sendMail($address, $title, $body, $from, $file);
} else {
$this -> sendMail($address, $title, $body, $from);
}
}
if($template = $this -> getMailTemplate($tmpName, $params, $lang)){
//check if there is a file to be attached (file is not null)
if($file != null) {
// 全部OKだったらメール送信
$this -> sendMail($address, $template["title"], $template["body"], $from, $file);
} else {
$this -> sendMail($address, $template["title"], $template["body"], $from);
}
}
return;
}
/*-------------------------------------------------------------------------
......
......@@ -14,10 +14,6 @@ include_once('template/base_site_head.php');
</div>
<div class="row no-border">
<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>
<p>或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不得向第三方透露。們提供英,日,中,韓等多語種客戶支援。
</p>
......
<?php
$page_title = "線上提問 ";
$page_title = "線上提問 - 輸入問題";
include_once('site_config.php');
include_once('template/base_site_head.php');
?>
......@@ -13,101 +13,95 @@ include_once('template/base_site_head.php');
</div>
</div>
<div id="main" class="container">
<div class="row no-border">
<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>
<p>
或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不會向第三方透露。我們提供英,日,中,韓等多語種客戶支持。
</p>
</div>
</div>
<div class="tab-content" style="display:none;">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">公司名稱:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">聯絡人:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">姓名:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">標題:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(必須在128個字以內))</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">内容:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(請詳細描述您的問題,限250字以內。)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="submit" value="下一頁">下一頁</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script src="../js/support.js"></script>
<div id="main" class="container">
<div class="row no-border">
<div class="col-sm-12">
<h5>※請參考“常見問題”。</h5>
<p>或者您可以透過“線上提問”聯絡我們。我們會在工作日的24小時內回覆您。如遇節假日和週末,會稍有延遲,還請諒解。所有內容將會被保密,不會向第三方透露。我們提供英,日,中,韓等多語種客戶支持。
</p>
</div>
</div>
<div class="tab-content">
<div class="tab-pane fade in active">
<div class="row">
<div class="col-sm-8">
<form id="acForm" action="" method="post">
<?php $this -> dispMessagesCommon(); ?>
<div class="row">
<div class="col-sm-12">
<ul class="nav nav-pills">
<?php $this -> dispAccountType(); ?>
</ul>
</div>
</div>
<?php $this -> dispInput(); ?>
<div class="form-group row info-section" id="corp_block_01">
<label class="col-sm-3 info-label" for="email">公司名稱:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_corp" value="<?php $this -> echoName(); ?>" class="form-control">
</div>
</div>
<div class="form-group row info-section" id="corp_block_02">
<label class="col-sm-3 info-label" for="email">聯絡人:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="manager_name" value="<?php $this -> echoManager(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">姓名:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="name_per" value="<?php $this -> echoName(); ?>" class="form-control w50p">
</div>
</div>
<div class="form-group row info-section">
<label class="col-sm-3 info-label" for="email">標題:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<input type="text" name="title" min="10" max="120" value="<?php $this -> echoTitle(); ?>" class="form-control">
<span>(必須在128個字以內))</span>
</div>
</div>
<div class="form-group row info-section" id="personal_block">
<label class="col-sm-3 info-label" for="email">内容:
<span id="required" class="required">*</span>
</label>
<div class="col-sm-9 input-box">
<textarea name="body" id="" rows="4" min="10" max="500" class="form-control"><?php $this -> echoBody(); ?></textarea>
<span>(請詳細描述您的問題,限250字以內。)</span>
</div>
</div>
<div class="col-sm-12 btn-box">
<button class="btn-left" id="btnConfirm" type="下一頁" value="submit">下一頁</button>
</div>
<input type="hidden" id="type" name="type" value="" />
</form>
</div>
</div>
</div>
</div>
</div>
<script src="../js/support.js"></script>
</section>
</wrapper>
<!-- /メインエリア -->
<?php
include_once('template/base_site_foot.php');
echo $endscripts;
?>
</body>
</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