-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthentication.admin.view.php
More file actions
201 lines (172 loc) · 5.82 KB
/
Copy pathauthentication.admin.view.php
File metadata and controls
201 lines (172 loc) · 5.82 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<?php
/**
* @class authenticationAdminView
* @author NURIGO(contact@nurigo.net)
* @brief authenticationAdminView
*/
class authenticationAdminView extends authentication
{
/**
* @brief constructor
*/
function init()
{
// 템플릿 설정
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @breif 환경설정페이지
*/
function dispAuthenticationAdminConfig()
{
$oAuthenticationModel = &getModel('authentication');
$oMemberModel = &getModel('member');
$oModuleController = &getController('module');
$oModuleModel = &getModel('module');
$module_srl = Context::get('module_srl');
$config = $oAuthenticationModel->getModuleConfig();
$config->agreement = $oAuthenticationModel->_getAgreement();
Context::set('config', $config);
// Get a layout list
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getLayoutList();
Context::set('layout_list', $layout_list);
$mlayout_list = $oLayoutModel->getLayoutList(0, 'M');
Context::set('mlayout_list', $mlayout_list);
// get skin list
$skin_list = $oModuleModel->getSkins($this->module_path);
Context::set('skin_list',$skin_list);
$mskin_list = $oModuleModel->getSkins($this->module_path, "m.skins");
Context::set('mskin_list', $mskin_list);
$oEditorModel = getModel('editor');
Context::set('editor_skin_list', $oEditorModel->getEditorSkinList());
// get an editor
$option = new stdClass();
$option->primary_key_name = 'temp_srl';
$option->content_key_name = 'agreement';
$option->allow_fileupload = false;
$option->enable_autosave = false;
$option->enable_default_component = true;
$option->enable_component = true;
$option->resizable = true;
$option->height = 300;
$editor = $oEditorModel->getEditor(0, $option);
Context::set('editor', $editor);
require_once($this->module_path.'authentication.actions.php');
//$action_list = array('dispMemberSignUpForm', 'dispMemberModifyInfo', 'dispMemberModifyPassword', 'dispMemberLeave');
foreach($__AUTHENTICATION_ACTIONS__ as $key=>$val)
{
Context::setLang($key,$val);
}
$action_list = array_keys($__AUTHENTICATION_ACTIONS__);
Context::set('action_list', $action_list);
$member_config = $oMemberModel->getMemberConfig();
Context::set("member_config", $member_config);
// set template file
$this->setTemplateFile('config');
}
/**
* @breif 디자인설정 페이지
*/
function dispAuthenticationAdminDesign()
{
$oAuthenticationModel = &getModel('authentication');
$oModuleModel = &getModel('module');
$config = $oAuthenticationModel->getModuleConfig();
Context::set('config', $config);
// Get a layout list
$oLayoutModel = &getModel('layout');
$layout_list = $oLayoutModel->getLayoutList();
Context::set('layout_list', $layout_list);
$mlayout_list = $oLayoutModel->getLayoutList(0, 'M');
Context::set('mlayout_list', $mlayout_list);
// get skin list
$skin_list = $oModuleModel->getSkins($this->module_path);
Context::set('skin_list',$skin_list);
$mskin_list = $oModuleModel->getSkins($this->module_path, "m.skins");
Context::set('mskin_list', $mskin_list);
// set template file
$this->setTemplateFile('design');
}
/**
* @breif 인증모듈 사용현황 페이지
*/
function dispAuthenticationAdminAuthcodeList()
{
$args->page = Context::get('page');
$search_key = Context::get('search_key');
if($search_key == 'Y')
{
$authcode_pass = Context::get('n_authcode_pass');
$phone_number = Context::get('n_phone_number');
$args->passed = trim($authcode_pass);
$args->clue = $phone_number;
Context::set('n_authcode_pass', $authcode_pass);
Context::set('n_phone_number', $phone_number);
}
$output = executeQuery('authentication.getAuthenticationAll',$args);
if(!$output->toBool()) return $output;
Context::set('authcode_list', $output->data);
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
Context::set('page', $output->page);
Context::set('list', $output->data);
Context::set('page_navigation', $output->page_navigation);
$this->setTemplateFile('authcode_list');
}
/**
* @breif 인증받은 회원 리스트
*/
function dispAuthenticationAdminMemberList()
{
global $lang;
$args->page = Context::get('page');
$search_key = Context::get('search_key');
if($search_key)
{
switch($search_key)
{
case 'phone_number':
$args->clue = Context::get('search_value');
break;
case 'user_id':
$args->user_id = Context::get('search_value');
break;
case 'nick_name':
$args->nick_name = Context::get('search_value');
break;
}
}
$output = executeQuery('authentication.getAuthenticationMemberList',$args);
if(!$output->toBool()) return $output;
$list = $output->data;
foreach($list as $key => $val)
{
$val->country = $lang->country_codes[$val->country_code];
}
Context::set('list', $list);
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
Context::set('page', $output->page);
Context::set('list', $output->data);
Context::set('page_navigation', $output->page_navigation);
$this->setTemplateFile('memberlist');
}
/**
* @breif 인증받은 회원목록을 .xls파일로 다운받는다.
*/
function dispAuthenticationAdminXLSDownload()
{
$args->list_count = 999999;
$output = executeQuery('authentication.getAuthenticationMemberList',$args);
if(!$output->toBool()) return $output;
Context::set('list', $output->data);
$this->setLayoutPath('./common/tpl');
$this->setLayoutFile('default_layout');
$this->setTemplateFile('xlsdownload');
header("Content-Type: Application/octet-stream;");
header("Content-Disposition: attachment; filename=\"LIST-" . date('Ymd') . ".xls\"");
}
}
/* End of file authentication.admin.view.php */
/* Location: ./modules/authentication/authentication.admin.view.php */