mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@457 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6c077be600
commit
437a8b1395
11 changed files with 195 additions and 40 deletions
13
modules/pagemaker/tpl.admin/filter/insert.xml
Normal file
13
modules/pagemaker/tpl.admin/filter/insert.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<filter name="insert" module="pagemaker" act="procInsertDocument" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="document_srl" required="true" />
|
||||
<node target="title" required="true" minlength="1" maxlength="250" />
|
||||
<node target="content" required="true" />
|
||||
</form>
|
||||
<response callback_func="completeDocumentInserted">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="page" />
|
||||
<tag name="document_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
23
modules/pagemaker/tpl.admin/js/admin.js
Normal file
23
modules/pagemaker/tpl.admin/js/admin.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/* 글쓰기 작성후 */
|
||||
function completeDocumentInserted(ret_obj) {
|
||||
var error = ret_obj['error'];
|
||||
var message = ret_obj['message'];
|
||||
var page = ret_obj['page'];
|
||||
var document_srl = ret_obj['document_srl'];
|
||||
var url = "./?module=admin&mo=pagemaker&act=dispWrite&document_srl="+document_srl;
|
||||
if(page) url += "&page="+page;
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
/* 글 삭제 */
|
||||
function completeDeleteDocument(ret_obj) {
|
||||
var error = ret_obj['error'];
|
||||
var message = ret_obj['message'];
|
||||
var page = ret_obj['page'];
|
||||
|
||||
alert(message);
|
||||
|
||||
var url = "./?module=admin&mo=pagemaker&act=dispWrite&document_srl="+document_srl;
|
||||
if(page) url += "&page="+page;
|
||||
location.href = url;
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<td>{$category_list[$val->category_srl]->title}</td>
|
||||
<!--@end-->
|
||||
<td>
|
||||
<a href="{getUrl('document_srl',$val->document_srl)}">{$val->title}</a>
|
||||
<a href="{getUrl('document_srl',$val->document_srl,'act','dispWrite')}">{$val->title}</a>
|
||||
</td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
<!--%import("filter/insert.xml")-->
|
||||
<!--%import("js/admin.js")-->
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert)" enctype="multipart/form-data">
|
||||
<input type="hidden" name="module" value="{$mo}" />
|
||||
<input type="hidden" name="act" value="procUploadFile" />
|
||||
<input type="hidden" name="content" value="{htmlspecialchars($document->content)}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl}" />
|
||||
<table width="100%">
|
||||
|
|
@ -68,7 +73,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','dispList')}'" />
|
||||
<input type="button" value="{$lang->cmd_list}" onclick="location.href='{getUrl('act','dispList','document_srl','')}'" />
|
||||
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue