planet Package Module 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4874 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-17 11:18:30 +00:00
parent 83ab586a60
commit b3179d58d0
217 changed files with 12581 additions and 0 deletions

View file

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

View file

@ -0,0 +1,17 @@
<filter name="insert" module="planet" act="procPlanetAdminInsert" confirm_msg_code="confirm_submit">
<form>
<node target="planet_mid" required="true" filter="alpha_number" />
<node target="planet_comment" required="true" maxlength="250" />
</form>
<parameter>
<param name="module_srl" target="module_srl" />
<param name="planet_mid" target="planet_mid" />
<param name="browser_title" target="planet_comment" />
<param name="description" target="description" />
</parameter>
<response callback_func="completeInsertPlanet">
<tag name="error" />
<tag name="message" />
<tag name="module_srl" />
</response>
</filter>

View file

@ -0,0 +1,26 @@
<filter name="insert_config" module="planet" act="procPlanetAdminInsertConfig" confirm_msg_code="confirm_submit">
<form>
<node target="mid" required="true" filter="alpha_number" />
<node target="browser_title" required="true" />
<node target="create_message" required="true" />
</form>
<parameter>
<param name="planet_mid" target="mid" />
<param name="browser_title" target="browser_title" />
<param name="create_message" target="create_message" />
<param name="is_default" target="is_default" />
<param name="use_signup" target="use_signup" />
<param name="planet_default_skin" target="planet_default_skin" />
<param name="access" target="access" />
<param name="create" target="create" />
<param name="manager" target="manager" />
<param name="planet_tagtab" target="planet_tagtab" />
<param name="planet_smstag" target="planet_smstag" />
<param name="use_mobile" target="use_mobile" />
<param name="use_me2day" target="use_me2day" />
</parameter>
<response callback_func="completeInsertConfig">
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,18 @@
<!--%import("js/planet.js")-->
<h3>{$lang->planet} <span class="gray">{$lang->cmd_management}</span></h3>
<div class="infoText">{nl2br($lang->about_planet)}</div>
<div class="header4">
<!--@if($module_info->mid)-->
<h4>{$module_info->mid} <!--@if($module_info->is_default=='Y')--><span class="bracket">({$lang->is_default})</span><!--@end--> <span class="vr">|</span> <a href="{getUrl('','mid',$module_info->mid)}" onclick="window.open(this.href); return false;" class="view">View</a></h4>
<!--@end-->
<ul class="localNavigation">
<li <!--@if($act=='dispPlanetAdminSetup')-->class="on"<!--@end-->><a href="{getUrl('act','dispPlanetAdminSetup','module_srl','')}">{$lang->cmd_planet_setup}</a></li>
<li <!--@if($act=='dispPlanetAdminList')-->class="on"<!--@end-->><a href="{getUrl('act','dispPlanetAdminList','module_srl','')}">{$lang->cmd_planet_list}</a></li>
<li <!--@if($act=='dispPlanetAdminSkinInfo')-->class="on"<!--@end-->><a href="{getUrl('act','dispPlanetAdminSkinInfo')}">{$lang->cmd_manage_skin}</a></li>
</ul>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

View file

@ -0,0 +1,40 @@
<!--%import("filter/insert.xml")-->
<!--#include("header.html")-->
<form action="{Context::getRequestUri()}" method="post" onsubmit="return procFilter(this, insert)">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="procPlanetAdminInsert" />
<input type="hidden" name="module_srl" value="{$planet?$planet->getModuleSrl():0}" />
<table cellspacing="0" class="adminTable">
<tr>
<th scope="row"><div>{$lang->planet_mid}</div></th>
<td>
<input type="text" name="planet_mid" value="{$planet->getMid()}" class="inputTypeText w200" />
<p>{$lang->about_planet_mid}</p>
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->planet_comment}</div></th>
<td>
<input type="text" name="planet_comment" value="{htmlspecialchars($planet->getBrowserTitle())}" class="inputTypeText w400" />
<p>{$lang->about_planet_comment}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>
<textarea name="description" class="inputTypeTextArea w400">{htmlspecialchars($planet->get('description'))}</textarea>
<p>{$lang->about_description}</p>
</td>
</tr>
<tr class="row2">
<td colspan="2" class="right">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
<span class="button"><input type="button" value="{$lang->cmd_back}" onclick="history.back(); return false;" /></span>
</td>
</table>
</form>

View file

@ -0,0 +1,55 @@
function completeInsertPlanet(ret_obj, response_tags) {
alert(ret_obj['message']);
location.href=current_url.setQuery('module_srl',ret_obj['module_srl']);
}
function completeInsertGrant(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);
}
function completeInsertConfig(ret_obj, response_tags) {
alert(ret_obj['message']);
location.reload();
}
/* 권한 관련 */
function doSelectAll(obj, key) {
var fo_obj = obj.parentNode;
while(fo_obj.nodeName != 'FORM') {
fo_obj = fo_obj.parentNode;
}
for(var i=0;i<fo_obj.length;i++) {
var tobj = fo_obj[i];
if(tobj.name == key) tobj.checked=true;
}
}
function doUnSelectAll(obj, key) {
var fo_obj = obj.parentNode;
while(fo_obj.nodeName != 'FORM') {
fo_obj = fo_obj.parentNode;
}
for(var i=0;i<fo_obj.length;i++) {
var tobj = fo_obj[i];
if(tobj.name == key) tobj.checked = false;
}
}
function completeDeletePlanet(ret_obj) {
var error = ret_obj['error'];
var message = ret_obj['message'];
var page = ret_obj['page'];
alert(message);
var url = current_url.setQuery('act','dispPlanetAdminList').setQuery('module_srl','');
if(page) url = url.setQuery('page',page);
location.href = url;
}

View file

@ -0,0 +1,44 @@
<!--#include("./header.html")-->
<!-- 정보 -->
<div class="summary">
<strong>Total</strong> <em>{number_format($page_navigation->total_count)}</em>, Page <strong>{number_format($page_navigation->cur_page)}</strong>/{number_format($page_navigation->total_page)}
</div>
<table cellspacing="0" class="adminTable">
<thead>
<tr>
<th scope="col"><div>{$lang->no}</div></th>
<th scope="col"><div>{$lang->member}</div></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>
<th scope="col" colspan="2"><div>&nbsp;</div></th>
</tr>
</thead>
<tbody>
<!--@foreach($planet_list as $no => $val)-->
<tr class="row{$cycle_idx}">
<td class="number center">{$no}</td>
<td class="nowrap"><span class="member_{$val->getMemberSrl()}">{$val->getNickName()}</span></td>
<td><a href="{getUrl('module_srl',$val->getModuleSrl(),'act','dispPlanetAdminInsert')}">{$val->getMid()}</a></td>
<td><a href="{getUrl('module_srl',$val->getModuleSrl(),'act','dispPlanetAdminInsert')}">{$val->getBrowserTitle()}</a></td>
<td class="date center nowrap">{zdate($val->get('regdate'),"Y-m-d")}</td>
<td class="center view"><a href="{getUrl('','mid',$val->getMid())}" onclick="window.open(this.href); return false;">{$lang->cmd_view}</a></td>
<td class="center delete"><a href="{getUrl('act','dispPlanetAdminDelete','module_srl',$val->getModuleSrl())}">{$lang->cmd_delete}</a></td>
</tr>
<!--@end-->
</tbody>
</table>
<!-- 페이지 네비게이션 -->
<div class="pagination a1">
<a href="{getUrl('page','','module_srl','')}" class="prevEnd">{$lang->first_page}</a>
<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<strong>{$page_no}</strong>
<!--@else-->
<a href="{getUrl('page',$page_no,'module_srl','')}">{$page_no}</a>
<!--@end-->
<!--@end-->
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="nextEnd">{$lang->last_page}</a>
</div>

View file

@ -0,0 +1,3 @@
<script type="text/javascript">
top.location.href = "{$url}";
</script>

View file

@ -0,0 +1,30 @@
<!--%import("filter/delete_planet.xml")-->
<!--%import("js/planet_admin.js")-->
<!--#include("header.html")-->
<form action="./" method="get" onsubmit="return procFilter(this, delete_planet)">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$planet_info->module_srl}" />
<table cellspacing="0" class="adminTable">
<caption>{$lang->confirm_delete}</caption>
<tr>
<th scope="row"><div>{$lang->module_name}</div></th>
<td class="wide">{$planet_info->mid}</td>
</tr>
<tr>
<th scope="row"><div>{$lang->module}</div></th>
<td>{$planet_info->module}</td>
</tr>
<tr>
<th scope="row"><div>{$lang->document_count}</div></th>
<td>{$planet_info->document_count}</td>
</tr>
<tr>
<td colspan="2" class="right">
<a href="{getUrl('act','dispPlanetAdminList')}" class="button"><span>{$lang->cmd_back}</span></a>
<span class="button"><input type="submit" value="{$lang->cmd_delete}" /></span>
</td>
</table>
</form>

View file

@ -0,0 +1,107 @@
<!--#include("header.html")-->
<!--%import("filter/insert_config.xml")-->
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
<table cellspacing="0" class="adminTable">
<tr>
<th scope="row"><div>{$lang->mid}</div></th>
<td colspan="3">
<input type="text" name="mid" value="{htmlspecialchars($config->mid)}" class="inputTypeText w400" />
<p>{$lang->mid}</p>
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->is_default}</div></th>
<td colspan="3">
<input type="checkbox" name="is_default" value="Y" <!--@if($config->is_default=='Y')-->checked="checked"<!--@end--> id="fld_for_default" class="checkbox" />
<label for="fld_for_default">{$lang->about_default}</label>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->browser_title}</div></th>
<td colspan="3">
<input type="text" name="browser_title" value="{htmlspecialchars($config->browser_title)}" class="inputTypeText w400" />
<p>{$lang->browser_title}</p>
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->planet_default_skin}</div></th>
<td colspan="3">
<select name="planet_default_skin">
<!--@foreach($skin_list as $key=>$val)-->
<option value="{$key}" <!--@if($config->planet_default_skin==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
<p>{$lang->about_planet_default_skin}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->create_message}</div></th>
<td colspan="3">
<textarea name="create_message" class="inputTypeTextArea w400">{htmlspecialchars($config->create_message)}</textarea>
<p>{$lang->about_create_message}</p>
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->planet_tagtab}</div></th>
<td colspan="3">
<input type="text" name="planet_tagtab" value="{htmlspecialchars($tagtab)}" class="inputTypeTextArea w400" />
<p>{$lang->about_planet_tagtab}</p>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->planet_smstag}</div></th>
<td colspan="3">
<input type="text" name="planet_smstag" value="{htmlspecialchars($smstag)}" class="inputTypeTextArea w400" />
<p>{$lang->about_planet_smstag}</p>
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->use_signup}</div></th>
<td colspan="3">
<input type="checkbox" name="use_signup" value="Y" <!--@if($config->use_signup=='Y')-->checked="checked"<!--@end--> id="fld_for_signup" class="checkbox" />
<label for="fld_for_signup">{$lang->about_use_signup}</label>
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->planet_use_mobile}</div></th>
<td colspan="3">
<input type="checkbox" name="use_mobile" value="Y" <!--@if($config->use_mobile=='Y')-->checked="checked"<!--@end--> id="fld_for_use_mobile" class="checkbox" />
<label for="fld_for_use_mobile">{$lang->about_use_mobile}</label>
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->planet_use_me2day}</div></th>
<td colspan="3">
<input type="checkbox" name="use_me2day" value="Y" <!--@if($config->use_me2day=='Y')-->checked="checked"<!--@end--> id="fld_for_use_me2day" class="checkbox" />
<label for="fld_for_use_me2day">{$lang->about_use_me2day}</label>
</td>
</tr>
<tr>
<th scope="row" colspan="4"><div>{$lang->cmd_manage_grant}</div></th>
</tr>
<!--@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($config->grants[$key])&&in_array($v->group_srl,$config->grants[$key]))-->checked="checked"<!--@end-->/>
<label for="grant_{$key}_{$v->group_srl}">{$v->title}</label>
<!--@end-->
</td>
<td class="selectAll center"><a href="#" onclick="doSelectAll(this, '{$key}');return false;">{$lang->cmd_select_all}</a></td>
<td class="deSelectAll center"><a href="#" onclick="doUnSelectAll(this, '{$key}');return false;">{$lang->cmd_unselect_all}</a></td>
</tr>
<!--@end-->
<tr>
<td class="right" colspan="4">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</td>
</tr>
</table>
</form>

View file

