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

This commit is contained in:
zero 2007-02-06 15:11:13 +00:00
parent 2569c554ce
commit c040d4d713
317 changed files with 14496 additions and 0 deletions

View file

@ -0,0 +1,39 @@
/**
* @file : modules/board/js/admin.js
* @author : zero <zero@nzeo.com>
* @desc : board 모듈의 관리자용 javascript
**/
/* 모듈 생성 후 */
function procInsertModule(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var sid = ret_obj['sid'];
var act = ret_obj['act'];
var page = ret_obj['page'];
var module_srl = ret_obj['module_srl'];
alert(message);
url = "./admin.php?sid="+sid+"&module_srl="+module_srl+"&page="+page+"&act="+act;
location.href = url;
}
/* 카테고리 관련 작업들 */
function doUpdateCategory(category_srl, mode, message) {
if(typeof(message)!='undefined'&&!confirm(message)) return;
var fo_obj = xGetElementById('fo_module_category_info');
fo_obj.category_srl.value = category_srl;
fo_obj.mode.value = mode;
procFormFilter(fo_obj, update_category_info, procReload);
}
/* 메세지 출력후 현페이지 리로드 */
function procReload(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
if(message) alert(message);
location.href = location.href;
}

View file

@ -0,0 +1,107 @@
/**
* @file : modules/board/js/board.js
* @author : zero <zero@nzeo.com>
* @desc : board 모듈의 javascript
**/
/* 글쓰기 작성후 */
function procInsert(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var mid = ret_obj['mid'];
var document_srl = ret_obj['document_srl'];
var category_srl = ret_obj['category_srl'];
alert(message);
url = "./?mid="+mid+"&document_srl="+document_srl;
if(category_srl) url += '&category='+category_srl;
location.href = url;
}
/* 글 삭제 */
function procDeleteDocument(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var mid = ret_obj['mid'];
var page = ret_obj['page'];
var url = "./?mid="+mid;
if(page) url += "&page="+page;
alert(message);
location.href = url;
}
/* 검색 실행 */
function procSearch(fo_obj, args) {
fo_obj.submit();
}
/* 추천, 추천은 별도의 폼입력이 필요 없어 직접 필터 사용 */
function doVote() {
var fo_obj = document.getElementById('fo_document_info');
procFormFilter(fo_obj, vote, procVote)
}
function procVote(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
alert(message);
location.href = location.href;
}
// 현재 페이지 reload
function procReload(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
location.href = location.href;
}
/* 댓글 글쓰기 작성후 */
function procInsertComment(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var mid = ret_obj['mid'];
var document_srl = ret_obj['document_srl'];
var comment_srl = ret_obj['comment_srl'];
var url = "./?mid="+mid+"&document_srl="+document_srl;
if(comment_srl) url += "#comment_"+comment_srl;
alert(message);
location.href = url;
}
/* 댓글 삭제 */
function procDeleteComment(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var mid = ret_obj['mid'];
var document_srl = ret_obj['document_srl'];
var page = ret_obj['page'];
var url = "./?mid="+mid+'&document_srl='+document_srl;
if(page) url += "&page="+page;
alert(message);
location.href = url;
}
/* 트랙백 삭제 */
function procDeleteTrackback(ret_obj, response_tags) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var mid = ret_obj['mid'];
var document_srl = ret_obj['document_srl'];
var page = ret_obj['page'];
var url = "./?mid="+mid+'&document_srl='+document_srl;
if(page) url += "&page="+page;
alert(message);
location.href = url;
}
/* 카테고리 이동 */
function procChangeCategory(sel_obj, url) {
var category_srl = sel_obj.options[sel_obj.selectedIndex].value;
if(!category_srl) location.href=url;
else location.href=url+'&category='+category_srl;
}