-
Notifications
You must be signed in to change notification settings - Fork 0
/
experience.admin.view.php
82 lines (68 loc) · 2.05 KB
/
experience.admin.view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* @class experienceAdminView
* @author CONORY (http://www.conory.com)
* @brief The admin view class of the experience module
**/
class experienceAdminView extends experience
{
/**
* @brief Initialization
*/
function init()
{
$config = $this->getConfig();
Context::set('config', $config);
$this->setTemplatePath($this->module_path . 'tpl');
}
/**
* @brief 기본 설정
*/
function dispExperienceAdminConfig()
{
$level_icon_list = FileHandler::readDir("./modules/experience/icons");
Context::set('level_icon_list', $level_icon_list);
$medal_icon_list = FileHandler::readDir("./modules/experience/medal");
Context::set('medal_icon_list', $medal_icon_list);
Context::set('experience_dir', RX_BASEDIR . 'modules/experience');
//그룹 목록
$oMemberModel = getModel('member');
$group_list = $oMemberModel->getGroups();
Context::set('group_list', $group_list);
//포인트 기능 활성화여부
$config = moduleModel::getInstance()::getModuleConfig('point');
if ($config->able_module == 'N')
{
Context::set('no_point_module', true);
}
$this->setTemplateFile('config');
}
/**
* @brief 경험치 회원 목록
*/
function dispExperienceAdminMemberList()
{
$oMemberModel = getModel('member');
$memberConfig = $oMemberModel->getMemberConfig();
Context::set('identifier', $memberConfig->identifier);
$this->group_list = $oMemberModel->getGroups();
Context::set('group_list', $this->group_list);
$columnList = array(
'member.member_srl',
'member.user_id',
'member.email_address',
'member.nick_name',
'experience.experience'
);
$args = new stdClass;
$args->list_count = 20;
$args->page = Context::get('page');
$output = experienceModel::getInstance()->getMemberList($args, $columnList);
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
Context::set('page', $output->page);
Context::set('member_list', $output->data);
Context::set('page_navigation', $output->page_navigation);
$this->setTemplateFile('member_list');
}
}