-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplusad.admin.view.php
More file actions
executable file
·144 lines (123 loc) · 3.55 KB
/
Copy pathplusad.admin.view.php
File metadata and controls
executable file
·144 lines (123 loc) · 3.55 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
<?php
/**
* @class plusadAdminView
* @brief PlusAd 모듈 관리자 뷰 클래스
*/
class plusadAdminView extends plusad
{
/**
* @brief 초기화
* @return void
*/
function init()
{
// 모듈정보구함
$oModuleModel = moduleModel::getInstance();
$oPlusadModel = plusadModel::getInstance();
$this->module_info = $oPlusadModel->getplusadinfo();
$this->module_config = $oModuleModel->getModuleConfig('plusad');
// 모듈정보세팅
Context::set('module_config', $this->module_config);
Context::set('module_info', $this->module_info);
// 관리자 템플릿 파일의 경로 설정 (tpl)
$template_path = sprintf("%stpl/", $this->module_path);
$this->setTemplatePath($template_path);
}
/**
* @brief 관리자 모듈 설정 화면
* @return void
*/
function dispPlusadAdminstart()
{
// 모듈 카테고리 목록 구함
$oModuleModel = moduleModel::getInstance();
$module_category = $oModuleModel->getModuleCategories();
Context::set('module_category', $module_category);
// 스킨 목록 구함
$skin_list = $oModuleModel->getSkins($this->module_path);
Context::set('skin_list', $skin_list);
// 레이아웃 목록 구함
$oLayoutModel = layoutModel::getInstance();
$layout_list = $oLayoutModel->getLayoutList();
Context::set('layout_list', $layout_list);
// 템플릿 파일지정
$this->setTemplateFile('index');
}
/**
* @brief 광고 로그 목록
* @return void
*/
function dispPlusadAdminlog()
{
$args = new stdClass();
$args->page = Context::get('page');
$output = executeQuery('plusad.getadlistall', $args);
// 결과값 세팅
Context::set('ad_list', $output->data);
// 페이지 세팅
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
Context::set('page_list', $output->data);
Context::set('page', $output->page);
Context::set('page_navigation', $output->page_navigation);
// 템플릿 파일 지정
$this->setTemplateFile('log');
}
/**
* @brief 광고 로그 개별 삭제
* @return void
*/
function dispPlusadAdminlogdelete()
{
$oPlusadModel = plusadModel::getInstance();
$oPlusadModel->deleteadponit();
// 이전화면으로 돌아가기
$this->setRedirectUrl(Context::get('success_return_url'));
}
/**
* @brief 광고 로그 전체 삭제
* @return void
*/
function dispPlusadAdminlogdeleteall()
{
$oPlusadModel = plusadModel::getInstance();
$oPlusadModel->deleteadall();
// 이전화면으로 돌아가기
$this->setRedirectUrl(Context::get('success_return_url'));
}
/**
* @brief 진행 종료된 광고 로그 삭제
* @return void
*/
function dispPlusadAdminlogdeletelast()
{
$oPlusadModel = plusadModel::getInstance();
$oPlusadModel->deleteadlast();
// 이전화면으로 돌아가기
$this->setRedirectUrl(Context::get('success_return_url'));
}
/**
* @brief 스킨 관리
* @return void
*/
function dispPlusadAdminskininfo()
{
$oModuleAdminModel = moduleAdminModel::getInstance();
$skin_content = $oModuleAdminModel->getModuleSkinHTML($this->module_info->module_srl);
Context::set('skin_content', $skin_content);
// 템플릿 파일 지정
$this->setTemplateFile('skin_info');
}
/**
* @brief 권한 관리
* @return void
*/
function dispPlusadAdmingrantset()
{
$oModuleAdminModel = moduleAdminModel::getInstance();
$grant_content = $oModuleAdminModel->getModuleGrantHTML($this->module_info->module_srl, $this->xml_info->grant);
Context::set('grant_content', $grant_content);
// 템플릿 파일 지정
$this->setTemplateFile('grant_list');
}
}