app/template/default/Block/search_product.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. {% form_theme form 'Form/form_div_layout.twig' %}
  9. <div id="category_id_form" style="display:none;">{{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'category_id','style': 'height:42px;border-radius: 6px;'}}) }}</div>
  10. <div class="drawer_block pc header_bottom_area">
  11.     <div id="search" class="" style="padding: 0 20px 0 20px;margin-bottom: 20px;display: flex;align-items: center;justify-content: center;">
  12.         <form method="get" id="searchform" action="{{ path('product_list') }}" style="width:100%;max-width: 1100px;">
  13.             <span style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">条件検索</span>
  14.             <div class="search_inner" style="display:flex;align-items:center;justify-content:center;background-color:#f4f3f3;padding:10px;border-radius: 6px;">
  15.                 <div style="display:flex;gap: 20px;">
  16.                     <div style="width: 200px">
  17.                         <label for="name" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">キーワード</label>
  18.                         <input type="text" id="" name="name" maxlength="50" style="background-color:white;width:100%;padding:10px;border:1px solid #ccc;border-radius: 6px;height:42px;" placeholder="キーワードを入力" />
  19.                     </div>
  20.                     <div>
  21.                         <label for="category_id" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">カテゴリー</label>
  22.                         <div id="category_select_pc">
  23.                         </div>
  24.                     </div>
  25.                     <div>
  26.                         <label for="price_min" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">価格帯</label>
  27.                         <div style="display:flex;gap: 10px;">
  28.                             <select name="price_min" id="price_min" style="height:42px;border:1px solid #ccc;padding:10px;width:120px;border-radius: 6px;">
  29.                                 <option value="">指定なし</option>
  30.                                 <option value="1" {% if getRequest('price_min') == '1' %}selected{% endif %}>1,000円</option>
  31.                                 <option value="2" {% if getRequest('price_min') == '2' %}selected{% endif %}>2,000円</option>
  32.                                 <option value="3" {% if getRequest('price_min') == '3' %}selected{% endif %}>3,000円</option>
  33.                                 <option value="4" {% if getRequest('price_min') == '4' %}selected{% endif %}>4,000円</option>
  34.                                 <option value="5" {% if getRequest('price_min') == '5' %}selected{% endif %}>5,000円</option>
  35.                                 <option value="6" {% if getRequest('price_min') == '6' %}selected{% endif %}>6,000円</option>
  36.                                 <option value="7" {% if getRequest('price_min') == '7' %}selected{% endif %}>7,000円</option>
  37.                                 <option value="8" {% if getRequest('price_min') == '8' %}selected{% endif %}>8,000円</option>
  38.                                 <option value="9" {% if getRequest('price_min') == '9' %}selected{% endif %}>9,000円</option>
  39.                                 <option value="10" {% if getRequest('price_min') == '10' %}selected{% endif %}>10,000円</option>
  40.                             </select>
  41.                             <div style="display:flex;align-items: center;">~</div>
  42.                             <select name="price_max" id="price_max" style="height:42px;border:1px solid #ccc;padding:10px;width:120px;border-radius: 6px;">
  43.                                 <option value="">指定なし</option>
  44.                                 <option value="1" {% if getRequest('price_max') == '1' %}selected{% endif %}>1,000円</option>
  45.                                 <option value="2" {% if getRequest('price_max') == '2' %}selected{% endif %}>2,000円</option>
  46.                                 <option value="3" {% if getRequest('price_max') == '3' %}selected{% endif %}>3,000円</option>
  47.                                 <option value="4" {% if getRequest('price_max') == '4' %}selected{% endif %}>4,000円</option>
  48.                                 <option value="5" {% if getRequest('price_max') == '5' %}selected{% endif %}>5,000円</option>
  49.                                 <option value="6" {% if getRequest('price_max') == '6' %}selected{% endif %}>6,000円</option>
  50.                                 <option value="7" {% if getRequest('price_max') == '7' %}selected{% endif %}>7,000円</option>
  51.                                 <option value="8" {% if getRequest('price_max') == '8' %}selected{% endif %}>8,000円</option>
  52.                                 <option value="9" {% if getRequest('price_max') == '9' %}selected{% endif %}>9,000円</option>
  53.                                 <option value="10" {% if getRequest('price_max') == '10' %}selected{% endif %}>10,000円</option>
  54.                             </select>
  55.                         </div>
  56.                     </div>
  57.                     <div style="margin-top: 31px;">
  58.                         <button type="submit" style="background-color: black; color: white; width: 100%; padding: 8px 10px 8px 10px;height:42px; border:none;border-radius: 6px;"><svg class="cb cb-search" style="margin-right: 3px;"><use xlink:href="#cb-search" /></svg>この条件で検索</button>
  59.                     </div>
  60.                 </div>
  61.             </div>
  62.         </form>
  63.     </div>
  64. </div>
  65. <div id="drawer_block_sp">
  66.     <span style="display:block;font-weight:bold;font-size:1.3rem;padding: 20px 0 6px 6px;">条件検索</span>
  67.     <div id="search" class="search">
  68.         <form method="get" id="searchform" action="{{ path('product_list') }}">
  69.             <div class="search_inner">
  70.                 <label for="name" style="display:block;font-weight:bold;font-size:1.3rem;padding: 0 0 6px 0;">キーワード</label>
  71.                 <div style="width:100%;">
  72.                     {{ form_widget(form.name, {'id': null, 'attr': {'class': '', 'placeholder' : 'キーワードを入力',
  73.                         'style': 'background-color:white;width:100%;padding:10px;border:1px solid #ccc;border-radius: 6px;'
  74.                     }} ) }}
  75.                     <!--button type="submit" class="bt_search"><svg class="cb cb-search"><use xlink:href="#cb-search" /></svg></button-->
  76.                 </div>
  77.                 <label for="category_id" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">カテゴリー</label>
  78.                 <div id="category_select_sp">
  79.                 </div>
  80.                 <label for="price_min" style="display:block;font-weight:bold;font-size:1.3rem;padding: 6px 0 6px 0;">価格帯</label>
  81.                 <select name="price_min" id="price_min" style="height:42px;border:1px solid #ccc;padding:10px;width:100%;border-radius: 6px;">
  82.                     <option value="">指定なし</option>
  83.                     <option value="1" {% if getRequest('price_min') == '1' %}selected{% endif %}>1,000円</option>
  84.                     <option value="2" {% if getRequest('price_min') == '2' %}selected{% endif %}>2,000円</option>
  85.                     <option value="3" {% if getRequest('price_min') == '3' %}selected{% endif %}>3,000円</option>
  86.                     <option value="4" {% if getRequest('price_min') == '4' %}selected{% endif %}>4,000円</option>
  87.                     <option value="5" {% if getRequest('price_min') == '5' %}selected{% endif %}>5,000円</option>
  88.                     <option value="6" {% if getRequest('price_min') == '6' %}selected{% endif %}>6,000円</option>
  89.                     <option value="7" {% if getRequest('price_min') == '7' %}selected{% endif %}>7,000円</option>
  90.                     <option value="8" {% if getRequest('price_min') == '8' %}selected{% endif %}>8,000円</option>
  91.                     <option value="9" {% if getRequest('price_min') == '9' %}selected{% endif %}>9,000円</option>
  92.                     <option value="10" {% if getRequest('price_min') == '10' %}selected{% endif %}>10,000円</option>
  93.                 </select>
  94.                 <div style="display:flex;align-items: center;justify-content: center">~</div>
  95.                 <select name="price_max" id="price_max" style="height:42px;border:1px solid #ccc;padding:10px;width:100%;border-radius: 6px;">
  96.                     <option value="">指定なし</option>
  97.                     <option value="1" {% if getRequest('price_max') == '1' %}selected{% endif %}>1,000円</option>
  98.                     <option value="2" {% if getRequest('price_max') == '2' %}selected{% endif %}>2,000円</option>
  99.                     <option value="3" {% if getRequest('price_max') == '3' %}selected{% endif %}>3,000円</option>
  100.                     <option value="4" {% if getRequest('price_max') == '4' %}selected{% endif %}>4,000円</option>
  101.                     <option value="5" {% if getRequest('price_max') == '5' %}selected{% endif %}>5,000円</option>
  102.                     <option value="6" {% if getRequest('price_max') == '6' %}selected{% endif %}>6,000円</option>
  103.                     <option value="7" {% if getRequest('price_max') == '7' %}selected{% endif %}>7,000円</option>
  104.                     <option value="8" {% if getRequest('price_max') == '8' %}selected{% endif %}>8,000円</option>
  105.                     <option value="9" {% if getRequest('price_max') == '9' %}selected{% endif %}>9,000円</option>
  106.                     <option value="10" {% if getRequest('price_max') == '10' %}selected{% endif %}>10,000円</option>
  107.                 </select>
  108.                 <div style="margin-top: 12px;">
  109.                     <button type="submit" style="background-color: black; color: white; width: 100%; padding: 8px 10px 8px 10px;height:42px; border:none;border-radius: 6px;"><svg class="cb cb-search" style="margin-right: 3px;"><use xlink:href="#cb-search" /></svg>この条件で検索</button>
  110.                 </div>
  111.             </div>
  112.             <div class="extra-form">
  113.                 {% for f in form.getIterator %}
  114.                     {% if f.vars.name matches '[^plg*]' %}
  115.                         {{ form_label(f) }}
  116.                         {{ form_widget(f) }}
  117.                         {{ form_errors(f) }}
  118.                     {% endif %}
  119.                 {% endfor %}
  120.             </div>
  121.         </form>
  122.     </div>
  123. </div>