@ -0,0 +1,142 @@
<!--#include("./header.html")-->
<form action="{Context::getRequestUri()}" method="post" enctype="multipart/form-data" target="hidden_iframe">
<input type="hidden" name="module" value="planet" />
<input type="hidden" name="act" value="procPlanetAdminUpdateSkinInfo" />
<table cellspacing="0" class="adminTable">
<caption>{$lang->skin_default_info}</caption>
<tr class="row2">
<th scope="row"><div>{$lang->skin}</div></th>
<td class="wide">{$skin_info->title}</td>
</tr>
<tr>
<th scope="row"><div>{$lang->skin_author}</div></th>
<td>
<!--@foreach($skin_info->author as $author)-->
{$author->name} (<a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a>, <a href="mailto:{$author->email_address}">{$author->email_address}</a>)<br />
<!--@endforeach-->
</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->homepage}</div></th>
<td><a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a>&nbsp;</td>
</tr>
<tr>
<th scope="row"><div>{$lang->date}</div></th>
<td>{zdate($skin_info->date, 'Y-m-d')}</td>
</tr>
<tr class="row2">
<th scope="row"><div>{$lang->skin_license}</div></th>
<td>
{nl2br(trim($skin_info->license))}
<!--@if($skin_info->license_link)-->
<p><a href="{$skin_info->license_link}" onclick="window.close(); return false;">{$skin_info->license_link}</a></p>
<!--@end-->
&nbsp;
</td>
</tr>
<tr>
<th scope="row"><div>{$lang->description}</div></th>
<td>{nl2br(trim($skin_info->description))}</td>
</tr>
</table>
<table cellspacing="0" class="adminTable">
<caption>{$lang->extra_vars}</caption>
<tr valign="top">
<th scope="row"><div>{$lang->colorset}</div></th>
<td>
<!--@foreach($skin_info->colorset as $key => $val)-->
<!--@if($val->screenshot)-->
{@ $_img_info = getImageSize($val->screenshot); $_height = $_img_info[1]+40; $_width = $_img_info[0]+20; $_talign = "center"; }
<!--@else-->
{@ $_width = 200; $_height = 20; $_talign = "left"; }
<!--@end-->
<div style="float:left;text-align:{$_talign};margin-bottom:1em;width:{$_width}px;height:{$_height}px;margin-right:10px;">
<input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" <!--@if($config->colorset==$val->name)-->checked="checked"<!--@end-->/>
<label for="colorset_{$key}">{$val->title}</label>
<!--@if($val->screenshot)-->
<br />
<img src="{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/>
<!--@end-->
</div>
<!--@end-->
</td>
</tr>
<!--@foreach($skin_info->extra_vars as $key => $val)-->
<!--@if($val->group && ((!$group) || $group != $val->group))-->
{@$group = $val->group}
</table>
<table cellspacing="0" class="adminTable">
<caption>{$group}</caption>
<!--@end-->
<tr class="row{$cycle_idx}">
<th scope="row"><div>{$val->title}</div></th>
<td>
<!--@if($val->type=="text")-->
<input type="text" name="{$val->name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />
<!--@elseif($val->type=="textarea")-->
<textarea name="{$val->name}" class="inputTypeTextArea w400">{htmlspecialchars($val->value)}</textarea>
<!--@elseif($val->type=="select")-->
<select name="{$val->name}">
<!--@foreach($val->options as $k=>$v)-->
<option value="{$v->value}" <!--@if($v->value == $val->value)-->selected="selected"<!--@end-->>{$v->title}</option>
<!--@end-->
</select>
<!--@elseif($val->type=="checkbox")-->
<!--@foreach($val->default as $k=>$v)-->
<span>
<input type="checkbox" name="{$val->name}[]" value="{$v}" id="ch_{$key}_{$k}" <!--@if(in_array($v, $val->value))-->checked="checked"<!--@end--> class="checkbox" />
<label for="ch_{$key}_{$k}">{$v}</label>
</span>
<!--@end-->
<!--@elseif($val->type=="radio")-->
<!--@foreach($val->default as $k=>$v)-->
<span>
<input type="radio" name="{$val->name}" value="{$v}" id="ch_{$key}_{$k}" <!--@if($v==$val->value)-->checked="checked"<!--@end-->/>
<label for="ch_{$key}_{$k}">{$v}</label>
</span>
<!--@end-->
<!--@elseif($val->type=="image")-->
<!--@if($val->value)-->
<div>
<img src="{$val->value}" /><br />
<input type="checkbox" name="del_{$val->name}" value="Y" id="del_{$val->name}" class="checkbox" />
<label for="del_{$val->name}">{$lang->cmd_delete}</label>
</div>
<!--@end-->
<input type="file" name="{$val->name}" value="" />
<!--@end-->
<!--@if($val->description)-->
<p>{nl2br(trim($val->description))}</p>
<!--@end-->
</td>
</tr>
<!--@end-->
<!--@if($group)-->
</table>
<table cellspacing="0" class="adminTable">
<!--@end-->
<tr class="row2">
<td scope="row" colspan="2" class="right">
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
</td>
</tr>
</table>
</form>
<iframe name="hidden_iframe" frameborder="0" style="display:none"></iframe>

View file

@ -0,0 +1,3 @@
<script type="text/javascript">
top.location.href = top.location.href;
</script>