사용되지 않는 Admin모듈의 'Shortcut'기능 관련된 파일/코드 제거

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4184 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-05-10 03:04:19 +00:00
parent 9a1830ce67
commit 281a720a87
12 changed files with 0 additions and 177 deletions

View file

@ -12,50 +12,6 @@
function init() {
}
/**
* @brief 숏컷 추가
**/
function procAdminInsertShortCut() {
$module = Context::get('selected_module');
$output = $this->insertShortCut($module);
if(!$output->toBool()) return $output;
$this->setMessage('success_registed');
}
/**
* @brief 숏컷의 삭제
**/
function procAdminDeleteShortCut() {
$args->module = Context::get('selected_module');
// 삭제 불가능 바로가기의 처리
if(in_array($args->module, array('module','addon','widget','layout'))) return new Object(-1, 'msg_manage_module_cannot_delete');
$output = executeQuery('admin.deleteShortCut', $args);
if(!$output->toBool()) return $output;
$this->setMessage('success_deleted');
}
/**
* @brief 관리자 페이지의 단축 메뉴 추가
**/
function insertShortCut($module) {
// 선택된 모듈의 정보중에서 admin_index act를 구함
$oModuleModel = &getModel('module');
$module_info = $oModuleModel->getModuleInfoXml($module);
$args->module = $module;
$args->title = $module_info->title;
$args->default_act = $module_info->admin_index_act;
if(!$args->default_act) return new Object(-1, 'msg_default_act_is_null');
$output = executeQuery('admin.insertShortCut', $args);
return $output;
}
/**
* @brief 모든 캐시 파일 재생성
**/

View file

@ -13,30 +13,5 @@
function init() {
}
/**
* @brief admin shortcut 등록된 목록을 return;
**/
function getShortCuts() {
$output = executeQuery('admin.getShortCutList');
if(!$output->toBool()) return $output;
if(!is_array($output->data)) $list = array($output->data);
else $list = $output->data;
foreach($list as $val) {
$shortcut_list[$val->module] = $val;
}
// 모듈 목록을 구해와서 숏컷에 해당하는 타이틀을 추출
$oModuleModel = &getModel('module');
$module_list = $oModuleModel->getModulesXmlInfo();
foreach($module_list as $key => $val) {
$module_name = $val->module;
if($shortcut_list[$module_name]) $shortcut_list[$module_name]->title = $val->title;
}
return $shortcut_list;
}
}
?>

View file

@ -84,12 +84,5 @@
$this->setTemplateFile('index');
}
/**
* @brief 관리자 메뉴 숏컷 출력
**/
function dispAdminShortCut() {
$this->setTemplateFile('shortcut_list');
}
}
?>

View file

@ -11,20 +11,6 @@
* @brief 설치시 추가 작업이 필요할시 구현
**/
function moduleInstall() {
// 게시판, 회원관리, 레이아웃관리등 자주 사용될 module을 admin_shortcut에 등록
$oAdminController = &getAdminController('admin');
$oAdminController->insertShortCut('blog');
$oAdminController->insertShortCut('board');
$oAdminController->insertShortCut('page');
$oAdminController->insertShortCut('opage');
$oAdminController->insertShortCut('menu');
$oAdminController->insertShortCut('layout');
$oAdminController->insertShortCut('addon');
$oAdminController->insertShortCut('widget');
$oAdminController->insertShortCut('member');
$oAdminController->insertShortCut('module');
return new Object();
}

View file

@ -2,10 +2,7 @@
<module>
<actions>
<action name="dispAdminIndex" type="view" standalone="true" index="true"/>
<action name="dispAdminShortCut" type="view" standalone="true" />
<action name="procAdminInsertShortCut" type="controller" standalone="true" />
<action name="procAdminDeleteShortCut" type="controller" standalone="true" />
<action name="procAdminRecompileCacheFile" type="controller" standalone="true" />
</actions>
</module>

View file

@ -1,8 +0,0 @@
<query id="deleteShortCut" action="delete">
<tables>
<table name="admin_shortcut" />
</tables>
<conditions>
<condition operation="equal" column="module" var="module" notnull="notnull" />
</conditions>
</query>

View file

@ -1,8 +0,0 @@
<query id="getShortCutList" action="select">
<tables>
<table name="admin_shortcut" />
</tables>
<navigation>
<index var="sort_index" default="list_order" order="asc" />
</navigation>
</query>

View file

@ -1,13 +0,0 @@
<query id="insertShortCut" action="insert">
<tables>
<table name="admin_shortcut" />
</tables>
<columns>
<column name="shortcut_srl" var="shortcut_srl" default="sequence()" filter="number" notnull="notnull" />
<column name="title" var="title" notnull="notnull" minlength="2" maxlength="250" />
<column name="module" var="module" notnull="notnull" minlength="2" maxlength="250" />
<column name="default_act" var="default_act" notnull="notnull" minlength="2" maxlength="250" />
<column name="regdate" var="regdate" default="curdate()" />
<column name="list_order" var="list_order" default="sequence()" />
</columns>
</query>

View file

@ -1,8 +0,0 @@
<table name="admin_shortcut">
<column name="shortcut_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
<column name="module" type="varchar" size="250" notnull="notnull" unique="uni_module" />
<column name="title" type="varchar" size="250" notnull="notnull" />
<column name="default_act" type="varchar" size="250" notnull="notnull" />
<column name="list_order" type="number" size="11" notnull="notnull" index="idx_list_order" />
<column name="regdate" type="date" />
</table>

View file

@ -1,9 +0,0 @@
<filter name="delete_shortcut" module="admin" act="procAdminDeleteShortCut" confirm_msg_code="confirm_delete">
<form>
<node target="selected_module" required="true" />
</form>
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -4,12 +4,6 @@
* @brief admin 모듈의 javascript
**/
// 숏컷 삭제
function doDeleteShortCut(selected_module) {
var fo_obj = xGetElementById('fo_shortcut_info');
fo_obj.selected_module.value = selected_module;
procFilter(fo_obj, delete_shortcut);
}
// 캐시파일 모두 재 생성
function doRecompileCacheFile() {

View file

@ -1,32 +0,0 @@
<!--%import("filter/delete_shortcut.xml")-->
<!--%import("js/admin.js")-->
<h3>{$lang->cmd_shortcut_management}</h3>
<div class="infoText">{$lang->about_shortcut}</div>
<!-- 숏컷의 위/아래, 삭제와 관련된 form -->
<form id="fo_shortcut_info" action="./" method="get">
<input type="hidden" name="selected_module" value="" />
</form>
<table cellspacing="0" class="tableType3">
<thead>
<tr>
<th scope="col">{$lang->title}</th>
<th scope="col">{$lang->module}</th>
<th scope="col">{$lang->regdate}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<!--@foreach($shortcut_list as $shortcut_info)-->
<tr>
<th scope="row">{$shortcut_info->title}</th>
<td class="tahoma">{$shortcut_info->module}</td>
<td class="tahoma">{zdate($shortcut_info->regdate,"Y-m-d H:i:s")}</td>
<td><a href="#" onclick="doDeleteShortCut('{$shortcut_info->module}');return false;" class="red">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</tbody>
</table>