Ignore:
Timestamp:
2012/04/03 18:31:27 (10 years ago)
Author:
Seasoft
Message:

#1717 (URL のファイルパス部の取得は PHP_SELF の代わりに SCRIPT_NAME を使用する)

Location:
branches/version-2_12-dev/data/Smarty/templates
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/default/shopping/deliv.tpl

    r21539 r21704  
    4646        <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}--> 
    4747            <p class="addbtn"> 
    48                 <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address_on.jpg','addition');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg','addition');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg" alt="新しいお届け先を追加する" name="addition" id="addition" /></a> 
     48                <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address_on.jpg','addition');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg','addition');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg" alt="新しいお届け先を追加する" name="addition" id="addition" /></a> 
    4949            </p> 
    5050        <!--{/if}--> 
     
    9696                    <td class="alignC"> 
    9797                        <!--{if !$smarty.section.cnt.first}--> 
    98                             <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;">変更</a> 
     98                            <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;">変更</a> 
    9999                            <!--{else}--> 
    100100                                - 
  • branches/version-2_12-dev/data/Smarty/templates/default/shopping/multiple.tpl

    r21545 r21704  
    4545        <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}--> 
    4646            <p class="addbtn"> 
    47                 <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address_on.jpg','addition');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg','addition');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg" alt="新しいお届け先を追加する" name="addition" id="addition" /></a> 
     47                <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->','new_deiv','600','640'); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address_on.jpg','addition');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg','addition');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_add_address.jpg" alt="新しいお届け先を追加する" name="addition" id="addition" /></a> 
    4848            </p> 
    4949        <!--{/if}--> 
  • branches/version-2_12-dev/data/Smarty/templates/mobile/shopping/deliv.tpl

    r21537 r21704  
    5353        <!--{if !$smarty.section.cnt.first}--> 
    5454            <!--{* リンクにした方がすっきりしますが、お届け先削除処理がother_deliv_idをPOSTしか受け付けていないので、ボタンで統一しています *}--> 
    55             <!--{* <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->&amp;uniqid=<!--{$tpl_uniqid}-->">変更</a> *}--> 
     55            <!--{* <a href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->&amp;uniqid=<!--{$tpl_uniqid}-->">変更</a> *}--> 
    5656            <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php"> 
    5757                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->"> 
    58                 <input type="hidden" name="page" value="<!--{$smarty.server.PHP_SELF|h}-->"> 
     58                <input type="hidden" name="page" value="<!--{$smarty.server.SCRIPT_NAME|h}-->"> 
    5959                <input type="hidden" name="other_deliv_id" value="<!--{$arrAddr[cnt].other_deliv_id}-->"> 
    6060                <center><input type="submit" value="お届け先情報変更"></center> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/frontparts/bloc/login.tpl

    r21533 r21704  
    4040    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    4141    <input type="hidden" name="mode" value="logout" /> 
    42     <input type="hidden" name="url" value="<!--{$smarty.server.PHP_SELF|h}-->" /> 
     42    <input type="hidden" name="url" value="<!--{$smarty.server.SCRIPT_NAME|h}-->" /> 
    4343</form> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/frontparts/bloc/login_footer.tpl

    r21533 r21704  
    2626            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 
    2727            <input type="hidden" name="mode" value="logout" /> 
    28             <input type="hidden" name="url" value="<!--{$smarty.server.PHP_SELF|h}-->" /> 
     28            <input type="hidden" name="url" value="<!--{$smarty.server.SCRIPT_NAME|h}-->" /> 
    2929        </form> 
    3030        <p>ようこそ <a rel="external" href="<!--{$smarty.const.HTTPS_URL|sfTrimURL}-->/mypage/login.php" data-transition="slideup"><!--{$tpl_name1|h}--> <!--{$tpl_name2|h}-->さん</a></p> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/shopping/deliv.tpl

    r21688 r21704  
    7070                                </p> 
    7171                                <ul class="edit"> 
    72                                     <li><a rel="external" href="javascript:void(0);" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;" class="b_edit">編集</a></li> 
     72                                    <li><a rel="external" href="javascript:void(0);" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->&amp;other_deliv_id=<!--{$arrAddr[cnt].other_deliv_id}-->','new_deiv','600','640'); return false;" class="b_edit">編集</a></li> 
    7373                                    <li><img src="<!--{$TPL_URLPATH}-->img/button/btn_delete.png" width="21" height="20" alt="削除" onclick="fnModeSubmit('delete', 'other_deliv_id', '<!--{$arrAddr[cnt].other_deliv_id}-->');" /></li> 
    7474                                </ul> 
     
    8585                <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}--> 
    8686                    <div class="inner"> 
    87                         <a rel="external" href="javascript:void(0);" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->','new_deiv','600','640'); return false;" class="btn_sub addbtn">新しいお届け先を追加</a> 
     87                        <a rel="external" href="javascript:void(0);" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->','new_deiv','600','640'); return false;" class="btn_sub addbtn">新しいお届け先を追加</a> 
    8888                    </div> 
    8989                <!--{/if}--> 
  • branches/version-2_12-dev/data/Smarty/templates/sphone/shopping/multiple.tpl

    r21545 r21704  
    3535    <!--{if $tpl_addrmax < $smarty.const.DELIV_ADDR_MAX}--> 
    3636        <div class="btn_area_top"> 
    37             <a rel="external" href="javascript:void(0);" class="btn_sub addbtn" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.PHP_SELF|h}-->','new_deiv','600','640'); return false;">新しいお届け先を追加</a> 
     37            <a rel="external" href="javascript:void(0);" class="btn_sub addbtn" onclick="win02('<!--{$smarty.const.ROOT_URLPATH}-->mypage/delivery_addr.php?page=<!--{$smarty.server.SCRIPT_NAME|h}-->','new_deiv','600','640'); return false;">新しいお届け先を追加</a> 
    3838        </div> 
    3939    <!--{/if}--> 
Note: See TracChangeset for help on using the changeset viewer.