-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultidomain.admin.view.php
More file actions
63 lines (55 loc) · 1.53 KB
/
multidomain.admin.view.php
File metadata and controls
63 lines (55 loc) · 1.53 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
<?php
/**
* multidomainAdminView class
* multidomain view class of multidomain module
* @author largeden (developer@romanesque.me)
* @package /modules/multidomain
* @version 1.4.1
*/
class multidomainAdminView extends multidomain
{
/**
* Initilization
* @return void
*/
function init()
{
$template_path = sprintf("%stpl/",$this->module_path);
$this->setTemplatePath($template_path);
}
/**
* 멀티 도메인 관리자페이지
* @return void
*/
function dispMultidomainAdminSetup()
{
$args = new stdClass();
if(Context::get('order_type'))
{
$args->order_type = Context::get('order_type');
}
else
{
$args->order_type = 'desc';
}
$args->sort_index = Context::get('sort_index');
$args->page = Context::get('page');
$args->list_count = 20;
$args->page_count = 20;
$oMultidomainAdminModel = &getAdminModel('multidomain');
$oMultidomainModel = getModel('multidomain');
$multidomain = $oMultidomainAdminModel->getMultidomainList($args);
// 기본 URL
$db_info = Context::getDBInfo();
Context::set('default_url', $db_info->default_url);
// 멀티 도메인 리스트
Context::set('total_count', $multidomain->total_count);
Context::set('total_page', $multidomain->total_page);
Context::set('page', $multidomain->page);
Context::set('multidomain_list', $multidomain->data);
Context::set('page_navigation', $multidomain->page_navigation);
$this->setTemplateFile('list');
}
}
/* End of file multidomain.admin.view.php */
/* Location: ./modules/multidomain/multidomain.admin.view.php */