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

Changeset 10615


Ignore:
Timestamp:
Feb 3, 2009, 9:25:07 PM (11 years ago)
Author:
ebihara
Message:

#1163:絞り込み条件を決定する際、プロフィール識別子をそのままURLパラメータとして使用することのないようにした

Location:
OpenPNE/branches/stable-2.12.x/webapp/modules/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/page/list_c_member.php

    r6519 r10615  
    1212        $order = $requests['order'];
    1313
    14         $cond = substr($_REQUEST['cond'], 1);
    15         $temp_list = explode('&', $cond);
    16         foreach ($temp_list as $value) {
    17             $temp_list2 = explode('=', $value);
    18             $_REQUEST[$temp_list2[0]] = $temp_list2[1];
    19         }
    20 
    2114        $v = array();
    2215        $pager = array();
    2316
    2417        //絞り込み条件作成
    25         $cond_list = validate_cond($_REQUEST);
     18        $cond_list = validate_cond((array)$_REQUEST['cond']);
    2619        $v['cond_list'] = $cond_list;
    2720
    2821        $cond = '';
    2922        foreach ($cond_list as $key => $value) {
    30             $cond .= '&'.$key.'='.$value;
     23            $cond .= '&cond['.$key.']='.$value;
    3124        }
    3225
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/templates/list_c_member.tpl

    r9315 r10615  
    4141<input type="hidden" name="order" value="({$requests.order})" />
    4242({foreach from=$cond_list key=key item=item})
    43 <input type="hidden" name="({$key})" value="({$item})" />
     43<input type="hidden" name="cond[({$key})]" value="({$item})" />
    4444({/foreach})
    4545<strong>表示件数</strong>:
     
    116116                        ({if $smarty.const.OPENPNE_USE_POINT_RANK})
    117117                        <th class="cell10" colspan="2">
    118             <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;s_rank='+this.options[this.selectedIndex].value);">
     118            <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[s_rank]='+this.options[this.selectedIndex].value);">
    119119                        <option value="">▼選択</option>
    120120                        ({foreach from=$rank_data item=item})
     
    123123                        </select>
    124124                        ~
    125                         <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;e_rank='+this.options[this.selectedIndex].value);">
     125                        <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[e_rank]='+this.options[this.selectedIndex].value);">
    126126                        <option value="">▼選択</option>
    127127                        ({foreach from=$rank_data item=item})
     
    132132                        ({/if})
    133133                        <th class="cell05">
    134             <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;last_login='+this.options[this.selectedIndex].value);">
     134            <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[last_login]='+this.options[this.selectedIndex].value);">
    135135            <option value="">▼選択</option>
    136136            ({foreach from=$select_last_login item=item key=key})
     
    140140            </th>
    141141                        <th class="cell09A" colspan="3">
    142                         <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;s_year='+this.options[this.selectedIndex].value);">
     142                        <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[s_year]='+this.options[this.selectedIndex].value);">
    143143                        <option value="">▼選択</option>
    144144                        ({foreach from=$years item=item})
     
    147147                        </select>
    148148                        ~
    149                         <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;e_year='+this.options[this.selectedIndex].value);">
     149                        <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[e_year]='+this.options[this.selectedIndex].value);">
    150150                        <option value="">▼選択</option>
    151151                        ({foreach from=$years item=item})
     
    158158                        <th>
    159159                        ({if $prof.form_type == 'radio' || $prof.form_type == 'select'})
    160                         <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;({$prof.name})='+this.options[this.selectedIndex].value);">
     160                        <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[({$prof.name})]='+this.options[this.selectedIndex].value);">
    161161                        <option value="">▼選択</option>
    162162                        ({foreach item=item from=$prof.options})
     
    171171                        ({/foreach})
    172172                        <th class="cell05">
    173             <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;is_pc_address='+this.options[this.selectedIndex].value);">
     173            <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[is_pc_address]='+this.options[this.selectedIndex].value);">
    174174            <option value="">▼選択</option>
    175175                        <option value="1"({if $cond_list.is_pc_address == 1}) selected="selected"({/if})>登録している</option>
     
    178178            </th>
    179179                        <th class="cell05">
    180             <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;is_ktai_address='+this.options[this.selectedIndex].value);">
     180            <select class="basic" onChange="Link('?m=({$module_name})&amp;a=page_({$hash_tbl->hash('list_c_member')})&amp;page_size=({$pager.page_size})&amp;order=({$requests.order})({$cond})&amp;cond[is_ktai_address]='+this.options[this.selectedIndex].value);">
    181181            <option value="">▼選択</option>
    182182                        <option value="1"({if $cond_list.is_ktai_address == 1}) selected="selected"({/if})>登録している</option>
Note: See TracChangeset for help on using the changeset viewer.