app/template/raspia/Block/search_box.twig line 1

Open in your IDE?
  1. <aside class="searchSide">
  2.     <div class="sideBox sort">
  3.         <form name="page_navi_top" id="page_navi_top" action="?">
  4.             <div id="result_info_box__menu_box" class="no-padding ec-searchnavRole__actions">
  5.                 <ul id="result_info_box__menu" class="pagenumberarea clearfix ec-select">
  6.                     <li id="result_info_box__disp_menu">
  7.                     {{ form_widget(disp_number_form_in_sbox, {'id': '', 'attr': {'class': 'disp-number'}}) }}
  8.                     </li>
  9.                     <li id="result_info_box__order_menu">
  10.                     {{ form_widget(order_by_form_in_sbox, {'id': '', 'attr': {'class': 'order-by'}}) }}
  11.                     </li>
  12.                 </ul>
  13.             </div>
  14.         </form>
  15.     </div>
  16.     <div class="spNavOption">
  17.         <h2 class="blockTtl03">絞り込み検索</h2>
  18.         <p id="btn_menu"><a class="nav-trigger nav-trigger02 active">Menu<span></span></a></p>
  19.     </div>
  20.     <form method="get" action="/products/list" id="searchForm01">
  21.         <div class="sideBox keyword">
  22.             <h2 class="blockTtl02">キーワード</h2>
  23.             <div class="toolBox01">
  24.                 <input type="text" name="name" placeholder="キーワードを入力" value="{% if Params.name is defined %}{{ Params.name }}{% endif %}">
  25.             </div>
  26.         </div>
  27.         <div class="sideBox itemCategory">
  28.             <h2 class="blockTtl02">アイテムカテゴリ</h2>
  29.             <ul>
  30.             {% for Category in SearchCategories['item'] %}
  31.                 <li {% if Category.getChildren is not empty %}class="hasChild"{% endif %}>
  32.                     <label for="cate_{{ Category.id }}">
  33.                     <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params['multi_category'][Category.id] is defined %}checked{% endif %}>
  34.                         {{ Category.name }}
  35.                     </label>
  36.                     {% if Category.getChildren is not empty and Category.id != 10 %}
  37.                         <img src="/html/template/raspia/img/common/ico_b_black_new.webp" alt="開閉矢印" class="afterImg">
  38.                         <ul class="childList">
  39.                         {% for ChildCategory in Category.Children %}
  40.                             <li>
  41.                                 <label for="cate_{{ ChildCategory.id }}">
  42.                                 <input type="checkbox" id="cate_{{ ChildCategory.id }}" value="{{ ChildCategory.id }}" name="multi_category[{{ ChildCategory.id }}]" {% if Params['multi_category'][ChildCategory.id] is defined %}checked{% endif %}>
  43.                                     {{ ChildCategory.name }}
  44.                                 </label>
  45.                             </li>
  46.                         {% endfor %}
  47.                         </ul>
  48.                     {% endif %}
  49.                 </li>
  50.             {% endfor %}
  51.             </ul>
  52.         </div>
  53.         <div class="sideBox jewelry">
  54.             <h2 class="blockTtl02">宝石・天然石</h2>
  55.             <ul>
  56.             {% for Category in SearchCategories['jewely'] %}
  57.                 {% if Category.getChildren is not empty %}
  58.                     {% for key,Category in Category.Children %}
  59.                         <li>
  60.                             <label for="cate_{{ Category.id }}">
  61.                                 <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params['multi_category'][Category.id] is defined %}checked{% endif %}>
  62.                                 {{ Category.name }}
  63.                             </label>
  64.                         </li>
  65.                         {% if key == 11 %}
  66.                         </ul><ul class='hiddenList' style="display:none;">
  67.                         {% endif %}
  68.                     {% endfor %}
  69.                 {% endif %}
  70.             {% endfor %}
  71.             </ul>
  72.             <div class="txtBtn01 openTrigger01"><span class="bold">+</span> もっと見る</div>
  73.         </div>
  74.         <div class="sideBox bitrhStone">
  75.             <h2 class="blockTtl02">誕生石</h2>
  76.             <ul>
  77.             {% for Category in SearchCategories['birthStone'] %}
  78.                 {% if Category.getChildren is not empty %}
  79.                     {% for Category in Category.Children %}
  80.                         <li>
  81.                             <label for="cate_{{ Category.id }}">
  82.                                 <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params['multi_category'][Category.id] is defined %}checked{% endif %}>
  83.                                 {{ Category.name }}
  84.                             </label>
  85.                         </li>
  86.                     {% endfor %}
  87.                 {% endif %}
  88.             {% endfor %}
  89.             </ul>
  90.         </div>
  91.         <div class="sideBox color">
  92.             <h2 class="blockTtl02">色</h2>
  93.             <ul>
  94.             {% for Category in SearchCategories['color'] %}
  95.                 {% if Category.getChildren is not empty %}
  96.                     {% for Category in Category.Children %}
  97.                         <li>
  98.                             <label for="cate_{{ Category.id }}">
  99.                                 <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params['multi_category'][Category.id] is defined %}checked{% endif %}>
  100.                                 {{ Category.name }}
  101.                             </label>
  102.                         </li>
  103.                     {% endfor %}
  104.                 {% endif %}
  105.             {% endfor %}
  106.             </ul>
  107.         </div>
  108.         <div class="sideBox series">
  109.             <h2 class="blockTtl02">商品シリーズ</h2>
  110.             <ul>
  111.             {% for Category in SearchCategories['series'] %}
  112.                     {% if Category.getChildren is not empty %}
  113.                         {% for Category in Category.Children %}
  114.                             <li {% if Category.getChildren is not empty %}class="hasChild"{% endif %}>
  115.                                 <label for="cate_{{ Category.id }}">
  116.                                     <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params.multi_category[Category.id] is defined %}checked{% endif %}>
  117.                                     <!--<img src="/html/template/raspia/img/common/side/img_series_{{ Category.id }}.webp" alt="画像" class="thumbImg">-->
  118.                                     {{ Category.name }}
  119.                                 </label>
  120.                                 {% if Category.Children %}
  121.                                     <ul class="childList type02">
  122.                                         {% for Category in Category.Children %}
  123.                                         <li>
  124.                                             <label for="cate_{{ Category.id }}">
  125.                                                 <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params.multi_category[Category.id] is defined %}checked{% endif %}>
  126.                                                 <!--<img src="/html/template/raspia/img/common/side/img_category_child_{{ Category.id }}.webp" alt="画像" class="thumbImg">-->
  127.                                                 {{ Category.name }}
  128.                                             </label>
  129.                                         </li>
  130.                                         {% endfor %}
  131.                                     </ul>
  132.                                 {% endif %}
  133.                             </li>
  134.                         {% endfor %}
  135.                     {% endif %}
  136.             {% endfor %}
  137.             </ul>
  138.         </div>
  139.         <div class="sideBox price">
  140.             <h2 class="blockTtl02">価格</h2>
  141.             <ul>
  142.                 <li><label for="pricerange_1"><input type="checkbox" name="pricerange[0]" id="pricerange_1" value="0-20000" {% if Params.pricerange[0] is defined %}checked{% endif %}><span>下限無し 〜 20,000円</span></label></li>
  143.                 <li><label for="pricerange_2"><input type="checkbox" name="pricerange[1]" id="pricerange_2" value="20001-40000" {% if Params.pricerange[1] is defined %}checked{% endif %}><span>20,001円 〜 40,000円</span></label></label></li>
  144.                 <li><label for="pricerange_3"><input type="checkbox" name="pricerange[2]" id="pricerange_3" value="40001-60000" {% if Params.pricerange[2] is defined %}checked{% endif %}><span>40,001円 〜 60,000円</span></label></li>
  145.                 <li><label for="pricerange_4"><input type="checkbox" name="pricerange[3]" id="pricerange_4" value="60001-80000" {% if Params.pricerange[3] is defined %}checked{% endif %}><span>60,001円 〜 80,000円</span></label></li>
  146.                 <li><label for="pricerange_5"><input type="checkbox" name="pricerange[4]" id="pricerange_5" value="80001-100000" {% if Params.pricerange[4] is defined %}checked{% endif %}><span>80,001円 〜 100,000円</span></label></li>
  147.                 <li><label for="pricerange_6"><input type="checkbox" name="pricerange[5]" id="pricerange_6" value="100001-0" {% if Params.pricerange[5] is defined %}checked{% endif %}><span>100,001円 〜 上限無し</span></label></li>
  148.             </ul>
  149.             <div class="boxFlex01">
  150.                 {# <input type="number" name="price_min" placeholder="下限なし" value="{% if Params.price_min is defined %}{{ Params.price_min }}{% endif %}">
  151.                 <input type="number" name="price_max" placeholder="上限なし" value="{% if Params.price_max is defined %}{{ Params.price_max }}{% endif %}"> #}
  152.             </div>
  153.         </div>
  154.         <div class="sideBox material">
  155.             <h2 class="blockTtl02">素材</h2>
  156.             <ul>
  157.             {% for Category in SearchCategories['material'] %}
  158.                 {% if Category.getChildren is not empty %}
  159.                     {% for Category in Category.Children %}
  160.                         <li>
  161.                             <label for="cate_{{ Category.id }}">
  162.                                 <input type="checkbox" id="cate_{{ Category.id }}" value="{{ Category.id }}" name="multi_category[{{ Category.id }}]" {% if Params.multi_category[Category.id] is defined %}checked{% endif %}>
  163.                                 {{ Category.name }}
  164.                             </label>
  165.                         </li>
  166.                     {% endfor %}
  167.                 {% endif %}
  168.             {% endfor %}
  169.             </ul>
  170.         </div>
  171.         <div class="sideBox submit">
  172.             <button type="button" class="resetBtn box01">クリア</button>
  173.             <button type="submit" class="searchBtn">検索</button>
  174.         </div>
  175.     </form>
  176. </aside>