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

This commit is contained in:
zero 2007-03-26 11:48:36 +00:00
parent 8fe469eb77
commit 9b6bb9e6dd
11 changed files with 476 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<filter name="delete_page" module="page" act="procDeletePage">
<form>
<node target="module_srl" required="true" />
</form>
<response callback_func="completeDeletePage">
<tag name="error" />
<tag name="message" />
<tag name="page" />
</response>
</filter>

View file

@ -0,0 +1,7 @@
<filter name="insert_config" module="page" act="procInsertConfig" confirm_msg_code="confirm_submit">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,32 @@
<filter name="insert_page" module="page" act="procInsertPage" confirm_msg_code="confirm_submit">
<form>
<node target="mid" required="true" filter="alpha_number" />
<node target="browser_title" required="true" maxlength="250" />
<node target="list_count" required="true" filter="number" />
<node target="page_count" required="true" filter="number" />
</form>
<parameter>
<param name="page_name" target="mid" />
<param name="module_srl" target="module_srl" />
<param name="module_category_srl" target="module_category_srl" />
<param name="layout_srl" target="layout_srl" />
<param name="skin" target="skin" />
<param name="browser_title" target="browser_title" />
<param name="use_category" target="use_category" />
<param name="list_count" target="list_count" />
<param name="page_count" target="page_count" />
<param name="is_default" target="is_default" />
<param name="description" target="description" />
<param name="header_text" target="header_text" />
<param name="footer_text" target="footer_text" />
<param name="admin_id" target="admin_id" />
</parameter>
<response callback_func="completeInsertPage">
<tag name="error" />
<tag name="message" />
<tag name="module" />
<tag name="act" />
<tag name="page" />
<tag name="module_srl" />
</response>
</filter>

View file

@ -0,0 +1,41 @@
/**
* @file : modules/pagemaker/js/admin.js
* @author : zero <zero@nzeo.com>
* @desc : pagemaker 모듈의 관리자용 javascript
**/
/* 모듈 생성 후 */
function completeInsertPage(ret_obj) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var page = ret_obj['page'];
var module_srl = ret_obj['module_srl'];
alert(message);
var url = "./?module=admin&mo=pagemaker&module_srl="+module_srl+"&act=dispAdminPageInfo";
if(page) url += "&page="+page;
location.href = url;
}
/* 모듈 삭제 후 */
function completeDeletePage(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=dispAdminContent";
if(page) url += "&page="+page;
location.href = url;
}
/* 카테고리 이동 */
function doChangeCategory(sel_obj, url) {
var module_category_srl = sel_obj.options[sel_obj.selectedIndex].value;
if(!module_category_srl) location.href=url;
else location.href=url+'&module_category_srl='+module_category_srl;
}

View file

