merge from 1.7.3.5(r13153:r13167)

git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2013-09-29 23:32:39 +00:00
parent cc47d2b247
commit 2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions

View file

@ -1,93 +1,118 @@
<!--%load_js_plugin("filebox")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div class="x_page-header">
<h1>{$lang->menu_gnb_sub['filebox']} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_config_filebox" target="_blank">{$lang->help}</a></h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/module/tpl/adminFileBox/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<h1 class="h1">{$lang->menu_gnb_sub['filebox']}</h1>
<div class="fileBox">
<form action="./" class="portlet form" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleFileBoxAdd" />
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="filter" value="{$filter}" />
<input type="hidden" name="input" value="{$input}" />
<h2>{$lang->upload_file}</h2>
<div class="tgContent">
<ul id="fileUp">
<li>
<label for="attribute_name1" style="display: inline;">{$lang->attribute_name} </label> <input type="text" class="notmulti" name="attribute_name1" id="attribute_name1" />
<label for="attribute_value1" style="display: inline; font-weight:bold">{$lang->attribute_value} </label> <input type="text" class="notmulti" name="attribute_value1" id="attribute_value1" />
<button type="button" class="text __addBtn" onclick="addRow('fileUp');">{$lang->cmd_add}</button>
<button type="button" class="text __deleteBtn" onclick="clearRow(this);">{$lang->cmd_delete}</button>
</li>
<li>
<label for="file" style="display: inline">{$lang->file}</label> <input type="file" name="addfile" id="file"/>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span>
</div>
</div>
</form>
<form action="./" class="form">
<ul>
<li loop="$filebox_list=>$key,$val">
<!--@foreach($val->attributes as $key => $value)-->
<p class="q">{$key} : {$value}</p>
<!--@end-->
<p class="a">
<!--@if($val->fileextension=='swf')-->
<object height="100" width="100" flashvars="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" xmlns="http://www.w3.org/1999/xhtml">
<param value="{getUrl('')}{$val->filename}" name="movie" xmlns="http://www.w3.org/1999/xhtml" />
<param value="transparent" name="wmode" xmlns="http://www.w3.org/1999/xhtml" />
<param value="sameDomain" name="allowScriptAccess" xmlns="http://www.w3.org/1999/xhtml" />
<param value="high" name="quality" xmlns="http://www.w3.org/1999/xhtml" />
<embed height="100" width="100" wmode="transparent" flashvars="" autostart="false" src="{getUrl('')}{$val->filename}" xmlns="http://www.w3.org/1999/xhtml" />
</object>
<!--@elseif(in_array($val->fileextension,array('gif','png','jpg','jpeg')))-->
<img src="{getUrl('')}{$val->filename}" style="max-height:100px" />
<!--@end-->
</p>
<button type="button" class="side text" onclick="XE.filebox.deleteFile('{$val->module_filebox_srl}');" >{$lang->cmd_delete}</button>
</li>
</ul>
</form>
<section class="section">
<h1>{$lang->upload_file}</h1>
<form action="./" class="x_form-horizontal" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleFileBoxAdd" />
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="filter" value="{$filter}" />
<input type="hidden" name="input" value="{$input}" />
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/adminFileBox/1" />
<div class="x_control-group __attribute" data-count="1">
<label for="attribute_name1" class="x_control-label __attribute_name_label">{$lang->attribute_name}</label>
<div class="x_controls">
<input type="text" name="attribute_name[]" id="attribute_name1" class="__attribute_name" style="margin-right:20px" />
<label for="attribute_value1" class="x_inline __attribute_value_label">{$lang->attribute_value}</label>
<input type="text" name="attribute_value[]" id="attribute_value1" class="__attribute_value" style="margin-right:20px" />
<span class="x_btn-group">
<button type="button" class="x_btn __addBtn" onclick="addRow('fileUp');">{$lang->cmd_add}</button>
<button type="button" class="x_btn __deleteBtn" onclick="clearRow(this);">{$lang->cmd_delete}</button>
</span>
</div>
</div>
<form action="./" class="pagination" method="post">
<input type="hidden" name="error_return_url" value="" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input cond="$order_target" type="hidden" name="order_target" value="{$order_target}" />
<input cond="$order_type" type="hidden" name="order_type" value="{$order_type}" />
<input cond="$category_srl" type="hidden" name="category_srl" value="{$category_srl}" />
<input cond="$childrenList" type="hidden" name="childrenList" value="{$childrenList}" />
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
<div class="x_control-group">
<label for="file" class="x_control-label">{$lang->file}</label>
<div class="x_controls">
<input type="file" name="addfile" id="file" />
</div>
</div>
<div class="btnArea">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div>
</form>
</section>
<a href="{getUrl('page', '')}" class="direction">&laquo; {$lang->first_page}</a>
<section class="section">
<h1>{$lang->filebox_list}</h1>
<table class="x_table x_table-striped x_table-hover">
<thead>
<tr>
<th scope="col">{$lang->file}</th>
<th scope="col">{$lang->attribute_name}:{$lang->attribute_value}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<tr loop="$filebox_list => $key, $val">
<td>
<!--@if($val->fileextension=='swf')-->
<object height="100" width="100" flashvars="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" xmlns="http://www.w3.org/1999/xhtml">
<param value="{getUrl('')}{$val->filename}" name="movie" xmlns="http://www.w3.org/1999/xhtml" />
<param value="transparent" name="wmode" xmlns="http://www.w3.org/1999/xhtml" />
<param value="sameDomain" name="allowScriptAccess" xmlns="http://www.w3.org/1999/xhtml" />
<param value="high" name="quality" xmlns="http://www.w3.org/1999/xhtml" />
<embed height="100" width="100" wmode="transparent" flashvars="" autostart="false" src="{getUrl('')}{$val->filename}" xmlns="http://www.w3.org/1999/xhtml" />
</object>
<!--@elseif(in_array($val->fileextension,array('gif','png','jpg','jpeg')))-->
<img src="{getUrl('')}{$val->filename}" style="max-height:60px" />
<!--@end-->
</td>
<td>
<p loop="$val->attributes => $name, $value">
{htmlspecialchars($name)}: {$value}
</p>
</td>
<td>
<button type="button" class="x_btn x_btn-link" style="white-space:nowrap" onclick="XE.filebox.deleteFile('{$val->module_filebox_srl}');">{$lang->cmd_delete}</button>
</td>
</tr>
</tbody>
</table>
<form cond="$page_navigation" action="./" class="x_pagination x_pagination-centered" no-error-return-url="true">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
<ul>
<li class="x_disabled"|cond="!$page || $page == 1"><a href="{getUrl('page', '')}">&laquo; {$lang->first_page}</a></li>
<block cond="$page_navigation->first_page != 1 && $page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page - 1 && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<a href="{getUrl('page', '')}">1</a>
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<li>
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">&hellip;</a>
<span cond="$isGoTo" id="goTo" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<!--@while($page_no = $page_navigation->getNextPage())-->
{@$last_page = $page_no}
<strong cond="$page_no == $page">{$page_no}</strong>
<a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a>
<li class="x_active"|cond="$page_no == $page"><a href="{getUrl('page', $page_no)}">{$page_no}</a></li>
<!--@end-->
<block cond="$last_page != $page_navigation->last_page">
<block cond="$last_page != $page_navigation->last_page && $last_page + 1 != $page_navigation->last_page">
{@$isGoTo = true}
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
<li>
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">&hellip;</a>
<span cond="$isGoTo" id="goTo" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<a href="{getUrl('page', $page_navigation->last_page)}" class="direction">{$lang->last_page} &raquo;</a>
<span cond="$isGoTo" id="goTo" class="tgContent">
<input name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit">Go</button>
</span>
</form>
<li class="x_disabled"|cond="$page == $page_navigation->last_page"><a href="{getUrl('page', $page_navigation->last_page)}" title="{$page_navigation->last_page}">{$lang->last_page} &raquo;</a></li>
</ul>
</form>
</section>

View file

@ -1,8 +1,14 @@
<!--%import("filter/update_category.xml")-->
<!--#include("./header.html")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
{@
$validator_ids = array(
'modules/module/tpl/category_list/1' => 1,
'modules/module/tpl/category_list/2' => 1,
'modules/module/tpl/category_update_form/1' => 1
);
}
<div cond="$XE_VALIDATOR_MESSAGE && isset($validator_ids[$XE_VALIDATOR_ID])" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<!-- 카테고리의 위/아래, 삭제와 관련된 form -->
@ -10,46 +16,45 @@
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminDeleteCategory" />
<input type="hidden" name="module_category_srl" value="" />
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/category_list/1" />
</form>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<thead>
<tr>
<th scope="col" class="title">{$lang->category_title}</th>
<th scope="col" class="nowr">{$lang->regdate}</th>
<th scope="col" class="nowr">&nbsp;</th>
</tr>
</thead>
<tbody>
<!--@if(!count($category_list))-->
<tr>
<td colspan="3">{$lang->msg_category_is_null}</td>
</tr>
<!--@end-->
<!--@foreach($category_list as $key => $val)-->
<tr>
<td class="title">{$val->title}</td>
<td class="nowr">{zdate($val->regdate,"Y-m-d")}</td>
<td class="nowr">
<a href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}...</a>
<button type="button" class="text" onclick="doUpdateCategory('{$val->module_category_srl}','{$lang->confirm_delete}');return false;">{$lang->cmd_delete}</button>
</td>
</tr>
<!--@end-->
</tbody>
</table>
</div>
<table class="x_table x_table-striped x_table-hover">
<thead>
<tr>
<th>{$lang->category_title}</th>
<th>{$lang->regdate}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<!--@if(!count($category_list))-->
<tr>
<td colspan="3">{$lang->msg_category_is_null}</td>
</tr>
<!--@end-->
<!--@foreach($category_list as $key => $val)-->
<tr>
<td>{$val->title}</td>
<td>{zdate($val->regdate,"Y-m-d")}</td>
<td>
<a class="x_btn x_btn-link" href="{getUrl('module_category_srl',$val->module_category_srl)}">{$lang->cmd_modify}</a>
<i>|</i>
<button type="button" class="x_btn x_btn-link" onclick="doUpdateCategory('{$val->module_category_srl}','{$lang->confirm_delete}');return false;">{$lang->cmd_delete}</button>
</td>
</tr>
<!--@end-->
</tbody>
</table>
<!-- 카테고리 추가 -->
<form ruleset="insertCategory" action="./" method="post" class="form">
<form ruleset="insertCategory" action="./" method="post" class="x_clearfix">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminInsertCategory" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="module_category_srl" value="" />
<div class="btnArea">
<label for="category_title">{$lang->category_title}</label>
<input type="text" name="title" id="category_title" />
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/category_list/2" />
<div class="x_pull-right x_input-append">
<input type="text" name="title" title="{$lang->category_title}" placeholder="{$lang->category_title}" required />
<input type="submit" class="x_btn x_btn-primary" value="{$lang->cmd_registration}">
</div>
</form>

View file

@ -1,22 +1,22 @@
<!--#include("./header.html")-->
<!-- 카테고리 수정 -->
<!--@if($selected_category)-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/module/tpl/category_update_form/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="updateCategory" action="./" method="post" enctype="multipart/form-data" class="form">
<section class="section">
<form ruleset="updateCategory" action="./" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminUpdateCategory" />
<input type="hidden" name="module_category_srl" value="{$selected_category->module_category_srl}" />
<input type="hidden" name="mode" value="update" />
<ul>
<li>
<p class="q"><label for="category_title">{$lang->category_title}</label></p>
<p class="a"><input type="text" name="title" id="category_title" value="{$selected_category->title}" /></p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
</div>
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/category_update_form/1" />
<label for="category_title" style="display:inline-block;padding:4px 0 0 0"><strong>{$lang->category_title}</strong>: </label>
<span class="x_input-append">
<input type="text" name="title" id="category_title" value="{$selected_category->title}" />
<input type="submit" class="x_btn x_btn-primary" value="{$lang->cmd_registration}">
</span>
</form>
</section>
<!--@end-->

View file

@ -1,77 +1,78 @@
<load target="js/module_admin.js" usecdn="true" />
<h1 class="h1">{$lang->module_copy}</h1>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/module/tpl/copy_module/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<section class="section">
<form rule="copyModule" action="./" method="post">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminCopyModule" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<div class="table">
<table width="100%" border="1" cellspacing="0">
<tr>
<th scope="row">{$lang->module}</th>
<td >{$module_info->module}</td>
</tr>
<tr>
<th scope="row">{$lang->mid}</th>
<td>{$module_info->mid}</td>
</tr>
<tr>
<th scope="row">{$lang->browser_title}</th>
<td>{$module_info->browser_title}</td>
</tr>
</table>
</div>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<tr>
<th scope="col"><div>{$lang->mid}<div></th>
<th scope="col"><div>{$lang->browser_title}<div></th>
</tr>
<tr>
<td><input type="text" name="mid_1" /></td>
<td><input type="text" name="browser_title_1" /></td>
</tr>
<tr>
<td><input type="text" name="mid_2" /></td>
<td><input type="text" name="browser_title_2" /></td>
</tr>
<tr>
<td><input type="text" name="mid_3" /></td>
<td><input type="text" name="browser_title_3" /></td>
</tr>
<tr>
<td><input type="text" name="mid_4" /></td>
<td><input type="text" name="browser_title_4" /></td>
</tr>
<tr>
<td><input type="text" name="mid_5" /></td>
<td><input type="text" name="browser_title_5" /></td>
</tr>
<tr>
<td><input type="text" name="mid_6" /></td>
<td><input type="text" name="browser_title_6" /></td>
</tr>
<tr>
<td><input type="text" name="mid_7" /></td>
<td><input type="text" name="browser_title_7" /></td>
</tr>
<tr>
<td><input type="text" name="mid_8" /></td>
<td><input type="text" name="browser_title_8" /></td>
</tr>
<tr>
<td><input type="text" name="mid_9" /></td>
<td><input type="text" name="browser_title_9" /></td>
</tr>
<tr>
<td><input type="text" name="mid_10" /></td>
<td><input type="text" name="browser_title_10" /></td>
</tr>
</table>
</div>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span>
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/copy_module/1" />
<h2>{$lang->module_copy}</h2>
<table class="x_table x_table-striped x_table-hover">
<tr>
<th scope="row">{$lang->module}</th>
<td >{$module_info->module}</td>
</tr>
<tr>
<th scope="row">{$lang->mid}</th>
<td>{$module_info->mid}</td>
</tr>
<tr>
<th scope="row">{$lang->browser_title}</th>
<td>{$module_info->browser_title}</td>
</tr>
</table>
<table class="x_table x_table-striped x_table-hover">
<tr>
<th scope="col"><div>{$lang->mid}<div></th>
<th scope="col"><div>{$lang->browser_title}<div></th>
</tr>
<tr>
<td><input type="text" name="mid_1" /></td>
<td><input type="text" name="browser_title_1" /></td>
</tr>
<tr>
<td><input type="text" name="mid_2" /></td>
<td><input type="text" name="browser_title_2" /></td>
</tr>
<tr>
<td><input type="text" name="mid_3" /></td>
<td><input type="text" name="browser_title_3" /></td>
</tr>
<tr>
<td><input type="text" name="mid_4" /></td>
<td><input type="text" name="browser_title_4" /></td>
</tr>
<tr>
<td><input type="text" name="mid_5" /></td>
<td><input type="text" name="browser_title_5" /></td>
</tr>
<tr>
<td><input type="text" name="mid_6" /></td>
<td><input type="text" name="browser_title_6" /></td>
</tr>
<tr>
<td><input type="text" name="mid_7" /></td>
<td><input type="text" name="browser_title_7" /></td>
</tr>
<tr>
<td><input type="text" name="mid_8" /></td>
<td><input type="text" name="browser_title_8" /></td>
</tr>
<tr>
<td><input type="text" name="mid_9" /></td>
<td><input type="text" name="browser_title_9" /></td>
</tr>
<tr>
<td><input type="text" name="mid_10" /></td>
<td><input type="text" name="browser_title_10" /></td>
</tr>
</table>
<div class="x_clearfix">
<div class="x_btn-group x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div>
</div>
</form>
</section>

View file

@ -6,27 +6,25 @@
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="filter" value="{$filter}" />
<input type="hidden" name="input" value="{$input}" />
<div class="table">
<table width="100%" border="1" cellspacing="0">
<tbody>
<tr>
<th>{$lang->description}</th>
<td><input type="text" name="comment" /></td>
</tr>
<tr>
<th>{$lang->file}</th>
<td><input type="file" name="addfile" />
<p>
<!--@if($arrfilter && is_array($arrfilter))-->
{@sprintf($lang->about_file_extension,join(", ",$arrfilter ))}
<!--@end-->
</p>
</td>
</tr>
</tbody>
</table>
</div>
<table class="x_table x_table-striped x_table-hover">
<tbody>
<tr>
<th>{$lang->description}</th>
<td><input type="text" name="comment" /></td>
</tr>
<tr>
<th>{$lang->file}</th>
<td><input type="file" name="addfile" />
<p>
<!--@if($arrfilter && is_array($arrfilter))-->
{@sprintf($lang->about_file_extension,join(", ",$arrfilter ))}
<!--@end-->
</p>
</td>
</tr>
</tbody>
</table>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_submit}" /></span>
<input class="btn" type="submit" value="{$lang->cmd_submit}" />
</div>
</form>

View file

@ -1,48 +1,46 @@
<!--%load_js_plugin("filebox")-->
<h1 class="h1">{$lang->filebox}</h1>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<thead>
<tr>
<th>{$lang->file}</th>
<th>{$lang->description}</th>
<th>{$lang->regdate}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<table class="x_table x_table-striped x_table-hover">
<thead>
<tr>
<th>{$lang->file}</th>
<th>{$lang->description}</th>
<th>{$lang->regdate}</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<!--@foreach($filebox_list as $key=>$val)-->
<tr>
<td>
<div id="filebox_preview_{$val->module_filebox_srl}">
<!--@if($val->fileextension=='swf')-->
<object height="100" width="100" flashvars="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" xmlns="http://www.w3.org/1999/xhtml">
<param value="{getUrl('')}{$val->filename}" name="movie" xmlns="http://www.w3.org/1999/xhtml" />
<param value="transparent" name="wmode" xmlns="http://www.w3.org/1999/xhtml" />
<param value="sameDomain" name="allowScriptAccess" xmlns="http://www.w3.org/1999/xhtml" />
<param value="high" name="quality" xmlns="http://www.w3.org/1999/xhtml" />
<embed height="100" width="100" wmode="transparent" flashvars="" autostart="false" src="{getUrl('')}{$val->filename}" xmlns="http://www.w3.org/1999/xhtml" />
</object>
<!--@elseif(in_array($val->fileextension,array('gif','png','jpg','jpeg')))-->
<img src="{getUrl('')}{$val->filename}" width="100" height="100" />
<!--@end-->
</div>
</td>
<td >{$val->comment}&nbsp;</td>
<td>{zdate($val->regdate,'Y-m-d H:i')}</td>
<td>
<!--@if(!$filter || (is_array($arrfilter) && in_array($val->fileextension,$arrfilter)))-->
<button type="button" onclick="XE.filebox.selectFile('{getUrl('')}{$val->filename}','{$val->module_filebox_srl}');">{$lang->cmd_select}</button>
<tr>
<td>
<div id="filebox_preview_{$val->module_filebox_srl}">
<!--@if($val->fileextension=='swf')-->
<object height="100" width="100" flashvars="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" xmlns="http://www.w3.org/1999/xhtml">
<param value="{getUrl('')}{$val->filename}" name="movie" xmlns="http://www.w3.org/1999/xhtml" />
<param value="transparent" name="wmode" xmlns="http://www.w3.org/1999/xhtml" />
<param value="sameDomain" name="allowScriptAccess" xmlns="http://www.w3.org/1999/xhtml" />
<param value="high" name="quality" xmlns="http://www.w3.org/1999/xhtml" />
<embed height="100" width="100" wmode="transparent" flashvars="" autostart="false" src="{getUrl('')}{$val->filename}" xmlns="http://www.w3.org/1999/xhtml" />
</object>
<!--@elseif(in_array($val->fileextension,array('gif','png','jpg','jpeg')))-->
<img src="{getUrl('')}{$val->filename}" width="100" height="100" />
<!--@end-->
<button type="button" onclick="XE.filebox.deleteFile('{$val->module_filebox_srl}');">{$lang->cmd_delete}</button>
</td>
</tr>
</div>
</td>
<td >{$val->comment}&nbsp;</td>
<td>{zdate($val->regdate,'Y-m-d H:i')}</td>
<td>
<!--@if(!$filter || (is_array($arrfilter) && in_array($val->fileextension,$arrfilter)))-->
<button type="button" onclick="XE.filebox.selectFile('{getUrl('')}{$val->filename}','{$val->module_filebox_srl}');">{$lang->cmd_select}</button>
<!--@end-->
<button type="button" onclick="XE.filebox.deleteFile('{$val->module_filebox_srl}');">{$lang->cmd_delete}</button>
</td>
</tr>
<!--@end-->
</tbody>
</table>
</div>
</tbody>
</table>
<!-- 페이지 네비게이션 -->
<div class="pagination">
<a href="{getUrl('page','','module_srl','')}" class="direction">&lsaquo; {$lang->first_page}</a>
@ -56,5 +54,5 @@
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="direction">{$lang->last_page} &rsaquo;</a>
</div>
<div class="btnArea">
<span class="btn"><a href="{getUrl('','module','module','act','dispModuleFileBoxAdd','filter',$filter,'input',$input)}">{$lang->cmd_registration}</a></span>
<a class="btn" href="{getUrl('','module','module','act','dispModuleFileBoxAdd','filter',$filter,'input',$input)}">{$lang->cmd_registration}</a>
</div>

View file

@ -1,38 +1,80 @@
<p cond="!$filebox_list">Not a registered file.</p>
<ul cond="$filebox_list" class="lined">
<li loop="$filebox_list=>$key,$fileInfo">
<!--@if(!$allow_multiple)--><a href="#" class="select"><!--@end--><img class="filebox_item" src="{$fileInfo->filename}" /><!--@if(!$allow_multiple)--></a><!--@end-->
<!--@if($allow_multiple)--><input class="select_checkbox" type="checkbox" name="{$fileInfo->filename}" id="{$fileInfo->filename}"><!--@end-->
<!--@foreach($fileInfo->attributes as $key => $value)-->
<p class="q">{$key} : {$value}</p>
<!--@end-->
</li>
<!--@if($allow_multiple)--><li><a href="#" class="select">Select</a></li><!--@end-->
</ul>
<div class="pagination" cond="$page_navigation">
<a href="#" class="direction" page="1">&laquo; FIRST</a>
<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<a href="#" page="1">1</a>
<a href="#FileBoxGoTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
</block>
<block loop="$page_no = $page_navigation->getNextPage()">
{@$last_page = $page_no}
<strong cond="$page_no == $page">{$page_no}</strong>
<a cond="$page_no != $page" href="#" page="{$page_no}">{$page_no}</a>
</block>
<block cond="$last_page != $page_navigation->last_page">
{@$isGoTo = true}
<a href="#FileBoxGoTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<a href="#" page="{$page_navigation->last_page}">{$page_navigation->last_page}</a>
</block>
<a href="#" page="{$page_navigation->last_page}" class="direction">LAST &raquo;</a>
<span cond="$isGoTo" id="FileBoxGoTo" class="tgContent">
<input name="page" title="{$lang->cmd_go_to_page}" />
<button>Go</button>
<table cond="$filebox_list" class="x_table x_table-striped x_table-hover">
<col cond="$allow_multiple" style="width:25px" />
<col style="width:250px" />
<col />
<col cond="!$allow_multiple" style="width:50px; white-space:nowrap" />
<tbody>
<tr loop="$filebox_list => $key, $val">
<td>
<!--@if($val->fileextension=='swf')-->
<object height="100" width="100" flashvars="" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" xmlns="http://www.w3.org/1999/xhtml">
<param value="{getUrl('')}{$val->filename}" name="movie" xmlns="http://www.w3.org/1999/xhtml" />
<param value="transparent" name="wmode" xmlns="http://www.w3.org/1999/xhtml" />
<param value="sameDomain" name="allowScriptAccess" xmlns="http://www.w3.org/1999/xhtml" />
<param value="high" name="quality" xmlns="http://www.w3.org/1999/xhtml" />
<embed height="100" width="100" wmode="transparent" flashvars="" autostart="false" src="{getUrl('')}{$val->filename}" xmlns="http://www.w3.org/1999/xhtml" />
</object>
<!--@elseif(in_array($val->fileextension,array('gif','png','jpg','jpeg')))-->
<img src="{getUrl('')}{$val->filename}" class="filebox_item" />
<!--@end-->
</td>
<td>
<p loop="$val->attributes => $name, $value">
{htmlspecialchars($name)} : {$value}
</p>
</td>
<td cond="!$allow_multiple">
<button type="button" class="x_btn select" style="white-space:nowrap">{$lang->cmd_select}</button>
</td>
</tr>
</tbody>
</table>
<div cond="$allow_multiple">
<span class="x_pull-right x_btn-group">
<button class="x_btn select">{$lang->cmd_select}</button>
</span>
</div>
<script type="text/javascript">
jQuery('.pagination').xePagination();
<div cond="$page_navigation" class="x_pagination x_pagination-centered">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<ul>
<li class="x_disabled"|cond="!$page || $page == 1"><a href="#" page="1">&laquo; {$lang->first_page}</a></li>
<block cond="$page_navigation->first_page != 1 && $page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page - 1 && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<li>
<a href="#goToFileBox" data-toggle title="{$lang->cmd_go_to_page}">&hellip;</a>
<span cond="$isGoTo" id="goToFileBox" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<!--@while($page_no = $page_navigation->getNextPage())-->
{@$last_page = $page_no}
<li class="x_active"|cond="$page_no == $page"><a href="#" page="{$page_no}">{$page_no}</a></li>
<!--@end-->
<block cond="$last_page != $page_navigation->last_page && $last_page + 1 != $page_navigation->last_page">
{@$isGoTo = true}
<li>
<a href="#goToFileBox" data-toggle title="{$lang->cmd_go_to_page}">&hellip;</a>
<span cond="$isGoTo" id="goToFileBox" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<li class="x_disabled"|cond="$page == $page_navigation->last_page"><a href="#" page="{$page_navigation->last_page}" title="{$page_navigation->last_page}">{$lang->last_page} &raquo;</a></li>
</ul>
</div>
<script>
jQuery('a.tgAnchor').xeContentToggler();
</script>

View file

@ -1,4 +1,4 @@
<filter name="insert_grant" module="module" act="procModuleAdminInsertGrant" confirm_msg_code="confirm_submit">
<filter name="insert_grant" module="module" act="procModuleAdminInsertGrant">
<form>
<node target="module_srl" required="true" filter="number" />
</form>

View file

