cafeXE 개선

1. 게시판/페이지 외에 최고관리자가 지정한 서비스 모듈을 생성/관리 가능하도록 개선
2. 최고관리자는 기본 레이아웃/ 레이아웃 변경 기능 제한/ 카페별 서비스 모듈 생성 개수를 지정하는 기능 추가
3. 생성된 카페의 도메인/vid 등을 수정할 수 있는 기능 추가
4. 카페 관리자가 메뉴 추가시에 메뉴명과 서비스 모듈 종류만 지정하면 모듈이 생성되도록 개선
5. 가상사이트와 기본 사이트간의 모듈을 옮길 수 있는 기능 추가


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6171 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-04-22 10:38:47 +00:00
parent b2e0e09529
commit 5bb5fa23a8
68 changed files with 721 additions and 617 deletions

View file

@ -7,8 +7,7 @@
<action name="dispOpageAdminContent" type="view" admin_index="true" standalone="true" />
<action name="dispOpageAdminGrantInfo" type="view" standalone="true" />
<action name="dispOpageAdminModuleConfig" type="view" standalone="true" />
<action name="dispOpageAdminInfo" type="view" standalone="true" />
<action name="dispOpageAdminInsert" type="view" standalone="true" />
<action name="dispOpageAdminInsert" type="view" standalone="true" setup_index="true" />
<action name="dispOpageAdminDelete" type="view" standalone="true" />
<action name="dispOpageAdminContentModify" type="view" standalone="true" />
<action name="procOpageAdminRemoveWidgetCache" type="controller" standalone="true" />

View file

@ -51,47 +51,6 @@
$this->setTemplateFile('index');
}
/**
* @brief 선택된 외부페이지의 정보 출력
**/
function dispOpageAdminInfo() {
// GET parameter에서 module_srl을 가져옴
$module_srl = Context::get('module_srl');
// module model 객체 생성
if($module_srl) {
$oOpageModel = &getModel('opage');
$module_info = $oOpageModel->getOpage($module_srl);
if(!$module_info) {
unset($module_info);
unset($module_srl);
} else {
Context::set('module_info',$module_info);
}
// module_srl 값이 없다면 그냥 index 외부페이지를 보여줌
} else {
return $this->dispOpageAdminContent();
}
// 레이아웃이 정해져 있다면 레이아웃 정보를 추가해줌(layout_title, layout)
if($module_info->layout_srl) {
$oLayoutModel = &getModel('layout');
$layout_info = $oLayoutModel->getLayout($module_info->layout_srl);
$module_info->layout = $layout_info->layout;
$module_info->layout_title = $layout_info->layout_title;
}
// 레이아웃 목록을 구해옴
$oLayoutMode = &getModel('layout');
$layout_list = $oLayoutMode->getLayoutList();
Context::set('layout_list', $layout_list);
// 템플릿 파일 지정
$this->setTemplateFile('opage_info');
}
/**
* @brief 외부페이지 추가 출력
**/
@ -150,4 +109,4 @@
}
}
?>
?>

View file

@ -32,8 +32,10 @@
$cache_file = sprintf("./files/cache/opage/%d.cache.php", $module_info->module_srl);
// http 인지 내부 파일인지 점검
if(preg_match("/^([a-z]+):\/\//i",$path)) $content = $this->getHtmlPage($path, $caching_interval, $cache_file);
else $content = $this->executeFile($path, $caching_interval, $cache_file);
if($path) {
if(preg_match("/^([a-z]+):\/\//i",$path)) $content = $this->getHtmlPage($path, $caching_interval, $cache_file);
else $content = $this->executeFile($path, $caching_interval, $cache_file);
}
Context::set('opage_content', $content);

View file

@ -6,6 +6,9 @@
<input type="hidden" name="module_srl" value="{$module_srl}" />
<table cellspacing="0" class="rowTable">
<!--@if($logged_info->is_admin!='Y')-->
<input type="hidden" name="mid" value="{$module_info->mid}" />
<!--@else-->
<tr class="row2">
<th scope="row"><div>{$lang->mid}</div></th>
<td colspan="3">
@ -13,6 +16,7 @@
<p>{$lang->about_mid}</p>
</td>
</tr>
<!--@end-->
<tr class="row2">
<th scope="row"><div>{$lang->module_category}</div></th>
<td colspan="3">