mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@397 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9086194365
commit
1f0a326d1b
6 changed files with 12 additions and 7 deletions
|
|
@ -80,9 +80,13 @@
|
|||
* @brief 숏컷의 내용 수정
|
||||
**/
|
||||
function procDeleteShortCut() {
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
$args->shortcut_srl = Context::get('shortcut_srl');
|
||||
$args->module = Context::get('selected_module');
|
||||
|
||||
// 삭제 불가능 바로가기의 처리
|
||||
if(in_array($args->module, array('module','addon','plugin','layout'))) return new Object(-1, 'msg_manage_module_cannot_delete');
|
||||
|
||||
$output = $oDB->executeQuery('admin.deleteShortCut', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
|
|
|||
|
|
@ -19,5 +19,6 @@
|
|||
$lang->installed_path = "설치경로";
|
||||
|
||||
$lang->msg_is_not_administrator = '관리자만 접속이 가능합니다';
|
||||
$lang->msg_manage_module_cannot_delete = '모듈, 애드온, 레이아웃, 회원관리 모듈의 바로가기는 삭제 불가능합니다';
|
||||
$lang->msg_default_act_is_null = '기본 관리자 Action이 지정되어 있지 않아 바로가기 등록을 할 수가 없습니다';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@
|
|||
<table name="admin_shortcut" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="equal" column="shortcut_srl" var="shortcut_srl" filter="number" notnull="notnull" />
|
||||
<condition operation="equal" column="module" var="module" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<filter name="delete_shortcut" module="admin" act="procDeleteShortCut" confirm_msg_code="confirm_delete">
|
||||
<form>
|
||||
<node target="shortcut_srl" required="true" />
|
||||
<node target="selected_module" required="true" />
|
||||
</form>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ function doAdminLoginFocus() {
|
|||
}
|
||||
|
||||
// 숏컷 삭제
|
||||
function doDeleteShortCut(shortcut_srl) {
|
||||
function doDeleteShortCut(selected_module) {
|
||||
var fo_obj = xGetElementById('fo_shortcut_info');
|
||||
fo_obj.shortcut_srl.value = shortcut_srl;
|
||||
fo_obj.selected_module.value = selected_module;
|
||||
procFilter(fo_obj, delete_shortcut);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<!-- 숏컷의 위/아래, 삭제와 관련된 form -->
|
||||
<form id="fo_shortcut_info" action="./" method="get">
|
||||
<input type="hidden" name="shortcut_srl" value="" />
|
||||
<input type="hidden" name="selected_module" value="" />
|
||||
</form>
|
||||
|
||||
<div>
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
<td>{$shortcut_info->title}</td>
|
||||
<td>{$shortcut_info->module}</td>
|
||||
<td>{zdate($shortcut_info->last_update,"Y-m-d H:i:s")}</td>
|
||||
<td><a href="#" onclick="doDeleteShortCut('{$shortcut_info->shortcut_srl}');return false;">{$lang->cmd_delete}</a></td>
|
||||
<td><a href="#" onclick="doDeleteShortCut('{$shortcut_info->module}');return false;">{$lang->cmd_delete}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue