mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
cafeXE
1. 메인 페이지 생성 :: cafeXE 관리자 페이지에서 mid 지정 가능 2. 사용자가 카페를 생성하기 위한 옵션을 추가 3. 사용자 카페 생성 기능 추가 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6176 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
010923790d
commit
7d67cee78e
41 changed files with 888 additions and 132 deletions
11
modules/homepage/tpl/filter/cafe_creation.xml
Normal file
11
modules/homepage/tpl/filter/cafe_creation.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<filter name="cafe_creation" module="homepage" act="procHomepageCafeCreation">
|
||||
<form>
|
||||
<node target="cafe_id" required="true" filter="userid" minlength="4" maxlength="12"/>
|
||||
<node target="cafe_title" required="true" minlength="4" maxlength="20"/>
|
||||
<node target="cafe_description" required="true" minlength="10" maxlength="200"/>
|
||||
</form>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
<filter name="insert_board" module="homepage" act="procHomepageInsertBoard" 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="list_count" required="true" filter="number" />
|
||||
<node target="search_list_count" required="true" filter="number" />
|
||||
<node target="page_count" required="true" filter="number" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="board_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="order_target" target="order_target" />
|
||||
<param name="order_type" target="order_type" />
|
||||
<param name="list_count" target="list_count" />
|
||||
<param name="search_list_count" target="search_list_count" />
|
||||
<param name="except_notice" target="except_notice" />
|
||||
<param name="consultation" target="consultation" />
|
||||
<param name="admin_mail" target="admin_mail" />
|
||||
<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="completeInsertBoard">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="module" />
|
||||
<tag name="act" />
|
||||
<tag name="page" />
|
||||
<tag name="module_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<filter name="insert_grant" module="homepage" act="procHomepageInsertBoardGrant" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="module_srl" required="true" />
|
||||
</form>
|
||||
<response callback_func="completeInsertGrant">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
<tag name="page" />
|
||||
<tag name="module_srl" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
<filter name="insert_page" module="homepage" act="procHomepageInsertPage" confirm_msg_code="confirm_submit">
|
||||
<form>
|
||||
<node target="module_srl" required="true" filter="number" />
|
||||
</form>
|
||||
<parameter />
|
||||
<response callback_func="completeInsertPage">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<tr>
|
||||
<th scope="col"><div>{$lang->no}</div></th>
|
||||
<th scope="col" class="half_wide"><div>{$lang->title}</div></th>
|
||||
<th scope="col" class="half_wide"><div>{$lang->domain} / {$lang->vid}</div></th>
|
||||
<th scope="col" class="half_wide"><div>{$lang->domain} / Site ID</div></th>
|
||||
<th scope="col"><div>{$lang->regdate}</div></th>
|
||||
<th scope="col" colspan="3"><div> </div></th>
|
||||
</tr>
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
<!--@foreach($homepage_list as $no => $val)-->
|
||||
<tr class="row{$cycle_idx}">
|
||||
<td>{$no}</td>
|
||||
<td><a href="{getSiteUrl($val->domain,'module','homepage','act','dispHomepageManage','site_srl',$val->site_srl)}">{htmlspecialchars($val->homepage_title)}</a></td>
|
||||
<td><a href="{getSiteUrl($val->domain,'module','homepage','act','dispHomepageManage','site_srl',$val->site_srl)}">{htmlspecialchars($val->cafe_title)}</a></td>
|
||||
<td><a href="{getSiteUrl($val->domain)}" onclick="window.open(this.href);return false;">{$val->domain}</a></td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
<td><a href="{getUrl('act','dispHomepageAdminSetup','site_srl',$val->site_srl)}" class="buttonSet buttonSetting"><span>{$lang->cmd_setup}</span></a></td>
|
||||
|
|
@ -80,10 +80,65 @@
|
|||
</table>
|
||||
</form>
|
||||
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_config)">
|
||||
<form action="./" method="post" onsubmit="return procFilter(this, insert_config)" id="cafeSetup">
|
||||
<h3 class="xeAdmin">{$lang->cmd_setup}</h3>
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->cafe_main_mid}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="input" name="cafe_main_mid" value="{$homepage_config->cafe_main_mid}" class="inputTypeText" />
|
||||
<p>{$lang->about_cafe_main_mid}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->browser_title}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="input" name="browser_title" value="{$homepage_config->browser_title}" class="inputTypeText" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->skin}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<select name="skin">
|
||||
<!--@foreach($skins as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($homepage_config->skin== $key)-->selected="selected"<!--@end-->>{$val->title}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<!--@if($homepage_config->module_srl)-->
|
||||
<a href="{getUrl('act','dispHomepageAdminSkinSetup','module_srl',$homepage_config->module_srl)}" class="button"><span>{$lang->cmd_setup}</span></a>
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->cafe_creation_type}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<label for="chkCafeVid"><input type="radio" id="chkCafeVid" name="access_type" value="vid" onclick="toggleCafeAccessType('vid');" <!--@if($homepage_config->access_type=='vid')-->checked="checked"<!--@end--> /> {$lang->access_vid}</label>
|
||||
<label for="chkCafeDomain"><input type="radio" id="chkCafeDomain" name="access_type" value="domain" onclick="toggleCafeAccessType('domain');" <!--@if($homepage_config->access_type!='vid')-->checked="checked"<!--@end--> /> {$lang->access_domain}</label>
|
||||
<div id="accessCafeDomain" style="display:<!--@if($homepage_config->access_type=='vid')-->none<!--@end-->; margin-top:10px;">
|
||||
URL : <input type="text" name="default_domain" value="{$homepage_config->default_domain}" class="inputTypeText w200" />
|
||||
</div>
|
||||
<p>{$lang->about_cafe_creation_type}</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->cafe_creation_privilege}</div></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<!--@foreach($groups as $key => $val)-->
|
||||
<input type="checkbox" name="creation_group" <!--@if(in_array($val->group_srl, $homepage_config->creation_group))-->checked="checked"<!--@end--> value="{$val->group_srl}" id="creation_group_{$key}"/><label for="creation_group_{$key}">{$val->title}</label>
|
||||
<!--@end-->
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2" scope="row"><div>{$lang->default_layout}</div></th>
|
||||
</tr>
|
||||
|
|
|
|||
|
|
@ -414,6 +414,17 @@ function toggleAccessType(target) {
|
|||
}
|
||||
}
|
||||
|
||||
function toggleCafeAccessType(target) {
|
||||
switch(target) {
|
||||
case 'domain' :
|
||||
xGetElementById('accessCafeDomain').style.display = 'block';
|
||||
break;
|
||||
case 'vid' :
|
||||
xGetElementById('accessCafeDomain').style.display = 'none';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function importModule(id) {
|
||||
popopen( request_uri.setQuery('module','module').setQuery('act','dispModuleSelectList').setQuery('id',id).setQuery('type','single'), 'ModuleSelect');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,39 @@
|
|||
|
||||
<!--#include("_header.html")-->
|
||||
|
||||
<h4 class="xeAdmin">{$lang->cafe_info}</h4>
|
||||
<form method="post" action="{Context::getRequestUri()}" enctype="multipart/form-data" >
|
||||
<!--@if(isSiteID($site_module_info->domain))-->
|
||||
<input type="hidden" name="vid" value="{$site_module_info->domain}"/>
|
||||
<!--@end-->
|
||||
<input type="hidden" name="site_srl" value="{$homepage_info->site_srl}" />
|
||||
<input type="hidden" name="module" value="homepage" />
|
||||
<input type="hidden" name="act" value="procHomepageInsertCafeBanner" />
|
||||
<table cellspacing="0" class="rowTable">
|
||||
<tr>
|
||||
<th><div>{$lang->cafe_title}</div></th>
|
||||
<td class="wide"><input type="text" name="cafe_title" value="{htmlspecialchars($homepage_info->title)}" class="inputTypeText" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><div>{$lang->cafe_description}</div></th>
|
||||
<td class="wide"><textarea name="cafe_description" class="inputTypeTextArea" style="width:90%;">{htmlspecialchars($homepage_info->cafe_description)}</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><div>{$lang->cafe_banner}</div></th>
|
||||
<td class="wide">
|
||||
<!--@if($homepage_info->cafe_banner)-->
|
||||
<img src="{$homepage_info->cafe_banner}" alt="cafe banner" style="display:block;margin-bottom:10px;"/>
|
||||
<!--@end-->
|
||||
<input type="file" name="cafe_banner" value="" class="inputTypeText" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="button" colspan="2">
|
||||
<span class="button black strong"><input type="submit" value="{$lang->cmd_save}" /></span>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<h4 class="xeAdmin">{$lang->cmd_select_index}</h4>
|
||||
<form method="post" action="./" onsubmit="return procFilter(this,update_index_mid)" class="midDefault">
|
||||
|
|
|
|||
3
modules/homepage/tpl/redirect.html
Normal file
3
modules/homepage/tpl/redirect.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script type="text/javascript">
|
||||
history.back();
|
||||
</script>
|
||||
3
modules/homepage/tpl/skin_info.html
Normal file
3
modules/homepage/tpl/skin_info.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<a href="{getUrl('act','dispHomepageAdminContent','module_srl','')}" class="button black fr"><span>{$lang->cmd_back}</span></a>
|
||||
|
||||
{$skin_content}
|
||||
Loading…
Add table
Add a link
Reference in a new issue