@ -1,14 +1,16 @@
<load target="js/module_admin.js" usecdn="true" />
<script type="text/javascript">
<div class="x_page-header">
<h1>{$lang->installed_modules} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_advanced_installed_module" target="_blank">{$lang->help}</a></h1>
</div>
<script>
xe.lang.favorite_on = '{$lang->favorite}({$lang->on})';
xe.lang.favorite_off = '{$lang->favorite}({$lang->off})';
</script>
<h1 class="h1">{$lang->installed_modules}</h1>
<div class="cnb">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminContent')}" class="active"|cond="$act=='dispModuleAdminContent'">{$lang->installed_modules}</a>
|
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminCategory')}" class="active"|cond="$act=='dispModuleAdminCategory'">{$lang->module_category}</a>
</div>
<ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="$act=='dispModuleAdminContent'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminContent')}">{$lang->installed_modules}</a>
</li>
<li class="x_active"|cond="$act=='dispModuleAdminCategory'">
<a href="{getUrl('', 'module', 'admin', 'act', 'dispModuleAdminCategory')}">{$lang->module_category}</a>
</li>
</ul>

View file

@ -0,0 +1,51 @@
<!--%load_js_plugin("filebox")-->
<section class="x_modal" id="modalFilebox" cond="$use_filebox">
<div class="x_modal-header">
<h1>File Box</h1>
</div>
<div class="x_modal-body">
<h2>{$lang->upload_file}</h2>
<form id="new_filebox_upload" action="./" class="x_form-horizontal" method="post" enctype="multipart/form-data">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleFileBoxAdd" />
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="filter" value="{$filter}" />
<input type="hidden" name="input" value="{$input}" />
<input type="hidden" name="ajax" value="true" />
<div class="x_control-group __attribute" data-count="1">
<label for="attribute_name1" class="x_control-label __attribute_name_label">{$lang->attribute_name}</label>
<div class="x_controls">
<input type="text" name="attribute_name[]" id="attribute_name1" class="__attribute_name" />
<label for="attribute_value1" class="x_inline __attribute_value_label">{$lang->attribute_value}
<input type="text" name="attribute_value[]" id="attribute_value1" class="__attribute_value" />
</label>
<span class="x_btn-group">
<button type="button" class="x_btn __addBtn" onclick="addRow('fileUp');">{$lang->cmd_add}</button>
<button type="button" class="x_btn __deleteBtn" onclick="clearRow(this);">{$lang->cmd_delete}</button>
</span>
</div>
</div>
<div class="x_control-group">
<label for="file" class="x_control-label">{$lang->file}</label>
<div class="x_controls">
<input type="file" name="addfile" id="file" />
</div>
</div>
<div class="btnArea">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
</div>
</form>
<h2>{$lang->cmd_list}</h2>
<div class="filebox_list"></div>
<style scoped>
.filebox_item{max-height:80px;max-width:200px}
</style>
</div>
<div class="x_modal-footer">
<button type="button" class="x_btn x_pull-left" data-hide="#modalFileBox">{$lang->cmd_close}</button>
</div>
</section>
<script>
xe.lang.cmd_delete = '{$lang->cmd_delete}';
</script>

View file

@ -1,33 +1,39 @@
<load target="js/manage_selected_module.js" usecdn="true" />
<div id="manageSelectedModule" class="modal">
<div class="fg">
<h2 class="h2">{$lang->do_selected}</h2>
<div class="table even">
<table width="100%" cellspacing="0" border="1">
<thead>
<tr>
<th scope="col">{$lang->mid}</th>
<th scope="col">{$lang->browser_title}</th>
</tr>
</thead>
<tbody id="manageSelectedModuleBody">
</tbody>
</table>
</div>
<div class="cnb">
<a href="#manageSelectedModuleSetup" class="tgAnchor">{$lang->bundle_setup}</a>
|
<a href="#manageSelectedModuleAddition" class="tgAnchor">{$lang->bundle_addition_setup}</a>
|
<a href="#manageSelectedModuleGrant" class="tgAnchor">{$lang->bundle_grant_setup}</a>
</div>
<include target="include.module_setup.html" />
<include target="include.module_addition_setup.html" />
<include target="include.module_grant_setup.html" />
<include target="include.multilang.textarea.html" />
<section id="manageSelectedModule" class="x_modal x">
<div class="x_modal-header">
<h1>{$lang->do_selected}</h1>
</div>
</div>
<div class="x_modal-body">
<table class="x_table x_table-striped x_table-hover" style="margin-bottom:20px">
<thead>
<tr>
<th scope="col">{$lang->mid}</th>
<th scope="col">{$lang->browser_title}</th>
</tr>
</thead>
<tbody id="manageSelectedModuleBody">
</tbody>
</table>
<div class="x_tabbable">
<ul class="x_nav x_nav-tabs">
<li class="x_active" cond="$tabChoice['tab1']"><a href="#tab1">{$lang->bundle_setup}</a></li>
<li cond="$tabChoice['tab2']"><a href="#tab2">{$lang->bundle_addition_setup}</a></li>
<li cond="$tabChoice['tab3']"><a href="#tab3">{$lang->bundle_grant_setup}</a></li>
</ul>
<div class="x_tab-content">
<div class="x_tab-pane x_active" id="tab1" cond="$tabChoice['tab1']">
<include target="include.module_setup.html" />
</div>
<div class="x_tab-pane" id="tab2" cond="$tabChoice['tab2']">
<include target="include.module_addition_setup.html" />
</div>
<div class="x_tab-pane" id="tab3" cond="$tabChoice['tab3']">
<include target="include.module_grant_setup.html" />
</div>
</div>
</div>
</div>
<div class="x_modal-footer">
<button type="button" class="x_btn x_pull-left" data-hide="#manageSelectedModule">{$lang->cmd_close}</button>
</div>
</section>

View file

@ -1,3 +1,3 @@
<div id="manageSelectedModuleAddition" class="tgContent">
<div id="manageSelectedModuleAddition">
{$setup_content}
</div>

View file

@ -1,49 +1,35 @@
<load target="js/module_admin.js" usecdn="true" />
<script type="text/javascript">
<script>
jQuery( function() { jQuery('.grant_default').change( function(event) { doShowGrantZone(); } ); doShowGrantZone() } );
</script>
<form ruleset="insertModulesGrant" action="./" method="post" id="manageSelectedModuleGrant">
<form ruleset="insertModulesGrant" action="./" method="post" id="manageSelectedModuleGrant" class="section x_form-horizontal">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminModuleGrantSetup" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<input type="hidden" name="module_srls" value="{$module_srls}" />
<h3 class="h3">{$lang->permission_setting}</h3>
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/manage_selected" />
<h1>{$lang->permission_setting}</h1>
<p>{$lang->about_grant_deatil}</p>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<thead>
<tr>
<th scope="col">{$lang->grant}</th>
<th scope="col" colspan="3">{$lang->target}</th>
</tr>
</thead>
<tbody>
<!--@foreach($grant_list as $grant_name => $grant_item)-->
<tr class="row{$cycle_idx}">
<th scope="row">{$grant_item->title}</th>
<td >
<select name="{$grant_name}_default" class="grant_default">
<!--@if($grant_item->default == 'guest')--><option value="0">{$lang->grant_to_all}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-1">{$lang->grant_to_login_user}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-2" <!--@if($default_grant[$grant_name]=='site')-->selected="selected"<!--@end-->>{$lang->grant_to_site_user}</option><!--@end-->
<option value="">{$lang->grant_to_group}</option>
</select>
<div id="zone_{$grant_name}" style="display:none">
<!--@foreach($group_list as $group_srl => $group_item)-->
<input type="checkbox" class="checkbox" name="{$grant_name}[]" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" />
<label for="grant_{$grant_name}_{$group_srl}">{$group_item->title}</label>
<!--@end-->
</div>
</td>
</tr>
<!--@end-->
</tbody>
</table>
<div loop="$grant_list => $grant_name, $grant_item" class="x_control-group">
<label class="x_control-label" for="{$grant_name}_default">{$grant_item->title}</label>
<div class="x_controls">
<select name="{$grant_name}_default" id="{$grant_name}_default" class="grant_default">
<option value="0" cond="$grant_item->default == 'guest'">{$lang->grant_to_all}</option>
<option value="-1" cond="$grant_item->default != 'manager'">{$lang->grant_to_login_user}</option>
<option value="-2" cond="$grant_item->default != 'manager'" selected="selected"|cond="$default_grant[$grant_name]=='site'">{$lang->grant_to_site_user}</option>
<option value="-3">{$lang->grant_to_admin}</option>
<option value="">{$lang->grant_to_group}</option>
</select>
<div id="zone_{$grant_name}" hidden style="margin-top:8px">
<label loop="$group_list => $group_srl, $group_item" for="grant_{$grant_name}_{$group_srl}">
<input type="checkbox" name="{$grant_name}[]" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" />
{$group_item->title}
</label>
</div>
</div>
</div>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
<input type="submit" class="x_btn x_btn-primary" value="{$lang->cmd_registration}" />
</div>
</form>

View file

@ -1,106 +1,94 @@
<div id="manageSelectedModuleSetup">
<h3 class="h3">{$lang->bundle_setup}</h3>
<form ruleset="insertModuleSetup" action="./" method="post" class="form tgContent">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminModuleSetup" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<input type="hidden" name="module_srls" value="" />
<ul>
<li>
<p class="q"><label for="module_category_srl">{$lang->module_category}</label></p>
<p class="a">
<select name="module_category_srl" id="module_category_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="0">{$lang->notuse}</option>
<!--@foreach($module_category as $key => $val)-->
<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
</p>
<p class="desc">{$lang->about_module_category}</p>
</li>
<li>
<p class="q"><label for="layout_srl">{$lang->layout}</label></p>
<p class="a">
<select name="layout_srl" id="layout_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<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="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
<!--@end-->
</select>
</p>
<p class="desc">{$lang->about_layout}</p>
</li>
<li cond="count($skin_list)">
<p class="q"><label for="skin">{$lang->skin}</label></p>
<p class="a">
<select name="skin" id="skin">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<!--@foreach($skin_list as $key=>$val)-->
<option value="{$key}" <!--@if($module_info->skin==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select>
</p>
<p class="desc">{$lang->about_skin}</p>
</li>
<!--li>
<p class="q"><label for="layout_srl">{$lang->mobile_view}</label></p>
<p class="a">
<input type="checkbox" name="use_mobile" id="use_mobile" value="Y" checked="checked"|cond="$module_info->use_mobile == 'Y'" /> <label for="use_mobile">{$lang->mobile_view}</label>
<input type="checkbox" name="keep_mobile_value" id="keep_mobile_value" value="Y" checked="checked"|cond="$module_info->use_mobile == 'Y'" /> <label for="use_mobile">{$lang->mobile_view}</label>
</p>
</li-->
<li>
<p class="q"><label for="mlayout_srl">{$lang->mobile_layout}</label></p>
<p class="a">
<select name="mlayout_srl" id="layout_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="0">{$lang->notuse}</option>
<option loop="$mlayout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->mlayout_srl== $val->layout_srl">{$val->title} ({$val->layout})</option>
</select>
</p>
</li>
<li>
<p class="q"><label for="mskin">{$lang->mobile_skin}</label></p>
<p class="a">
<select name="mskin" id="mskin">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option loop="$mskin_list=> $key, $val" value="{$key}" selected="selected"|cond="$module_info->mskin== $key">{$val->title}</option>
</select>
</p>
</li>
<li>
<p class="q"><label for="description">{$lang->description}</label></p>
<p class="a">
<textarea name="description" id="description" rows="8" cols="42">{htmlspecialchars($module_info->description)}</textarea>
</p>
<p class="desc">{$lang->about_description}</p>
</li>
<li>
<p class="q"><label for="header_text">{$lang->header_text}</label></p>
<p class="a multiLangEdit">
{@$use_multilang_textarea=true}
<input type="hidden" name="header_text" class="vLang" />
<textarea id="header_text" rows="8" cols="42" class="vLang"></textarea>
<span class="desc"><a href="#langEditTextarea" class="editUserLang tgAnchor">{$lang->cmd_set_multilingual}</a></span>
</p>
<p class="desc">{$lang->about_header_text}</p>
</li>
<li>
<p class="q"><label for="footer_text">{$lang->footer_text}</label></p>
<p class="a multiLangEdit">
<input type="hidden" name="footer_text" class="vLang" />
<textarea id="footer_text" rows="8" cols="42" class="vLang"></textarea>
<span class="desc"><a href="#langEditTextarea" class="editUserLang tgAnchor">{$lang->cmd_set_multilingual}</a></span>
</p>
<p class="desc">{$lang->about_footer_text}</p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
<form ruleset="insertModuleSetup" action="./" method="post" class="x_form-horizontal" id="manageSelectedModuleSetup">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminModuleSetup" />
<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
<input type="hidden" name="module_srls" value="" />
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/manage_selected" />
<div class="x_control-group">
<label class="x_control-label" for="module_category_srl">{$lang->module_category}</label>
<div class="x_controls">
<select name="module_category_srl" id="module_category_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="0">{$lang->notuse}</option>
<option loop="$module_category => $key, $val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl==$key">{$val->title}</option>
</select>
<p class="x_help-inline">{$lang->about_module_category}</p>
</div>
</form>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="layout_srl">{$lang->layout}</label>
<div class="x_controls">
<select name="layout_srl" id="layout_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="0">{$lang->notuse}</option>
<option loop="$layout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl==$val->layout_srl">{$val->title} ({$val->layout})</option>
</select>
<p class="x_help-inline">{$lang->about_layout}</p>
</div>
</div>
<div class="x_control-group" cond="count($skin_list)">
<label class="x_control-label" for="skin">{$lang->skin}</label>
<div class="x_controls">
<select name="skin" id="skin">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option loop="$skin_list => $key, $val" value="{$key}" selected="selected"|cond="$module_info->skin==$key">{$val->title}</option>
</select>
<p class="x_help-inline">{$lang->about_skin}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="use_mobile">{$lang->mobile_view}</label>
<div class="x_controls">
<select name="use_mobile" id="use_mobile">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="Y">{$lang->use}</option>
<option value="N">{$lang->notuse}</option>
</select>
<p class="x_help-inline">{$lang->about_mobile_view}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="mlayout_srl">{$lang->mobile_layout}</label>
<div class="x_controls">
<select name="mlayout_srl" id="mlayout_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="0">{$lang->notuse}</option>
<option loop="$mlayout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->mlayout_srl== $val->layout_srl">{$val->title} ({$val->layout})</option>
</select>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="mskin">{$lang->mobile_skin}</label>
<div class="x_controls">
<select name="mskin" id="mskin">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option loop="$mskin_list=> $key, $val" value="{$key}" selected="selected"|cond="$module_info->mskin== $key">{$val->title}</option>
</select>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="description">{$lang->description}</label>
<div class="x_controls">
<textarea name="description" id="description" rows="8" cols="42">{htmlspecialchars($module_info->description)}</textarea>
<p class="x_help-inline">{$lang->about_description}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="lang_header_text">{$lang->header_text}</label>
<div class="x_controls">
{@$use_multilang_textarea=true}
<textarea id="header_text" name="header_text" class="lang_code" rows="8" cols="42"></textarea>
<p class="x_help-inline" style="vertical-align:top">{$lang->about_header_text}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="lang_footer_text">{$lang->footer_text}</label>
<div class="x_controls">
<textarea id="footer_text" name="footer_text" class="lang_code" rows="8" cols="42"></textarea>
<p class="x_help-inline" style="vertical-align:top">{$lang->about_footer_text}</p>
</div>
</div>
<div class="btnArea">
<input type="submit" class="x_btn x_btn-primary" value="{$lang->cmd_registration}" />
</div>
</form>

View file

@ -1,23 +1 @@
<block cond="$use_multilang">
<div id="langEdit" class="langEdit tgContent">
<ul class="langList"></ul>
<div class="langInput form">
<h2>{$lang->multilingual} <strong>{$lang->cmd_modify}...</strong> | <a href="#langEdit">{$lang->cmd_insert}</a></h2>
<ul>
{@
/* move current language to the top */
$a = array($lang_type=>$lang_supported[$lang_type]);
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<li loop="$lang_supported=>$code,$name" class="{$code}"><label for="{$code}_var1">{$name}</label> <input type="text" value="" id="{$code}_var1" /></li>
</ul>
<div class="action">
<div class="btnArea">
<span class="btn small"><input type="submit" value="{$lang->use}|{$lang->use_after_save}" /></span>
</div>
<p><a href="{getUrl('act','dispModuleAdminLangcode')}">{$lang->multilingual_manager}</a></p>
</div>
</div>
</div>
</block>
<!--// no longer use, but avoid not found error, remain file -->

View file

@ -1,27 +1,2 @@
<block cond="$use_multilang_textarea">
<style type="text/css">
#langEditTextarea textarea { width: 258px; }
</style>
<!--// no longer use, but avoid not found error, remain file -->
<div id="langEditTextarea" class="langEdit tgContent">
<ul class="langList"></ul>
<div class="langInput form">
<h2>{$lang->multilingual} <strong>{$lang->cmd_modify}...</strong> | <a href="#langEdit">{$lang->cmd_insert}</a></h2>
<ul>
{@
/* move current language to the top */
$a = array($lang_type=>$lang_supported[$lang_type]);
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<li loop="$lang_supported=>$code,$name" class="{$code}"><label for="{$code}_var1">{$name}</label> <textarea id="{$code}_var1" rows="8" cols="42"></textarea></li>
</ul>
<div class="action">
<div class="btnArea">
<span class="btn small"><input type="submit" value="{$lang->use}|{$lang->use_after_save}" /></span>
</div>
<p><a href="{getUrl('act','dispModuleAdminLangcode')}">{$lang->multilingual_manager}</a></p>
</div>
</div>
</div>
</block>

View file

@ -24,8 +24,11 @@ $('a.modalAnchor[href=#manageSelectedModule]')
var module_srls = new Array();
$selectedModule.each(function(){
var $this = $(this);
var row = '<tr><td>' + $this.data('mid') + '</td><td>' + $this.data('browser_title') + '</td></tr>';
$selectedBody.append(row);
var $row = $('<tr></tr>');
var $mid = $('<td></td>').text($this.data('mid'));
var $browser_title = $('<td></td>').text($this.data('browser_title'));
$row.append($mid).append($browser_title);
$selectedBody.append($row);
module_srls.push($this.val());
});
@ -34,4 +37,4 @@ $('a.modalAnchor[href=#manageSelectedModule]')
$('#manageSelectedModuleGrant input[name=module_srls]').val(module_srls);
});
});
});

View file

@ -0,0 +1,58 @@
(function($){
xe.MidManager = xe.createApp("MidManager", {
$keyObj: null,
init: function(key){
var self = this;
var $keyObj = this.$keyObj = $('input[name='+key+']');
$keyObj.parent().find('button.delete,a.delete').bind('click', function(){
$keyObj.val('').next().val('');
return false;
});
jQuery(function($){
$keyObj.siblings('.moduleTrigger').bind('moduleSelect', function(e, aSelected){
self.cast('MID_SYNC_NEW', aSelected);
});
});
self.cast('MID_SYNC');
},
API_MID_SYNC: function(){
var self = this;
var $finder = self.$keyObj.closest('.modulefinder');
var module_srl = this.$keyObj.val();
if (!module_srl) return;
function on_complete(data){
if (data.error){
alert(data.message);
return;
}
self.$keyObj.val(data.module_list[0].module_srl);
self.$keyObj.next().val(data.module_list[0].browser_title+' ('+data.module_list[0].mid+', '+data.module_list[0].module_name+')');
}
$.exec_json('module.getModuleAdminModuleList', {'module_srls': module_srl}, on_complete);
},
API_MID_SYNC_NEW: function(htBase, aParam){
var self = this;
htSelected = aParam[0];
var module_srl = htSelected.module_srl;
if (!module_srl) return;
self.$keyObj.val(htSelected.module_srl);
self.$keyObj.next().val(htSelected.browser_title+' ('+htSelected.mid+', '+htSelected.type+')');
}
});
})(jQuery);

View file

@ -92,7 +92,7 @@ function doShowGrantZone() {
/* 권한 등록 후 알림 메세지 */
function completeInsertGrant(ret_obj) {
alert(ret_obj['message']);
// alert(ret_obj['message']);
location.reload();
}

View file

@ -0,0 +1,113 @@
(function($){
xe.ModuleListManager = xe.createApp("ModuleListManager", {
$keyObj: null,
$moduleNameObj: null,
$moduleSrlObj: null,
$selectedObj: null,
init: function(key){
var self = this;
var $keyObj = this.$keyObj = $('input[name='+key+']');
this.$moduleNameObj = $keyObj.parent().find('.moduleList');
this.$moduleSrlObj = $keyObj.parent().find('.moduleIdList');
this.$selectedObj = $keyObj.parent().find('.modulelist_selected');
this.$selectedObj
.nextAll('button')
.filter('.modulelist_del').bind('click', function(){ self.cast('MODULELIST_DEL'); return false; }).end()
.filter('.modulelist_up').bind('click', function(){ self.cast('MODULELIST_UP'); return false; }).end()
.filter('.modulelist_down').bind('click', function(){ self.cast('MODULELIST_DOWN'); return false; }).end()
.end()
.bind('show', function(){
$(this).nextAll().show();
});
this.$selectedObj.nextAll('a').filter('.moduleTrigger').bind('moduleSelect', function(e, aSelected){
var sType, sName, sSrl;
for(var i=0, nLen=aSelected.length; i<nLen; i++){
sType = aSelected[i].mid + ', ' + aSelected[i].type;
sName = aSelected[i].browser_title;
sSrl = aSelected[i].module_srl;
self.cast("ADD_MODULE_TO_MODULELIST_MANAGER", [sType, sName, sSrl]);
}
}).end()
this.cast('MODULELIST_SYNC');
},
addModule: function(sModuleType, sModuleInstanceName, sModuleSrl){
$('<OPTION>').val(sModuleSrl).text(sModuleInstanceName + ' ('+sModuleType+')').appendTo(this.$selectedObj);
this.removeDuplicated();
this.refreshValue();
},
API_ADD_MODULE_TO_MODULELIST_MANAGER : function(sender, aParams){
this.addModule(aParams[0], aParams[1], aParams[2]);
},
API_MODULELIST_ADD: function(){
var sModuleType = this.$moduleNameObj.find('>option:selected').text();
var sModuleInstanceName = this.$moduleSrlObj.find('>option:selected').text();
var sModuleSrl = this.$moduleSrlObj.find('>option:selected').val();
this.addModule(sModuleType, sModuleInstanceName, sModuleSrl);
},
API_MODULELIST_DEL: function(){
this.$selectedObj.find('>option:selected').remove();
this.refreshValue();
},
API_MODULELIST_UP: function(){
var $selected = this.$selectedObj.find('>option:selected');
$selected.eq(0).prev('option').before($selected);
this.refreshValue();
},
API_MODULELIST_DOWN: function(){
var $selected = this.$selectedObj.find('>option:selected');
$selected.eq(-1).next('option').after($selected);
this.refreshValue();
},
API_MODULELIST_SYNC: function(){
var values = this.$keyObj.val();
if (!values) return;
var self = this;
function on_complete(data){
if (data.error) return;
for(var i in data.module_list){
var module = data.module_list[i];
var obj = $(document.createElement('option'));
obj.val(module.module_srl).html(module.browser_title + ' (' + module.mid + ', ' + module.module_name + ')').appendTo(self.$selectedObj);
}
}
$.exec_json('module.getModuleAdminModuleList', {'module_srls': values}, on_complete);
},
removeDuplicated : function() {
var selected = {};
this.$selectedObj.find('>option').each(function(){
if(selected[this.value]) $(this).remove();
selected[this.value] = true;
});
},
refreshValue : function() {
var srls = [];
this.$selectedObj.find('>option').each(function(){
srls.push(this.value);
});
this.$keyObj.val(srls.join(','));
}
});
})(jQuery);

View file

@ -11,8 +11,8 @@ xe.MultiOrderManager = xe.createApp("MultiOrderManager", {
this.$showObj = $keyObj.parent().find('.multiorder_show');
this.$selectedObj = $keyObj.parent().find('.multiorder_selected');
this.$showObj
.nextAll('button')
this.$keyObj.parent()
.find('button')
.filter('.multiorder_add').bind('click', function(){ self.cast('MULTIORDER_ADD'); return false; }).end()
.filter('.multiorder_del').bind('click', function(){ self.cast('MULTIORDER_DEL'); return false; }).end()
.filter('.multiorder_up').bind('click', function(){ self.cast('MULTIORDER_UP'); return false; }).end()
@ -72,4 +72,4 @@ xe.MultiOrderManager = xe.createApp("MultiOrderManager", {
}
});
})(jQuery);
})(jQuery);

View file

@ -1,2 +1,2 @@
<h1 class="h1">{$lang->bundle_addition_setup}</h1>
<h1>{$lang->bundle_addition_setup}</h1>
{$setup_content}

View file

@ -1,51 +1,42 @@
<load target="js/module_admin.js" usecdn="true" />
<script type="text/javascript">
<script>
jQuery( function() { jQuery('.grant_default').change( function(event) { doShowGrantZone(); } ); doShowGrantZone() } );
</script>
<h1 class="h1">{$lang->bundle_grant_setup}</h1>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertModulesGrant" action="./" method="post" id="fo_obj">
<form ruleset="insertModulesGrant" action="./" method="post" id="fo_obj" class="x_form-horizontal" style="margin:0">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminModuleGrantSetup" />
<input type="hidden" name="module_srls" value="{$module_srls}" />
<h2 class="h2">{$lang->permission_setting}</h2>
<p>{$lang->about_grant_deatil}</p>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<thead>
<tr>
<th scope="col">{$lang->grant}</th>
<th scope="col" colspan="3">{$lang->target}</th>
</tr>
</thead>
<tbody>
<!--@foreach($grant_list as $grant_name => $grant_item)-->
<tr class="row{$cycle_idx}">
<th scope="row">{$grant_item->title}</th>
<td >
<select name="{$grant_name}_default" class="grant_default">
<!--@if($grant_item->default == 'guest')--><option value="0">{$lang->grant_to_all}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-1">{$lang->grant_to_login_user}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-2" <!--@if($default_grant[$grant_name]=='site')-->selected="selected"<!--@end-->>{$lang->grant_to_site_user}</option><!--@end-->
<option value="">{$lang->grant_to_group}</option>
</select>
<div id="zone_{$grant_name}" style="display:none">
<!--@foreach($group_list as $group_srl => $group_item)-->
<input type="checkbox" class="checkbox" name="{$grant_name}" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" />
<label for="grant_{$grant_name}_{$group_srl}">{$group_item->title}</label>
<!--@end-->
</div>
</td>
</tr>
<!--@end-->
</tbody>
</table>
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/module_grant_setup/1" />
<div class="x_modal-header">
<h1>{$lang->bundle_grant_setup}</h1>
</div>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/module/tpl/module_grant_setup/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<div class="x_modal-body">
<div class="x_control-group" loop="$grant_list => $grant_name, $grant_item">
<label class="x_control-label" for="">{$grant_item->title}</label>
<div class="x_controls">
<select name="{$grant_name}_default" class="grant_default">
<option value="0" cond="$grant_item->default == 'guest'">{$lang->grant_to_all}</option>
<option value="-1" cond="$grant_item->default != 'manager'">{$lang->grant_to_login_user}</option>
<option value="-2" cond="$grant_item->default != 'manager'" selected="selected"|cond="$default_grant[$grant_name]=='site'">{$lang->grant_to_site_user}</option>
<option value="-3">{$lang->grant_to_admin}</option>
<option value="">{$lang->grant_to_group}</option>
</select>
<a href="#aboutGrantDetail" class="x_icon-question-sign" cond="$grant_name=='access'" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutGrantDetail" cond="$grant_name=='access'" hidden>{$lang->about_grant_deatil}</p>
<div id="zone_{$grant_name}" hidden style="margin:8px 0 0 0">
<label loop="$group_list => $group_srl, $group_item" for="grant_{$grant_name}_{$group_srl}">
<input type="checkbox" class="checkbox" name="{$grant_name}" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" />
{$group_item->title}
</label>
</div>
</div>
</div>
</div>
<div class="x_modal-footer">
<input type="submit" class="x_btn x_btn-primary" value="{$lang->cmd_registration}" />
</div>
</form>

View file

@ -1,73 +1,70 @@
<!--%import("filter/insert_grant.xml")-->
<load target="js/module_admin.js" usecdn="true" />
<script type="text/javascript">
<script>
jQuery( function() { jQuery('.grant_default').change( function(event) { doShowGrantZone(); } ); doShowGrantZone() } );
</script>
<form action="./" method="post" onsubmit="return procFilter(this, insert_grant)" id="fo_obj" class="form">
<form action="./" method="post" onsubmit="return procFilter(this, insert_grant)" id="fo_obj">
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="admin_member" value="<!--@foreach($admin_member as $key => $val)--><!--@if($member_config->identifier == 'email_address')-->{$val->email_address},<!--@else-->{$val->user_id},<!--@end--><!--@end-->" />
<h2 class="h2">{$lang->module_admin}</h2>
<p>{$lang->about_admin_id}</p>
<ul>
<li>
<p class="q">
<!--@if($member_config->identifier == 'email_address')-->
{$lang->admin_email_address}
<!--@else-->
{$lang->admin_id}
<!--@end-->
</p>
<p class="a">
<select name="_admin_member" multiple="multiple" size="{count($admin_member)?count($admin_member):1}" style="width:290px">
<!--@foreach($admin_member as $key => $val)-->
<option value="<!--@if($member_config->identifier=='email_address')-->{$val->email_address}<!--@else-->{$val->user_id}<!--@end-->">{$val->nick_name} (<!--@if($member_config->identifier=='email_address')-->{$val->email_address}<!--@else-->{$val->user_id}<!--@end-->)</option>
<!--@end-->
</select>
<br />
<input type="text" name="admin_id" />
<span class="btn"><button type="button" onclick="doInsertAdmin()">{$lang->cmd_insert}</button></span>
<span class="btn"><button type="button" onclick="doDeleteAdmin()">{$lang->cmd_delete}</button></span>
</p>
</li>
</ul>
<h2 class="h2">{$lang->permission_setting}</h2>
<p>{$lang->about_grant_deatil}</p>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<thead>
<tr>
<th scope="col">{$lang->grant}</th>
<th scope="col" colspan="3">{$lang->target}</th>
</tr>
</thead>
<tbody>
<!--@foreach($grant_list as $grant_name => $grant_item)-->
<tr>
<th scope="row">{$grant_item->title}</th>
<td >
<select name="{$grant_name}_default" class="grant_default">
<!--@if($grant_item->default == 'guest')--><option value="0" <!--@if($default_grant[$grant_name]=='all')-->selected="selected"<!--@end-->>{$lang->grant_to_all}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-1" <!--@if($default_grant[$grant_name]=='member')-->selected="selected"<!--@end-->>{$lang->grant_to_login_user}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-2" <!--@if($default_grant[$grant_name]=='site')-->selected="selected"<!--@end-->>{$lang->grant_to_site_user}</option><!--@end-->
<option value="" <!--@if($default_grant[$grant_name]=='group')-->selected="selected"<!--@end-->>{$lang->grant_to_group}</option>
</select>
<div id="zone_{$grant_name}" style="display:none">
<!--@foreach($group_list as $group_srl => $group_item)-->
<input type="checkbox" class="checkbox" name="{$grant_name}" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" <!--@if(is_array($selected_group[$grant_name])&&in_array($group_srl,$selected_group[$grant_name]))-->checked="checked"<!--@end-->/>
<label for="grant_{$grant_name}_{$group_srl}">{$group_item->title}</label>
<!--@end-->
</div>
</td>
</tr>
<!--@end-->
</tbody>
</table>
<div class="section x_form-horizontal">
<h1>{$lang->module_admin}</h1>
<div class="x_control-group">
<label class="x_control-label" cond="$member_config->identifier == 'email_address'">
{$lang->admin_email_address}
</label>
<label class="x_control-label" cond="$member_config->identifier != 'email_address'">
{$lang->admin_id}
</label>
<div class="x_controls">
<div class="x_input-append" style="margin-bottom:8px">
<select name="_admin_member" multiple="multiple" size="{count($admin_member)?count($admin_member):1}">
<option loop="$admin_member => $key, $val" value="{$val->email_address}"|cond="$member_config->identifier=='email_address'" value="{$val->user_id}"|cond="$member_config->identifier!='email_address'">
{$val->nick_name} (<block cond="$member_config->identifier=='email_address'">{$val->email_address}</block><block cond="$member_config->identifier!='email_address'">{$val->user_id}</block>)
</option>
</select>
<button class="x_btn" type="button" onclick="doDeleteAdmin()">{$lang->cmd_delete}</button>
</div>
<br>
<div class="x_input-append">
<input type="text" name="admin_id" />
<button class="x_btn" type="button" onclick="doInsertAdmin()">{$lang->cmd_insert}</button>
</div>
<a href="#adminListHelp" class="x_icon-question-sign">{$lang->help}</a>
<span id="adminListHelp" hidden>{$lang->about_admin_id}</span>
</div>
</div>
</div>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span>
<div class="section">
<h1>{$lang->permission_setting}</h1>
<div class="x_form-horizontal">
<div loop="$grant_list => $grant_name, $grant_item" class="x_control-group">
<label for="{$grant_name}_default" class="x_control-label">{$grant_item->title}</label>
<div class="x_controls">
<select name="{$grant_name}_default" id="{$grant_name}_default" class="grant_default">
<!--@if($grant_item->default == 'guest')--><option value="0" <!--@if($default_grant[$grant_name]=='all')-->selected="selected"<!--@end-->>{$lang->grant_to_all}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-1" <!--@if($default_grant[$grant_name]=='member')-->selected="selected"<!--@end-->>{$lang->grant_to_login_user}</option><!--@end-->
<!--@if($grant_item->default != 'manager')--><option value="-2" <!--@if($default_grant[$grant_name]=='site')-->selected="selected"<!--@end-->>{$lang->grant_to_site_user}</option><!--@end-->
<option value="-3" <!--@if($default_grant[$grant_name]=='manager')-->selected="selected"<!--@end-->>{$lang->grant_to_admin}</option>
<option value="" <!--@if($default_grant[$grant_name]=='group')-->selected="selected"<!--@end-->>{$lang->grant_to_group}</option>
</select>
<p class="x_help-inline" cond="$grant_name == 'access'"><a href="#{$grant_name}" class="x_icon-question-sign" data-toggle>{$lang->help}</a> <span hidden id="{$grant_name}">{$lang->about_grant_deatil}</span></p>
<div id="zone_{$grant_name}" hidden style="margin:8px 0 0 0">
<!--@foreach($group_list as $group_srl => $group_item)-->
<label for="grant_{$grant_name}_{$group_srl}" class="x_inline"><input type="checkbox" class="checkbox" name="{$grant_name}" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" checked="checked"|cond="is_array($selected_group[$grant_name])&&in_array($group_srl,$selected_group[$grant_name])" /> {$group_item->title}</label>
<!--@end-->
</div>
</div>
</div>
</div>
</div>
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button class="x_btn x_btn-primary" type="submit">{$lang->cmd_save}</button>
</div>
</div>
</form>

View file

@ -1,82 +1,78 @@
<h1 class="h1">{$lang->module_maker}</h1>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<tr>
<th scope="row">{$lang->title}</th>
<td>{$module_info->title} ver {$module_info->version}</td>
</tr>
<tr>
<th scope="row">{$lang->author}</th>
<td class="blue">
<!--@foreach($module_info->author as $author)-->
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
<!--@if($module_info->homepage)-->
<tr>
<th scope="row">{$lang->homepage}</th>
<td class="blue"><a href="{$module_info->homepage}" onclick="window.open(this.href);return false;">{$module_info->homepage}</a></td>
</tr>
<!--@endif-->
<tr>
<th scope="row">{$lang->regdate}</th>
<td>{zdate($module_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($module_info->license || $module_info->license_link)-->
<tr>
<th scope="row">{$lang->module_license}</th>
<td>
{nl2br(trim($module_info->license))}
<!--@if($module_info->license_link)-->
<p><a href="{$module_info->license_link}" onclick="window.close(); return false;">{$module_info->license_link}</a></p>
<!--@end-->
</td>
</tr>
<!--@endif--><!--@if($module_info->description)-->
<tr>
<th scope="row">{$lang->description}</th>
<td>{nl2br(trim($module_info->description))}</td>
</tr>
<!--@endif-->
</table>
</div>
<h1>{$lang->module_maker}</h1>
<table class="x_table x_table-striped x_table-hover">
<tr>
<th scope="row">{$lang->title}</th>
<td>{$module_info->title} ver {$module_info->version}</td>
</tr>
<tr>
<th scope="row">{$lang->author}</th>
<td class="blue">
<!--@foreach($module_info->author as $author)-->
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
<!--@if($module_info->homepage)-->
<tr>
<th scope="row">{$lang->homepage}</th>
<td class="blue"><a href="{$module_info->homepage}" onclick="window.open(this.href);return false;">{$module_info->homepage}</a></td>
</tr>
<!--@endif-->
<tr>
<th scope="row">{$lang->regdate}</th>
<td>{zdate($module_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($module_info->license || $module_info->license_link)-->
<tr>
<th scope="row">{$lang->module_license}</th>
<td>
{nl2br(trim($module_info->license))}
<!--@if($module_info->license_link)-->
<p><a href="{$module_info->license_link}" onclick="window.close(); return false;">{$module_info->license_link}</a></p>
<!--@end-->
</td>
</tr>
<!--@endif--><!--@if($module_info->description)-->
<tr>
<th scope="row">{$lang->description}</th>
<td>{nl2br(trim($module_info->description))}</td>
</tr>
<!--@endif-->
</table>
<!--@if($module_info->history)-->
<h1 class="h1">{$lang->module_history}</h1>
<h1>{$lang->module_history}</h1>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<col width="100" />
<col />
<table class="x_table x_table-striped x_table-hover">
<col width="100" />
<col />
<!--@foreach($module_info->history as $history)-->
<tr>
<th scope="row">
{$history->version}<br />
{$history->date}
</th>
<td>
<!--@foreach($history->author as $author)-->
<p>{$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>)</p>
<!--@endforeach-->
<!--@if($addon_info->description)-->
<p>{nl2br(trim($history->description))}</p>
<!--@endif-->
<!--@if($history->logs)-->
<ul>
<!--@foreach($history->logs as $log)-->
<!--@if($log->link)-->
<li><a href="{$log->text}" onclick="window.open(this.href);return false;">{$log->text}</a></li>
<!--@else-->
<li>{$log->text}</li>
<!--@endif-->
<!--@endforeach-->
</ul>
<!--@endif-->
</td>
</tr>
<!--@endforeach-->
</table>
</div>
<!--@foreach($module_info->history as $history)-->
<tr>
<th scope="row">
{$history->version}<br />
{$history->date}
</th>
<td>
<!--@foreach($history->author as $author)-->
<p>{$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>)</p>
<!--@endforeach-->
<!--@if($addon_info->description)-->
<p>{nl2br(trim($history->description))}</p>
<!--@endif-->
<!--@if($history->logs)-->
<ul>
<!--@foreach($history->logs as $log)-->
<!--@if($log->link)-->
<li><a href="{$log->text}" onclick="window.open(this.href);return false;">{$log->text}</a></li>
<!--@else-->
<li>{$log->text}</li>
<!--@endif-->
<!--@endforeach-->
</ul>
<!--@endif-->
</td>
</tr>
<!--@endforeach-->
</table>
<!--@endif-->

View file

@ -1,96 +1,22 @@
<load target="js/multilingual.js" usecdn="true" />
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
<div class="x_page-header">
<h1>{$lang->cmd_multilingual} <a class="x_icon-question-sign" href="./admin/help/index.html#UMAN_content_langcode" target="_blank">{$lang->help}</a></h1>
</div>
<h1 class="h1">{$lang->menu_gnb_sub['multilingual']}</h1>
<p>{$lang->multilingual_desc}</p>
<div class="mLangEdit ko form"><!-- class="mLangEdit LANGCODE" -->
<div class="btnArea">
<span class="btn"><a href="#addWord" class="modalAnchor">{$lang->add_word}</a></span>
</div>
<ul id="langList">
<li cond="!is_array($lang_code_list) || count($lang_code_list) < 1">
<p>{$lang->no_multi_lang}</p>
</li>
<li loop="$lang_code_list=>$key,$value">
{@$langName = $value->name}
<strong>{$value->value}</strong> <span class="side"><button type="button" class="text" cond="$module != 'admin'" onclick="doInsertLangCode('{$value->name}', '{$target}')">{$lang->cmd_apply}</button><button type="button" class="text _edit">{$lang->cmd_edit}</button></span>
<form action="./" method="post" id="langForm_{$langName}" >
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="procModuleAdminInsertLang" />
<input type="hidden" name="lang_name" value="{$langName}" />
<ul>
{@
/* move current language to the top */
$a = array($lang_type=>$lang_supported[$lang_type]);
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<li class="{$key2}" loop="$lang_supported=>$key2,$value2"><label for="{$langName}_{$key2}">{$value2}</label> <textarea rows="1" cols="42" name="{$key2}" id="{$langName}_{$key2}"></textarea></li>
</ul>
<div class="btnArea">
<button type="submit" name="act" value="procModuleAdminInsertLang">{$lang->cmd_save}</button>
<button type="submit" name="act" value="procModuleAdminDeleteLang">{$lang->cmd_delete}</button>
</div>
</form>
</li>
</ul>
<div class="btnArea">
<span class="btn"><a href="#addWord" class="modalAnchor">{$lang->add_word}</a></span>
</div>
</div>
<div class="modal" id="addWord">
<form action="./" method="post" class="form mLangEdit fg" id="langForm_new" >
<input type="hidden" name="act" value="procModuleAdminInsertLang" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="target" value="{$target}" />
<h2 class="h2">{$lang->add_word}</h2>
<ul>
<li class="{$key2}" loop="$lang_supported=>$key2,$value2"><label for="{$langName}_{$key2}">{$value2}</label> <textarea rows="1" cols="42" name="{$key2}" id="{$langName}_{$key2}"></textarea></li>
</ul>
<div class="btnArea">
<span class="btn small"><button type="submit">{$lang->cmd_save}</button></span>
</div>
</form>
</div>
<div class="search">
<form action="" class="pagination">
<input type="hidden" name="error_return_url" value="" />
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
<input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" />
<a href="{getUrl('page', '')}" class="direction">&laquo; FIRST</a>
<block cond="$page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<a href="{getUrl('page', '')}">1</a>
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
</block>
<block loop="$page_no = $page_navigation->getNextPage()">
{@$last_page = $page_no}
<strong cond="$page_no == $page">{$page_no}</strong>
<a cond="$page_no != $page" href="{getUrl('page', $page_no)}">{$page_no}</a>
</block>
<block cond="$last_page != $page_navigation->last_page">
{@$isGoTo = true}
<a href="#goTo" class="tgAnchor" title="{$lang->cmd_go_to_page}">...</a>
<a href="{getUrl('page', $page_navigation->last_page)}">{$page_navigation->last_page}</a>
</block>
<a href="{getUrl('page', $page_navigation->last_page)}" class="direction">LAST &raquo;</a>
<span cond="$isGoTo" id="goTo" class="tgContent">
<input name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit">Go</button>
</span>
</form>
<form action="./" method="get">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="search_target" value="value" />
<input type="hidden" name="error_return_url" value="" />
<input type="hidden" name="target" value="{$target}" />
<input title="search" name="search_keyword" value="{htmlspecialchars($search_keyword)}" />
<input type="submit" value="{$lang->cmd_search}" />
</form>
</div>
{@$use_in_page = true}
<include target="multilingual_v17.html" />
<script>
jQuery(function($){
$('#g11n')
.xeMultilingualWindow(
{
create_type: 'save',
modify_type: 'save',
view_delete: true,
view_use: false,
list_count: 10
}
)
.trigger('before-open.g11n');
});
</script>

View file

@ -1,62 +1,62 @@
<include target="header.html" />
<div class="table even easyList dsTg">
<table width="100%" border="1" cellspacing="0">
<caption>
All({count($module_list)})
<span class="side"><button type="button" class="text"><span class="hide">{$lang->simple_view}</span><span class="show">{$lang->detail_view}</span></button></span>
</caption>
<thead>
<tr>
<th scope="col" class="nowr">{$lang->favorite}</th>
<th scope="col" class="title">{$lang->module_name}</th>
<th scope="col" class="nowr">{$lang->version}</th>
<th scope="col" class="nowr">{$lang->author}</th>
<th scope="col" class="nowr">{$lang->path}</th>
<th scope="col" class="nowr">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<!--@foreach($module_list as $key => $val)-->
<tr>
<td class="nowr">
<!--@if(in_array($val->module,$favoriteModuleList))-->
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->on})</button>
<!--@else-->
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}'); return false;">{$lang->favorite}({$lang->off})</button>
<!--@end-->
</td>
<td class="title">
<p>
<!--@if($val->admin_index_act)-->
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}">{$val->title}</a>
<!--@else-->
<strong>{$val->title}</strong>
<!--@end-->
</p>
<p>{$val->description}</p>
<p cond="$val->need_install" class="update">{$lang->msg_avail_install} <button class="text" type="button" onclick="doInstallModule('{$val->module}')">{$lang->msg_do_you_like_install}</button></p>
<p cond="$val->need_update" class="update">{$lang->msg_avail_update} <button class="text" type="button" onclick="doUpdateModule('{$val->module}')">{$lang->msg_do_you_like_update}</button></p>
<p cond="$val->need_autoinstall_update == 'Y'" class="update">{$lang->msg_avail_easy_update}<a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p>
</td>
<td class="nowr">{$val->version}</td>
<td class="nowr">
<!--@foreach($val->author as $author)-->
<!--@if($author->homepage)-->
<a href="{$author->homepage}" onclick="window.open(this.href);return false;" target="_blank">{$author->name}</a>
<!--@else-->
{$author->name}
<!--@endif-->
<!--@endforeach-->
</td>
<td class="nowr">{$val->path}</td>
<td class="nowr">
<!--@if($val->delete_url)-->
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a>
<!--@end-->
</td>
</tr>
<!--@end-->
</tbody>
</table>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/autoinstall/tpl/uninstall/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<table class="x_table x_table-striped x_table-hover">
<caption>
<strong>All({count($module_list)})</strong>
</caption>
<thead>
<tr>
<th class="nowr">{$lang->favorite}</th>
<th class="title">{$lang->module_name}</th>
<th class="nowr">{$lang->version}</th>
<th class="nowr">{$lang->author}</th>
<th class="nowr">{$lang->path}</th>
<th class="nowr">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<tr loop="$module_list => $key,$val" data-type1="#"|cond="in_array($val->module,$favoriteModuleList)" data-type2="#"|cond="$val->need_install || $val->need_update || $val->need_autoinstall_update">
<td>
<button type="button" class="fvOn" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="in_array($val->module,$favoriteModuleList)">{$lang->favorite}({$lang->on})</button>
<button type="button" class="fvOff" onclick="doToggleFavoriteModule(this, '{$val->module}')" cond="!in_array($val->module,$favoriteModuleList)">{$lang->favorite}({$lang->off})</button>
</td>
<td class="title">
<p>
<a href="{getUrl('','module','admin','act',$val->admin_index_act)}" cond="$val->admin_index_act">{$val->title}</a>
<strong cond="!$val->admin_index_act">{$val->title}</strong>
</p>
<p>{$val->description}</p>
<p cond="$val->need_install" class="x_alert x_alert-info">{$lang->msg_avail_install} <button class="text" type="button" onclick="doInstallModule('{$val->module}')">{$lang->msg_do_you_like_install}</button></p>
<p cond="$val->need_update" class="x_alert x_alert-info">{$lang->msg_avail_update} <button class="text" type="button" onclick="doUpdateModule('{$val->module}')">{$lang->msg_do_you_like_update}</button></p>
<p cond="$val->need_autoinstall_update == 'Y'" class="x_alert x_alert-info">{$lang->msg_avail_easy_update} <a href="{$val->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a></p>
</td>
<td>{$val->version}</td>
<td class="nowr">
<!--@foreach($val->author as $author)-->
<!--@if($author->homepage)-->
<a href="{$author->homepage}" target="_blank">{$author->name}</a>
<!--@else-->
{$author->name}
<!--@endif-->
<!--@endforeach-->
</td>
<td>{$val->path}</td>
<td>
<a href="{$val->delete_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}" cond="$val->delete_url">{$lang->cmd_delete}</a>
</td>
</tr>
</tbody>
</table>
<style scoped>
.fvOff,
.fvOn{display:inline-block;width:16px;height:16px;overflow:hidden;text-indent:16px;background:transparent url(./modules/admin/tpl/img/iconFavorite.gif) no-repeat;border:0}
.fvOn{background-position:0 -16px}
</style>
<script>
jQuery(function($){
$('.dsTg>tbody>tr[data-type1]').prependTo('tbody');
$('.dsTg>tbody>tr[data-type2]').prependTo('tbody');
});
</script>

View file

@ -0,0 +1,21 @@
<div id="{$id}" class="tgContent moduleWindow x_well xe-toggling-content" style="display:none;">
<div class="siteList x_control-group">
<label for="siteFinder">{$lang->select_site}</label>
<input type="search" class="siteFinder" id="siteFinder" name="site_filter" placeholder="URL">
<ul class="x_nav x_nav-tabs x_nav-stacked" style="">
</ul>
</div>
<div class="moduleList x_control-group">
<label>{$lang->select_module_type}</label>
<ul class="x_nav x_nav-tabs x_nav-stacked">
</ul>
</div>
<div class="instanceList x_control-group">
<label for="instanceList">{$lang->select_module_instance}</label>
<select size="8" id="instanceList" <!--@if($is_multiple)-->multiple<!--@endif--> style="height:auto!important">
</select>
<div class="x_pull-right" style="margin-top:8px">
<button type="button" class="moduleSearch_ok x_btn x_btn-inverse">{$lang->cmd_select}</button>
</div>
</div>
</div>

View file

@ -1,75 +1,67 @@
<load target="./js/module_admin.js" usecdn="true" />
<h1 class="h1">{$lang->module_selector}</h1>
<form action="./" method="post">
<div class="x_modal-header">
<h1>{$lang->module_selector}</h1>
</div>
<form action="./" method="post" class="x_modal-body x_form-horizontal" style="max-height:none">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="dispModuleSelectList" />
<input type="hidden" name="id" value="{$id}" />
<input type="hidden" name="type" value="{$type}" />
<input type="hidden" name="vid" value="{$vid}" />
<div class="table">
<table width="100%" border="1" cellspacing="0">
<tbody>
<!--@if($site_count && $logged_info->is_admin == 'Y')-->
<tr>
<th>{$lang->virtual_site}</th>
<td>
<input type="text" name="site_keyword" value="{$site_keyword}" /> <span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
<p>{$lang->about_search_virtual_site}</p>
</td>
</tr>
<!--@end-->
<tr>
<th>{$lang->module}</th>
<td>
<select name="selected_module">
<!--@foreach($mid_list as $key=>$val)-->
<option value="{$key}" <!--@if($selected_module == $key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
</select><span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
</td>
</tr>
</tbody>
</table>
<div class="x_control-group" cond="$site_count && $logged_info->is_admin == 'Y'">
<label class="x_control-label" for="site_keyword">{$lang->virtual_site}</label>
<div class="x_controls">
<span class="x_input-append">
<input type="text" name="site_keyword" id="site_keyword" value="{$site_keyword}" />
<input type="submit" value="{$lang->cmd_search}" class="x_btn" />
</span>
<p class="x_help-block">{$lang->about_search_virtual_site}</p>
</div>
</div>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<thead>
<tr>
<!--@if($module_category_exists)--><th>{$lang->module_category}</th><!--@end-->
<th>{$lang->mid}</th>
<th >{$lang->browser_title}</th>
<th>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</th>
<tr>
</thead>
<tbody>
<!--@if($module_category_exists)-->
<!--@foreach($selected_mids as $key => $val)-->
<tr>
<td rowspan="{count($val)}">{$key}&nbsp;</td>
{@ $_idx =0; }
<!--@foreach($val as $k => $v)-->
<!--@if($_idx >0)--><tr><!--@end-->
{@ $browser_title = str_replace("'", "\\'", htmlspecialchars($v->browser_title)); }
<td>{$k}</td>
<td>{$v->browser_title}</td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{$browser_title}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
<!--@if($_idx <count($val))--></tr><!--@end-->
{@ $_idx ++; }
<!--@end-->
</tr>
<!--@end-->
<!--@else-->
<!--@foreach($selected_mids as $key => $val)-->
<!--@foreach($val as $k => $v)-->
<div class="x_control-group">
<label class="x_control-label" for="selected_module">{$lang->module}</label>
<div class="x_controls">
<select name="selected_module" id="selected_module">
<option loop="$mid_list => $key,$val" value="{$key}" selected="selected"|cond="$selected_module == $key">{$val->title}</option>
</select>
<input type="submit" value="{$lang->cmd_search}" class="x_btn" />
</div>
</div>
<table class="x_table x_table-striped x_table-hover" style="border-top:1px dotted #ddd">
<thead>
<tr>
<td>{$k}</td>
<td>{$v->browser_title}</td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{str_replace("'","\\'",$v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
</tr>
<!--@end-->
<!--@end-->
<!--@end-->
</tbody>
</table>
</div>
<th>{$lang->mid}</th>
<th>{$lang->browser_title}</th>
<th>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</th>
<tr>
</thead>
<tbody>
<!--@if($module_category_exists)-->
<!--@foreach($selected_mids as $key => $val)-->
<tr>
{@ $_idx =0; }
<!--@foreach($val as $k => $v)-->
<!--@if($_idx >0)--><tr><!--@end-->
{@ $browser_title = str_replace("'", "\\'", htmlspecialchars($v->browser_title)); }
<td>{$k}</td>
<td>{$v->browser_title}</td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{$browser_title}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
<!--@if($_idx <count($val))--></tr><!--@end-->
{@ $_idx ++; }
<!--@end-->
</tr>
<!--@end-->
<!--@else-->
<!--@foreach($selected_mids as $key => $val)-->
<!--@foreach($val as $k => $v)-->
<tr>
<td>{$k}</td>
<td>{$v->browser_title}</td>
<td><a href="#" onclick="insertModule('{$id}', {$v->module_srl}, '{$k}', '{str_replace("'","\\'",$v->browser_title)}',{$type=='single'?'false':'true'}); return false;" class="button green"><span>{$type=='single'?$lang->cmd_select:$lang->cmd_insert}</span></a></td>
</tr>
<!--@end-->
<!--@end-->
<!--@end-->
</tbody>
</table>
</form>

View file

@ -1,75 +1,78 @@
<load target="./js/module_admin.js" usecdn="true" />
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="insertModuleSetup" action="./" method="post" enctype="multipart/form-data" class="form">
<form ruleset="insertModuleSetup" action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal" style="margin:0">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="act" value="procModuleAdminModuleSetup" />
<input type="hidden" name="module_srls" value="{$module_srls}" />
<h1 class="h1">{$lang->bundle_setup}</h1>
<ul>
<li>
<p class="q"><label for="module_category_srl">{$lang->module_category}</label></p>
<p class="a">
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/module_setup/1" />
<div class="x_modal-header">
<h1>{$lang->bundle_setup}</h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/module/tpl/module_setup/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<div class="x_modal-body">
<div class="x_control-group">
<label class="x_control-label" for="module_category_srl">{$lang->module_category}</label>
<div class="x_controls">
<select name="module_category_srl" id="module_category_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<option value="0">{$lang->notuse}</option>
<!--@foreach($module_category as $key => $val)-->
<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<option loop="$module_category => $key, $val" value="{$key}" selected="selected"|cond="$module_info->module_category_srl==$key">{$val->title}</option>
</select>
</p>
<p class="desc">{$lang->about_module_category}</p>
</li>
<li>
<p class="q"><label for="layout_srl">{$lang->layout}</label></p>
<p class="a">
<a href="#aboutCategory" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutCategory" hidden>{$lang->about_module_category}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="layout_srl">{$lang->layout}</label>
<div class="x_controls">
<select name="layout_srl" id="layout_srl">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<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="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
<!--@end-->
<option loop="$layout_list => $key, $val" value="{$val->layout_srl}" selected="selected"|cond="$module_info->layout_srl==$val->layout_srl">{$val->title}({$val->layout})</option>
</select>
</p>
<p class="desc">{$lang->about_layout}</p>
</li>
<li cond="count($skin_list)">
<p class="q"><label for="skin">{$lang->skin}</label></p>
<p class="a">
<a href="#aboutLayout" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutLayout" hidden>{$lang->about_layout}</p>
</div>
</div>
<div class="x_control-group" cond="count($skin_list)">
<label class="x_control-label" for="skin">{$lang->skin}</label>
<div class="x_controls">
<select name="skin" id="skin">
<option value="" selected="selected">{$lang->keep_existing_value}</option>
<!--@foreach($skin_list as $key=>$val)-->
<option value="{$key}" <!--@if($module_info->skin==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
<!--@end-->
<option loop="$skin_list => $key,$val" value="{$key}" selected="selected"|cond="$module_info->skin==$key">{$val->title}</option>
</select>
</p>
<p class="desc">{$lang->about_skin}</p>
</li>
<li>
<p class="q"><label for="description">{$lang->description}</label></p>
<p class="a">
<textarea name="description" id="description" rows="8" cols="42">{htmlspecialchars($module_info->description)}</textarea>
</p>
<p class="desc">{$lang->about_description}</p>
</li>
<li>
<p class="q"><label for="header_text">{$lang->header_text}</label></p>
<p class="a">
<textarea name="header_text" id="header_text" rows="8" cols="42">{htmlspecialchars($module_info->header_text)}</textarea>
</p>
<p class="desc">{$lang->about_header_text}</p>
</li>
<li>
<p class="q"><label for="footer_text">{$lang->footer_text}</label></p>
<p class="a">
<textarea name="footer_text" rows="8" cols="42">{htmlspecialchars($module_info->footer_text)}</textarea>
</p>
<p class="desc">{$lang->about_footer_text}</p>
</li>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
<a href="#aboutSkin" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutSkin" hidden>{$lang->about_skin}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="header_text">{$lang->header_text}</label>
<div class="x_controls">
<textarea name="header_text" id="header_text" rows="4" cols="42">{htmlspecialchars($module_info->header_text)}</textarea>
<a href="#aboutHeaderText" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutHeaderText" hidden>{$lang->about_header_text}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="footer_text">{$lang->footer_text}</label>
<div class="x_controls">
<textarea name="footer_text" rows="4" cols="42">{htmlspecialchars($module_info->footer_text)}</textarea>
<a href="#aboutFooterText" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutFooterText" hidden>{$lang->about_footer_text}</p>
</div>
</div>
<div class="x_control-group">
<label class="x_control-label" for="description">{$lang->description}</label>
<div class="x_controls">
<textarea name="description" id="description" rows="4" cols="42">{htmlspecialchars($module_info->description)}</textarea>
<a href="#aboutDescription" class="x_icon-question-sign" data-toggle>{$lang->help}</a>
<p class="x_help-block" id="aboutDescription" hidden>{$lang->about_description}</p>
</div>
</div>
</div>
<div class="x_modal-footer">
<input type="submit" class="x_btn x_btn-primary" value="{$lang->cmd_registration}" />
</div>
</form>

View file

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

View file

@ -0,0 +1,51 @@
{@
/* move current language to the top */
$a = array($lang_type=>$lang_supported[$lang_type]);
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<div class="x_modal"|cond="!$use_in_page" id="g11n" hidden|cond="!$use_in_page">
<div class="x_modal-header" cond="!$use_in_page">
<h1>{$lang->cmd_multilingual}</h1>
</div>
<div class="x_modal-body"|cond="!$use_in_page">
<div class="x_tabbable">
<ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="!$use_in_page"><a href="#lang_create">{$lang->cmd_insert}</a></li>
<li class="x_active"|cond="$use_in_page"><a href="#lang_search">{$lang->cmd_search}</a></li>
</ul>
<div class="x_tab-content">
<form action="" class="x_tab-pane <!--@if(!$use_in_page)-->x_active<!--@end--> item" id="lang_create">
<fieldset class="editMode">
<textarea loop="$lang_supported => $code, $name" class="{$code}" rows="1" cols="12" title="{$name}" style="margin-right:5px"></textarea>
<div class="x_clearfix btnArea">
<button type="reset" class="x_btn cancel x_pull-left">{$lang->cmd_cancel}</button>
<button type="submit" class="x_btn x_btn-primary save-useit">{$lang->use_after_save}</button>
</div>
</fieldset>
</form>
<div class="x_tab-pane <!--@if($use_in_page)-->x_active<!--@end-->" id="lang_search">
</div>
</div>
</div>
</div>
<div cond="!$use_in_page" class="x_modal-footer">
<button type="button" class="x_btn x_pull-left" data-hide="#g11n">{$lang->cmd_close}</button>
<p class="x_pull-right">
{@
$link = '<a href="' . getUrl('', 'module', 'admin', 'act', 'dispAdminConfigGeneral') . '">' . $lang->about_language_list_manage['link'] . '</a>';
$text = sprintf($lang->about_language_list_manage['text'], $link);
}
{$text}
</p>
</div>
</div>
<script>
xe.confirm_delete = '{$lang->confirm_delete}';
xe.msg_confirm_save_and_use_multilingual = '{$lang->msg_confirm_save_and_use_multilingual}';
xe.msg_empty_multilingual = '{$lang->msg_empty_multilingual}';
xe.cmd_set_multilingual_text = '{$lang->cmd_set_multilingual_text}';
xe.cmd_remove_multilingual_text = '{$lang->cmd_remove_multilingual_text}';
xe.use_after_save = '{$lang->use_after_save}';
xe.cmd_save = '{$lang->cmd_save}';
</script>

View file

@ -0,0 +1,66 @@
{@
/* move current language to the top */
$a = array($lang_type=>$lang_supported[$lang_type]);
unset($lang_supported[$lang_type]);
$lang_supported = array_merge($a, $lang_supported);
}
<p cond="!$name">{sprintf($lang->about_multilingual_search_result, $total_count, $lang_code, $lang_supported[$lang_code])}</p>
<fieldset class="list">
<form loop="$lang_code_list => $no, $val" action="" class="item">
<a class="set" href="#lang-{$no}" data-toggle data-lang_code="{$val->name}"><span>{$val->value}</span></a>
<fieldset id="lang-{$no}" style="display:none">
<textarea loop="$lang_supported => $code, $lname" disabled class="{$code}" data-lang="{$code}" rows="1" cols="12" title="{$lname}" style="margin-right:5px"></textarea>
<div class="x_clearfix">
<span class="x_pull-left x_btn-group">
<button type="button" class="x_btn modify">{$lang->cmd_modify}</button>
<button type="reset" class="x_btn cancel">{$lang->cmd_cancel}</button>
<button type="button" class="x_btn delete">{$lang->cmd_delete}</button>
</span>
<span class="x_pull-right">
<button type="button" class="x_btn useit x_btn-primary">{$lang->use}</button>
<button type="submit" class="x_btn save x_btn-primary">{$lang->use_after_save}</button>
</span>
</div>
</fieldset>
</form>
</fieldset>
<div class="x_clearfix">
<form cond="$page_navigation" action="./" class="x_pagination x_pull-left" data-search_keyword="{htmlspecialchars($search_keyword)}" data-page="{$page}" data-current_lang="{$lang_code}" no-error-return-url="true">
<ul>
<li class="x_disabled"|cond="!$page || $page == 1"><a href="#" data-page="1" data-search_keyword="{htmlspecialchars($search_keyword)}">&laquo; {$lang->first_page}</a></li>
<block cond="$page_navigation->first_page != 1 && $page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page - 1 && $page_navigation->page_count != $page_navigation->total_page">
{@$isGoTo = true}
<li>
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">&hellip;</a>
<span cond="$isGoTo" id="goTo" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<!--@while($page_no = $page_navigation->getNextPage())-->
{@$last_page = $page_no}
<li class="x_active"|cond="$page_no == $page"><a href="#" data-page="{$page_no}" data-search_keyword="{htmlspecialchars($search_keyword)}">{$page_no}</a></li>
<!--@end-->
<block cond="$last_page != $page_navigation->last_page && $last_page + 1 != $page_navigation->last_page">
{@$isGoTo = true}
<li>
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">&hellip;</a>
<span cond="$isGoTo" id="goTo" class="x_input-append">
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
<button type="submit" class="x_add-on">Go</button>
</span>
</li>
</block>
<li class="x_disabled"|cond="$page == $page_navigation->last_page"><a href="#" data-page="{$page_navigation->last_page}" data-search_keyword="{htmlspecialchars($search_keyword)}" title="{$page_navigation->last_page}">{$lang->last_page} &raquo;</a></li>
</ul>
</form>
<form action="" class="search center x_input-append x_pull-right">
<select name="lang_code" style="margin-right:4px">
<option loop="$lang_supported => $code, $lname" value="{$code}" selected="selected"|cond="$code == $lang_code">{$lname}</option>
</select>
<input type="search" name="search_keyword" title="Search" value="<!--@if($name)-->{htmlspecialchars($lang_code_list[1]->value)}<!--@else-->{htmlspecialchars($search_keyword)}<!--@end-->">
<button class="x_btn x_btn-inverse" type="submit">{$lang->cmd_search}</button>
<button cond="$search_keyword || $name" id="search_cancel" class="x_btn" type="button">{$lang->cmd_cancel}</button>
</form>
</div>

View file

@ -1,8 +1,7 @@
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/module/tpl/skin_config/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form action="./" method="post" enctype="multipart/form-data" class="form">
<form action="./" method="post" enctype="multipart/form-data" class="x_form-horizontal">
<input type="hidden" name="module" value="module" />
<input type="hidden" name="vid" value="{$vid}" />
<input type="hidden" name="mid" value="{$mid}" />
@ -10,124 +9,128 @@
<input type="hidden" name="_mode" value="{$mode}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
<input type="hidden" name="page" value="{$page}" />
<h2 class="h2">{$lang->skin_default_info}</h2>
<ul>
<li>
<p class="q">{$lang->skin}</p>
<p class="a">{$skin_info->title}</p>
</li>
<li>
<p class="q">{$lang->skin_author}</p>
<p class="a">
<input type="hidden" name="xe_validator_id" value="modules/module/tpl/skin_config/1" />
<section class="section">
<h1>{$lang->skin_default_info}</h1>
<div class="x_control-group">
<label class="x_control-label">
{$lang->skin}
</label>
<div class="x_controls" style="padding-top:3px">
{$skin_info->title}
</div>
</div>
<div class="x_control-group">
<label class="x_control-label">
{$lang->skin_author}
</label>
<div class="x_controls" style="padding-top:3px">
<block loop="$skin_info->author=>$author">
{$author->name}
<block cond="$author->homepage || $author->email_address">
(<a href="{$author->homepage}" onclick="window.open(this.href);return false;" cond="$author->homepage">{$author->homepage}</a>
(<a href="{$author->homepage}" target="_blank" cond="$author->homepage">{$author->homepage}</a>
<block cond="$author->homepage && $author->email_address">, </block>
<a href="mailto:{$author->email_address}" cond="$author->email_address">{$author->email_address}</a>)
</block><br />
</block>
</p>
</li>
<li cond="$skin_info->homepage">
<p class="q">{$lang->homepage}</p>
<p class="a"><a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a></p>
</li>
<li>
<p class="q">{$lang->date}</p>
<p class="a">{zdate($skin_info->date, 'Y-m-d')}</p>
</li>
<li cond="$skin_info->license || $skin_info->license_link">
<p class="q">{$lang->skin_license}</p>
<p class="a">{nl2br(trim($skin_info->license))}</p>
<p cond="$skin_info->license_link"><a href="{$skin_info->license_link}" onclick="window.close(); return false;">{$skin_info->license_link}</a></p>
</li>
<li cond="$skin_info->description">
<p class="q">{$lang->description}</p>
<p class="a">{nl2br(trim($skin_info->description))}</p>
</li>
</ul>
</div>
</div>
<div class="x_control-group" cond="$skin_info->homepage">
<label class="x_control-label">{$lang->homepage}</label>
<div class="x_controls" style="padding-top:3px"><a href="{$skin_info->homepage}" target="_blank">{$skin_info->homepage}</a></div>
</div>
<div class="x_control-group">
<label class="x_control-label">{$lang->date}</label>
<div class="x_controls" style="padding-top:3px">{zdate($skin_info->date, 'Y-m-d')}</div>
</div>
<div class="x_control-group" cond="$skin_info->license || $skin_info->license_link">
<label class="x_control-label">{$lang->skin_license}</label>
<div class="x_controls" style="padding-top:3px">
{nl2br(trim($skin_info->license))}
<p cond="$skin_info->license_link"><a href="{$skin_info->license_link}" target="_blank">{$skin_info->license_link}</a></p>
</div>
</div>
<div class="x_control-group" cond="$skin_info->description">
<label class="x_control-label">{$lang->description}</label>
<div class="x_controls" style="padding-top:3px">{nl2br(trim($skin_info->description))}</div>
</div>
</section>
<h2 class="h2">{$lang->extra_vars}</h2>
<ul>
<li cond="$skin_info->colorset" class="colorset">
<p class="q">{$lang->colorset}</p>
<div class="a">
<!--@if(count($skin_info->extra_vars) > 0)-->
<section class="section">
<h1>{$lang->extra_vars}</h1>
<div class="x_control-group" cond="$skin_info->colorset">
<label class="x_control-label">{$lang->colorset}</label>
<div class="x_controls">
<block loop="$skin_info->colorset => $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="display:inline-block;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}" checked="checked"|cond="$skin_vars['colorset']->value==$val->name" />
<label for="colorset_{$key}">{$val->title}</label>
<block cond="$val->screenshot">
<br />
<img src="../../../{$val->screenshot}" alt="{$val->title}" style="border:1px solid #888888;padding:2px;margin:2px;"/>
</block>
<div class="x_thumbnail"|cond="$val->screenshot" style="display:inline-block;width:{$_width}px;margin-right:10px;">
<label for="colorset_{$key}">
<input type="radio" name="colorset" value="{$val->name}" id="colorset_{$key}" checked="checked"|cond="$skin_vars['colorset']->value==$val->name" />
{$val->title}
</label>
<img src="../../../{$val->screenshot}" alt="{$val->title}" cond="$val->screenshot" />
</div>
</block>
</div>
</li>
</div>
<block loop="$skin_info->extra_vars => $key, $val">
<block cond="$val->group && ((!$group) || $group != $val->group)">
{@$group = $val->group}
</ul>
<h2 class="h2">{$group}</h2>
<ul>
</section>
<section class="section">
<h2>{$group}</h2>
</block>
<li>
<p class="q">{$val->title}</p>
<p cond="$val->type == 'text'" class="a multiLangEdit">
{@$use_multilang = true}
<input type="hidden" name="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="vLang" />
<input type="text" value="{$val->value}" class="vLang" />
<span class="desc"><a href="#langEdit" class="editUserLang tgAnchor">{$lang->cmd_set_multilingual}</a></span>
</p>
<div cond="$val->type == 'textarea'" class="a multiLangEdit">
{@$use_multilang_textarea = true}
<input type="hidden" name="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="vLang" />
<textarea rows="8" cols="42" class="vLang">{$val->value}</textarea>
<span class="desc"><a href="#langEditTextarea" class="editUserLang tgAnchor">{$lang->cmd_set_multilingual}</a></span>
</div>
<p cond="$val->type == 'select'" class="a">
<select name="{$val->name}">
<div class="x_control-group">
<label class="x_control-label" for="{$val->name}"|cond="$val->type!='text'&&$val->type!='textarea'" for="lang_{$val->name}"|cond="$val->type=='text'||$val->type=='textarea'">{$val->title}</label>
<div class="x_controls">
<!--// text -->
<input cond="$val->type == 'text'" type="text" name="{$val->name}" id="{$val->name}" value="<!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end-->" class="lang_code" />
<!--// textarea -->
<textarea cond="$val->type == 'textarea'" rows="8" cols="42" name="{$val->name}" id="{$val->name}" class="lang_code"><!--@if(strpos($val->value, '$user_lang->') === false)-->{$val->value}<!--@else-->{htmlspecialchars($val->value)}<!--@end--></textarea>
<!--// select -->
<select cond="$val->type == 'select'" name="{$val->name}" id="{$val->name}">
<option loop="$val->options => $k, $v" value="{$v->value}" selected="selected"|cond="$v->value == $val->value">{$v->title}</option>
</select>
</p>
<p cond="$val->type == 'checkbox'" class="a">
<span loop="$val->options => $k, $v">
<input type="checkbox" name="{$val->name}[]" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="@in_array($v->value, $val->value)" class="checkbox" />
<label for="ch_{$key}_{$k}">{$v->title}</label>
</span>
</p>
<p cond="$val->type == 'radio'" class="a">
<span loop="$val->options => $k, $v">
<input type="radio" name="{$val->name}" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="$v->value==$val->value" />
<label for="ch_{$key}_{$k}">{$v->title}</label>
</span>
</p>
<div cond="$val->type == 'image'" class="a">
<div cond="$val->value">
<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>
<!--// checkbox -->
<label cond="$val->type == 'checkbox'" loop="$val->options => $k, $v" for="ch_{$key}_{$k}" class="x_inline"><input type="checkbox" name="{$val->name}[]" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="@in_array($v->value, $val->value)" class="checkbox" /> {$v->title}</label>
<!--// radio -->
<label cond="$val->type == 'radio'" for="ch_{$key}_{$k}" loop="$val->options => $k, $v" class="x_inline"><input type="radio" name="{$val->name}" value="{$v->value}" id="ch_{$key}_{$k}" checked="checked"|cond="$v->value==$val->value" /> {$v->title}</label>
<!--// image -->
<block cond="$val->type == 'image'">
<div cond="$val->value" class="x_thumbnail" style="max-width:210px;margin:0 0 10px 0">
<img src="{$val->value}" />
<label for="del_{$val->name}" style="padding:8px 0 0 0"><input type="checkbox" name="del_{$val->name}" value="Y" id="del_{$val->name}" class="checkbox" /> {$lang->cmd_delete}</label>
</div>
<input type="file" name="{$val->name}" value="" />
</block>
<!--// colorpicker-->
<div cond="$val->type == 'colorpicker'">
{@ $use_colorpicker = true; }
<input type="text" class="color-indicator" name="{$val->name}" id="{$val->name}" value="{$val->value}" />
<p id="categoy_color_help" hidden style="margin:8px 0 0 0">{$lang->about_category_color}</p>
</div>
<input type="file" name="{$val->name}" value="" />
<a href="#about_{$val->name}" data-toggle class="x_icon-question-sign" cond="$val->description" style="vertical-align:top;margin-top:5px"|cond="$val->type == 'textarea'">{$lang->help}</a>
<p class="x_help-block" id="about_{$val->name}" hidden cond="$val->description">{nl2br(trim($val->description))}</p>
</div>
<p cond="$val->description" class="desc">{nl2br(trim($val->description))}</p>
</li>
</div>
</block>
</ul>
<div class="btnArea">
<span class="btn"><input type="submit" value="{$lang->cmd_registration}" /></span>
</section>
<!--@end-->
<div class="btnArea">
<button class="x_btn x_btn-primary x_pull-right" type="submit">{$lang->cmd_registration}</button>
</div>
</form>
<include target="../../module/tpl/include.multilang.html" />
<include target="../../module/tpl/include.multilang.textarea.html" />
<!--@if($use_colorpicker)-->
<!--%load_js_plugin("ui.colorpicker")-->
<!--@end-->

View file

@ -1,85 +1,81 @@
<load target="../../admin/tpl/css/admin.css" usecdn="true" />
<h1 class="h1">{$skin_info->title}</h1>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<col width="100" />
<col />
<tr>
<th scope="row"><label for="textfield1">{$lang->title}</label></th>
<td>{$skin_info->title}</td>
</tr>
<tr>
<th scope="row"><label for="textfield2">{$lang->author}</label></th>
<td class="blue">
<!--@foreach($skin_info->author as $author)-->
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
<!--@if($skin_info->homepage)-->
<tr>
<th scope="row"><label for="textfield2">{$lang->homepage}</label></th>
<td class="blue"><a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a></td>
</tr>
<!--@endif-->
<tr>
<th scope="row"><label for="textfield2">{$lang->regdate}</label></th>
<td>{zdate($skin_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($skin_info->license || $skin_info->license_link)-->
<tr>
<th scope="row">{$lang->skin_license}</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-->
</td>
</tr>
<!--@end-->
<!--@if($skin_info->description)-->
<tr>
<th scope="row" class="borderBottomNone">{$lang->description}</th>
<td class="borderBottomNone">{nl2br(trim($skin_info->description))}</td>
</tr>
<!--@end-->
</table>
</div>
<h1>{$skin_info->title}</h1>
<table class="x_table x_table-striped x_table-hover">
<col width="100" />
<col />
<tr>
<th scope="row"><label for="textfield1">{$lang->title}</label></th>
<td>{$skin_info->title}</td>
</tr>
<tr>
<th scope="row"><label for="textfield2">{$lang->author}</label></th>
<td class="blue">
<!--@foreach($skin_info->author as $author)-->
{$author->name} <!--@if($author->homepage || $author->email_address)-->(<!--@if($author->homepage)--><a href="{$author->homepage}" onclick="window.open(this.href);return false;">{$author->homepage}</a><!--@end--><!--@if($author->homepage && $author->email_address)-->, <!--@end--><!--@if($author->email_address)--><a href="mailto:{$author->email_address}">{$author->email_address}</a><!--@end-->)<!--@end--><br />
<!--@endforeach-->
</td>
</tr>
<!--@if($skin_info->homepage)-->
<tr>
<th scope="row"><label for="textfield2">{$lang->homepage}</label></th>
<td class="blue"><a href="{$skin_info->homepage}" onclick="window.open(this.href);return false;">{$skin_info->homepage}</a></td>
</tr>
<!--@endif-->
<tr>
<th scope="row"><label for="textfield2">{$lang->regdate}</label></th>
<td>{zdate($skin_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($skin_info->license || $skin_info->license_link)-->
<tr>
<th scope="row">{$lang->skin_license}</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-->
</td>
</tr>
<!--@end-->
<!--@if($skin_info->description)-->
<tr>
<th scope="row" class="borderBottomNone">{$lang->description}</th>
<td class="borderBottomNone">{nl2br(trim($skin_info->description))}</td>
</tr>
<!--@end-->
</table>
<!--@if($skin_info->history)-->
<h1 class="h1">{$lang->skin_history}</h1>
<div class="table">
<table width="100%" border="1" cellspacing="0">
<col width="100" />
<col />
<h1>{$lang->skin_history}</h1>
<table class="x_table x_table-striped x_table-hover">
<col width="100" />
<col />
<!--@foreach($skin_info->history as $history)-->
<tr>
<th scope="row">
{$history->version}<br />
{$history->date}
</th>
<td>
<!--@foreach($history->author as $author)-->
<p>{$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>)</p>
<!--@endforeach-->
<!--@if($history->description)-->
<p>{nl2br(trim($history->description))}</p>
<!--@endif-->
<!--@if($history->logs)-->
<ul>
<!--@foreach($history->logs as $log)-->
<!--@if($log->link)-->
<li><a href="{$log->link}">{$log->text}</a></li>
<!--@else-->
<li>{$log->text}</li>
<!--@endif-->
<!--@endforeach-->
</ul>
<!--@endif-->
</td>
</tr>
<!--@endforeach-->
</table>
</div>
<!--@foreach($skin_info->history as $history)-->
<tr>
<th scope="row">
{$history->version}<br />
{$history->date}
</th>
<td>
<!--@foreach($history->author as $author)-->
<p>{$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>)</p>
<!--@endforeach-->
<!--@if($history->description)-->
<p>{nl2br(trim($history->description))}</p>
<!--@endif-->
<!--@if($history->logs)-->
<ul>
<!--@foreach($history->logs as $log)-->
<!--@if($log->link)-->
<li><a href="{$log->link}">{$log->text}</a></li>
<!--@else-->
<li>{$log->text}</li>
<!--@endif-->
<!--@endforeach-->
</ul>
<!--@endif-->
</td>
</tr>
<!--@endforeach-->
</table>
<!--@endif-->

View file

@ -1,4 +1,4 @@
<script type="text/javascript">//<![CDATA[
<script>//<![CDATA[
top.location.href = top.location.href;
//]]>
</script>