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

Changeset 9318


Ignore:
Timestamp:
Nov 21, 2008, 6:36:21 PM (11 years ago)
Author:
shingo
Message:

#2292:if文の内容を適切に変更・テンプレートに空文字チェックを追加

Location:
OpenPNE/branches/stable-2.10.x/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp/lib/db/member.php

    r9308 r9318  
    9393        $member_profile[$value['name']]['form_type'] = $value['form_type'];
    9494        if ($value['form_type'] == 'checkbox') {
    95             if ($value['c_profile_option_id'] == 0) {
     95            if (!$value['c_profile_option_id']) {
    9696                $member_profile[$value['name']]['value'] = '';
    9797            } else {
     
    16161616    //function cache削除
    16171617    cache_drop_c_member_profile($c_member_id);
     1618
    16181619    foreach ($c_member_profile_list as $item) {
    16191620        $sql = 'DELETE FROM c_member_profile' .
  • OpenPNE/branches/stable-2.10.x/webapp/modules/admin/templates/delete_c_member_confirm.tpl

    r4417 r9318  
    4848        </tr>
    4949        ({foreach from=$c_profile_list item=prof})
     50        ({if $item.value !== ''})
    5051        <tr>
    5152                <th>({$prof.caption})</th>
    5253                <td>({if $prof.form_type == checkbox})({$c_member.profile[$prof.name].value|@t_implode:", "})({else})({$c_member.profile[$prof.name].value|t_truncate:60|nl2br})({/if})</td>
    5354        </tr>
     55        ({/if})
    5456        ({/foreach})
    5557        <tr>
  • OpenPNE/branches/stable-2.10.x/webapp/modules/admin/templates/list_c_member.tpl

    r9012 r9318  
    232232                        ({if $prof.name !== 'PNE_POINT'})
    233233                        <td>({strip})
    234                         ({if $prof.form_type == "checkbox"})
     234                        ({if $prof.form_type == "checkbox" && $item.profile[$prof.name].value !== ''})
    235235                                ({$item.profile[$prof.name].value|@t_implode:","|t_truncate:30})
    236236                        ({else})
  • OpenPNE/branches/stable-2.10.x/webapp/modules/ktai/templates/fh_profile_detail.tpl

    r8747 r9318  
    4646<font color="#({$ktai_color_config.font_06})">({$item.caption}):</font><br>
    4747
    48 ({if $item.form_type == 'checkbox'})
     48({if $item.form_type == 'checkbox' && $item.valu !== ''})
    4949    ({$item.value|@t_implode:", "})
    5050({elseif $item.form_type == 'textarea'})
Note: See TracChangeset for help on using the changeset viewer.