mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
issue 49 add opage module and article type
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8491 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f9b695f734
commit
3c313f80a9
31 changed files with 859 additions and 56 deletions
25
modules/page/tpl/article_content_modify.html
Normal file
25
modules/page/tpl/article_content_modify.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<!--%import("js/page_admin.js")-->
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_article)" id="fo_write" class="boardWrite">
|
||||
<input type="hidden" name="mid" value="{$mid}" />
|
||||
<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
|
||||
<input type="hidden" name="document_srl" value="{$document_srl}" />
|
||||
<div class="articleHeader">
|
||||
<input type="text" name="title" class="inputText" value="{htmlspecialchars($oDocument->getTitleText())}" title="{$lang->title}" />
|
||||
</div>
|
||||
|
||||
<div class="editor">{$oDocument->getEditor()}</div>
|
||||
|
||||
<div class="tag">
|
||||
<input type="text" name="tags" value="{htmlspecialchars($oDocument->get('tags'))}" class="inputText" title="Tag" />
|
||||
<p>{$lang->about_tag}</p>
|
||||
</div>
|
||||
<div class="boardNavigation">
|
||||
<!--@if($is_logged)-->
|
||||
<!--@if(!$oDocument->isExists() || $oDocument->get('status') == 'TEMP')-->
|
||||
<span class="button"><button type="button" onclick="doDocumentSave(this); return false;">{$lang->cmd_temp_save}</button></span>
|
||||
<span class="button"><button type="button" onclick="doDocumentLoad(this); return false;">{$lang->cmd_load}</button></span>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<span class="button red strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -3,11 +3,15 @@
|
|||
<!--@if($grant->manager)-->
|
||||
<!--%import("./js/page_admin.js")-->
|
||||
<div class="tRight gap1 clear">
|
||||
<!--@if($module_info->page_type == 'WIDGET')-->
|
||||
<a href="#" onclick="doRemoveWidgetCache({$module_info->module_srl}); return false;" class="button blue"><span>{$lang->cmd_remake_cache}</span></a>
|
||||
<!--@if($logged_info->is_admin=='Y')-->
|
||||
<!--@end-->
|
||||
<!--@if($logged_info->is_admin=='Y')-->
|
||||
<a href="{getUrl('act','dispPageAdminInfo','module_srl',$module_info->module_srl)}" class="button green"><span>{$lang->cmd_setup}</span></a>
|
||||
<!--@end-->
|
||||
<!--@if($module_info->page_type != 'OUTSIDE')-->
|
||||
<a href="{getUrl('act','dispPageAdminContentModify','document_srl','')}" class="button red"><span>{$lang->cmd_page_modify}</span></a>
|
||||
<!--@end-->
|
||||
<!--@if($module_info->use_mobile =="Y")-->
|
||||
<a href="{getUrl('act','dispPageAdminMobileContent','module_srl',$module_info->module_srl)}" class="button black"><span>Mobile</span></a>
|
||||
<!--@end-->
|
||||
|
|
|
|||
13
modules/page/tpl/filter/insert_article.xml
Normal file
13
modules/page/tpl/filter/insert_article.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<filter name="insert_article" module="page" act="procPageAdminArticleDocumentInsert">
|
||||
<form>
|
||||
<node target="title" required="true" minlength="1" maxlength="250" />
|
||||
<node target="content" required="true" />
|
||||
</form>
|
||||
<response callback_func="completeArticleDocumentInserted">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="mid" />
|
||||
<tag name="document_srl" />
|
||||
<tag name="category_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
23
modules/page/tpl/filter/insert_outside.xml
Normal file
23
modules/page/tpl/filter/insert_outside.xml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<filter name="insert_outside" module="page" act="procPageAdminInsert" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="mid" required="true" maxlength="40" filter="alpha_number" />
|
||||
<node target="browser_title" required="true" maxlength="250" />
|
||||
<node target="opage_path" required="true" maxlength="250" />
|
||||
</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="browser_title" target="browser_title" />
|
||||
<param name="caching_interval" target="opage_caching_interval" />
|
||||
<param name="path" target="opage_path" />
|
||||
<param name="mpath" target="opage_mpath" />
|
||||
</parameter>
|
||||
<response callback_func="completeInsertPage">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="module_srl" />
|
||||
<tag name="opage" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<ul class="localNavigation">
|
||||
<!--@if($module=='admin')-->
|
||||
<li><a href="{getUrl('act','dispPageAdminContent','module_srl','')}">{$lang->cmd_list}</a></li>
|
||||
<li <!--@if($act=='dispPageAdminContent')-->class="on"<!--@end-->><a href="{getUrl('act','dispPageAdminContent','module_srl','')}">{$lang->cmd_list}</a></li>
|
||||
<!--@else-->
|
||||
<li><a href="{getUrl('act','')}">{$lang->cmd_back}</a></li>
|
||||
<!--@end-->
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
<li <!--@if($act=='dispPageAdminPageAdditionSetup')-->class="on"<!--@end-->><a href="{getUrl('act','dispPageAdminPageAdditionSetup')}">{$lang->cmd_addition_setup}</a></li>
|
||||
<li <!--@if($act=='dispPageAdminGrantInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispPageAdminGrantInfo')}">{$lang->cmd_manage_grant}</a></li>
|
||||
<!--@else-->
|
||||
<li <!--@if($act=='dispPageAdminGrantInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispPageAdminInsert')}">{$lang->cmd_page_create}</a></li>
|
||||
<li <!--@if($act=='dispPageAdminInsert')-->class="on"<!--@end-->><a href="{getUrl('act','dispPageAdminInsert')}">{$lang->cmd_page_create}</a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
<input type="submit" name="go_button" id="go_button" value="GO" class="buttonTypeGo" />
|
||||
</div>
|
||||
</th>
|
||||
<th scope="col">{$lang->page_type}</th>
|
||||
<th scope="col" class="half_wide"><div>{$lang->mid}</div></th>
|
||||
<th scope="col" class="half_wide"><div>{$lang->browser_title}</div></th>
|
||||
<th scope="col"><div>{$lang->regdate}</div></th>
|
||||
|
|
@ -63,6 +64,7 @@
|
|||
{$module_category[$val->module_category_srl]->title}
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td>{$val->page_type}</td>
|
||||
<td>{htmlspecialchars($val->mid)}</td>
|
||||
<td><a href="{getSiteUrl($val->domain,'','mid',$val->mid)}" onclick="window.open(this.href); return false;">{$val->browser_title}</a></td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,21 @@ function completeInsertPage(ret_obj) {
|
|||
location.href = url;
|
||||
}
|
||||
|
||||
function completeArticleDocumentInserted(ret_obj){
|
||||
var error = ret_obj['error'];
|
||||
var message = ret_obj['message'];
|
||||
|
||||
var mid = ret_obj['mid'];
|
||||
|
||||
alert(message);
|
||||
|
||||
var url = '';
|
||||
url = current_url.setQuery('act', 'dispPageIndex').setQuery('mid', mid);
|
||||
|
||||
|
||||
location.href = url;
|
||||
}
|
||||
|
||||
/* 내용 저장 후 */
|
||||
function completeInsertPageContent(ret_obj) {
|
||||
var error = ret_obj['error'];
|
||||
|
|
@ -108,3 +123,4 @@ function doCartSetup(url) {
|
|||
url += "&module_srls="+module_srl.join(',');
|
||||
popopen(url,'modulesSetup');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,12 @@
|
|||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->page_type}</div></th>
|
||||
<td colspan="3">
|
||||
{$lang->page_type_name[$module_info->page_type]}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->mid}</div></th>
|
||||
<td colspan="3">
|
||||
|
|
@ -64,6 +70,7 @@
|
|||
<p>{$lang->about_layout}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@if($module_info->page_type != 'ARTICLE')-->
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->page_caching_interval}</div></th>
|
||||
<td colspan="3">
|
||||
|
|
@ -71,11 +78,54 @@
|
|||
<p>{$lang->about_page_caching_interval}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@if($module_info->page_type == 'OUTSIDE')-->
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->opage_path}</div></th>
|
||||
<td colspan="3">
|
||||
<input type="text" name="opage_path" value="{htmlspecialchars($module_info->opage_path)}" class="inputTypeText w400" />
|
||||
<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row">
|
||||
<th scope="row"><div>{$lang->opage_mobile_path}</div></th>
|
||||
<td colspan="3">
|
||||
<input type="text" name="opage_mpath" value="{htmlspecialchars($module_info->opage_mpath)}" class="inputTypeText w400" />
|
||||
<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@if($module_info->page_type == 'ARTICLE')-->
|
||||
<tr class="row2 optionnalData articleType">
|
||||
<th scope="row"><div>{$lang->skin}</div></th>
|
||||
<td>
|
||||
<select name="skin">
|
||||
<!--@foreach($skin_list as $key=>$val)-->
|
||||
<option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<p>{$lang->about_skin}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="optionnalData articleType">
|
||||
<th scope="row"><div>{$lang->mobile_skin}</div></th>
|
||||
<td>
|
||||
<select name="mskin">
|
||||
<!--@foreach($mskin_list as $key=>$val)-->
|
||||
<option value="{$key}" <!--@if($module_info->mskin==$key ||(!$module_info->mskin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<p>{$lang->about_skin}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<tr>
|
||||
<th colspan="4" class="button">
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
|
||||
<!--@if($module_info->page_type != 'OUTSIDE')-->
|
||||
<a href="{getUrl('','module','page','act','dispPageAdminContentModify','module_srl',$module_info->module_srl)}" onclick="window.open(this.href,'PageEdit','width=850,height=650,scrollbars=yes,resizable=yes,toolbars=no');return false;" class="button red"><span>{$lang->cmd_page_modify}</span></a>
|
||||
<!--@if($module=="admin")-->
|
||||
<!--@end-->
|
||||
<!--@if($module=="admin")-->
|
||||
<a href="{getUrl('act','dispPageAdminContent','module_srl','')}" class="button"><span>{$lang->cmd_list}</span></a>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('act','')}" class="button"><span>{$lang->cmd_back}</span></a>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,30 @@
|
|||
<!--%import("filter/insert_page.xml")-->
|
||||
<!--%import("filter/insert_outside.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_page)" enctype="multipart/form-data">
|
||||
<form id="fo_insert_page" 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}" />
|
||||
<table cellspacing="0" class="rowTable topGap">
|
||||
<!--@if($module_srl)-->
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->page_type}</div></th>
|
||||
<td></td>
|
||||
</tr>
|
||||
<!--@else-->
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->page_type}</div></th>
|
||||
<td colspan="3">
|
||||
<select name="page_type">
|
||||
<option value="">{$lang->click_choice}</option>
|
||||
<option value="WIDGET">{$lang->page_type_name['WIDGET']}</option>
|
||||
<option value="ARTICLE">{$lang->page_type_name['ARTICLE']}</option>
|
||||
<option value="OUTSIDE">{$lang->page_type_name['OUTSIDE']}</option>
|
||||
</select>
|
||||
<p>{$lang->about_page_type}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@if($logged_info->is_admin!='Y')-->
|
||||
<input type="hidden" name="mid" value="{$module_info->mid}" />
|
||||
<!--@else-->
|
||||
|
|
@ -67,13 +87,49 @@
|
|||
<p>{$lang->about_layout}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr class="optionnalData widgetType outsideType">
|
||||
<th scope="row"><div>{$lang->page_caching_interval}</div></th>
|
||||
<td colspan="3">
|
||||
<input type="text" name="page_caching_interval" value="{(int)$module_info->caching_interval}" class="inputTypeText w40" /> {$lang->unit_min}
|
||||
<p>{$lang->about_page_caching_interval}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2 optionnalData articleType">
|
||||
<th scope="row"><div>{$lang->skin}</div></th>
|
||||
<td>
|
||||
<select name="skin">
|
||||
<!--@foreach($skin_list as $key=>$val)-->
|
||||
<option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<p>{$lang->about_skin}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="optionnalData articleType">
|
||||
<th scope="row"><div>{$lang->mobile_skin}</div></th>
|
||||
<td>
|
||||
<select name="mskin">
|
||||
<!--@foreach($mskin_list as $key=>$val)-->
|
||||
<option value="{$key}" <!--@if($module_info->mskin==$key ||(!$module_info->mskin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<p>{$lang->about_skin}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2 optionnalData outsideType">
|
||||
<th scope="row"><div>{$lang->opage_path}</div></th>
|
||||
<td colspan="3">
|
||||
<input type="text" name="opage_path" value="{htmlspecialchars($module_info->path)}" class="inputTypeText w400" />
|
||||
<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row optionnalData outsideType">
|
||||
<th scope="row"><div>{$lang->opage_mobile_path}</div></th>
|
||||
<td colspan="3">
|
||||
<input type="text" name="opage_mpath" value="{htmlspecialchars($module_info->mpath)}" class="inputTypeText w400" />
|
||||
<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th colspan="4" class="button">
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
|
||||
|
|
@ -82,3 +138,17 @@
|
|||
</table>
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
(function($){
|
||||
$('.optionnalData').hide();
|
||||
$('select[name=page_type]').change(function(){
|
||||
$('.optionnalData').hide();
|
||||
var select = $('select[name=page_type] :selected').val();
|
||||
if(select != ""){
|
||||
$('.'+select.toLowerCase()+'Type').show();
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue