app/template/default/Mail/question.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends 'default_frame.twig' %}
  9. {% set body_class = 'question_page' %}
  10. {% block stylesheet %}
  11.     <link rel="stylesheet" href="/stylesheets/jquery.efo.css">
  12.     <link rel="stylesheet" href="/stylesheets/mail.css?20230217">
  13.     <link rel="stylesheet" href="/stylesheets/mypage.css?20211226">
  14.     <link rel="stylesheet" href="/stylesheets/topcss.min.css">
  15.     <link rel="stylesheet" href="/stylesheets/base_stylesheet2.css">
  16.     <link rel="stylesheet" href="/stylesheets/sp_common.css">
  17.     <link rel="stylesheet" href="/stylesheets/first_view.css?20180302_01">
  18.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
  19.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  20.     <link rel="stylesheet" href="/stylesheets/jquery.fbnr.css?20170629_01">
  21. {% endblock %}
  22. {% block javascript %}
  23.     <script src="/javascripts/jquery-ui.min.js" type="text/javascript"></script>
  24.     <script src="/javascripts/jquery.efo.js" type="text/javascript"></script>
  25.     <script>
  26.         $(function () {
  27.             var efo_elm = $("[class^=efo]").efo({
  28.                 confirmation: { enabled: false, form: document.forms.fm },
  29.                 notification: { enabled: true },
  30.                 validation: { bind: 'efo_change' },
  31.                 tooltipping: { enabled: true },
  32.                 observation: { enabled: true }
  33.             }).on('efo_afterValidate', function (event, data) {
  34.                 if (data.remaining > 0) {
  35.                     $('#btn_kakunin_off').show();
  36.                     $('#btn_kakunin').hide();
  37.                 } else {
  38.                     $('#btn_kakunin_off').hide();
  39.                     $('#btn_kakunin').show();
  40.                 }
  41.             });
  42.             var efo = $.data(efo_elm, 'plugin_efo');
  43.             $('#btn_kakunin_off').on('click', function (event, ui) {
  44.                 if (efo.remaining > 0) {
  45.                     alert('未入力、もしくは入力間違いの項目が' + efo.remaining + '個あります。');
  46.                     return false;
  47.                 }
  48.             });
  49.             $('#btn_kakunin').click(function () {
  50.                 if (!document.getElementById('privacy1').checked) {
  51.                     document.getElementById('privacy1').focus();
  52.                     alert('利用目的に同意していただく必要があります。');
  53.                     return false;
  54.                 }
  55.                 $('#mail_question').submit();
  56.             });
  57.         });
  58.     </script>
  59. {% endblock %}
  60. {% block main %}
  61.     <div id="pankuzu" class="ec-layoutRole__contents">
  62.         <ul itemscope="" itemtype="https://schema.org/BreadcrumbList">
  63.             <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  64.                 <meta itemprop="position" content="1">
  65.                 <a href="/" itemprop="item"><span itemprop="name">ユニフォーム通販TOP</span></a>
  66.                 &nbsp;&gt;&nbsp;
  67.             </li>
  68.             <li itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
  69.                 <meta itemprop="position" content="2">
  70.                 <a href="/item/{{ goods.goods_id }}.html" itemprop="item">
  71.                     <span itemprop="name">{{ goods.goods_name }}</span>
  72.                 </a>
  73.                 &nbsp;&gt;&nbsp;
  74.             </li>
  75.             <li>
  76.                 <span class="nowpage">商品について質問する</span>
  77.             </li>
  78.         </ul>
  79.     </div>
  80.     <div id="mail_content" class="pc mail-question">
  81.         <table class="product-table">
  82.             <tr>
  83.                 <td class="product-name">{{ goods.goods_name }}</td>
  84.                 <td class="product-code">{{ goods.gp_katabans }}</td>
  85.                 <td class="product-price">{{ goods.prices }}</td>
  86.             </tr>
  87.         </table>
  88.         <div class="page-title">
  89.             <h3>商品についての問合せ</h3>
  90.         </div>
  91.         <p style="margin: 5px;">
  92.             <span>
  93.                 下記の項目をご入力ください。<br>
  94.                 入力が完了しましたら、画面下の「次へ」ボタンを押してください。確認画面に移動します。<br>
  95.             </span>
  96.             <span class="red">
  97.                 ※の項目は必須入力です。<br>
  98.                 必ずお名前とメールアドレスを入力してください。折り返しご連絡させて頂きます。
  99.             </span>
  100.         </p>
  101.         <form name="mail_question" id="mail_question" method="post"
  102.               action="{{ url('mail_question', {goods_id: goods.goods_id}) }}">
  103.             {{ form_widget(form._token) }}
  104.             <div class="page-title">
  105.                 <h3>商品についてのお問い合せ内容の入力</h3>
  106.             </div>
  107.             <table class="new_input left" style="margin:0px;">
  108.                 <tbody>
  109.                 <tr>
  110.                     <th class="h">お名前</th>
  111.                     <td class="c1" style="padding-left: 8px;">
  112.                         <div class="ec-halfInput ec-input{{ has_errors(form.user_name) ? ' error' }}">
  113.                             {{ form_widget(form.user_name, {
  114.                                 attr: {
  115.                                     'id': 'user_name',
  116.                                     'class': 'efo-required',
  117.                                     'data-efo-validate-required': 'お名前をご入力ください',
  118.                                     'placeholder': '(例)山田 太郎'
  119.                                 }
  120.                             }) }}
  121.                             {{ form_errors(form.user_name) }}
  122.                         </div>
  123.                     </td>
  124.                 </tr>
  125.                 <tr>
  126.                     <th class="h">メールアドレス</th>
  127.                     <td class="c1">
  128.                         <div class="ec-input{{ has_errors(form.mail.first) ? ' error' }}">
  129.                             {{ form_widget(form.mail.first, {
  130.                                 attr: {
  131.                                     'id': 'question_mail_first',
  132.                                     'class': 'efo-required-mail w350',
  133.                                     'data-efo-validate-required': 'メールアドレスをご入力ください',
  134.                                     'placeholder': '(例)info@l-m.co.jp'
  135.                                 }
  136.                             }) }}
  137.                             {{ form_errors(form.mail.first) }}
  138.                         </div>
  139.                         <div class="ec-input{{ has_errors(form.mail.second) ? ' error' }}">
  140.                             <label for="question_mail_second" style="margin-top:1em;">確認のためもう一度入力してください</label>
  141.                             {{ form_widget(form.mail.second, {
  142.                                 attr: {
  143.                                     'id': 'question_mail_second',
  144.                                     'class': 'efo-required-mail w350',
  145.                                     'data-efo-validate-required': 'メールアドレスをご入力ください',
  146.                                     'placeholder': '確認のためもう一度入力してください'
  147.                                 }
  148.                             }) }}
  149.                             {{ form_errors(form.mail.second) }}
  150.                         </div>
  151.                     </td>
  152.                 </tr>
  153.                 <tr>
  154.                     <th class="h">お問合せ内容</th>
  155.                     <td class="c1">
  156.                         <div class="ec-input{{ has_errors(form.question) ? ' error' }}">
  157.                             {{ form_widget(form.question, {
  158.                                 attr: {
  159.                                     'id': 'question',
  160.                                     'class': 'efo-required',
  161.                                     'style': 'width: 80%; height: 160px; padding: 6px; box-sizing: border-box;',
  162.                                     'data-efo-validate-required': 'お問い合わせ内容をご入力ください',
  163.                                 }
  164.                             }) }}
  165.                             {{ form_errors(form.question) }}
  166.                         </div>
  167.                     </td>
  168.                 </tr>
  169.                 </tbody>
  170.             </table>
  171.             <div class="page-title">
  172.                 <h3>個人情報の取扱いについての同意</h3>
  173.             </div>
  174.             <table class="new_input left">
  175.                 <tbody>
  176.                     <tr>
  177.                         <td colspan="2" style="padding:10px;border-left:none;">
  178.                             <div id="privacy_box">
  179.                                 {{ GetPrivacy3()|raw }}
  180.                             </div>
  181.                         </td>
  182.                     </tr>
  183.                     <tr>
  184.                         <th class="h last-th">個人情報の<br>取扱いについて</th>
  185.                         <td class="c3" style="border:none;">
  186.                             <label class="lb-agree">
  187.                                 <input type="radio" name="privacy" id="privacy1" value="1"> 同意する
  188.                             </label>
  189.                             <label class="lb-agree">
  190.                                 <input type="radio" name="privacy" id="privacy2" value="2" checked="checked"> 同意しない
  191.                             </label>
  192.                             <br>ユニフォームタウンをご利用いただくには、上記「個人情報の取扱いについての同意」にご同意いただく必要がございます。<br>
  193.                             <div align="right" style="padding-bottom:4px">
  194.                                 <a href="/company/privacy/" target="_blank">→個人情報保護方針</a>
  195.                             </div>
  196.                         </td>
  197.                     </tr>
  198.                 </tbody>
  199.             </table>
  200.             <br class="clear">
  201.             <div class="submit-btns">
  202.                 <input
  203.                     type="image"
  204.                     src="https://img0.land-mark.biz/ut_img/public_images/regi/btn_kakunin_off.gif"
  205.                     width="205"
  206.                     height="45"
  207.                     alt="未入力、もしくは入力間違いの必須項目があります。"
  208.                     id="btn_kakunin_off"
  209.                 >
  210.                 <input
  211.                     type="image"
  212.                     name="mode"
  213.                     value="confirm"
  214.                     src="https://img0.land-mark.biz/ut_img/public_images/contact/btn_kakunin.gif"
  215.                     width="298"
  216.                     height="38"
  217.                     alt="確認画面へ進む"
  218.                     id="btn_kakunin"
  219.                     style="display:none;"
  220.                 >
  221.             </div>
  222.         </form>
  223.         <table style="margin-top: 10px;">
  224.             <tbody>
  225.             <tr>
  226.                 <td>
  227.                     <div id="DigiCertClickID_2phMqn4D"><div id="DigiCertClickID_2phMqn4DSeal" style="text-decoration: none; text-align: center; display: block; vertical-align: baseline; font-size: 100%; font-style: normal; text-indent: 0px; line-height: 1; width: auto; margin: 0px auto; padding: 0px; border: 0px; background: transparent; position: relative; inset: 0px; clear: both; float: none; cursor: default;"><img src="//seal.digicert.com/seals/cascade/?tag=2phMqn4D&amp;referer={{ eccube_config.UT_URL }}&amp;format=png&amp;seal_number=15&amp;seal_size=s&amp;an=min" alt="DigiCert Seal" tabindex="0" style="text-decoration: none; text-align: center; display: block; vertical-align: baseline; font-size: 100%; font-style: normal; text-indent: 0px; line-height: 1; width: auto; margin: 0px auto; padding: 0px; border: 0px; background: transparent; position: relative; inset: 0px; clear: both; float: none; cursor: pointer;"></div></div>
  228.                     <script type="text/javascript">
  229.                         var __dcid = __dcid || [];__dcid.push(["DigiCertClickID_2phMqn4D", "15", "s", "black", "2phMqn4D"]);(function(){var cid=document.createElement("script");cid.async=true;cid.src="//seal.digicert.com/seals/cascade/seal.min.js";var s = document.getElementsByTagName("script");var ls = s[(s.length - 1)];ls.parentNode.insertBefore(cid, ls.nextSibling);}());
  230.                     </script>
  231.                     <script async="" src="//seal.digicert.com/seals/cascade/seal.min.js"></script>
  232.                 </td>
  233.                 <td style="padding: 10px 0px 0px 10px; font-size: 12px; line-height: 120%;">
  234.                     当サイトはデジサート・ジャパン合同会社により「サイトの運営主体の実在証明」及び「SSL暗号化通信による情報の保護」の認証証明を受けており、お客様よりご登録いただく個人情報やクレジットカード番号等の情報は
  235.                     SSL(Secure Socket Layer)という信用性・安全性の高い暗号通信技術で暗号化され、第三者の盗聴、改ざん、成りすましなどから保護されます。安心してご利用ください。<br>
  236.                 </td>
  237.             </tr>
  238.             </tbody>
  239.         </table>
  240.         <br class="clear">
  241.     </div>
  242. {% endblock %}