mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Display phone number in member list if the field is enabled
This commit is contained in:
parent
a114976d2b
commit
61a4400e1f
5 changed files with 30 additions and 6 deletions
|
|
@ -79,6 +79,10 @@ class memberAdminModel extends member
|
||||||
if($search_keyword) $search_keyword = str_replace(' ','%',$search_keyword);
|
if($search_keyword) $search_keyword = str_replace(' ','%',$search_keyword);
|
||||||
$args->s_email_address = $search_keyword;
|
$args->s_email_address = $search_keyword;
|
||||||
break;
|
break;
|
||||||
|
case 'phone_number' :
|
||||||
|
if($search_keyword) $search_keyword = preg_replace('/[^0-9]/', '', $search_keyword);
|
||||||
|
$args->s_phone_number = $search_keyword;
|
||||||
|
break;
|
||||||
case 'regdate' :
|
case 'regdate' :
|
||||||
$args->s_regdate = preg_replace("/[^0-9]/","",$search_keyword);
|
$args->s_regdate = preg_replace("/[^0-9]/","",$search_keyword);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,13 @@ class memberAdminView extends member
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$config = $this->memberConfig;
|
$config = $this->memberConfig;
|
||||||
$memberIdentifiers = array('user_id'=>'user_id', 'user_name'=>'user_name', 'nick_name'=>'nick_name');
|
$memberIdentifiers = array(
|
||||||
|
'user_id' => 'user_id',
|
||||||
|
'email_address' => 'email_address',
|
||||||
|
'phone_number' => 'phone_number',
|
||||||
|
'user_name' => 'user_name',
|
||||||
|
'nick_name' => 'nick_name'
|
||||||
|
);
|
||||||
$usedIdentifiers = array();
|
$usedIdentifiers = array();
|
||||||
|
|
||||||
if(is_array($config->signupForm))
|
if(is_array($config->signupForm))
|
||||||
|
|
@ -114,6 +120,7 @@ class memberAdminView extends member
|
||||||
Context::set('total_count', $output->total_count);
|
Context::set('total_count', $output->total_count);
|
||||||
Context::set('total_page', $output->total_page);
|
Context::set('total_page', $output->total_page);
|
||||||
Context::set('page', $output->page);
|
Context::set('page', $output->page);
|
||||||
|
Context::set('member_config', $oMemberModel->getMemberConfig());
|
||||||
Context::set('member_list', $output->data);
|
Context::set('member_list', $output->data);
|
||||||
Context::set('usedIdentifiers', $usedIdentifiers);
|
Context::set('usedIdentifiers', $usedIdentifiers);
|
||||||
Context::set('page_navigation', $output->page_navigation);
|
Context::set('page_navigation', $output->page_navigation);
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
<condition operation="like" column="nick_name" var="s_nick_name" pipe="or" />
|
<condition operation="like" column="nick_name" var="s_nick_name" pipe="or" />
|
||||||
<condition operation="like" column="nick_name" var="html_nick_name" pipe="or" />
|
<condition operation="like" column="nick_name" var="html_nick_name" pipe="or" />
|
||||||
<condition operation="like" column="email_address" var="s_email_address" pipe="or" />
|
<condition operation="like" column="email_address" var="s_email_address" pipe="or" />
|
||||||
|
<condition operation="like" column="phone_number" var="s_phone_number" pipe="or" />
|
||||||
<condition operation="like" column="birthday" var="s_birthday" pipe="or" />
|
<condition operation="like" column="birthday" var="s_birthday" pipe="or" />
|
||||||
<condition operation="like" column="extra_vars" var="s_extra_vars" pipe="or" />
|
<condition operation="like" column="extra_vars" var="s_extra_vars" pipe="or" />
|
||||||
<condition operation="like_prefix" column="regdate" var="s_regdate" pipe="or" />
|
<condition operation="like_prefix" column="regdate" var="s_regdate" pipe="or" />
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
<condition operation="like" column="member.nick_name" var="s_nick_name" pipe="or" />
|
<condition operation="like" column="member.nick_name" var="s_nick_name" pipe="or" />
|
||||||
<condition operation="like" column="member.nick_name" var="html_nick_name" pipe="or" />
|
<condition operation="like" column="member.nick_name" var="html_nick_name" pipe="or" />
|
||||||
<condition operation="like" column="member.email_address" var="s_email_address" pipe="or" />
|
<condition operation="like" column="member.email_address" var="s_email_address" pipe="or" />
|
||||||
|
<condition operation="like" column="member.phone_number" var="s_phone_number" pipe="or" />
|
||||||
<condition operation="like" column="member.birthday" var="s_birthday" pipe="or" />
|
<condition operation="like" column="member.birthday" var="s_birthday" pipe="or" />
|
||||||
<condition operation="like" column="member.extra_vars" var="s_extra_vars" pipe="or" />
|
<condition operation="like" column="member.extra_vars" var="s_extra_vars" pipe="or" />
|
||||||
<condition operation="like_prefix" column="member.regdate" var="s_regdate" pipe="or" />
|
<condition operation="like_prefix" column="member.regdate" var="s_regdate" pipe="or" />
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col" class="nowr rx_detail_marks" cond="$profileImageConfig == 'Y' && $config->member_profile_view == 'Y'">{$lang->profile_image}</th>
|
<th scope="col" class="nowr rx_detail_marks" cond="$profileImageConfig == 'Y' && $config->member_profile_view == 'Y'">{$lang->profile_image}</th>
|
||||||
<th scope="col" class="nowr">{$lang->email}</th>
|
|
||||||
<th scope="col" class="nowr" loop="$usedIdentifiers=>$name,$title">{$title}</th>
|
<th scope="col" class="nowr" loop="$usedIdentifiers=>$name,$title">{$title}</th>
|
||||||
<th scope="col" class="nowr">{$lang->status}</th>
|
<th scope="col" class="nowr">{$lang->status}</th>
|
||||||
<th scope="col" class="nowr rx_detail_marks"><a href="{getUrl('', 'module', 'admin', 'act', 'dispMemberAdminList', 'sort_index', 'regdate', 'sort_order', ($sort_order == 'asc') ? 'desc' : 'asc', 'selected_group_srl', $selected_group_srl)}">{$lang->signup_date}<block cond="$sort_index == 'regdate'"> <em cond="$sort_order=='asc'">▲</em><em cond="$sort_order != 'asc'">▼</em></block></a></th>
|
<th scope="col" class="nowr rx_detail_marks"><a href="{getUrl('', 'module', 'admin', 'act', 'dispMemberAdminList', 'sort_index', 'regdate', 'sort_order', ($sort_order == 'asc') ? 'desc' : 'asc', 'selected_group_srl', $selected_group_srl)}">{$lang->signup_date}<block cond="$sort_index == 'regdate'"> <em cond="$sort_order=='asc'">▲</em><em cond="$sort_order != 'asc'">▼</em></block></a></th>
|
||||||
|
|
@ -56,11 +55,23 @@
|
||||||
<i class="no_profile">?</i>
|
<i class="no_profile">?</i>
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
</td>
|
</td>
|
||||||
<td class="nowr">
|
|
||||||
<a href="#popup_menu_area" class="member_{$member_info['member_srl']}" title="Info">{getEncodeEmailAddress($member_info['email_address'])}</a>
|
|
||||||
</td>
|
|
||||||
{@ $member_info['group_list'] = implode(', ', $member_info['group_list'])}
|
{@ $member_info['group_list'] = implode(', ', $member_info['group_list'])}
|
||||||
<td class="nowr" loop="$usedIdentifiers=>$name,$title">{$member_info[$name]}</td>
|
<td class="nowr" loop="$usedIdentifiers=>$name,$title">
|
||||||
|
<!--@if($name === 'email_address')-->
|
||||||
|
<a href="#popup_menu_area" class="member_{$member_info['member_srl']}">{getEncodeEmailAddress($member_info['email_address'])}</a>
|
||||||
|
<!--@elseif($name === 'phone_number')-->
|
||||||
|
<!--@if($member_info['phone_country'] && $member_info['phone_country'] != $member_config->phone_number_default_country)-->
|
||||||
|
(+{$member_info['phone_country']})
|
||||||
|
<!--@end-->
|
||||||
|
<!--@if($member_info['phone_country'] == 82)-->
|
||||||
|
{\Rhymix\Framework\Korea::formatPhoneNumber($member_info['phone_number'])}
|
||||||
|
<!--@else-->
|
||||||
|
{$member_info['phone_number']}
|
||||||
|
<!--@end-->
|
||||||
|
<!--@else-->
|
||||||
|
{$member_info[$name]}
|
||||||
|
<!--@end-->
|
||||||
|
</td>
|
||||||
<td class="nowr">
|
<td class="nowr">
|
||||||
<!--@if($member_info['denied']=='Y')-->
|
<!--@if($member_info['denied']=='Y')-->
|
||||||
<span style="color:red;">{$lang->denied}</span>
|
<span style="color:red;">{$lang->denied}</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue