app/template/default/Product/aside_ball.twig line 1

Open in your IDE?
  1. <aside class="aside">
  2.   {% set currentUri = app.request.getUri %}
  3.   {% if '/products/list' in currentUri %}
  4.     <form name="formSelPC" id="formSelPC" method="get" action="?">
  5.   {% elseif '/products/detail' in currentUri %}
  6.     <form name="formSelPC2" id="formSelPC2" method="get" action="{{ url('product_list') }}">
  7.         <input type="hidden" name="mode">
  8.         <input type="hidden" name="category_id" value="7">
  9.         <input type="hidden" name="name">
  10.         <input type="hidden" name="pageno" value="1">
  11.         <input type="hidden" name="disp_number" value="21">
  12.         <input type="hidden" name="orderby" value="2">
  13.         <input type="hidden" name="ball-type" id="ball-type">
  14.         <input type="hidden" name="ball-nums" id="ball-nums">
  15.         <input type="hidden" name="ball-price" id="ball-price">
  16.     </form>
  17.     <form name="formSelPC" id="formSelPC">
  18.   {% endif %}
  19.     <div class="aside-filter mb-5">
  20.         <div class="title">
  21.             ボールの種類から選ぶ
  22.         </div>
  23.         <ul class="list-unstyled mb-0 list">
  24.             <li>
  25.                 <label>
  26.                     <input type="checkbox" name="ball_type" class="ball_type" value="14"{% if( '/products/list' in currentUri and 14 in Selects['ball-type'] ) %} checked{% endif %}>
  27.                     持ち込みボール
  28.                 </label>
  29.             </li>
  30.             <li>
  31.                 <label>
  32.                     <input type="checkbox" name="ball_type" class="ball_type" value="11"{% if( '/products/list' in currentUri and 11 in Selects['ball-type'] ) %} checked{% endif %}>
  33.                     スリクソン
  34.                 </label>
  35.             </li>
  36.             <li>
  37.                 <label>
  38.                     <input type="checkbox" name="ball_type" class="ball_type" value="12"{% if( '/products/list' in currentUri and 12 in Selects['ball-type'] ) %} checked{% endif %}>
  39.                     ゼクシオ
  40.                 </label>
  41.             </li>
  42.             <li>
  43.                 <label>
  44.                     <input type="checkbox" name="ball_type" class="ball_type" value="13"{% if( '/products/list' in currentUri and 13 in Selects['ball-type'] ) %} checked{% endif %}>
  45.                     ツアースペシャル
  46.                 </label>
  47.             </li>
  48.         </ul>
  49.         <div class="title">
  50.             ボールの球数から選ぶ
  51.         </div>
  52.         <ul class="list-unstyled mb-0 list">
  53.             <li>
  54.                 <label>
  55.                     <input type="checkbox" name="ball_nums" class="ball_nums" value="8,13"{% if( '/products/list' in currentUri and ( 8 in Selects['ball-nums'] or 13 in Selects['ball-nums'] ) ) %} checked{% endif %}>
  56.                     3球
  57.                 </label>
  58.             </li>
  59.             <li>
  60.                 <label>
  61.                     <input type="checkbox" name="ball_nums" class="ball_nums" value="11,14"{% if( '/products/list' in currentUri and ( 11 in Selects['ball-nums'] or 14 in Selects['ball-nums'] ) ) %} checked{% endif %}>
  62.                     6球
  63.                 </label>
  64.             </li>
  65.             <li>
  66.                 <label>
  67.                     <input type="checkbox" name="ball_nums" class="ball_nums" value="12,15"{% if( '/products/list' in currentUri and ( 12 in Selects['ball-nums'] or 15 in Selects['ball-nums'] ) ) %} checked{% endif %}>
  68.                     12球
  69.                 </label>
  70.             </li>
  71.         </ul>
  72.         <div class="title">
  73.             価格で選ぶ
  74.         </div>
  75.         <ul class="list-unstyled mb-0 list">
  76.             <li>
  77.                 <label>
  78.                     <input type="checkbox" name="ball_price" class="ball_price" value="1"{% if( '/products/list' in currentUri and 1 in Selects['ball-price'] ) %} checked{% endif %}>
  79.                     ~2,999円
  80.                 </label>
  81.             </li>
  82.             <li>
  83.                 <label>
  84.                     <input type="checkbox" name="ball_price" class="ball_price" value="2"{% if( '/products/list' in currentUri and 2 in Selects['ball-price'] ) %} checked{% endif %}>
  85.                     3,000円~4,999円
  86.                 </label>
  87.             </li>
  88.             <li>
  89.                 <label>
  90.                     <input type="checkbox" name="ball_price" class="ball_price" value="3"{% if( '/products/list' in currentUri and 3 in Selects['ball-price'] ) %} checked{% endif %}>
  91.                     5,000円~9,999円
  92.                 </label>
  93.             </li>
  94.             <li>
  95.                 <label>
  96.                     <input type="checkbox" name="ball_price" class="ball_price" value="4"{% if( '/products/list' in currentUri and 4 in Selects['ball-price'] ) %} checked{% endif %}>
  97.                     10,000円以上
  98.                 </label>
  99.             </li>
  100.         </ul>
  101.         <ul class="list-unstyled mb-0 list">
  102.             <li>
  103.                 <div class="d-flex justify-content-between">
  104.                   {% if '/products/list' in currentUri %}
  105.                     <a href="javascript:void(0);" onclick="setValPC();" class="btn btn-danger rounded-0">絞り込む</a>
  106.                     <a href="{{ url('product_list') }}?category_id=7" class="btn btn-outline-dark rounded-0">クリア</a>
  107.                   {% elseif '/products/detail' in currentUri %}
  108.                     <a href="javascript:void(0);" onclick="setValPC();" class="btn btn-danger rounded-0">絞り込む</a>
  109.                     <a href="{{ url('product_detail', {'id': Product.id}) }}" class="btn btn-outline-dark rounded-0">クリア</a>
  110.                   {% endif %}
  111.                 </div>
  112.             </li>
  113.         </ul>
  114.     </div>
  115.     </form>
  116.     <a href="{{ url('product_list') }}?mode=&category_id=7&name=&pageno=1&disp_number=21&orderby=2&ball-type=14&ball-nums=&ball-price="><img src="{{ asset('assets/img/common/bnr_aside01.png') }}" class="img-fluid mb-3" width="236" height="135" alt="業界最安値挑戦中!持ち込みボール印刷3球455円"></a>
  117.     <a href="{{ url('faq_detail', {'id':'19'}) }}"><img src="{{ asset('assets/img/common/bnr_aside02.png') }}" class="img-fluid mb-3" width="236" height="47" alt="即日出荷OK"></a>
  118.     <a href="{{ url('faq_detail', {'id':'21'}) }}"><img src="{{ asset('assets/img/common/bnr_aside03.png') }}" class="img-fluid mb-3" width="236" height="47" alt="ポイント3%還元"></a>
  119.     <a href="{{ url('product_list') }}?category_id=10"><img src="{{ asset('assets/img/common/bnr_aside04.png') }}" class="img-fluid mb-3" width="236" height="47" alt="ギフトラッピング"></a>
  120.     <a href="{{ url('case') }}" class="btn btn-outline-dark w-100 py-3 mb-3 rounded-0"><i class="icon-reviews"></i>導入事例</a>
  121.     <a href="{{ url('faq') }}" class="btn btn-outline-dark w-100 py-3 mb-3 rounded-0"><i class="icon-forum"></i>よくある質問</a>
  122. </aside>