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

Changeset 12178


Ignore:
Timestamp:
Jul 7, 2009, 7:56:06 PM (11 years ago)
Author:
urabe
Message:

#4095 c_member_config の is_search_result の値がない場合、「検索しない」が選択される問題を修正

Location:
OpenPNE/trunk/webapp/modules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/ktai/page/h_config_prof.php

    r11844 r12178  
    1414
    1515        $prof = db_member_c_member_with_profile($u, 'private');
    16         $c_member_config = db_member_c_member_config4c_member_id($u);
    17         $prof['is_search_result'] = $c_member_config['IS_SEARCH_RESULT'];
    1816
    1917        $this->set('c_member', $prof);
  • OpenPNE/trunk/webapp/modules/ktai/templates/h_config_prof.tpl

    r11712 r12178  
    1616<font color="#({$ktai_color_config.font_06})">検索設定:</font><br>
    1717<select name="is_search_result">
    18     <option value="1"({if $c_member.is_search_result == "1"}) selected="selected"({/if})>公開する
    19     <option value="0"({if $c_member.is_search_result == "0"}) selected="selected"({/if})>公開しない
     18    <option value="1"({if $C_MEMBER_CONFIG.IS_SEARCH_RESULT == "1"}) selected="selected"({/if})>公開する
     19    <option value="0"({if $C_MEMBER_CONFIG.IS_SEARCH_RESULT == "0"}) selected="selected"({/if})>公開しない
    2020</select><br>
    2121<br>
  • OpenPNE/trunk/webapp/modules/pc/page/h_config_prof.php

    r11844 r12178  
    1919        if (!$prof) {
    2020            $prof = db_member_c_member_with_profile($u, 'private');
    21             $c_member_config = db_member_c_member_config4c_member_id($u);
    22             $prof['is_search_result'] = $c_member_config['IS_SEARCH_RESULT'];
    2321        }
    2422        $this->set('c_member', $prof);
  • OpenPNE/trunk/webapp/modules/pc/templates/h_config_prof.tpl

    r11712 r12178  
    1010<th>検索設定 <strong>※</strong></th>
    1111<td>
    12 <input type="radio" id="is_search_result_1" class="input_radio" name="is_search_result" value="1" ({if $c_member.is_search_result})checked="checked" ({/if})/> <label for="is_search_result_1">公開</label>
    13 <input type="radio" id="is_search_result_0" class="input_radio" name="is_search_result" value="0" ({if !$c_member.is_search_result})checked="checked" ({/if})/> <label for="is_search_result_0">公開しない</label>
     12<input type="radio" id="is_search_result_1" class="input_radio" name="is_search_result" value="1"({if $C_MEMBER_CONFIG.IS_SEARCH_RESULT == '1'}) checked="checked" ({/if})/> <label for="is_search_result_1">公開</label>
     13<input type="radio" id="is_search_result_0" class="input_radio" name="is_search_result" value="0"({if $C_MEMBER_CONFIG.IS_SEARCH_RESULT == '0'}) checked="checked" ({/if})/> <label for="is_search_result_0">公開しない</label>
    1414</td>
    1515</tr>
Note: See TracChangeset for help on using the changeset viewer.