ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 2628


Ignore:
Timestamp:
Apr 27, 2007, 8:36:39 PM (13 years ago)
Author:
ebihara
Message:

webapp/以下のすべてのテンプレートについて、Smartyの代替演算子を条件演算子に置換

Location:
OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/modules/admin/templates/user_analysis_date_month.tpl

    r2412 r2628  
    3232({foreach from=$analysis_date_month key=key item=item})
    3333<tr>
    34         ({if $key eq "合計"})
     34        ({if $key == "合計"})
    3535        <th>({$key})</th>       
    3636        ({else})
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/modules/ktai/templates/c_edit_member.tpl

    r2623 r2628  
    2727({foreach from=$c_member_list item=item})
    2828({if $item.c_member_id != $u
    29  && $item.c_commu_admin_confirm_id le 0})
     29 && $item.c_commu_admin_confirm_id <= 0})
    3030 <option value="({$item.c_member_id})">({$item.nickname})
    3131({/if})
     
    4646({foreach from=$c_member_list item=item})
    4747({if $item.c_member_id != $u && $item.c_member_id != $c_commu.c_member_id_sub_admin
    48  && $item.c_commu_sub_admin_confirm_id le 0})
     48 && $item.c_commu_sub_admin_confirm_id <= 0})
    4949})
    5050<option value="({$item.c_member_id})">({$item.nickname})
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/modules/pc/templates/c_edit_member.tpl

    r1214 r2628  
    9292({if !$c_member.is_c_commu_admin
    9393 &&  !$c_member.is_c_commu_sub_admin
    94  &&   $c_member.c_commu_admin_confirm_id le 0
    95  &&   $c_member.c_commu_sub_admin_confirm_id le 0
     94 &&   $c_member.c_commu_admin_confirm_id <= 0
     95 &&   $c_member.c_commu_sub_admin_confirm_id <= 0
    9696 &&   $c_commu.c_member_id_sub_admin != $u
    9797})
     
    108108
    109109({if !($c_member.is_c_commu_admin && !$c_member.is_c_commu_sub_admin)
    110  &&   $c_member.c_commu_admin_confirm_id le 0
     110 &&   $c_member.c_commu_admin_confirm_id <= 0
    111111 &&   $c_commu.c_member_id_sub_admin != $u
    112112})
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/modules/pc/templates/c_home.tpl

    r2610 r2628  
    533533</tr>
    534534<!-- ここまで:主内容>コミュニティの説明 -->
    535 ({if $is_c_commu_member || $c_commu.public_flag neq "auth_commu_member"})
     535({if $is_c_commu_member || $c_commu.public_flag != "auth_commu_member"})
    536536<!-- ここから:主内容>新着のトピック書き込み -->
    537537({if $new_topic_comment})
     
    663663<td style="width:260px;" class="bg_02"><img src="./skin/dummy.gif" style="width:260px;height:1px;" class="dummy"></td>
    664664<td style="width:160px;padding:5px 0px;" class="bg_02 lh_140">
    665 ({if $is_c_commu_member || $c_commu.public_flag neq "auth_commu_member"})
     665({if $is_c_commu_member || $c_commu.public_flag != "auth_commu_member"})
    666666({if ($c_commu.topic_authority == 'public')||($c_commu.topic_authority == 'admin_only' && $is_c_commu_admin)})
    667667({if !$new_topic_comment})
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/modules/pc/templates/fh_review_list_member.tpl

    r1081 r2628  
    88<img src="./skin/dummy.gif" class="v_spacer_l">
    99
    10 ({if $type eq "h"})
     10({if $type == "h"})
    1111<!-- ********************************** -->
    1212<!-- ******ここから:レビューを書く****** -->
     
    284284<a href="({t_url m=pc a=page_h_review_list_product})&amp;c_review_id=({$review.c_review_id})">全てのレビューを見る(({$review.write_num}))</a>
    285285
    286 ({if $type eq "h"})|<a href="({t_url m=pc a=page_h_review_add_write})&amp;category_id=({$review.c_review_category_id})&amp;asin=({$review.asin})">編集</a><br>({/if})
     286({if $type == "h"})|<a href="({t_url m=pc a=page_h_review_add_write})&amp;category_id=({$review.c_review_category_id})&amp;asin=({$review.asin})">編集</a><br>({/if})
    287287
    288288</div>
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/modules/pc/templates/h_config.tpl

    r1380 r2628  
    364364<div class="padding_s">
    365365
    366 <input type="radio" name="is_receive_daily_news" value="1" ({if $c_member.is_receive_daily_news eq 1}) checked="checked"({/if}) class="no_bg">毎日
    367 ({if $daily_news_day_num})<input type="radio" name="is_receive_daily_news" value="2" ({if $c_member.is_receive_daily_news eq 2}) checked="checked"({/if}) class="no_bg">週({$daily_news_day_num})回 (({$daily_news_day_str}))({/if})
    368 <input type="radio" name="is_receive_daily_news" value="0" ({if $c_member.is_receive_daily_news eq 0}) checked="checked"({/if}) class="no_bg">受け取らない<br>
     366<input type="radio" name="is_receive_daily_news" value="1" ({if $c_member.is_receive_daily_news == 1}) checked="checked"({/if}) class="no_bg">毎日
     367({if $daily_news_day_num})<input type="radio" name="is_receive_daily_news" value="2" ({if $c_member.is_receive_daily_news == 2}) checked="checked"({/if}) class="no_bg">週({$daily_news_day_num})回 (({$daily_news_day_str}))({/if})
     368<input type="radio" name="is_receive_daily_news" value="0" ({if $c_member.is_receive_daily_news == 0}) checked="checked"({/if}) class="no_bg">受け取らない<br>
    369369<span>※({$SNS_NAME})の最新情報をお届けします。</span>
    370370
     
    547547<div class="padding_s">
    548548
    549 <input type="radio" name="is_shinobiashi" value="0"({if $is_shinobiashi eq 0}) checked="checked"({/if}) class="no_bg" id="is_shinobiashi_0"><label for="is_shinobiashi_0">あしあとを残す</label>
    550 <input type="radio" name="is_shinobiashi" value="1"({if $is_shinobiashi eq 1}) checked="checked"({/if}) class="no_bg" id="is_shinobiashi_1"><label for="is_shinobiashi_1">あしあとを残さない</label>
     549<input type="radio" name="is_shinobiashi" value="0"({if $is_shinobiashi == 0}) checked="checked"({/if}) class="no_bg" id="is_shinobiashi_0"><label for="is_shinobiashi_0">あしあとを残す</label>
     550<input type="radio" name="is_shinobiashi" value="1"({if $is_shinobiashi == 1}) checked="checked"({/if}) class="no_bg" id="is_shinobiashi_1"><label for="is_shinobiashi_1">あしあとを残さない</label>
    551551<br>
    552552※他人のページを見たときに、あしあとを残すかどうかを設定することができます。
  • OpenPNE/branches/ebihara/prj_debug_2_6_7/webapp/templates/debug.tpl

    r2 r2628  
    55{assign_debug_info}
    66
    7 {if isset($_smarty_debug_output|smarty:nodefaults) and $_smarty_debug_output eq "html"}
     7{if isset($_smarty_debug_output|smarty:nodefaults) and $_smarty_debug_output == "html"}
    88        <table border=0 width=100%>
    99        <tr bgcolor=#cccccc><th colspan=2>Smarty Debug Console</th></tr>
    1010        <tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>
    1111        {section name=templates loop=$_debug_tpls}
    12                 <tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth}&nbsp;&nbsp;&nbsp;{/section}<font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename|escape:html}</font>{if isset($_debug_tpls[templates].exec_time|smarty:nodefaults)} <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}</i></font>{/if}</tt></td></tr>
     12                <tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth}&nbsp;&nbsp;&nbsp;{/section}<font color={if $_debug_tpls[templates].type == "template"}brown{elseif $_debug_tpls[templates].type == "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename|escape:html}</font>{if isset($_debug_tpls[templates].exec_time|smarty:nodefaults)} <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% == 0} (total){/if}</i></font>{/if}</tt></td></tr>
    1313        {sectionelse}
    1414                <tr bgcolor=#eeeeee><td colspan=2><tt><i>no templates included</i></tt></td></tr>
     
    4242        _smarty_console.document.write("<tr bgcolor=#cccccc><td colspan=2><b>included templates & config files (load time in seconds):</b></td></tr>");
    4343        {section name=templates loop=$_debug_tpls}
    44                 _smarty_console.document.write("<tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth}&nbsp;&nbsp;&nbsp;{/section}<font color={if $_debug_tpls[templates].type eq "template"}brown{elseif $_debug_tpls[templates].type eq "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename|escape:html|escape:javascript}</font>{if isset($_debug_tpls[templates].exec_time|smarty:nodefaults)} <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% eq 0} (total){/if}</i></font>{/if}</tt></td></tr>");
     44                _smarty_console.document.write("<tr bgcolor={if %templates.index% is even}#eeeeee{else}#fafafa{/if}><td colspan=2><tt>{section name=indent loop=$_debug_tpls[templates].depth}&nbsp;&nbsp;&nbsp;{/section}<font color={if $_debug_tpls[templates].type == "template"}brown{elseif $_debug_tpls[templates].type == "insert"}black{else}green{/if}>{$_debug_tpls[templates].filename|escape:html|escape:javascript}</font>{if isset($_debug_tpls[templates].exec_time|smarty:nodefaults)} <font size=-1><i>({$_debug_tpls[templates].exec_time|string_format:"%.5f"}){if %templates.index% == 0} (total){/if}</i></font>{/if}</tt></td></tr>");
    4545        {sectionelse}
    4646                _smarty_console.document.write("<tr bgcolor=#eeeeee><td colspan=2><tt><i>no templates included</i></tt></td></tr>");
Note: See TracChangeset for help on using the changeset viewer.