Fix missing variables in member list screen

This commit is contained in:
Kijin Sung 2023-01-16 23:05:31 +09:00
parent 60433f93d2
commit aacc7dc46e
2 changed files with 6 additions and 3 deletions

View file

@ -77,9 +77,9 @@ class MemberAdminView extends Member
$oMemberModel = getModel('member');
$output = $oMemberAdminModel->getMemberList();
$filter = Context::get('filter_type');
$filter_type = Context::get('filter_type');
global $lang;
switch($filter)
switch($filter_type)
{
case 'super_admin' : Context::set('filter_type_title', $lang->cmd_show_super_admin_member);break;
case 'site_admin' : Context::set('filter_type_title', $lang->cmd_show_site_admin_member);break;
@ -143,6 +143,9 @@ class MemberAdminView extends Member
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
Context::set('page', $output->page);
Context::set('filter_type', $filter_type);
Context::set('selected_group_srl', Context::get('selected_group_srl'));
Context::set('sort_index', Context::get('sort_index'));
Context::set('member_config', $oMemberModel->getMemberConfig());
Context::set('member_list', $output->data);
Context::set('new_member_check_list', $check_list);

View file

@ -167,7 +167,7 @@
{@ $lang->search_target_list = array_merge($usedIdentifiers, lang('member.search_target_list')->getArrayCopy())}
<option value="{$key}" loop="$lang->search_target_list=>$key,$val" selected="selected"|cond="$search_target==$key">{$val}</option>
</select>
<input type="search" name="search_keyword" value="{htmlspecialchars($search_keyword, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)}" style="width:140px">
<input type="search" name="search_keyword" value="{$search_keyword}" style="width:140px">
<button class="x_btn x_btn-inverse" type="submit">{$lang->cmd_search}</button>
<a class="x_btn" href="{getUrl('', 'module', 'admin', 'act', 'dispMemberAdminList', 'page', $page)}">{$lang->cmd_cancel}</a>
</form>