git-svn-id: http://xe-core.googlecode.com/svn/trunk@1208 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-18 02:41:55 +00:00
parent 43f5fe2356
commit 2be28490ce
12 changed files with 87 additions and 208 deletions

View file

@ -10,6 +10,7 @@
$lang->module_category = "모듈 카테고리";
$lang->module_info = "모듈 정보";
$lang->add_shortcut = "관리자 메뉴에 추가";
$lang->module_action = "동작";
$lang->module_maker = "모듈 제작자";
$lang->module_history = "변경 사항 ";
@ -17,6 +18,8 @@
$lang->category_title = "카테고리 이름";
$lang->cmd_add_shortcut = "바로가기 추가";
$lang->cmd_install = "설치";
$lang->cmd_update = "업데이트";
$lang->msg_new_module = "모듈 생성";
$lang->msg_update_module = "모듈 수정";

View file

@ -491,6 +491,9 @@
$info->path = $path;
$info->admin_index_act = $info->admin_index_act;
if($table_count > $created_table_count) $info->is_installed = false;
else $info->is_installed = true;
$list[] = $info;
}
return $list;

View file

@ -32,3 +32,15 @@ function doAddShortCut(module) {
fo_obj.selected_module.value = module;
procFilter(fo_obj, insert_shortcut);
}
/* 모듈 설치 */
function doInstallModule(module) {
var params = new Array();
params['module_name'] = module;
exec_xml('install','procInstallAdminInstall',params, completeInstallModule);
}
function completeInstallModule(ret_obj) {
alert(ret_obj['message']);
location.href = location.href;
}

View file

@ -16,16 +16,16 @@
<td>{$lang->table_count}</td>
<td>{$lang->installed_path}</td>
<td>{$lang->module_info}</td>
<td>{$lang->module_action}</td>
<td>{$lang->add_shortcut}</td>
</tr>
<!--@foreach($module_list as $key => $val)-->
<tr>
<td rowspan="2">
<td>
<!--@if($val->admin_index_act)-->
<a href="#" onclick="location.href='{getUrl('act',$val->admin_index_act)}'">{$val->title}</a> <br /> ({$val->module})
<a href="#" onclick="location.href='{getUrl('act',$val->admin_index_act)}'">{$val->title}</a> ({$val->module})
<!--@else-->
{$val->title} <br />
({$val->module})
{$val->title} ({$val->module})
<!--@end-->
</td>
<td>{$val->version}</td>
@ -42,16 +42,18 @@
</td>
<td>{$val->path}</td>
<td><a href="#" onclick="popopen('{getUrl('','module','module','act','dispModuleAdminInfo','selected_module',$val->module)}','module_info');return false">{$lang->cmd_view}</a></td>
<td rowspan="2">
<td>
<!--@if(!$val->is_installed)-->
<a href="#" onclick="doInstallModule('{$val->module}');return false;">{$lang->cmd_install}</a>
<!--@elseif($val->need_update)-->
<a href="#">{$lang->cmd_update}</a>
<!--@end-->
</td>
<td>
<!--@if(!$shortcut_list[$val->module] && $val->admin_index_act )-->
<a href="#" onclick="doAddShortCut('{$val->module}');return false;">{$lang->cmd_add_shortcut}</a>
<!--@end-->
</td>
</tr>
<tr>
<td colspan="6">
{nl2br($val->author->description)}
</td>
</tr>
<!--@end-->
</table>