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

Changeset 9315


Ignore:
Timestamp:
Nov 21, 2008, 6:25:33 PM (12 years ago)
Author:
shingo
Message:

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

Location:
OpenPNE/branches/stable-2.12.x/webapp
Files:
5 edited

Legend:

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

    r9304 r9315  
    103103        $member_profile[$value['name']]['form_type'] = $value['form_type'];
    104104        if ($value['form_type'] == 'checkbox') {
    105             if ($value['c_profile_option_id'] == 0) {
     105            if (!$value['c_profile_option_id']) {
    106106                $member_profile[$value['name']]['value'] = '';
    107107            } else {
     
    16361636    //function cache削除
    16371637    cache_drop_c_member_profile($c_member_id);
     1638
    16381639    foreach ($c_member_profile_list as $item) {
    16391640        $sql = 'DELETE FROM c_member_profile' .
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/templates/delete_c_member_confirm.tpl

    r6410 r9315  
    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.12.x/webapp/modules/admin/templates/list_c_member.tpl

    r9010 r9315  
    253253                        ({if $prof.name !== 'PNE_POINT'})
    254254                        <td>({strip})
    255                         ({if $prof.form_type == "checkbox"})
     255                        ({if $prof.form_type == "checkbox" && $item.profile[$prof.name].value !== ''})
    256256                                ({$item.profile[$prof.name].value|@t_implode:","|t_truncate:30})
    257257                        ({else})
  • OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/templates/fh_profile_detail.tpl

    r8745 r9315  
    4747<font color="#({$ktai_color_config.font_06})">({$item.caption}):</font><br>
    4848
    49 ({if $item.form_type == 'checkbox'})
     49({if $item.form_type == 'checkbox' && $item.valu !== ''})
    5050    ({$item.value|@t_implode:", "})
    5151({elseif $item.form_type == 'textarea'})
  • OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/templates/inc_f_home_h_prof.tpl

    r9312 r9315  
    106106({foreach from=$target_c_member.profile key=key item=item})
    107107({if $item.public_flag != "private" && ($item.public_flag == "public" || ($item.public_flag == "friend" && ($is_friend || $is_h_prof)))})
    108 ({if $item.value !== ''})
     108({if !$item.value})
    109109({if $item.form_type == 'textarea'})
    110110<font color="#({$ktai_color_config.font_06})">({$item.caption}):</font><br>
Note: See TracChangeset for help on using the changeset viewer.