Changeset 10794
- Timestamp:
- Feb 18, 2009, 7:51:25 PM (13 years ago)
- 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 20 20 $send_type = $requests['send_type']; 21 21 22 $cond_list = validate_cond($_REQUEST); 22 $cond_list = validate_cond($_REQUEST['cond']); 23 $profile_list = validate_profile_cond($_REQUEST['profile']); 23 24 24 25 // 送信者はとりあえず1番で固定 25 26 $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); 27 28 28 29 $send_num = 0; -
OpenPNE/trunk/webapp/modules/admin/page/send_messages_search.php
r7042 r10794 10 10 function execute($requests) 11 11 { 12 $cond_list = validate_cond($_REQUEST); 12 $cond_list = validate_cond($_REQUEST['cond']); 13 $profile_cond_list = validate_profile_cond($_REQUEST['profile']); 13 14 14 15 $profile_list = db_member_c_profile_list(); 15 16 $profile_value_list = array(); 16 17 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) { 25 19 $c_profile_option = db_c_profile_option4c_profile_option_id($each_cond); 26 20 $profile_value_list[$key]['value'] = $c_profile_option['value']; 27 21 $profile_value_list[$key]['caption'] = $profile_list[$key]['caption']; 28 22 } 23 29 24 $v['cond_list'] = $cond_list; 25 $v['profile_cond_list'] = $profile_cond_list; 30 26 $v['profile_value_list'] = $profile_value_list; 31 27 -
OpenPNE/trunk/webapp/modules/admin/templates/list_c_member.tpl
r10781 r10794 288 288 <input type="hidden" name="a" value="page_({$hash_tbl->hash('send_messages_search')})" /> 289 289 ({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}) 293 295 ({else}) 294 296 <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 49 49 <input type="hidden" name="sessid" value="({$PHPSESSID})" /> 50 50 ({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})" /> 52 55 ({/foreach}) 53 56 <dl>
Note: See TracChangeset
for help on using the changeset viewer.