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

Changeset 10794


Ignore:
Timestamp:
Feb 18, 2009, 7:51:25 PM (13 years ago)
Author:
ShogoKawahara
Message:

#1163:「絞り込んだメンバーにメッセージ/Eメールを送る」のプロフィール項目に対応していなかったのを修正(trunk)

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

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/admin/do/send_messages_search.php

    r6527 r10794  
    2020        $send_type = $requests['send_type'];
    2121
    22         $cond_list = validate_cond($_REQUEST);
     22        $cond_list = validate_cond($_REQUEST['cond']);
     23        $profile_list = validate_profile_cond($_REQUEST['profile']);
    2324
    2425        // 送信者はとりあえず1番で固定
    2526        $c_member_id_from = 1;
    26         $c_member_id_list = _db_admin_c_member_id_list($cond_list);
     27        $c_member_id_list = _db_admin_c_member_id_list($cond_list, $profile_list);
    2728
    2829        $send_num = 0;
  • OpenPNE/trunk/webapp/modules/admin/page/send_messages_search.php

    r7042 r10794  
    1010    function execute($requests)
    1111    {
    12         $cond_list = validate_cond($_REQUEST);
     12        $cond_list = validate_cond($_REQUEST['cond']);
     13        $profile_cond_list = validate_profile_cond($_REQUEST['profile']);
    1314
    1415        $profile_list = db_member_c_profile_list();
    1516        $profile_value_list = array();
    1617
    17         $special_keys = array('s_year', 'e_year',
    18                               's_rank', 'e_rank',
    19                               'last_login',
    20                               'is_pc_address', 'is_ktai_address');
    21         foreach ($cond_list as $key => $each_cond) {
    22             if (in_array($key, $special_keys)) {
    23                 continue;
    24             }
     18        foreach ($profile_cond_list as $key => $each_cond) {
    2519            $c_profile_option = db_c_profile_option4c_profile_option_id($each_cond);
    2620            $profile_value_list[$key]['value'] = $c_profile_option['value'];
    2721            $profile_value_list[$key]['caption'] = $profile_list[$key]['caption'];
    2822        }
     23
    2924        $v['cond_list'] = $cond_list;
     25        $v['profile_cond_list'] = $profile_cond_list;
    3026        $v['profile_value_list'] = $profile_value_list;
    3127
  • OpenPNE/trunk/webapp/modules/admin/templates/list_c_member.tpl

    r10781 r10794  
    288288<input type="hidden" name="a" value="page_({$hash_tbl->hash('send_messages_search')})" />
    289289({foreach from=$cond_list key=key item=item})
    290 <input type="hidden" name="({$key})" value="({$item})" />
    291 ({/foreach})
    292 <input type="hidden" name="cond" value="({$cond})" />
     290<input type="hidden" name="cond[({$key})]" value="({$item})" />
     291({/foreach})
     292({foreach from=$profile_cond_list key=key item=item})
     293<input type="hidden" name="profile[({$key})]" value="({$item})" />
     294({/foreach})
    293295({else})
    294296<input type="hidden" name="a" value="page_({$hash_tbl->hash('send_messages_all')})" />
  • OpenPNE/trunk/webapp/modules/admin/templates/send_messages_search.tpl

    r7042 r10794  
    4949<input type="hidden" name="sessid" value="({$PHPSESSID})" />
    5050({foreach from=$cond_list key=key item=item})
    51 <input type="hidden" name="({$key})" value="({$item})" />
     51<input type="hidden" name="cond[({$key})]" value="({$item})" />
     52({/foreach})
     53({foreach from=$cond_list key=key item=item})
     54<input type="hidden" name="profile[({$key})]" value="({$item})" />
    5255({/foreach})
    5356<dl>
Note: See TracChangeset for help on using the changeset viewer.