/** * @brief Manage a list of pages showing **/ function dispPageAdminContent() { $args->sort_index = "module_srl"; $args->page = Context::get('page'); $args->list_count = 40; $args->page_count = 10; $args->s_module_category_srl = Context::get('module_category_srl'); $s_mid = Context::get('s_mid'); if ($s_mid) { $args->s_mid = $s_mid; } $s_browser_title = Context::get('s_browser_title'); if ($s_browser_title) { $args->s_browser_title = $s_browser_title; } $output = executeQuery('page.getPageList', $args); $oModuleModel =& getModel('module'); $page_list = $oModuleModel->addModuleExtraVars($output->data); moduleModel::syncModuleToSite($page_list); // To write to a template context:: set Context::set('total_count', $output->total_count); Context::set('total_page', $output->total_page); Context::set('page', $output->page); Context::set('page_list', $output->data); Context::set('page_navigation', $output->page_navigation); //Security $security = new Security(); $security->encodeHTML('page_list..browser_title'); $security->encodeHTML('page_list..mid'); $security->encodeHTML('module_info.'); // Set a template file $this->setTemplateFile('index'); }
/** * @brief 페이지 관리 목록 보여줌 **/ function dispPageAdminContent() { $args->sort_index = "module_srl"; $args->page = Context::get('page'); $args->list_count = 40; $args->page_count = 10; $args->s_module_category_srl = Context::get('module_category_srl'); $output = executeQuery('page.getPageList', $args); moduleModel::syncModuleToSite($output->data); // 템플릿에 쓰기 위해서 context::set Context::set('total_count', $output->total_count); Context::set('total_page', $output->total_page); Context::set('page', $output->page); Context::set('page_list', $output->data); Context::set('page_navigation', $output->page_navigation); // 템플릿 파일 지정 $this->setTemplateFile('index'); }
/** * @brief Manage a list of pages showing */ function dispPageAdminContent() { $args = new stdClass(); $args->sort_index = "module_srl"; $args->page = Context::get('page'); $args->list_count = 40; $args->page_count = 10; $args->s_module_category_srl = Context::get('module_category_srl'); $search_target_list = array('s_mid', 's_browser_title'); $search_target = Context::get('search_target'); $search_keyword = Context::get('search_keyword'); if (in_array($search_target, $search_target_list) && $search_keyword) { $args->{$search_target} = $search_keyword; } $output = executeQuery('page.getPageList', $args); $oModuleModel = getModel('module'); $page_list = $oModuleModel->addModuleExtraVars($output->data); moduleModel::syncModuleToSite($page_list); $oModuleAdminModel = getAdminModel('module'); /* @var $oModuleAdminModel moduleAdminModel */ $tabChoice = array('tab1' => 1, 'tab3' => 1); $selected_manage_content = $oModuleAdminModel->getSelectedManageHTML($this->xml_info->grant, $tabChoice, $this->module_path); Context::set('selected_manage_content', $selected_manage_content); // To write to a template context:: set Context::set('total_count', $output->total_count); Context::set('total_page', $output->total_page); Context::set('page', $output->page); Context::set('page_list', $output->data); Context::set('page_navigation', $output->page_navigation); //Security $security = new Security(); $security->encodeHTML('page_list..browser_title'); $security->encodeHTML('page_list..mid'); $security->encodeHTML('module_info.'); // Set a template file $this->setTemplateFile('index'); }