Ignore:
Timestamp:
2010/12/29 13:10:01 (13 years ago)
Author:
Seasoft
Message:

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/mobile/products/detail.tpl

    r19680 r19785  
    2626<!--タイトルここから--> 
    2727<!--★商品名★--> 
    28 <div align="center"><!--{$arrProduct.name|escape}--></div> 
     28<div align="center"><!--{$arrProduct.name|h}--></div> 
    2929<hr> 
    3030<!--タイトルここまで--> 
     
    4141[1] 
    4242  <!--{else}--> 
    43 [<a href="<!--{$smarty.server.PHP_SELF|escape}-->?product_id=<!--{$smarty.get.product_id}-->&image=main_image">1</a>] 
     43[<a href="<!--{$smarty.server.PHP_SELF|h}-->?product_id=<!--{$smarty.get.product_id}-->&image=main_image">1</a>] 
    4444  <!--{/if}--> 
    4545   
     
    5151[<!--{$num}-->] 
    5252    <!--{else}--> 
    53 [<a href="<!--{$smarty.server.PHP_SELF|escape}-->?product_id=<!--{$smarty.get.product_id}-->&image=<!--{$key}-->"><!--{$num}--></a>] 
     53[<a href="<!--{$smarty.server.PHP_SELF|h}-->?product_id=<!--{$smarty.get.product_id}-->&image=<!--{$key}-->"><!--{$num}--></a>] 
    5454    <!--{/if}--> 
    5555    <!--{assign var=num value="`$num+1`"}--> 
     
    8484円</font><br> 
    8585<!--{/if}--> 
    86 <form name="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> 
     86<form name="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|h}-->"> 
    8787    <input type="hidden" name="mode" value="select"> 
    8888    <input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->"> 
Note: See TracChangeset for help on using the changeset viewer.