Ignore:
Timestamp:
2011/03/05 12:14:56 (13 years ago)
Author:
Seasoft
Message:

#627(ソース整形・ソースコメントの改善)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/admin/ownersstore/products_list.tpl

    r20475 r20513  
    3131        <th>購入ステータス</th> 
    3232    </tr> 
    33 <!--{foreach from=$arrProducts item=product name=products_list_loop}--> 
    34     <tr> 
    35         <td> 
    36             <a href="<!--{$smarty.const.OSTORE_URL}-->products/detail.php?product_id=<!--{$product.product_id|h}-->" target="_blank"> 
    37                 <img src="<!--{$smarty.const.OSTORE_SSLURL}-->resize.php?image=<!--{$product.main_list_image|h}-->&amp;width=50&amp;height=50" /></a> 
    38         </td> 
    39         <td> 
    40             <p> 
     33    <!--{foreach from=$arrProducts item=product name=products_list_loop}--> 
     34        <tr> 
     35            <td> 
    4136                <a href="<!--{$smarty.const.OSTORE_URL}-->products/detail.php?product_id=<!--{$product.product_id|h}-->" target="_blank"> 
    42                     <!--{$product.name}--></a> 
    43             </p> 
    44             <p>Version.<!--{$product.version|default:"--"}--> <!--{$product.last_update_date|sfDispDBDate:false|h}--></p> 
    45         </td> 
    46         <td> 
    47           <div id="ownersstore_version<!--{$product.product_id|h}-->"> 
    48             <!--{$product.installed_version|default:"--"|h}--> 
    49           </div> 
    50         </td> 
    51          
    52         <!--{* ダウンロード対象商品なら各種ボタンを表示する *}--> 
    53         <!--{if $product.download_flg}--> 
    54          
    55         <td> 
    56             <div id="ownersstore_download<!--{$product.product_id|h}-->"> 
    57             <!--{* 新バージョンが公開している場合 はアップデートボタン表示 *}--> 
    58             <!--{if $product.version_up_flg}--> 
    59                 <span class="icon_confirm"> 
    60                 <a href="#" onclick="OwnersStore.download(<!--{$product.product_id|h}-->);return false;">アップデート</a> 
    61                 </span> 
    62             <!--{* それ以外ならダウンロードボタン表示 *}--> 
     37                    <img src="<!--{$smarty.const.OSTORE_SSLURL}-->resize.php?image=<!--{$product.main_list_image|h}-->&amp;width=50&amp;height=50" /></a> 
     38            </td> 
     39            <td> 
     40                <p> 
     41                    <a href="<!--{$smarty.const.OSTORE_URL}-->products/detail.php?product_id=<!--{$product.product_id|h}-->" target="_blank"> 
     42                        <!--{$product.name}--></a> 
     43                </p> 
     44                <p>Version.<!--{$product.version|default:"--"}--> <!--{$product.last_update_date|sfDispDBDate:false|h}--></p> 
     45            </td> 
     46            <td> 
     47              <div id="ownersstore_version<!--{$product.product_id|h}-->"> 
     48                <!--{$product.installed_version|default:"--"|h}--> 
     49              </div> 
     50            </td> 
     51 
     52            <!--{* ダウンロード対象商品なら各種ボタンを表示する *}--> 
     53            <!--{if $product.download_flg}--> 
     54 
     55                <td> 
     56                    <div id="ownersstore_download<!--{$product.product_id|h}-->"> 
     57                    <!--{* 新バージョンが公開している場合 はアップデートボタン表示 *}--> 
     58                    <!--{if $product.version_up_flg}--> 
     59                        <span class="icon_confirm"> 
     60                        <a href="#" onclick="OwnersStore.download(<!--{$product.product_id|h}-->);return false;">アップデート</a> 
     61                        </span> 
     62                    <!--{* それ以外ならダウンロードボタン表示 *}--> 
     63                    <!--{else}--> 
     64                        <span class="icon_confirm"> 
     65                        <a href="#" onclick="OwnersStore.download(<!--{$product.product_id|h}-->);return false;">ダウンロード</a> 
     66                        </span> 
     67                    <!--{/if}--> 
     68                    </div> 
     69                </td> 
     70 
     71                <td> 
     72                    <!--{* インストール済みなら設定ボタン表示 *}--> 
     73                    <!--{if $product.installed_flg}--> 
     74                        <span class="icon_confirm"> 
     75                        <a href="#" onclick="win02('../load_module_config.php?module_id=<!--{$product.product_id}-->', 'load', 615, 400);return false;"> 
     76                           設定</a> 
     77                        </span> 
     78                    <!--{else}--> 
     79                        <div id='ownersstore_settings<!--{$product.product_id|h}-->' style="display:none"> 
     80                        <span class="icon_confirm"> 
     81                        <a href="#" onclick="win02('../load_module_config.php?module_id=<!--{$product.product_id}-->', 'load', 615, 400);return false;"> 
     82                           設定</a> 
     83                        </span> 
     84                        </div> 
     85                        <div id='ownersstore_settings_default<!--{$product.product_id|h}-->' style="display:bloc">--</div> 
     86                    <!--{/if}--> 
     87                </td> 
     88 
    6389            <!--{else}--> 
    64                 <span class="icon_confirm"> 
    65                 <a href="#" onclick="OwnersStore.download(<!--{$product.product_id|h}-->);return false;">ダウンロード</a> 
    66                 </span> 
     90 
     91                <td>--</td> 
     92                <td>--</td> 
    6793            <!--{/if}--> 
    68             </div> 
    69         </td> 
    70              
    71         <td> 
    72             <!--{* インストール済みなら設定ボタン表示 *}--> 
    73             <!--{if $product.installed_flg}--> 
    74                 <span class="icon_confirm"> 
    75                 <a href="#" onclick="win02('../load_module_config.php?module_id=<!--{$product.product_id}-->', 'load', 615, 400);return false;"> 
    76                    設定</a> 
    77                 </span> 
    78             <!--{else}--> 
    79                 <div id='ownersstore_settings<!--{$product.product_id|h}-->' style="display:none"> 
    80                 <span class="icon_confirm"> 
    81                 <a href="#" onclick="win02('../load_module_config.php?module_id=<!--{$product.product_id}-->', 'load', 615, 400);return false;"> 
    82                    設定</a> 
    83                 </span> 
    84                 </div> 
    85                 <div id='ownersstore_settings_default<!--{$product.product_id|h}-->' style="display:bloc">--</div> 
    86             <!--{/if}--> 
    87         </td> 
    8894 
    89         <!--{else}--> 
    90          
    91         <td>--</td> 
    92         <td>--</td> 
    93         <!--{/if}--> 
    94          
    95         <td><!--{$product.status|h|nl2br}--></td> 
    96     </tr> 
    97 <!--{/foreach}--> 
     95            <td><!--{$product.status|h|nl2br}--></td> 
     96        </tr> 
     97    <!--{/foreach}--> 
    9898</table> 
Note: See TracChangeset for help on using the changeset viewer.