mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
cafeXE 개선
1. 게시판/페이지 외에 최고관리자가 지정한 서비스 모듈을 생성/관리 가능하도록 개선 2. 최고관리자는 기본 레이아웃/ 레이아웃 변경 기능 제한/ 카페별 서비스 모듈 생성 개수를 지정하는 기능 추가 3. 생성된 카페의 도메인/vid 등을 수정할 수 있는 기능 추가 4. 카페 관리자가 메뉴 추가시에 메뉴명과 서비스 모듈 종류만 지정하면 모듈이 생성되도록 개선 5. 가상사이트와 기본 사이트간의 모듈을 옮길 수 있는 기능 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6171 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b2e0e09529
commit
5bb5fa23a8
68 changed files with 721 additions and 617 deletions
|
|
@ -1,13 +0,0 @@
|
|||
<!--#include("_header.html")-->
|
||||
|
||||
<h4 class="xeAdmin">{$lang->board} > {$module_info->browser_title} <span class="gray">{$lang->cmd_setup}</span></h4>
|
||||
|
||||
<ul class="localNavigation">
|
||||
<li <!--@if($act=='dispHomepageBoardInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispHomepageBoardInfo')}">{$lang->cmd_setup}</a></li>
|
||||
<li <!--@if($act=='dispHomepageBoardCategoryInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispHomepageBoardCategoryInfo')}">{$lang->cmd_manage_category}</a></li>
|
||||
<li <!--@if($act=='dispHomepageBoardExtraVars')-->class="on"<!--@end-->><a href="{getUrl('act','dispHomepageBoardExtraVars')}">{$lang->extra_vars}</a></li>
|
||||
<li <!--@if($act=='dispHomepageBoardGrant')-->class="on"<!--@end-->><a href="{getUrl('act','dispHomepageBoardGrant')}">{$lang->cmd_manage_grant}</a></li>
|
||||
<li <!--@if($act=='dispHomepageBoardAddition')-->class="on"<!--@end-->><a href="{getUrl('act','dispHomepageBoardAddition')}">{$lang->cmd_addition_setup}</a></li>
|
||||
<li <!--@if($act=='dispHomepageBoardSkin')-->class="on"<!--@end-->><a href="{getUrl('act','dispHomepageBoardSkin')}">{$lang->cmd_manage_skin}</a></li>
|
||||
<li><a href="{getUrl('','mid',$module_info->mid)}" onclick="window.open(this.href); return false;">{$lang->cmd_view}</a></li>
|
||||
</ul>
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<!--#include("_header.html")-->
|
||||
|
||||
<h4 class="xeAdmin">{$lang->page} > {$module_info->browser_title} <span class="gray">{$lang->cmd_setup}</span></h4>
|
||||
|
||||
<ul class="localNavigation">
|
||||
<li class="on"><a href="{getUrl('act','dispHomepagePageGrant','module_srl',$module_srl)}">{$lang->grant}</a></li>
|
||||
<li><a href="{getUrl('','mid',$module_info->mid)}" onclick="window.open(this.href); return false;">{$lang->cmd_view}</a></li>
|
||||
</ul>
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<!--#include("_board_header.html")-->
|
||||
|
||||
{$setup_content}
|
||||
|
||||
<!--#include("_footer.html")-->
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<!--#include("./_board_header.html")-->
|
||||
|
||||
{$grant_content}
|
||||
|
||||
<!--#include("./_footer.html")-->
|
||||
|
|
@ -1,114 +0,0 @@
|
|||
<!--%import("./filter/insert_board.xml")-->
|
||||
|
||||
<!--#include("_board_header.html")-->
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_board)" enctype="multipart/form-data">
|
||||
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
|
||||
<input type="hidden" name="mid" value="{$module_info->mid}" />
|
||||
<input type="hidden" name="layout_srl" value="{$module_info->layout_srl}" />
|
||||
<input type="hidden" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}" />
|
||||
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr class="row2">
|
||||
<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=='xe_board'))-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<p>{$lang->about_skin}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->use_category}</div></th>
|
||||
<td>
|
||||
<input type="checkbox" name="use_category" value="Y" <!--@if($module_info->use_category=='Y')-->checked="checked"<!--@end--> class="checkbox" id="fld_for_category" />
|
||||
<a href="{getUrl('','act','dispBoardAdminCategoryInfo','module_srl',$module_info->module_srl)}" onclick="winopen(this.href,'BoardMenu','width=850,height=800,resizable=yes,scrollbars=yes,toolbars=no');return false;">{$lang->cmd_manage_category}</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->order_target}</div></th>
|
||||
<td>
|
||||
<select name="order_target">
|
||||
<!--@foreach($order_target as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($module_info->order_target == $key)-->selected="selected"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->order_type}</div></th>
|
||||
<td>
|
||||
<select name="order_type">
|
||||
<option value="asc" <!--@if($module_info->order_type != 'desc')-->selected="selected"<!--@end-->>{$lang->order_asc}</option>
|
||||
<option value="desc" <!--@if($module_info->order_type == 'desc')-->selected="selected"<!--@end-->>{$lang->order_desc}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->list_count}</div></th>
|
||||
<td>
|
||||
<input type="text" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}" class="inputTypeText" />
|
||||
<p>{$lang->about_list_count}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->search_list_count}</div></th>
|
||||
<td>
|
||||
<input type="text" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}" class="inputTypeText" />
|
||||
<p>{$lang->about_search_list_count}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->page_count}</div></th>
|
||||
<td>
|
||||
<input type="text" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}" class="inputTypeText" />
|
||||
<p>{$lang->about_page_count}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->except_notice}</div></th>
|
||||
<td>
|
||||
<input type="checkbox" name="except_notice" value="Y" <!--@if($module_info->except_notice!='N')-->checked="checked"<!--@end--> />
|
||||
<p>{$lang->about_except_notice}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->consultation}</div></th>
|
||||
<td>
|
||||
<input type="checkbox" name="consultation" value="Y" <!--@if($module_info->consultation=='Y')-->checked="checked"<!--@end--> />
|
||||
<p>{nl2br($lang->about_consultation)}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->admin_mail}</div></th>
|
||||
<td>
|
||||
<input type="text" name="admin_mail" value="{$module_info->admin_mail}" class="inputTypeText fullWidth" />
|
||||
<p>{$lang->about_admin_mail}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->header_text}</div></th>
|
||||
<td>
|
||||
<textarea name="header_text" class="inputTypeTextArea fullWidth">{htmlspecialchars($module_info->header_text)}</textarea>
|
||||
<p>{$lang->about_header_text}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->footer_text}</div></th>
|
||||
<td>
|
||||
<textarea name="footer_text" class="inputTypeTextArea fullWidth">{htmlspecialchars($module_info->footer_text)}</textarea>
|
||||
<p>{$lang->about_footer_text}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2">
|
||||
<th colspan="2" class="button">
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
|
||||
</th>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<!--#include("_footer.html")-->
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<!--#include("./_board_header.html")-->
|
||||
|
||||
{$skin_content}
|
||||
|
||||
<!--#include("./_footer.html")-->
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<!--#include("./_board_header.html")-->
|
||||
|
||||
{$category_content}
|
||||
|
||||
<!--#include("./_footer.html")-->
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
<!--#include("./_board_header.html")-->
|
||||
|
||||
{$extra_vars_content}
|
||||
|
||||
<!--#include("./_footer.html")-->
|
||||
5
modules/homepage/tpl/filter/insert_config.xml
Normal file
5
modules/homepage/tpl/filter/insert_config.xml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<filter name="insert_config" module="homepage" act="procHomepageAdminInsertConfig" confirm_msg_code="confirm_submit">
|
||||
<form />
|
||||
<parameter />
|
||||
<response />
|
||||
</filter>
|
||||
|
|
@ -2,10 +2,7 @@
|
|||
<form>
|
||||
<node target="site_srl" required="true" maxlength="250" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="site_srl" target="site_srl" />
|
||||
<param name="homepage_admin" target="homepage_admin" />
|
||||
</parameter>
|
||||
<parameter />
|
||||
<response callback_func="completeUpdateHomepage">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<!--%import("./js/homepage.js",optimized=false)-->
|
||||
<!--%import("./filter/insert_homepage.xml")-->
|
||||
<!--%import("./filter/insert_config.xml")-->
|
||||
|
||||
<h3 class="xeAdmin">{$lang->cafe} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
|
|
@ -30,7 +31,6 @@
|
|||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pagination a1">
|
||||
|
|
@ -49,8 +49,7 @@
|
|||
<div class="adminRightExtra">
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_homepage)" id="cafeFo">
|
||||
<h3 class="xeAdmin">{$lang->cmd_make_cafe}</h3>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<caption> </caption>
|
||||
<table cellspacing="0" class="crossTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->cafe_title}</div></th>
|
||||
|
|
@ -80,4 +79,60 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_config)">
|
||||
<h3 class="xeAdmin">{$lang->cmd_setup}</h3>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->default_layout}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<select name="default_layout">
|
||||
<option value="faceoff" <!--@if($homepage_config->default_layout=='faceoff')-->selected="selected"<!--@end--> >faceoff</option>
|
||||
<optgroup label="{$lang->downloaded_list}">
|
||||
<!--@foreach($layout_list as $key => $val)-->
|
||||
<option value="{$val->layout}" <!--@if($homepage_config->default_layout== $val->layout)-->selected="selected"<!--@end-->> <!--@if($val->title)-->{$val->title} ({$val->layout})<!--@else-->{$val->layout}<!--@end--></option>
|
||||
<!--@end-->
|
||||
</optgroup>
|
||||
</select>
|
||||
<p>{$lang->about_default_layout}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2"><div>{$lang->enable_change_layout}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="checkbox" name="enable_change_layout" value="Y" <!--@if($homepage_config->enable_change_layout=='Y')-->checked="checked"<!--@end-->/>
|
||||
<p>{$lang->about_change_layout}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2"><div>{$lang->allow_service}</div></th>
|
||||
</tr>
|
||||
<!--@foreach($service_modules as $k => $v)-->
|
||||
<!--@if($v->category == 'service' && $v->default_index_act)-->
|
||||
<tr>
|
||||
<td class="nowrap">{$v->title}</td>
|
||||
<td class="wide">
|
||||
<select name="allow_service_{$v->module}">
|
||||
<!--@for($i=0;$i<20;$i++)--><option value="{$i}" <!--@if($homepage_config->allow_service[$v->module]==$i)-->selected="selected"<!--@end-->>{$i}</option><!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<p>{$lang->about_allow_service}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row2" colspan="2">
|
||||
<td class="button"><span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span></div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ function completeInsertHomepage(ret_obj) {
|
|||
}
|
||||
|
||||
function doHomepageInsertAdmin() {
|
||||
var fo_obj = xGetElementById("fo_homepage");
|
||||
var fo_obj = xGetElementById("cafeFo");
|
||||
var sel_obj = fo_obj.admin_list;
|
||||
var admin_id = fo_obj.admin_id.value;
|
||||
if(!admin_id) return;
|
||||
|
|
@ -18,7 +18,7 @@ function doHomepageInsertAdmin() {
|
|||
}
|
||||
|
||||
function doHomepageDeleteAdmin() {
|
||||
var fo_obj = xGetElementById("fo_homepage");
|
||||
var fo_obj = xGetElementById("cafeFo");
|
||||
var sel_obj = fo_obj.admin_list;
|
||||
sel_obj.remove(sel_obj.selectedIndex);
|
||||
|
||||
|
|
@ -77,7 +77,6 @@ function homepageLoadMenuInfo(url){
|
|||
data.menu_info['mode'] = 'update';
|
||||
menuFormInsert(data.menu_info);
|
||||
jQuery("#menuItem").css('position','absolute').css('display','block').css('top',e.pageY).css('left',e.pageX).css('zIndex',9999);
|
||||
jQuery('#itemAttr4').css("display",'block');
|
||||
});
|
||||
return false;
|
||||
|
||||
|
|
@ -168,9 +167,6 @@ function menuFormInsert(obj) {
|
|||
if(typeof(obj.menu_item_srl)!='undefined') fo_obj.menu_item_srl.value = obj.menu_item_srl;
|
||||
if(typeof(obj.mode)!='undefined') fo_obj.mode.value = obj.mode;
|
||||
if(typeof(obj.name)!='undefined') fo_obj['menu_name'].value = obj.name;
|
||||
|
||||
if(typeof(obj.browser_title)!='undefined') fo_obj.browser_title.value = obj.browser_title;
|
||||
|
||||
if(typeof(obj.open_window)!='undefined' && obj.open_window=='Y') fo_obj.menu_open_window.checked = true;
|
||||
if(typeof(obj.expand)!='undefined' && obj.expand=='Y') fo_obj.menu_expand.checked = true;
|
||||
if(typeof(obj.group_srls)!='undefined' && obj.group_srls.length) {
|
||||
|
|
@ -182,66 +178,75 @@ function menuFormInsert(obj) {
|
|||
}
|
||||
}
|
||||
|
||||
if(typeof(obj.module_id)!='undefined') {
|
||||
fo_obj.module_id.value = obj.module_id;
|
||||
} else {
|
||||
fo_obj.module_id.value = '';
|
||||
}
|
||||
|
||||
jQuery("#urlForm").css("display","none");
|
||||
if(typeof(obj.module_type)!='undefined') {
|
||||
if(obj.module_type == 'url') {
|
||||
fo_obj.module_type.selectedIndex = 2;
|
||||
if(typeof(obj.url)!='undefined') fo_obj.url.value = obj.url;
|
||||
fo_obj.module_type.disabled = "disabled";
|
||||
jQuery('#itemAttr2').css('display','none');
|
||||
jQuery('#itemAttr3').css('display','block');
|
||||
} else {
|
||||
if(obj.module_type == 'page') fo_obj.module_type.selectedIndex = 1;
|
||||
else fo_obj.module_type.selectedIndex = 1;
|
||||
if(typeof(obj.module_id)!='undefined') fo_obj.module_id.value = obj.module_id;
|
||||
fo_obj.module_type.disabled = "disabled";
|
||||
jQuery('#itemAttr2').css('display','block');
|
||||
jQuery('#itemAttr3').css('display','none');
|
||||
var sel_obj = fo_obj.module_type;
|
||||
for(var i=0;i<sel_obj.options.length;i++) {
|
||||
if(sel_obj.options[i].value == obj.module_type) {
|
||||
sel_obj.selectedIndex = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(obj.module_type == 'url') {
|
||||
jQuery("#urlForm").css("display","block");
|
||||
fo_obj.url.value = obj.url;
|
||||
}
|
||||
fo_obj.module_type.disabled = true;
|
||||
}
|
||||
|
||||
if(typeof(obj.normal_btn)!='undefined' && obj.normal_btn) {
|
||||
jQuery('#menu_normal_btn_img').attr("src",obj.normal_btn);
|
||||
jQuery('#menu_normal_btn_zone','#itemAttr4').css("display",'block');
|
||||
fo_obj.normal_btn.value = obj.normal_btn;
|
||||
}
|
||||
if(typeof(obj.hover_btn)!='undefined' && obj.hover_btn) {
|
||||
jQuery('#menu_hover_btn_img').attr("src",obj.hover_btn);
|
||||
jQuery('#menu_hover_btn_zone','#itemAttr4').css("display",'block');
|
||||
fo_obj.hover_btn.value = obj.hover_btn;
|
||||
}
|
||||
if(typeof(obj.active_btn)!='undefined' && obj.active_btn) {
|
||||
jQuery('#menu_active_btn_img').attr("src",obj.active_btn);
|
||||
jQuery('#menu_active_btn_zone','#itemAttr4').css("display",'block');
|
||||
fo_obj.active_btn.value = obj.active_btn;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function menuFormReset() {
|
||||
var fo_obj = jQuery("#fo_menu").get(0);
|
||||
|
||||
fo_obj.parent_srl.value = '';
|
||||
fo_obj.menu_item_srl.value = '';
|
||||
fo_obj.mode.value = '';
|
||||
fo_obj.target.value = '';
|
||||
fo_obj.normal_btn.value = '';
|
||||
fo_obj.hover_btn.value = '';
|
||||
fo_obj.active_btn.value = '';
|
||||
fo_obj.module_id.value = '';
|
||||
|
||||
jQuery(".menu_names").each(function(){ jQuery(this).val(''); });
|
||||
|
||||
fo_obj.browser_title.value = '';
|
||||
//fo_obj.browser_title.value = '';
|
||||
|
||||
fo_obj.menu_open_window.checked = false;
|
||||
fo_obj.menu_expand.checked = false;
|
||||
|
||||
for(var i=0; i<fo_obj.group_srls.length;i++) fo_obj.group_srls[i].checked = false;
|
||||
|
||||
fo_obj.module_type.selectedIndex = 0;
|
||||
fo_obj.module_type.disabled = "";
|
||||
|
||||
fo_obj.module_id.value = '';
|
||||
fo_obj.module_type.disabled = false;
|
||||
var sel_obj = fo_obj.module_type;
|
||||
for(var i=0;i<sel_obj.options.length;i++) {
|
||||
if(!sel_obj.options[i].disabled) {
|
||||
sel_obj.options[i].selected = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
jQuery("#urlForm").css("display","none");
|
||||
fo_obj.url.value = '';
|
||||
jQuery('#itemAttr3').css("display","none");
|
||||
jQuery('#menu_normal_btn_zone','#menu_hover_btn_zone','#menu_active_btn_zone').css("display","none");
|
||||
jQuery('#menu_normal_btn_img','#menu_hover_btn_img','#menu_active_btn_img').attr("src","");
|
||||
jQuery('#itemAttr4').css("display","none");
|
||||
fo_obj.reset();
|
||||
location.href = '#';
|
||||
}
|
||||
|
|
@ -266,7 +271,6 @@ function homepageAddMenu(node_srl,e) {
|
|||
menuFormInsert(obj);
|
||||
|
||||
jQuery("#menuItem").css('position','absolute').css('display','block').css('top',e.pageY).css('left',e.pageX).css('zIndex',9999);
|
||||
jQuery('#itemAttr4').css("display",'block');
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -352,14 +356,13 @@ function doDeleteGroup(group_srl) {
|
|||
}
|
||||
|
||||
function changeMenuType(obj) {
|
||||
if(obj.selectedIndex == 2) {
|
||||
xGetElementById('itemAttr2').style.display = 'none';
|
||||
xGetElementById('itemAttr3').style.display = 'block';
|
||||
return;
|
||||
}
|
||||
var sel = obj.options[obj.selectedIndex].value;
|
||||
if(sel == 'url') {
|
||||
jQuery('#urlForm').css("display","block");
|
||||
} else {
|
||||
jQuery('#urlForm').css("display","none");
|
||||
|
||||
xGetElementById('itemAttr2').style.display = 'block';
|
||||
xGetElementById('itemAttr3').style.display = 'none';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -410,3 +413,18 @@ function toggleAccessType(target) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function importModule(id) {
|
||||
popopen( request_uri.setQuery('module','module').setQuery('act','dispModuleSelectList').setQuery('id',id).setQuery('type','single'), 'ModuleSelect');
|
||||
}
|
||||
|
||||
function insertSelectedModule(id, module_srl, mid, browser_title) {
|
||||
params = new Array();
|
||||
params['import_module_srl'] = module_srl;
|
||||
params['site_srl'] = xGetElementById('foImport').site_srl.value;
|
||||
exec_xml('homepage','procHomepageAdminImportModule', params, doComplenteInsertSelectedModule);
|
||||
}
|
||||
|
||||
function doComplenteInsertSelectedModule(ret_obj) {
|
||||
location.reload();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@
|
|||
<form action="./" method="post" onsubmit="return procFilter(this, change_layout);" class="gap1">
|
||||
<h4 class="xeAdmin">{$lang->layout}</h4>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<!--@if($homepage_config->enable_change_layout == 'Y')-->
|
||||
<tr>
|
||||
<th><div>{$lang->layout}</div></th>
|
||||
<td colspan="2">
|
||||
|
|
@ -66,6 +67,7 @@
|
|||
<span class="button black"><input type="submit" value="{$lang->cmd_change_layout}" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->path}</div></th>
|
||||
<td colspan="2">{$selected_layout->path}</td>
|
||||
|
|
@ -97,6 +99,10 @@
|
|||
<input type="hidden" name="title" value="{htmlspecialchars($homepage_info->title)}" />
|
||||
<input type="hidden" name="apply_layout" value="Y" />
|
||||
|
||||
<!--@foreach($selected_layout->menu as $menu_name => $menu_info)-->
|
||||
<input type="hidden" name="{$menu_name}" value="{$menu_info->menu_srl}" />
|
||||
<!--@end-->
|
||||
|
||||
<tr class="row2">
|
||||
<th scope="row"><div>{$lang->header_script}</div></th>
|
||||
<td colspan="2">
|
||||
|
|
@ -157,19 +163,6 @@
|
|||
<!--@if($var->group)-->
|
||||
<!--@end-->
|
||||
|
||||
<!--@foreach($selected_layout->menu as $menu_name => $menu_info)-->
|
||||
<tr class="row{$cycle_idx}">
|
||||
<th scope="row"><div>{$menu_info->title}<br />({$menu_name})</div></th>
|
||||
<td class="left tahoma">
|
||||
<select name="{$menu_name}">
|
||||
<!--@foreach($menu_list as $key => $val)-->
|
||||
<option value="{$val->menu_srl}" <!--@if($val->menu_srl == $menu_info->menu_srl)-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
|
||||
<tr class="row2">
|
||||
<th colspan="3" class="button">
|
||||
<span class="button strong black"><input type="submit" value="{$lang->cmd_save}" /></span>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
<!--%load_js_plugin("ui.tree")-->
|
||||
|
||||
<h4 class="xeAdmin">{$lang->cmd_admin_menus[$act]}</h4>
|
||||
<span style="float:right"><a href="#" onclick="doReloadTreeMenu('{$menu_info->menu_srl}');return false;" class="button"><span>{$lang->cmd_remake_cache}</span></a></span>
|
||||
<span style="float:right">
|
||||
<a href="#" onclick="doReloadTreeMenu('{$menu_info->menu_srl}');return false;" class="button"><span>{$lang->cmd_remake_cache}</span></a>
|
||||
</span>
|
||||
<p class="summary">{$lang->about_cafe_act[$act]}</p>
|
||||
|
||||
<form method="post" action="./" id="menu_item_form">
|
||||
|
|
@ -36,26 +38,45 @@
|
|||
<input type="hidden" name="normal_btn" value="" />
|
||||
<input type="hidden" name="hover_btn" value="" />
|
||||
<input type="hidden" name="active_btn" value="" />
|
||||
<input type="hidden" name="module_id" value="" />
|
||||
|
||||
<h4 class="xeAdmin">{$lang->menu}</h4>
|
||||
<button class="xButton" type="button" onclick="closeTreeMenuInfo();return false" ><span>{$lang->cmd_close}</span></button>
|
||||
|
||||
<div class="layerBody">
|
||||
|
||||
<table cellspacing="0" class="rowTable" id="itemAttr1">
|
||||
<col width="150" />
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<col width="100" />
|
||||
<col width="" />
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->module_type}</div></th>
|
||||
<td colspan="2">
|
||||
<select name="module_type" onchange="changeMenuType(this)">
|
||||
<!--@foreach($homepage_config->allow_service as $k => $v)-->
|
||||
<option value="{$k}" <!--@if($v<1)-->disabled="disabled"<!--@end-->>{$k}</option>
|
||||
<!--@end-->
|
||||
<option value="url">{$lang->url}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="urlForm" style="display:none;">
|
||||
<th scope="row"><div>{$lang->url}</div></th>
|
||||
<td colspan="2">
|
||||
http://<input type="text" name="url" value="" class="inputTypeText fullWidth" />
|
||||
<p>{$lang->about_menu_item_url}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->menu_name}</div></th>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
<input type="text" name="menu_name" id="menu_name" value="" class="inputTypeText"/>
|
||||
<a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','menu_name')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
|
||||
<p class="clear">{$lang->about_langcode}</p>
|
||||
<p>{$lang->about_langcode}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->cmd_option}</div></th>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
<input type="checkbox" id="menu_open_window" name="menu_open_window" value="Y" />
|
||||
<label for="menu_open_window">{$lang->menu_open_window}</label>
|
||||
<input type="checkbox" id="menu_expand" name="menu_expand" value="Y" />
|
||||
|
|
@ -65,7 +86,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->item_group_grant}</div></th>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
<!--@foreach($group_list as $key=>$val)-->
|
||||
<input type="checkbox" name="group_srls" value="{$key}" id="group_{$key}" <!--@if(is_array($item_info->group_srls)&&in_array($key, $item_info->group_srls))-->checked="checked"<!--@end-->/>
|
||||
<label for="group_{$key}">{$val->title}</label>
|
||||
|
|
@ -73,54 +94,6 @@
|
|||
<p>{$lang->about_group_grant}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->module_type}</div></th>
|
||||
<td>
|
||||
<select name="module_type" onchange="changeMenuType(this)">
|
||||
<option value="board">{$lang->board}</option>
|
||||
<option value="page">{$lang->page}</option>
|
||||
<option value="url">{$lang->url}</option>
|
||||
</select>
|
||||
<p>{$lang->about_module_type}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="0" class="rowTable" id="itemAttr2">
|
||||
<col width="150" />
|
||||
<col width="" />
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->browser_title}</div></th>
|
||||
<td>
|
||||
<input type="text" name="browser_title" value="" class="inputTypeText fullWidth" />
|
||||
<p>{$lang->about_browser_title}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->module_id}</div></th>
|
||||
<td>
|
||||
<input type="text" name="module_id" value="" class="inputTypeText fullWidth" />
|
||||
<p>{$lang->about_module_id}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="0" class="rowTable" id="itemAttr3">
|
||||
<col width="150" />
|
||||
<col width="" />
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->url}</div></th>
|
||||
<td>
|
||||
http://<input type="text" name="url" value="" class="inputTypeText fullWidth" />
|
||||
<p>{$lang->about_menu_item_url}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table cellspacing="0" class="rowTable" id="itemAttr4">
|
||||
<col width="150" />
|
||||
<col width="150" />
|
||||
<col width="" />
|
||||
<tr>
|
||||
<th scope="row" rowspan="4"><div>{$lang->menu_img_btn}</div></th>
|
||||
<th scope="row"><div>{$lang->menu_normal_btn}</div></th>
|
||||
|
|
|
|||
|
|
@ -20,15 +20,32 @@
|
|||
<td class="nowrap"><a href="{getSiteUrl($site_module_info->domain,'','mid',$val->mid)}" onclick="window.open(this.href); return false;">{htmlspecialchars($val->mid)}</a></td>
|
||||
<td class="wide"><a href="{getSiteUrl($site_module_info->domain,'','mid',$val->mid)}" onclick="window.open(this.href); return false;">{$val->browser_title}</a></td>
|
||||
<td class="nowrap">{zdate($val->regdate,"Y-m-d")}</td>
|
||||
<!--@if($val->module=='board')-->
|
||||
<td><a href="{getUrl('act','dispHomepageBoardInfo','module_srl',$val->module_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
|
||||
<!--@else-->
|
||||
<td><a href="{getUrl('act','dispHomepagePageGrant','module_srl',$val->module_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
|
||||
<!--@end-->
|
||||
<td><a href="{getUrl('act',$val->setup_index_act,'mid',$val->mid)}" onclick="winopen(this.href,'cafeXEMidSetup');return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<!--@if($logged_info->is_admin == 'Y')-->
|
||||
<!--%import("filter/export_module.xml")-->
|
||||
<div class="fl">
|
||||
<form method="post" action="./" id="foImport" onsubmit="return procFilter(this,export_module);">
|
||||
<select name="export_module_srl">
|
||||
<!--@foreach($mid_list as $no => $val)-->
|
||||
<option value="{$val->module_srl}">{$val->browser_title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<span class="button black"><input type="submit" value="{$lang->cmd_export}" /></span>
|
||||
</form>
|
||||
</div>
|
||||
<div class="fr">
|
||||
<form method="post" action="./" id="foImport">
|
||||
<input type="hidden" name="site_srl" value="{$site_module_info->site_srl}" />
|
||||
<a href="#" onclick="importModule('import_module_srl'); return false;" class="button black"><span>{$lang->cmd_import}</span></a>
|
||||
</form>
|
||||
</div>
|
||||
<p class="clear summary" style="padding-top:10px;">{$lang->about_move_module}</p>
|
||||
<!--@end-->
|
||||
|
||||
<!--#include("_footer.html")-->
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
<!--#include("./_page_header.html")-->
|
||||
|
||||
{$grant_content}
|
||||
|
||||
<!--#include("./_footer.html")-->
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<!--%import("filter/insert_page.xml")-->
|
||||
<!--#include("./_header.html")-->
|
||||
|
||||
<h3 class="title">{$lang->page} > {$module_info->browser_title}</h1>
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_page)" enctype="multipart/form-data">
|
||||
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
|
||||
|
||||
<table cellspacing="0" class="adminTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><div>{$lang->grant}</div></th>
|
||||
<th scope="col" colspan="3" >{$lang->target}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!--@foreach($grant_list as $key => $val)-->
|
||||
<tr class="row{$cycle_idx}">
|
||||
<th scope="row"><div>{$val->title}</div></th>
|
||||
<td class="wide">
|
||||
<!--@foreach($group_list as $k => $v)-->
|
||||
<input type="checkbox" class="checkbox" name="{$key}" value="{$v->group_srl}" id="grant_{$key}_{$v->group_srl}" <!--@if(is_array($module_info->grants[$key])&&in_array($v->group_srl,$module_info->grants[$key]))-->checked="checked"<!--@end-->/>
|
||||
<label for="grant_{$key}_{$v->group_srl}">{$v->title}</label>
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td class="center selectAll"><a href="#" onclick="XE.checkboxToggleAll('{$key}', { checked:true }); return false;">{$lang->cmd_select_all}</a></td>
|
||||
<td class="center deSelectAll"><a href="#" onclick="XE.checkboxToggleAll('{$key}', { checked:false }); return false;">{$lang->cmd_unselect_all}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<tr class="row2">
|
||||
<td colspan="4" class="right">
|
||||
<span class="button blue"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<!--#include("./_footer.html")-->
|
||||
|
|
@ -5,34 +5,41 @@
|
|||
|
||||
<div class="infoText">{nl2br($lang->about_cafe)}</div>
|
||||
|
||||
<form action="./" method="post" onsubmit="return doUpdateHomepage(this, update_homepage)" id="fo_homepage">
|
||||
<form action="./" method="post" onsubmit="return doUpdateHomepage(this, update_homepage)" id="cafeFo">
|
||||
<input type="hidden" name="site_srl" value="{$homepage_info->site_srl}" />
|
||||
<input type="hidden" name="homepage_admin" value="<!--@foreach($admin_list as $key=>$val)-->{$val->member_srl},<!--@end-->" />
|
||||
<table cellspacing="0" class="crossTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><div>{$lang->cmd_cafe_setup}</div></th>
|
||||
<th colspan="3"><div>{$lang->cmd_cafe_setup} > {$homepage_info->title}</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->cafe_title}</div></th>
|
||||
<td>
|
||||
{$homepage_info->title}
|
||||
<a href="{getSiteUrl($homepage_info->domain,'', 'act','dispHomepageManage')}" onclick="window.open(this.href); return false;" class="button"><span>{$lang->cmd_management}</span></a>
|
||||
<td colspan="2">
|
||||
<input type="text" name="title" value="{htmlspecialchars($homepage_info->title)}" class="w300"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->domain}</div></th>
|
||||
<td>
|
||||
{getSiteUrl($homepage_info->domain)}
|
||||
<a href="{getSiteUrl($homepage_info->domain, '')}" onclick="window.open(this.href); return false;" class="button"><span>{$lang->cmd_move}</span></a>
|
||||
<th scope="row"><div>{$lang->access_type}</div></th>
|
||||
<td colspan="2">
|
||||
<label for="chkDomain"><input type="radio" id="chkDomain" name="access_type" value="domain" onclick="toggleAccessType('domain');" <!--@if(!isSiteID($homepage_info->domain))-->checked="checked"<!--@end--> /> {$lang->access_domain}</label>
|
||||
<label for="chkVid"><input type="radio" id="chkVid" name="access_type" value="vid" onclick="toggleAccessType('vid');" <!--@if(isSiteID($homepage_info->domain))-->checked="checked"<!--@end--> /> {$lang->access_vid}</label>
|
||||
<div id="accessDomain" style="display:<!--@if(!isSiteID($homepage_info->domain))-->block<!--@else-->none<!--@end-->; margin-top:10px;">
|
||||
http://<input type="text" name="domain" value="<!--@if(!isSiteID($homepage_info->domain))-->{$homepage_info->domain}<!--@end-->" class="inputTypeText w200" />
|
||||
<p>{$lang->about_domain}</p>
|
||||
</div>
|
||||
<div id="accessVid" style="display:<!--@if(isSiteID($homepage_info->domain))-->block<!--@else-->none<!--@end-->; margin-top:10px;">
|
||||
<input type="text" name="vid" value="<!--@if(isSiteID($homepage_info->domain))-->{$homepage_info->domain}<!--@end-->" class="inputTypeText w200" />
|
||||
<p>{$lang->about_vid}</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->cafe_admin}</div></th>
|
||||
<td>
|
||||
<select name="admin_list" multiple="multiple" size="{count($admin_list)?count($admin_list):1}" class="fullWidth">
|
||||
<td colspan="2">
|
||||
<select name="admin_list" multiple="multiple" size="{count($admin_list)?count($admin_list):1}" class="w200">
|
||||
<!--@foreach($admin_list as $key => $val)-->
|
||||
<option value="{$val->user_id}">{$val->nick_name} ({$val->user_id})</option>
|
||||
<!--@end-->
|
||||
|
|
@ -44,9 +51,49 @@
|
|||
<p>{$lang->about_cafe_admin}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->default_layout}</div></th>
|
||||
<td colspan="2">
|
||||
<select name="default_layout">
|
||||
<option value="faceoff" <!--@if($homepage_config->default_layout=='faceoff')-->selected="selected"<!--@end--> >faceoff</option>
|
||||
<optgroup label="{$lang->downloaded_list}">
|
||||
<!--@foreach($layout_list as $key => $val)-->
|
||||
<option value="{$val->layout}" <!--@if($homepage_config->default_layout== $val->layout)-->selected="selected"<!--@end-->> <!--@if($val->title)-->{$val->title} ({$val->layout})<!--@else-->{$val->layout}<!--@end--></option>
|
||||
<!--@end-->
|
||||
</optgroup>
|
||||
</select>
|
||||
<p>{$lang->about_default_layout}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->enable_change_layout}</div></th>
|
||||
<td colspan="2">
|
||||
<input type="checkbox" name="enable_change_layout" value="Y" <!--@if($homepage_config->enable_change_layout=='Y')-->checked="checked"<!--@end-->/>
|
||||
<p>{$lang->about_change_layout}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><div>{$lang->allow_service}</div></th>
|
||||
<td colspan="2">{$lang->about_allow_service}</td>
|
||||
</tr>
|
||||
<!--@foreach($service_modules as $k => $v)-->
|
||||
<!--@if($v->category == 'service' && $v->default_index_act)-->
|
||||
<tr>
|
||||
<!--@if($k==0)--><th rowspan="{count($service_modules)-1}"><div> </div></th><!--@end-->
|
||||
<td class="nowrap">{$v->title}</td>
|
||||
<td class="wide">
|
||||
<select name="allow_service_{$v->module}">
|
||||
<!--@for($i=0;$i<20;$i++)--><option value="{$i}" <!--@if($homepage_config->allow_service[$v->module]==$i)-->selected="selected"<!--@end-->>{$i}</option><!--@end-->
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<tr class="row2">
|
||||
<th colspan="2" class="button">
|
||||
<th colspan="3" class="button">
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
|
||||
<a href="{getSiteUrl($homepage_info->domain,'', 'act','dispHomepageManage')}" onclick="window.open(this.href); return false;" class="button"><span>{$lang->cmd_management}</span></a>
|
||||
<a href="{getSiteUrl($homepage_info->domain, '')}" onclick="window.open(this.href); return false;" class="button"><span>{$lang->cmd_move}</span></a>
|
||||
</th>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue