Ignore:
Timestamp:
2013/07/08 13:17:24 (11 years ago)
Author:
Seasoft
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • インデント
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/default/products/list.tpl

    r22921 r22955  
    144144        <!--▼商品--> 
    145145        <form name="product_form<!--{$id|h}-->" action="?" onsubmit="return false;"> 
    146         <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    147         <input type="hidden" name="product_id" value="<!--{$id|h}-->" /> 
    148         <input type="hidden" name="product_class_id" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" /> 
    149         <div class="list_area clearfix"> 
    150             <a name="product<!--{$id|h}-->"></a> 
    151             <div class="listphoto"> 
    152                 <!--★画像★--> 
    153                 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> 
    154                     <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" /></a> 
     146            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
     147            <input type="hidden" name="product_id" value="<!--{$id|h}-->" /> 
     148            <input type="hidden" name="product_class_id" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" /> 
     149            <div class="list_area clearfix"> 
     150                <a name="product<!--{$id|h}-->"></a> 
     151                <div class="listphoto"> 
     152                    <!--★画像★--> 
     153                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> 
     154                        <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" /></a> 
     155                </div> 
     156 
     157                <div class="listrightbloc"> 
     158                    <!--▼商品ステータス--> 
     159                    <!--{if count($productStatus[$id]) > 0}--> 
     160                        <ul class="status_icon clearfix"> 
     161                            <!--{foreach from=$productStatus[$id] item=status}--> 
     162                                <li> 
     163                                    <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="<!--{$arrSTATUS[$status]}-->"/> 
     164                                </li> 
     165                            <!--{/foreach}--> 
     166                        </ul> 
     167                    <!--{/if}--> 
     168                    <!--▲商品ステータス--> 
     169 
     170                    <!--★商品名★--> 
     171                    <h3> 
     172                        <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"><!--{$arrProduct.name|h}--></a> 
     173                    </h3> 
     174                    <!--★価格★--> 
     175                    <div class="pricebox sale_price"> 
     176                        <!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 
     177                        <span class="price"> 
     178                            <span id="price02_default_<!--{$id}-->"><!--{strip}--> 
     179                                <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}--> 
     180                                    <!--{$arrProduct.price02_min_inctax|number_format}--> 
     181                                <!--{else}--> 
     182                                    <!--{$arrProduct.price02_min_inctax|number_format}-->~<!--{$arrProduct.price02_max_inctax|number_format}--> 
     183                                <!--{/if}--> 
     184                            </span><span id="price02_dynamic_<!--{$id}-->"></span><!--{/strip}--> 
     185                            円</span> 
     186                    </div> 
     187 
     188                    <!--★コメント★--> 
     189                    <div class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></div> 
     190 
     191                    <!--★商品詳細を見る★--> 
     192                    <div class="detail_btn"> 
     193                        <!--{assign var=name value="detail`$id`"}--> 
     194                        <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail_on.jpg','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg','<!--{$name}-->');"> 
     195                        <img src="<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg" alt="商品詳細を見る" name="<!--{$name}-->" id="<!--{$name}-->" /></a> 
     196                    </div> 
     197 
     198                    <!--▼買い物かご--> 
     199                    <div class="cart_area clearfix"> 
     200                        <!--{if $tpl_stock_find[$id]}--> 
     201                            <!--{if $tpl_classcat_find1[$id]}--> 
     202                                <div class="classlist"> 
     203                                    <dl class="size01 clearfix"> 
     204                                            <!--▼規格1--> 
     205                                            <dt><!--{$tpl_class_name1[$id]|h}-->:</dt> 
     206                                            <dd> 
     207                                                <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"> 
     208                                                    <!--{html_options options=$arrClassCat1[$id] selected=$arrProduct.classcategory_id1}--> 
     209                                                </select> 
     210                                                <!--{if $arrErr.classcategory_id1 != ""}--> 
     211                                                    <p class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</p> 
     212                                                <!--{/if}--> 
     213                                            </dd> 
     214                                            <!--▲規格1--> 
     215                                    </dl> 
     216                                    <!--{if $tpl_classcat_find2[$id]}--> 
     217                                        <dl class="size02 clearfix"> 
     218                                            <!--▼規格2--> 
     219                                            <dt><!--{$tpl_class_name2[$id]|h}-->:</dt> 
     220                                            <dd> 
     221                                                <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"> 
     222                                                </select> 
     223                                                <!--{if $arrErr.classcategory_id2 != ""}--> 
     224                                                    <p class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</p> 
     225                                                <!--{/if}--> 
     226                                            </dd> 
     227                                            <!--▲規格2--> 
     228                                        </dl> 
     229                                    <!--{/if}--> 
     230                                </div> 
     231                            <!--{/if}--> 
     232                            <div class="cartin clearfix"> 
     233                                <div class="quantity"> 
     234                                    数量:<input type="text" name="quantity" class="box" value="<!--{$arrProduct.quantity|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> 
     235                                    <!--{if $arrErr.quantity != ""}--> 
     236                                        <br /><span class="attention"><!--{$arrErr.quantity}--></span> 
     237                                    <!--{/if}--> 
     238                                </div> 
     239                                <div class="cartin_btn"> 
     240                                    <!--★カゴに入れる★--> 
     241                                    <div id="cartbtn_default_<!--{$id}-->"> 
     242                                        <input type="image" id="cart<!--{$id}-->" src="<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg" alt="カゴに入れる" onclick="fnInCart(this.form); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin_on.jpg', this);" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg', this);" /> 
     243                                    </div> 
     244                                    <div class="attention" id="cartbtn_dynamic_<!--{$id}-->"></div> 
     245                                </div> 
     246                            </div> 
     247                        <!--{else}--> 
     248                            <div class="cartbtn attention">申し訳ございませんが、只今品切れ中です。</div> 
     249                        <!--{/if}--> 
     250                    </div> 
     251                    <!--▲買い物かご--> 
     252                </div> 
    155253            </div> 
    156  
    157             <div class="listrightbloc"> 
    158                 <!--▼商品ステータス--> 
    159                 <!--{if count($productStatus[$id]) > 0}--> 
    160                     <ul class="status_icon clearfix"> 
    161                         <!--{foreach from=$productStatus[$id] item=status}--> 
    162                             <li> 
    163                                 <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="<!--{$arrSTATUS[$status]}-->"/> 
    164                             </li> 
    165                         <!--{/foreach}--> 
    166                     </ul> 
    167                 <!--{/if}--> 
    168                 <!--▲商品ステータス--> 
    169  
    170                 <!--★商品名★--> 
    171                 <h3> 
    172                     <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"><!--{$arrProduct.name|h}--></a> 
    173                 </h3> 
    174                 <!--★価格★--> 
    175                 <div class="pricebox sale_price"> 
    176                     <!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 
    177                     <span class="price"> 
    178                         <span id="price02_default_<!--{$id}-->"><!--{strip}--> 
    179                             <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}--> 
    180                                 <!--{$arrProduct.price02_min_inctax|number_format}--> 
    181                             <!--{else}--> 
    182                                 <!--{$arrProduct.price02_min_inctax|number_format}-->~<!--{$arrProduct.price02_max_inctax|number_format}--> 
    183                             <!--{/if}--> 
    184                         </span><span id="price02_dynamic_<!--{$id}-->"></span><!--{/strip}--> 
    185                         円</span> 
    186                 </div> 
    187  
    188                 <!--★コメント★--> 
    189                 <div class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></div> 
    190  
    191                 <!--★商品詳細を見る★--> 
    192                 <div class="detail_btn"> 
    193                     <!--{assign var=name value="detail`$id`"}--> 
    194                     <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail_on.jpg','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg','<!--{$name}-->');"> 
    195                     <img src="<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg" alt="商品詳細を見る" name="<!--{$name}-->" id="<!--{$name}-->" /></a> 
    196                 </div> 
    197  
    198                 <!--▼買い物かご--> 
    199                 <div class="cart_area clearfix"> 
    200                     <!--{if $tpl_stock_find[$id]}--> 
    201                         <!--{if $tpl_classcat_find1[$id]}--> 
    202                             <div class="classlist"> 
    203                                 <dl class="size01 clearfix"> 
    204                                         <!--▼規格1--> 
    205                                         <dt><!--{$tpl_class_name1[$id]|h}-->:</dt> 
    206                                         <dd> 
    207                                             <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"> 
    208                                                 <!--{html_options options=$arrClassCat1[$id] selected=$arrProduct.classcategory_id1}--> 
    209                                             </select> 
    210                                             <!--{if $arrErr.classcategory_id1 != ""}--> 
    211                                                 <p class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</p> 
    212                                             <!--{/if}--> 
    213                                         </dd> 
    214                                         <!--▲規格1--> 
    215                                 </dl> 
    216                                 <!--{if $tpl_classcat_find2[$id]}--> 
    217                                     <dl class="size02 clearfix"> 
    218                                         <!--▼規格2--> 
    219                                         <dt><!--{$tpl_class_name2[$id]|h}-->:</dt> 
    220                                         <dd> 
    221                                             <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"> 
    222                                             </select> 
    223                                             <!--{if $arrErr.classcategory_id2 != ""}--> 
    224                                                 <p class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</p> 
    225                                             <!--{/if}--> 
    226                                         </dd> 
    227                                         <!--▲規格2--> 
    228                                     </dl> 
    229                                 <!--{/if}--> 
    230                             </div> 
    231                         <!--{/if}--> 
    232                         <div class="cartin clearfix"> 
    233                             <div class="quantity"> 
    234                                 数量:<input type="text" name="quantity" class="box" value="<!--{$arrProduct.quantity|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> 
    235                                 <!--{if $arrErr.quantity != ""}--> 
    236                                     <br /><span class="attention"><!--{$arrErr.quantity}--></span> 
    237                                 <!--{/if}--> 
    238                             </div> 
    239                             <div class="cartin_btn"> 
    240                                 <!--★カゴに入れる★--> 
    241                                 <div id="cartbtn_default_<!--{$id}-->"> 
    242                                     <input type="image" id="cart<!--{$id}-->" src="<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg" alt="カゴに入れる" onclick="fnInCart(this.form); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin_on.jpg', this);" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg', this);" /> 
    243                                 </div> 
    244                                 <div class="attention" id="cartbtn_dynamic_<!--{$id}-->"></div> 
    245                             </div> 
    246                         </div> 
    247                     <!--{else}--> 
    248                         <div class="cartbtn attention">申し訳ございませんが、只今品切れ中です。</div> 
    249                     <!--{/if}--> 
    250                 </div> 
    251                 <!--▲買い物かご--> 
    252             </div> 
    253         </div> 
    254254        </form> 
    255255        <!--▲商品--> 
Note: See TracChangeset for help on using the changeset viewer.