app/template/default/Block/list.twig line 281

Open in your IDE?
  1. <!--product start-->
  2. <script>
  3.         function write_log() {
  4.             var val = 'ohaoaha';
  5.             console.log(val);
  6.         }
  7.         
  8. function changeImage(id, path, tId, title){
  9.   var objImage = document.getElementById(id);
  10.   var objTitle = document.getElementById(tId);
  11.   
  12.   objImage.src = path;
  13.   objTitle.innerText = title;
  14. }
  15. function comboChange(zoom, start){
  16.   var product_left_width;
  17.   var product_left_height;
  18.   var product_img_width;
  19.   var product_cap_width;
  20.   var font_size;
  21.   var image_width;
  22.   var image_height;
  23.   var detail_width;
  24.   var detail_pLeft;
  25.   var detail_pRight;
  26.   var comment_display;
  27.   var koutuu_height;
  28.   var ensen_height;
  29.   var sankou_display;
  30.   var sankou_display;
  31.   var objName;
  32.   var objTitle;
  33.   var objTable;
  34.   var objLTable;
  35.   var objBTable;
  36.   var objPLeft;
  37.   var objPImg;
  38.   var objPCap;
  39.   var objComment;
  40.   var objAddress;
  41.   var objSyubetu;
  42.   var objSyumoku;
  43.   var objKoutuu;
  44.   var objEnsen;
  45.   var objSankou;
  46.   var objBikou;
  47.   var objImage  = document.getElementsByName("image");
  48.   var objDetail = document.getElementsByName("detail");
  49.   if(zoom == 1){
  50.     table_width = "215px";
  51.     table_margin = "0px";
  52.     ltable_width = "120px";
  53.     btable_width = "120px";
  54.     product_left_width  = "215px";
  55.     product_left_height = "450px";
  56.     product_img_width = "215px";
  57.     product_cap_width = "215px";
  58.     font_size = "90%";
  59.     tfont_size = "90%";
  60.     image_width = 215;
  61.     image_height = 155;
  62.     detail_width = 103;
  63.     detail_pLeft = "0px";
  64.     detail_pRight = "0px";
  65.     comment_display = "none";
  66.     koutuu_height = "40px";
  67.     ensen_height = "40px";
  68.     sankou_display = "none";
  69.   }
  70.   else if(zoom == 2){
  71.     table_width = "294px";
  72.     table_margin = "0px";
  73.     ltable_width = "140";
  74.     btable_width = "140";
  75.     product_left_width  = "294px";
  76.     product_left_height = "500px";
  77.     product_img_width = "294px";
  78.     product_cap_width = "294px";
  79.     font_size = "100%";
  80.     tfont_size = "100%";
  81.     image_width = 294;
  82.     image_height = 210;
  83.     detail_width = 110;
  84.     detail_pLeft = "20px";
  85.     detail_pRight = "25px";
  86.     comment_display = "none";
  87.     koutuu_height = "40px";
  88.     ensen_height = "20px";
  89.     sankou_display = "none";
  90.   }
  91.   else if(zoom == 3){
  92.     table_width = "455px";
  93.     table_margin = "0px";
  94.     ltable_width = "190px";
  95.     btable_width = "190px";
  96.     product_left_width  = "455px";
  97.     product_left_height = "600px";
  98.     product_img_width = "455px";
  99.     product_cap_width = "455px";
  100.     font_size = "110%";
  101.     tfont_size = "100%";
  102.     image_width = 455;
  103.     image_height = 330;
  104.     detail_width = 110;
  105.     detail_pLeft = "85px";
  106.     detail_pRight = "55px";
  107.     comment_display = "none";
  108.     koutuu_height = "20px";
  109.     ensen_height = "20px";
  110.     sankou_display = "none";
  111.   }
  112.   else if(zoom == 4){
  113.     table_width = "455px";
  114.     table_margin = "0px";
  115.     ltable_width = "190px";
  116.     btable_width = "190px";
  117.     product_left_width  = "940px";
  118.     product_left_height = "500px";
  119.     product_img_width = "455px";
  120.     product_cap_width = "455px";
  121.     font_size = "110%";
  122.     tfont_size = "100%";
  123.     image_width = 455;
  124.     image_height = 330;
  125.     detail_width = 110;
  126.     detail_pLeft = "70px";
  127.     detail_pRight = "60px";
  128.     comment_display = "table-row";
  129.     koutuu_height = "20px";
  130.     ensen_height = "20px";
  131.     sankou_display = "block";
  132.   }
  133.    var l = 0; 
  134.   for(i = start+1; i < (start + objImage.length+1); i++){
  135.      
  136.     objName   = document.getElementById("name" + i);
  137.     
  138.     objTitle  = document.getElementById("title" + i);
  139.   
  140.     objTable  = document.getElementById("table" + i);
  141.    
  142.     objLTable = document.getElementById("ltable" + i);
  143.   
  144.     objBTable = document.getElementById("btable" + i);
  145.   
  146.     objPLeft  = document.getElementById("product_left" + i);
  147.   
  148.     objPImg   = document.getElementById("product_img" + i);
  149.     objPCap   = document.getElementById("product_cap" + i);
  150.    
  151.     objComment= document.getElementById("comment" + i);
  152.  
  153.     objAddress= document.getElementById("address" + i);
  154.     objSyubetu= document.getElementById("syubetu" + i);
  155.      
  156.     objSyumoku= document.getElementById("syumoku" + i);
  157.     objEnsen  = document.getElementById("ensen" + i);
  158.     objKoutuu = document.getElementById("koutuu" + i);
  159.     objSankou = document.getElementById("sankou" + i);
  160.            
  161.     objBikou  = document.getElementById("bikou" + i);
  162.     
  163.     objAddress.style.display = comment_display;
  164.     objSyubetu.style.display = comment_display;
  165.     objSyumoku.style.display = comment_display;
  166.     objPLeft.style.width = product_left_width;
  167.           
  168.     objPLeft.style.height = product_left_height;
  169.     objPImg.style.width = product_img_width;
  170.     objPCap.style.width = product_cap_width;
  171.     objImage.item(l).width = image_width;
  172.            
  173.     objImage.item(l).height = image_height;
  174.     //objDetail.item(l).width = 103;
  175.    // objDetail.item(l).style.marginLeft = detail_pLeft;
  176.     //objDetail.item(l).style.marginRight = detail_pRight;
  177.     
  178.     objName.style.fontSize = font_size;
  179.     objTitle.style.display = comment_display;
  180.     objTable.style.fontSize = font_size;
  181.     objTable.style.width    = table_width;
  182.     objTable.style.marginBottom = table_margin;
  183.     objLTable.style.width    = ltable_width;
  184.     objBTable.style.width    = btable_width;
  185.     objLTable.style.fontSize = tfont_size;
  186.     objBTable.style.fontSize = tfont_size;
  187.     objComment.style.display = comment_display;
  188.     objKoutuu.style.height = koutuu_height;
  189.     objEnsen.style.height = ensen_height;
  190.     objSankou.style.display = sankou_display;
  191.     objBikou.style.fontSize = font_size;
  192.       
  193.     l++;
  194.   }
  195. }
  196. </script>
  197. <script>
  198.     $(function() {
  199.         $('.add-cart').on('click', function(event) {
  200.                 var $form = $(this).parents('li').find('form');
  201.                 
  202.                 // 個数フォームのチェック
  203.                 var $quantity = $form.parent().find('.quantity');
  204.                 if ($quantity.val() < 1) {
  205.                     $quantity[0].setCustomValidity('{{ '1以上で入力してください。'|trans }}');
  206.                     setTimeout(function() {
  207.                         loadingOverlay('hide');
  208.                     }, 100);
  209.                     return true;
  210.                 } else {
  211.                     $quantity[0].setCustomValidity('');
  212.                 }
  213.                 event.preventDefault();
  214.                 $.ajax({
  215.                     url: $form.attr('action'),
  216.                     type: $form.attr('method'),
  217.                     data: $form.serialize(),
  218.                     dataType: 'json',
  219.                     beforeSend: function(xhr, settings) {
  220.                         // Buttonを無効にする
  221.                         $('.add-cart').prop('disabled', true);
  222.                     }
  223.                 }).done(function(data) {
  224.                     // カートブロックを更新する
  225.                     $.ajax({
  226.                         url: "{{ url('block_cart') }}",
  227.                         type: 'GET',
  228.                         dataType: 'html'
  229.                     }).done(function(html) {
  230.                         $('.ec-headerRole__cart').html(html);
  231.                     });
  232.                     
  233.                     window.location.href = "{{ url('cart') }}";
  234.                 }).fail(function(data) {
  235.                     alert('{{ 'リストへの追加に失敗しました。'|trans }}');
  236.                 }).always(function(data) {
  237.                     // Buttonを有効にする
  238.                     $('.add-cart').prop('disabled', false);
  239.                 });
  240.             });
  241.             $('.reload').on('click', function(event) {
  242.                 location.reload();
  243.             });
  244.         });
  245.         $('.ec-modal-overlay, .ec-modal .ec-inlineBtn--cancel').on('click', function() {
  246.             $('.ec-modal').hide()
  247.         });
  248. </script>
  249. {#商品情報を取得#}
  250. {% set Products = repository('Eccube\\Entity\\Product').findBy({Status: 1}, { update_date: 'desc' },119) %}
  251. {% set product_mum = Products|length %}
  252. {# 1ページに表示する件数 #}
  253. {% set count_item = 15 %}
  254. {%set max_page = (product_mum / count_item)|round(0, 'floor')+1%}
  255. {% set RedirectQueryString = app.request.server.get('REDIRECT_QUERY_STRING') %}
  256. {% if RedirectQueryString != null %}
  257. {% set page_num = RedirectQueryString|slice('page='|length) %}
  258. {% else %}
  259. {%set page_num = 0%}
  260. {% endif %}
  261. {% if page_num == 0 %}
  262. {%set start_num = page_num%}
  263. {% set page_num = 1 %}
  264. {% else %}
  265. {%set start_num = ((page_num-1) * count_item)%}
  266. {% endif %}
  267. <div id="toplist" style="width:970px;">
  268. <h3 class="t5" style="color:black;margin-top:10px;width:960px;">取扱い物件一覧
  269. <font style="margin-left:620px;">表示形式:
  270. <select id="size" name="size" size="1" onChange="comboChange(this.options[this.selectedIndex].value,{{start_num}})">
  271. <option value="1">縮小表示</option>
  272. <option value="2" selected="selected">標準</option>
  273. <option value="3">拡大表示</option>
  274. <option value="4">最大化</option>
  275. </select>
  276. </font>
  277. </h3>
  278. <div align="center" style="margin:0 5px;height:30px;width:960px;border:1px solid #E2DFD2; font-size:18px;">
  279.             <<                
  280.             {% for i in 1..max_page %}
  281.             {% if i == page_num %}
  282.             {{i}}
  283.             {% else %}
  284.             <a href="{{ url('homepage',{'page':i}) }}">{{i}}</a>
  285.             {% endif %}
  286.             {% endfor %}
  287.             >>
  288.   </div>
  289. <!--<h3 class="t5">オススメ商品</h3>-->
  290. <!--product_left start-->
  291. {% for Product in Products|slice(start_num,count_item) %}
  292. <li class="ec-shelfGrid__item">
  293. {% set ProductClass = repository('Eccube\\Entity\\ProductClass').findBy({Product:Product.id}) %}
  294. {% if ProductClass != null %}
  295. {% set SaleType = repository('Eccube\\Entity\\Master\\SaleType').findBy({id: ProductClass[0].SaleType}) %}
  296. {% if SaleType != null %}
  297. {% set SaleTypeName = SaleType[0].name %}
  298. {% else %}
  299. {% set SaleTypeName = '' %}
  300. {% endif %}
  301. <div id="product_left{{start_num+loop.index}}" class="product_left" style="width:294px;height:500px;margin:0 0 5px 5px;">
  302. <!--product_img start-->
  303. <div id="product_img{{start_num+loop.index}}" class="product_img_01" style="width:294px;">
  304. <h4 id="name{{start_num+loop.index}}" class="bold" style="padding:5px 0 3px 0;font-size:110%;border-bottom:thin solid green;background-color:snow;color:black;margin-bottom:4px;">{{Product.name}}</h4>
  305. <p id="title{{start_num+loop.index}}" style="display:none;margin-left:5px;text-align:left;font-size:95%;color:black;"> </p>
  306. <a href="{{ url('product_detail', {'id': Product.id}) }}">
  307. <img id="image{{start_num+loop.index}}" name="image" height="210" width="294" src="{{ asset(Product.mainImage|no_image_product, 'save_image') }}"alt="{{Product.name}}" />
  308. </a>
  309. <p id="bikou{{start_num+loop.index}}"><font style="color:blue;">{{Product.comment}}</font></p>
  310. </div>
  311. <!--/product_img end-->
  312. <!--product_cap start-->
  313. <div id="product_cap{{start_num+loop.index}}" class="product_cap_01"  style="width:295px;padding-left:1px;padding-top:0px; float:right;">
  314. <!--{*--><h4 class="bold"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><!--{$arrBestProducts[cnt].name|escape}--></a></h4><!--*}-->
  315. <!--{*--><p class="t10"><!--{$arrBestProducts[cnt].comment|escape|nl2br}--></p><!--*}-->
  316. <!-- edit area start-->
  317. <div style="color:black;font-size:96%;">
  318. <p id="comment{{start_num+loop.index}}" style="padding-bottom:10px;color:black;display:none;">
  319. {{Product.mainListComment}}
  320. </p>
  321. <table id="table{{start_num+loop.index}}" border="1" width="294" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
  322. <tr>
  323. <td align="center">価    格</td>
  324. <td align="center">
  325. {% if  Product.getPrice02IncTaxMax==0%}
  326. <font style="color:red; font-weight:bolder;">ご成約済</font>
  327. {% elseif Product.getPrice02IncTaxMax==1 %}
  328. <font style="color:red; font-weight:bolder;">商 談 中</font>
  329. {% else %}
  330. <font style="color:red; font-weight:bolder;">
  331. {{Product.getPrice02IncTaxMax}}万円</font>
  332. {% endif %}
  333. </td>
  334. </tr>
  335. <tr id="address{{start_num+loop.index}}" style="display:none;">
  336. <td align="center">所 在 地</td>
  337. <td align="center"><font style="color:blue;">{{Product.pref}}{{Product.ku}}{{Product.adDetail}}</font></td>
  338. </tr>
  339. <tr id="syubetu{{start_num+loop.index}}" style="display:none;">
  340. <td align="center">物 件 種 別</td>
  341. <td align="center"><font style="color:blue;">{{SaleTypeName}}</font></td>
  342. </tr>
  343. <tr id="syumoku{{start_num+loop.index}}" style="display:none;">
  344. <td align="center" width="900px">物 件 種 目</td>
  345. <td align="center"><font style="color:blue;">{{Product.syumoku}}</font></td>
  346. </tr>
  347. <tr>
  348. <td align="center">土 地 面 積</td><td align="center"><font style="color:blue;">
  349. <table id="ltable{{start_num+loop.index}}" width="140" border="0" cellpadding="0" cellspacing="0"><tr><td width="49%" align="right">
  350. {{Product.landArea}}m<Span style="font-size:60%;height:10;position:relative; top:-3%;">2</Span></td>
  351. <td width="51%" align="right">
  352. {% if Product.landArea != "" %}
  353. {% set ltubo = "%.2f"|format(((Product.landArea * 0.3025)*100)/100) %}
  354. {{ltubo}} 坪
  355. {% endif %}
  356. </td></tr></table>
  357. </font></td>
  358. </tr>
  359. <tr>
  360. <td align="center">
  361. {% if SaleTypeName == "マンション" %}
  362. 専 有 面 積
  363. {% else %}
  364. 建 物 面 積
  365. {% endif %}
  366. </td><td align="center"><font style="color:blue;">
  367. <table id="btable{{start_num+loop.index}}" width="140" border="0" cellpadding="0" cellspacing="0"><tr><td width="49%" align="right">
  368. {{Product.buildArea}}m<Span style="font-size:60%;height:10;position:relative; top:-3%;">2</Span></td>
  369. <td width="51%" align="right">
  370. {% if Product.buildArea != "" %}
  371. {% set btubo = "%.2f"|format(((Product.buildArea * 0.3025)*100)/100) %}
  372. {{btubo}} 坪
  373. {% endif %}
  374. </td></tr></table>
  375. </font></td>
  376. </tr>
  377. <tr>
  378. <td id="ensen{{start_num+loop.index}}" align="center">沿  線 ・ 駅</td><td align="center"><font style="color:blue;">{{Product.ensen}}{{Product.station}}</font></td>
  379. </tr>
  380. </table>
  381. <p id="koutuu{{start_num+loop.index}}" style="height:40px;display:none;">交通:<font style="color:blue;">{{Product.stOther}}</font></p>
  382. <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}-->
  383. <!--{assign var=id value=$arrBestProducts[cnt].product_id}-->
  384. <tr style="height:40px;">
  385.     <td colspan="2" align="center">
  386.         <a href="{{ url('product_detail', {'id': Product.id}) }}" onmouseover="chgImg('../html/user_data/assets/images/b_detail_h.gif','detail1');" onmouseout="chgImg('../html/user_data/assets/images/b_detail.gif','detail1');">
  387.             <img src="../html/user_data/assets/images/b_detail.gif" width="110" height="21" alt="詳しくはこちら" name="detail1" id="detail1" />
  388.         </a>
  389.     </td>
  390.     <td>
  391.         <form action="{{ url('product_add_cart', {id:Product.id}) }}" method="post" id="form{{ Product.id }}" name="productForm{{ Product.id }}">
  392.             <input type="hidden" id="quantity{{ Product.id }}" name="quantity" required="required" min="1" maxlength="9" class="quantity" value="1">
  393.             <input type="hidden" id="product_id" name="product_id" value="{{ Product.id }}">
  394.             <input type="hidden" id="ProductClass" name="ProductClass" value="{{ Product.ProductClasses[0].id }}">
  395.             <input type="hidden" id="_token" name="_token" value="{{csrf_token('Eccube\\Form\\Type\\AddCartType') }}" />
  396.         </form>
  397.         {#<div class="ec-productRole__btn">#}
  398.             <a type="button" class="add-cart" data-cartid="{{ Product.id }}" form="productForm{{ Product.id }}">
  399.                 <img src="../../html/user_data/assets/images/b_box_in.gif" width="108" height="21" alt="カゴに入れる"style="margin:5px 0 0 0;"/>
  400.             </a>
  401.         {#</div>#}
  402.     </td>
  403. </tr>
  404. </div>
  405. <!-- / edit area end-->
  406. </div>
  407. <!--/product_cap end-->
  408. <div style="clear:left;">
  409. <p id="sankou{{start_num+loop.index}}" style="display:none;margin-left:5px;margin-bottom:10px;padding-top:5px;">
  410. <font style="color:black;font-size:96%;"><参考画像>(画像の上にマウスを乗せると拡大画像がご覧になれます)</font><br>
  411. {% if  Product.mainImage !=""%}
  412. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.mainImage|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '')" src="{{ asset(Product.mainImage|no_image_product ,'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  413. {% endif %}
  414. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  415. {% if  Product.sub1Image !=""%}
  416. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub1Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub1Title}}')" src="{{ asset(Product.sub1Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  417. {% endif %}
  418. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  419. {% if  Product.sub2Image !=""%}
  420. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub2Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub2Title}}')" src="{{ asset(Product.sub2Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  421. {% endif %}
  422. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  423. {% if  Product.sub3Image !=""%}
  424. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub3Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub3Title}}')" src="{{ asset(Product.sub3Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  425. {% endif %}
  426. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  427. {% if  Product.sub4Image !=""%}
  428. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub4Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub4Title}}')" src="{{ asset(Product.sub4Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  429. {% endif %}
  430. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  431. {% if  Product.sub5Image !=""%}
  432. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub5Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub5Title}}')" src="{{ asset(Product.sub5Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  433. {% endif %}
  434. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  435. {% if  Product.sub6Image !=""%}
  436. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub6Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub6Title}}')" src="{{ asset(Product.sub6Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  437. {% endif %}
  438. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  439. {% if  Product.sub7Image !=""%}
  440. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub7Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub7Title}}')" src="{{ asset(Product.sub7Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  441. {% endif %}
  442. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  443. {% if  Product.sub8Image !=""%}
  444. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub8Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub8Title}}')" src="{{ asset(Product.sub8Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  445. {% endif %}
  446. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  447. {% if  Product.sub9Image !=""%}
  448. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub9Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub9Title}}')" src="{{ asset(Product.sub9Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  449. {% endif %}
  450. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  451. {% if  Product.sub12Image !=""%}
  452. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub12Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub12Title}}')" src="{{ asset(Product.sub12Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  453. {% endif %}
  454. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  455. {% if  Product.sub13Image !=""%}
  456. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub13Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub13Title}}')" src="{{ asset(Product.sub13Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  457. {% endif %}
  458. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  459. {% if  Product.sub14Image !=""%}
  460. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub14Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub14Title}}')" src="{{ asset(Product.sub14Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  461. {% endif %}
  462. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  463. {% if  Product.sub15Image !=""%}
  464. <img onmouseover="changeImage('image{{start_num+loop.index}}','{{ asset(Product.sub15Image|no_image_product, 'save_image') }}', 'title{{start_num+loop.index}}', '{{Product.sub15Title}}')" src="{{ asset(Product.sub15Image|no_image_product, 'save_image') }}" style="margin:0;border:1px solid black;height:41px;width:41px;"/>
  465. {% endif %}
  466. <!--{if $arrBestProducts[cnt].sub_large_image1 != ""}-->
  467. </p>
  468. </div>
  469.  
  470. </div>
  471. <!--/product_left end-->
  472. </li>
  473. {% else %}
  474. {% set SaleTypeName = '' %}
  475. {% endif %}
  476.   {% endfor %}
  477. <!--/product end-->
  478. <!--{/section}-->
  479. <!--{if $navi != ""}-->
  480. <div align="center" style="margin:0 5px 5px;height:30px;width:960px;border:1px solid #E2DFD2;clear:left;font-size:18px;">
  481.  <<                
  482.             {% for i in 1..max_page %}
  483.             {% if i ==page_num %}
  484.             {{i}}
  485.             {% else %}
  486.             <a href="{{ url('homepage',{'page':i}) }}">{{i}}</a>
  487.             {% endif %}
  488.               
  489.             {% endfor %}
  490.             >>
  491. </div>
  492. <!--{/if}-->
  493. </div>