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/entry/set1.tpl

    r19665 r19785  
    2424<div align="center">会員情報入力 2/3</div> 
    2525<hr> 
    26 <form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
     26<form name="form1" method="post" action="<!--{$smarty.server.PHP_SELF|h}-->"> 
    2727    <input type="hidden" name="mode" value="set2"> 
    2828 
     
    3636    【生年月日】<br> 
    3737    <font color="#FF0000"><!--{$arrErr.year}--><!--{$arrErr.month}--><!--{$arrErr.day}--></font> 
    38     <input type="text" name="year" value="<!--{$year|escape}-->" size="4" maxlength="4" istyle="4">年<br> 
     38    <input type="text" name="year" value="<!--{$year|h}-->" size="4" maxlength="4" istyle="4">年<br> 
    3939    <select name="month"> 
    4040        <!--{html_options options=$arrMonth selected=$month}--> 
     
    5050    <!--{assign var="size1" value="`$smarty.const.ZIP01_LEN+2`"}--> 
    5151    <!--{assign var="size2" value="`$smarty.const.ZIP02_LEN+2`"}--> 
    52     <input size="<!--{$size1}-->" type="text" name="zip01" value="<!--{if $zip01 == ""}--><!--{$arrOtherDeliv.zip01|escape}--><!--{else}--><!--{$zip01|escape}--><!--{/if}-->" maxlength="<!--{$smarty.const.ZIP01_LEN}-->" istyle="4"> 
     52    <input size="<!--{$size1}-->" type="text" name="zip01" value="<!--{if $zip01 == ""}--><!--{$arrOtherDeliv.zip01|h}--><!--{else}--><!--{$zip01|h}--><!--{/if}-->" maxlength="<!--{$smarty.const.ZIP01_LEN}-->" istyle="4"> 
    5353    &nbsp;-&nbsp; 
    54     <input size="<!--{$size2}-->" type="text" name="zip02" value="<!--{if $zip02 == ""}--><!--{$arrOtherDeliv.zip02|escape}--><!--{else}--><!--{$zip02|escape}--><!--{/if}-->" maxlength="<!--{$smarty.const.ZIP02_LEN}-->" istyle="4"><br> 
     54    <input size="<!--{$size2}-->" type="text" name="zip02" value="<!--{if $zip02 == ""}--><!--{$arrOtherDeliv.zip02|h}--><!--{else}--><!--{$zip02|h}--><!--{/if}-->" maxlength="<!--{$smarty.const.ZIP02_LEN}-->" istyle="4"><br> 
    5555 
    5656    <input type="submit" name="submit" value="次へ"><br> 
     
    5858 
    5959    <!--{foreach from=$list_data key=key item=item}--> 
    60         <input type="hidden" name="<!--{$key|escape}-->" value="<!--{$item|escape}-->"> 
     60        <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->"> 
    6161    <!--{/foreach}--> 
    6262</form> 
Note: See TracChangeset for help on using the changeset viewer.