@ -0,0 +1,18 @@
<!--%import("filter/insert_config.xml")-->
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table border="1">
<tr>
<th rowspan="2">{$lang->test}</th>
<td><input type="text" name="test" value="{$config->test}" /></td>
</tr>
<tr>
<td>{$lang->about_test}</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,32 @@
<!--%import("filter/delete_page.xml")-->
<!--%import("js/admin.js")-->
<form action="./" method="get" onsubmit="return procFilter(this, delete_page)">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<table>
<tr>
<th colspan="2">{$lang->confirm_delete}</th>
</tr>
<tr>
<th>{$lang->module_name}</th>
<td>{$module_info->mid}</td>
</tr>
<tr>
<th>{$lang->module}</th>
<td>{$module_info->module}</td>
</tr>
<tr>
<th>{$lang->document_count}</th>
<td>{$module_info->document_count}</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="{$lang->cmd_delete}" />
<input type="button" value="{$lang->cmd_back}" onclick="location.href='{getUrl('act','dispAdminContent')}'" />
</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,63 @@
<table>
<tr>
<th>{$lang->category}</th>
<td>
<!--@if(!$module_info->module_category_srl)-->
{$lang->not_exists}
<!--@else-->
{$module_category[$module_info->module_category_srl]->title}
<!--@end-->
</td>
</tr>
<tr>
<th>{$lang->layout}</th>
<td>
<!--@if($module_info->layout_srl)-->
{$module_info->layout_title} ({$module_info->layout})
<!--@else-->
{$lang->not_exists}
<!--@end-->
</td>
</tr>
<tr>
<th>{$lang->skin}</th>
<td>{$module_info->skin}</td>
</tr>
<tr>
<th>{$lang->browser_title}</th>
<td>{$module_info->browser_title}</td>
</tr>
<tr>
<th>{$lang->use_category}</th>
<td><!--@if($module_info->use_category=='Y')-->{$lang->use}<!--@else-->{$lang->notuse}<!--@end--></td>
</tr>
<tr>
<th>{$lang->list_count}</th>
<td>{$module_info->list_count?$module_info->list_count:20}</td>
</tr>
<tr>
<th>{$lang->page_count}</th>
<td>{$module_info->page_count?$module_info->page_count:10}</td>
</tr>
<tr>
<th>{$lang->description}</th>
<td>{nl2br($module_info->description)}</td>
</tr>
<tr>
<th>{$lang->header_text}</th>
<td>{$module_info->header_text}</td>
</tr>
<tr>
<th>{$lang->footer_text}</th>
<td>{$module_info->footer_text}</td>
</tr>
<tr>
<th>{$lang->admin_id}</th>
<td>{implode(",",$module_info->admin_id)}</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="{$lang->cmd_modify}" onclick="location.href='{getUrl('act','dispAdminInsertBoard')}'" />
</td>
</tr>
</table>

View file

@ -0,0 +1,85 @@
<!--%import("filter/insert_page.xml")-->
<!--%import("js/admin.js")-->
<div>
<!--@if(!$module_srl)-->
{$lang->msg_new_module}
<!--@else-->
{$lang->msg_update_module}
<!--@end-->
</div>
<form action="./" method="post" onsubmit="return procFilter(this, insert_page)" enctype="multipart/form-data">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<!--@if($module_info->is_default=='Y')-->
<input type="hidden" name="is_default" value="Y" />
<!--@end-->
<table>
<tr>
<th rowspan="2">{$lang->mid}</th>
<td><input type="text" name="mid" value="{$module_info->mid}" /></td>
</tr>
<tr>
<td>{$lang->about_mid}</td>
</tr>
<tr>
<th rowspan="2">{$lang->category}</th>
<td>
<select name="module_category_srl">
<option value="0">{$lang->notuse}</option>
<!--@foreach($module_category as $key => $val)-->
<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="true"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
</td>
</tr>
<tr>
<td>{$lang->about_category}</td>
</tr>
<tr>
<th rowspan="2">{$lang->browser_title}</th>
<td><input type="text" name="browser_title" value="{$module_info->browser_title}" /></td>
</tr>
<tr>
<td>{$lang->about_browser_title}</td>
</tr>
<tr>
<th rowspan="2">{$lang->layout}</th>
<td>
<select name="layout_srl">
<option value="0">{$lang->notuse}</option>
<!--@foreach($layout_list as $key => $val)-->
<option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="true"<!--@end-->>{$val->title} ({$val->layout})</option>
<!--@end-->
</select>
</td>
</tr>
<tr>
<td>{$lang->about_layout}</td>
</tr>
<!--@if($module_info->is_default!='Y')-->
<tr>
<th rowspan="2">{$lang->is_default}</th>
<td><input type="checkbox" name="is_default" value="Y" <!--@if($module_info->is_default=='Y')-->checked="true"<!--@end-->/></td>
</tr>
<tr>
<td>{$lang->about_default}</td>
</tr>
<!--@end-->
<tr>
<th rowspan="2">{$lang->description}</th>
<td><textarea name="description">{htmlspecialchars($module_info->description)}</textarea></td>
</tr>
<tr>
<td>{$lang->about_description}</td>
</tr>
<tr>
<td colspan="2">
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('act','dispAdminContent')}'" />
<input type="submit" value="{$lang->cmd_registration}" accesskey="s" />
</td>
</tr>
</table>
</form>