diff --git a/common/js/xml_handler.js b/common/js/xml_handler.js
index 373646a58..62d60ca7f 100644
--- a/common/js/xml_handler.js
+++ b/common/js/xml_handler.js
@@ -41,6 +41,8 @@ function xml_response_filter(oXml, callback_func, response_tags, callback_func_a
return null;
}
+ if(!callback_func) return null;
+
callback_func(ret_obj, response_tags, callback_func_arg, fo_obj);
return null;
diff --git a/modules/board/skins/default/js/board.js b/modules/board/skins/default/js/board.js
index 83607dda0..d9f1a44aa 100644
--- a/modules/board/skins/default/js/board.js
+++ b/modules/board/skins/default/js/board.js
@@ -4,6 +4,18 @@
* @brief board 모듈의 javascript
**/
+/* 관리자가 카트 선택시 세션에 넣음 */
+function doAddCart(obj) {
+ var document_srl = obj.value;
+ var check_flag = obj.checked?'add':'remove';
+
+ var params = new Array();
+ params["document_srl"] = document_srl;
+ params["check_flag"] = check_flag;
+
+ exec_xml("document","procDocumentAddCart", params, null);
+}
+
/* 글쓰기 작성후 */
function completeDocumentInserted(ret_obj) {
var error = ret_obj['error'];
diff --git a/modules/board/skins/default/list.html b/modules/board/skins/default/list.html
index f69c3d1cb..1efce124f 100644
--- a/modules/board/skins/default/list.html
+++ b/modules/board/skins/default/list.html
@@ -41,7 +41,7 @@
]
-
+
[{$lang->cmd_management}]
@@ -86,6 +86,9 @@
+
+ checked)-->checked="true" />
+
{$val->title}
diff --git a/modules/document/conf/module.xml b/modules/document/conf/module.xml
index e47ff71e0..c3c6811bc 100644
--- a/modules/document/conf/module.xml
+++ b/modules/document/conf/module.xml
@@ -3,6 +3,8 @@
+
+
diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php
index f80d14c06..07d62993c 100644
--- a/modules/document/document.controller.php
+++ b/modules/document/document.controller.php
@@ -13,6 +13,21 @@
function init() {
}
+ /**
+ * @brief 관리자가 글 선택시 세션에 담음
+ **/
+ function procDocumentAddCart() {
+ $document_srl = Context::get('document_srl');
+ $check_flag = Context::get('check_flag');
+
+ $flag_list = $_SESSION['document_management'];
+
+ if($check_flag == 'remove') unset($flag_list[$document_srl]);
+ else $flag_list[$document_srl] = true;
+
+ $_SESSION['document_management'] = $flag_list;
+ }
+
/**
* @brief 관리자 페이지에서 선택된 문서들 삭제
**/
diff --git a/modules/document/document.model.php b/modules/document/document.model.php
index ec7591f72..7034bf8c5 100644
--- a/modules/document/document.model.php
+++ b/modules/document/document.model.php
@@ -221,6 +221,9 @@
$oMemberModel = &getModel('member');
$member_srl = $oMemberModel->getLoggedMemberSrl();
+ // 체크 플래그
+ $flag_list = $_SESSION['document_management'];
+
foreach($output->data as $key => $document) {
$is_granted = false;
@@ -228,6 +231,8 @@
elseif($member_srl && $member_srl == $document->member_srl) $is_granted = true;
$output->data[$key]->is_granted = $is_granted;
+
+ if($flag_list[$document->document_srl]) $output->data[$key]->checked = true;
}
return $output;
}
|