mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 15:52:17 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@393 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4e044cbbfd
commit
3890c0c97c
40 changed files with 682 additions and 82 deletions
|
|
@ -8,7 +8,9 @@
|
|||
$lang->module_list = "모듈 목록";
|
||||
$lang->module_index = "초기화면";
|
||||
$lang->module_category = "모듈 카테고리";
|
||||
$lang->add_shortcut = "관리자 메뉴에 추가";
|
||||
|
||||
$lang->category_title = "카테고리 이름";
|
||||
$lang->cmd_add_shortcut = "바로가기 추가";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -7,5 +7,42 @@
|
|||
|
||||
class module extends ModuleObject {
|
||||
|
||||
/**
|
||||
* @brief 설치시 추가 작업이 필요할시 구현
|
||||
**/
|
||||
function moduleInstall() {
|
||||
// module 모듈에서 사용할 디렉토리 생성
|
||||
$directory_list = array(
|
||||
'./files',
|
||||
'./files/cache',
|
||||
'./files/cache/module_info',
|
||||
);
|
||||
|
||||
foreach($directory_list as $dir) {
|
||||
if(is_dir($dir)) continue;
|
||||
@mkdir($dir, 0707);
|
||||
@chmod($dir, 0707);
|
||||
}
|
||||
|
||||
// 기본 모듈을 생성
|
||||
$oModule = &getController('module');
|
||||
$oModule->makeDefaultModule();
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 설치가 이상이 없는지 체크하는 method
|
||||
**/
|
||||
function moduleIsInstalled() {
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 업데이트 실행
|
||||
**/
|
||||
function moduleUpdate() {
|
||||
return new Object();
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
9
modules/module/tpl.admin/filter/insert_shortcut.xml
Normal file
9
modules/module/tpl.admin/filter/insert_shortcut.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<filter name="insert_shortcut" module="admin" act="procInsertShortCut" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="module" required="true" />
|
||||
</form>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -24,3 +24,10 @@ function completeUpdateCategory(ret_obj) {
|
|||
var url = "./?module=admin&mo=module&act=dispCategory";
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
/* 선택된 모듈을 관리자 메뉴의 바로가기에 등록 */
|
||||
function doAddShortCut(module) {
|
||||
var fo_obj = xGetElementById("fo_shortcut");
|
||||
fo_obj.selected_module.value = module;
|
||||
procFilter(fo_obj, insert_shortcut);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
<!--%import("filter/insert_shortcut.xml")-->
|
||||
<!--%import("js/admin.js")-->
|
||||
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 관리자 메뉴 바로가기 추가를 위한 임시 form -->
|
||||
<form id="fo_shortcut" action="./" method="get">
|
||||
<input type="hidden" name="selected_module" value="" />
|
||||
</form>
|
||||
|
||||
<table border="1" width="100%">
|
||||
<tr>
|
||||
<td>{$lang->module_name}</td>
|
||||
|
|
@ -7,6 +16,7 @@
|
|||
<td>{$lang->date}</td>
|
||||
<td>{$lang->table_count}</td>
|
||||
<td>{$lang->installed_path}</td>
|
||||
<td>{$lang->add_shortcut}</td>
|
||||
</tr>
|
||||
<!--@foreach($module_list as $key => $val)-->
|
||||
<tr>
|
||||
|
|
@ -31,6 +41,7 @@
|
|||
</span>
|
||||
</td>
|
||||
<td>{$val->path}</td>
|
||||
<td rowspan="2"><a href="#" onclick="doAddShortCut('{$val->module}');return false;">{$lang->cmd_add_shortcut}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue