Installed addon UI cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11993 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-10-31 07:13:15 +00:00
parent d27214c4fc
commit 315caed4b0
11 changed files with 97 additions and 185 deletions

View file

@ -72,41 +72,13 @@
<title xml:lang="vi">Charset</title>
<title xml:lang="ru">Charset</title>
<title xml:lang="zh-TW">編碼</title>
<description xml:lang="ko">
모바일 기기의 경우 UTF-8 문자셋을 인식하지 못할 수 있습니다.
문자셋에 원하는 문자셋을 입력하면 자동으로 변환하여 출력하여 모바일에서 이상없이 출력하도록 합니다.
기본값은 UTF-8입니다.
(*SK Telecom 휴대전화의 경우 euc-kr인코딩만 지원하므로, 강제로 euc-kr인코딩만 지원합니다.)
</description>
<description xml:lang="jp">
ある特定のモバイル機器ではutf-8文字コードの認識が出来ない場合があります。
文字コードを設定すると、(日本語だけの場合)該当文字コードに自動変換して正常に表示出来るようになります。
本アドオンのデフォルト値はUTF-8で、日本の携帯はshift-jisが一般的です。
</description>
<description xml:lang="zh-CN">
手机有时无法识别utf-8编码这时输入相应的编码值即可自动转换。
默认编码为UTF-8。
</description>
<description xml:lang="en">
utf-8 may be read with mobile tools.
Mobile tools will display correct charset when you input charset you want.
Default charset is UTF-8.
</description>
<description xml:lang="vi">
UTF-8 không thể đọc được cho các công cụ di động.
Những công cụ di động sẽ trình bày Charset đúng khi bạn nhập vào Charset bạn muốn.
Charset mặc định là UTF-8.
</description>
<description xml:lang="ru">
utf-8 may be read with mobile tools.
Mobile tools will display correct charset when you input charset you want.
Default charset is UTF-8.
</description>
<description xml:lang="zh-TW">
行動工具無法讀取utf-8編碼。
當您輸入所想要的編碼時,行動工具將會正確的顯示。
預設編碼是UTF-8.
</description>
<description xml:lang="ko">모바일 기기의 경우 UTF-8 문자셋을 인식하지 못할 수 있습니다. 문자셋에 원하는 문자셋을 입력하면 자동으로 변환하여 출력하여 모바일에서 이상없이 출력하도록 합니다. 기본값은 UTF-8입니다. (*SK Telecom 휴대전화의 경우 euc-kr인코딩만 지원하므로, 강제로 euc-kr인코딩만 지원합니다.)</description>
<description xml:lang="jp">ある特定のモバイル機器ではutf-8文字コードの認識が出来ない場合があります。文字コードを設定すると、日本語だけの場合該当文字コードに自動変換して正常に表示出来るようになります。本アドオンのデフォルト値はUTF-8で、日本の携帯はshift-jisが一般的です。</description>
<description xml:lang="zh-CN">手机有时无法识别utf-8编码这时输入相应的编码值即可自动转换。默认编码为UTF-8。</description>
<description xml:lang="en">utf-8 may be read with mobile tools. Mobile tools will display correct charset when you input charset you want. Default charset is UTF-8.</description>
<description xml:lang="vi">UTF-8 không thể đọc được cho các công cụ di động. Những công cụ di động sẽ trình bày Charset đúng khi bạn nhập vào Charset bạn muốn. Charset mặc định là UTF-8.</description>
<description xml:lang="ru">utf-8 may be read with mobile tools. Mobile tools will display correct charset when you input charset you want. Default charset is UTF-8.</description>
<description xml:lang="zh-TW">行動工具無法讀取utf-8編碼。當您輸入所想要的編碼時行動工具將會正確的顯示。預設編碼是UTF-8.</description>
</var>
</extra_vars>
</addon>

View file

@ -637,7 +637,6 @@ h6 {
font-weight: bold;
line-height: 1;
color: inherit;
text-rendering: optimizelegibility;
}
h1 small,

File diff suppressed because one or more lines are too long

View file

@ -1,49 +1,46 @@
<h1 class="h1">{$lang->addon_maker}</h1>
<h1>{$lang->addon_maker}</h1>
<table class="x_table x_table-striped x_table-hover">
<tr>
<th scope="row">{$lang->title}</th>
<td>{$addon_info->title} ver. {$addon_info->version}</td>
</tr>
<tr>
<th scope="row">{$lang->author}</th>
<td>
<!--@foreach($addon_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($addon_info->homepage)-->
<tr>
<th scope="row">{$lang->homepage}</th>
<td><a href="{$addon_info->homepage}" onclick="window.open(this.href);return false;">{$addon_info->homepage}</a></td>
</tr><!--@end-->
<tr>
<th scope="row">{$lang->regdate}</th>
<td>{zdate($addon_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($addon_info->license || $addon_info->license_link)-->
<tr>
<th scope="row">{$lang->addon_license}</th>
<td>
{nl2br(trim($addon_info->license))}
<!--@if($addon_info->license_link)-->
<p><a href="{$addon_info->license_link}" onclick="window.close(); return false;">{$addon_info->license_link}</a></p>
<!--@end-->
</td>
</tr><!--@end-->
<!--@if($addon_info->description)-->
<tr>
<th scope="row">{$lang->description}</th>
<td>{nl2br(trim($addon_info->description))}</td>
</tr><!--@end-->
<tr>
<th scope="row">{$lang->title}</th>
<td>{$addon_info->title} ver. {$addon_info->version}</td>
</tr>
<tr>
<th scope="row">{$lang->author}</th>
<td>
<!--@foreach($addon_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($addon_info->homepage)-->
<tr>
<th scope="row">{$lang->homepage}</th>
<td><a href="{$addon_info->homepage}" onclick="window.open(this.href);return false;">{$addon_info->homepage}</a></td>
</tr><!--@end-->
<tr>
<th scope="row">{$lang->regdate}</th>
<td>{zdate($addon_info->date, 'Y-m-d')}</td>
</tr>
<!--@if($addon_info->license || $addon_info->license_link)-->
<tr>
<th scope="row">{$lang->addon_license}</th>
<td>
{nl2br(trim($addon_info->license))}
<!--@if($addon_info->license_link)-->
<p><a href="{$addon_info->license_link}" onclick="window.close(); return false;">{$addon_info->license_link}</a></p>
<!--@end-->
</td>
</tr><!--@end-->
<!--@if($addon_info->description)-->
<tr>
<th scope="row">{$lang->description}</th>
<td>{nl2br(trim($addon_info->description))}</td>
</tr><!--@end-->
</table>
<!--@if($addon_info->history)-->
<h1 class="h1">{$lang->addon_history}</h1>
<h1>{$lang->addon_history}</h1>
<table class="x_table x_table-striped x_table-hover">
<col width="100" />
<col />
<!--@foreach($addon_info->history as $history)-->
<tr>
<th scope="row">

View file

@ -1,7 +1,7 @@
<div class="x_page-header">
<h1>{$lang->installed_addons}</h1>
<p>{$lang->about_installed_addon}</p>
</div>
<p>{$lang->about_installed_addon}</p>
<form action="./" method="post">
<input type="hidden" name="module" value="addon" />
<input type="hidden" name="act" value="procAddonAdminSaveActivate" />
@ -12,10 +12,10 @@
</div>
<table class="x_table x_table-striped x_table-hover dsTg">
<caption>
<strong>All({$addon_count})</strong>
All({$addon_count})
<div class="x_pull-right x_btn-group">
<button type="button" class="x_btn x_btn-mini x_active __simple">{$lang->simple_view}</button>
<button type="button" class="x_btn x_btn-mini __detail">{$lang->detail_view}</button>
<button type="button" class="x_btn x_active __simple">{$lang->simple_view}</button>
<button type="button" class="x_btn __detail">{$lang->detail_view}</button>
</div>
</caption>
<thead>
@ -39,24 +39,24 @@
{$lang->msg_avail_easy_update} <a href="{$addon->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td class="nowr">{$addon->version}</td>
<td>{$addon->version}</td>
<td class="nowr">
<block loop="$addon->author => $author">
<a cond="$author->homepage" href="{$author->homepage}" target="_blank">{$author->name}</a>
<block cond="!$author->homepage">{$author->name}</block>
</block>
</td>
<td class="nowr">{$addon->path}</td>
<td class="nowr"><a href="{getUrl('act', 'dispAddonAdminSetup', 'selected_addon', $addon->addon_name)}">{$lang->cmd_setup}</a></td>
<td class="nowr"><input type="checkbox" name="pc_on[]" title="PC" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->activated" /></td>
<td class="nowr"><input type="checkbox" name="mobile_on[]" title="Mobile" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->mactivated" /></td>
<td class="nowr"><a cond="$addon->remove_url" href="{$addon->remove_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a></td>
<td>{$addon->path}</td>
<td><a href="{getUrl('act', 'dispAddonAdminSetup', 'selected_addon', $addon->addon_name)}">{$lang->cmd_setup}</a></td>
<td><input type="checkbox" name="pc_on[]" title="PC" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->activated" /></td>
<td><input type="checkbox" name="mobile_on[]" title="Mobile" value="{htmlspecialchars($addon->addon_name)}" checked="checked"|cond="$addon->mactivated" /></td>
<td><a cond="$addon->remove_url" href="{$addon->remove_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a></td>
</tr>
</tbody>
</table>
<div class="x_clearfix">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
<button type="submit" class="x_btn x_btn-large x_btn-primary">{$lang->cmd_save}</button>
</div>
</div>
</form>

View file

@ -46,12 +46,12 @@
<div class="x_control-group">
<label class="x_control-label" for="{$var->name}">{$var->title}</label>
<div class="x_controls">
<input cond="$var->type == 'text'" type="text" name="{$var->name}" id="{$var->name}" value="{htmlspecialchars($var->value)}" class="lang_code">
<input cond="$var->type == 'text'" type="text" name="{$var->name}" id="{$var->name}" value="{htmlspecialchars($var->value)}">
<textarea cond="$var->type == 'textarea'" name="{$var->name}" id="{$var->name}" class="lang_code" rows="8" cols="42">{htmlspecialchars($var->value)}</textarea>
<select cond="$var->type == 'select'" name="{$var->name}" id="{$var->name}">
<select cond="$var->type == 'select'" name="{$var->name}" id="{$var->name}" style="width:220px">
<option loop="$var->options => $option" value="{$option->value}" selected="selected"|cond="$var->value == $option->value">{$option->title}</option>
</select>
<span class="x_help-block">{nl2br($var->description)}</span>
<span class="x_help-inline">{nl2br($var->description)}</span>
</div>
</div>
</block>
@ -68,7 +68,7 @@
<div class="x_control-group">
<label class="x_control-label">{$lang->run_method}</label>
<div class="x_controls">
<select name="xe_run_method">
<select name="xe_run_method" style="width:220px">
<option value="run_selected" selected="selected"|cond="$addon_info->xe_run_method === 'run_selected'">{$lang->run_selected_module}</option>
<option value="no_run_selected" selected="selected"|cond="$addon_info->xe_run_method === 'no_run_selected'">{$lang->no_run_selected_module}</option>
</select>
@ -84,12 +84,10 @@
<fieldset>
<legend><!--@if($modules->title)-->{$modules->title}<!--@else-->{$lang->none_category}<!--@end--></legend>
<!--@end-->
<div loop="$modules->list => $key, $val">
<label>
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" checked="checked"|cond="in_array($key, $addon_info->mid_list)"/>
{$key} ({$val->browser_title})
</label>
</div>
<label loop="$modules->list => $key, $val">
<input type="checkbox" value="{$key}" name="mid_list[]" id="chk_mid_list_{$key}" checked="checked"|cond="in_array($key, $addon_info->mid_list)"/>
{$key} ({$val->browser_title})
</label>
<!--@if(count($mid_list) > 1)-->
</fieldset>
<!--@end-->
@ -97,9 +95,9 @@
</div>
</div>
</block>
<div class="x_clearfix">
<div class="x_clearfix btnArea">
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
<button type="submit" class="x_btn x_btn-large x_btn-primary">{$lang->cmd_save}</button>
</div>
</div>
</block>

View file

@ -77,7 +77,6 @@ body>.x,
.x .x_inline{display:inline-block;*display:inline;*zoom:1}
.x label.checked,
.x input:checked+label,
.x label:only-of-type,
.x .x_form-horizontal .x_control-label{font-weight:bold}
.x .x_form-horizontal .x_controls>label{padding-top:5px}
.x input[type="radio"]+label,
@ -117,6 +116,7 @@ body>.x,
.x .x_table thead th{vertical-align:top}
.x .x_well>*:first-child{margin-top:0}
.x .x_well>*:last-child{margin-bottom:0}
.x legend{font-size:14px;font-weight:bold;line-height:24px}
/* Custom Styles */
.x .section{margin:20px 0 40px 0}
.x .section>h1{position:relative;border-bottom:1px solid #ddd}
@ -145,34 +145,6 @@ body>.x,
.x .dashboard>section>h2:before{background-image:url(../../../../common/img/glyphicons-halflings.png);background-repeat:no-repeat}
.x>.xin>.body>.gnb>ul>li.open>a>i,
.x>.xin>.body>.gnb>ul>li.active>a>i{background-image:url(../../../../common/img/glyphicons-halflings-white.png);background-repeat:no-repeat}
/* Rotation 360 */
.x .rotation{
animation:ROTATION infinite 2s linear;
-webkit-animation:ROTATION infinite 2s linear;
-moz-animation:ROTATION infinite 1s linear;
-o-animation:ROTATION infinite 1s linear;
-ms-animation:ROTATION infinite 1s linear;
}
@keyframes ROTATION{
from{transform:rotate(0deg)}
to{transform:rotate(360deg)}
}
@-webkit-keyframes ROTATION{
from{-webkit-transform:rotate(0deg)}
to{-webkit-transform:rotate(360deg)}
}
@-moz-keyframes ROTATION{
from{-moz-transform:rotate(0deg)}
to{-moz-transform:rotate(360deg)}
}
@-o-keyframes ROTATION{
from{-o-transform:rotate(0deg)}
to{-o-transform:rotate(360deg)}
}
@-ms-keyframes ROTATION{
from{-o-transform:rotate(0deg)}
to{-o-transform:rotate(360deg)}
}
/* Layout */
.x>.xin{box-shadow:0 0 5px #999;border-radius:5px;margin:10px}
.x>.xin>.skipNav{margin:0}

View file

@ -77,7 +77,6 @@ body>.x,
.x .x_inline{display:inline-block;*display:inline;*zoom:1}
.x label.checked,
.x input:checked+label,
.x label:only-of-type,
.x .x_form-horizontal .x_control-label{font-weight:bold}
.x .x_form-horizontal .x_controls>label{padding-top:5px}
.x input[type="radio"]+label,
@ -117,6 +116,7 @@ body>.x,
.x .x_table thead th{vertical-align:top}
.x .x_well>*:first-child{margin-top:0}
.x .x_well>*:last-child{margin-bottom:0}
.x legend{font-size:14px;font-weight:bold;line-height:24px}
/* Custom Styles */
.x .section{margin:20px 0 40px 0}
.x .section>h1{position:relative;border-bottom:1px solid #ddd}
@ -145,34 +145,6 @@ body>.x,
.x .dashboard>section>h2:before{background-image:url(../../../../common/img/glyphicons-halflings.png);background-repeat:no-repeat}
.x>.xin>.body>.gnb>ul>li.open>a>i,
.x>.xin>.body>.gnb>ul>li.active>a>i{background-image:url(../../../../common/img/glyphicons-halflings-white.png);background-repeat:no-repeat}
/* Rotation 360 */
.x .rotation{
animation:ROTATION infinite 2s linear;
-webkit-animation:ROTATION infinite 2s linear;
-moz-animation:ROTATION infinite 1s linear;
-o-animation:ROTATION infinite 1s linear;
-ms-animation:ROTATION infinite 1s linear;
}
@keyframes ROTATION{
from{transform:rotate(0deg)}
to{transform:rotate(360deg)}
}
@-webkit-keyframes ROTATION{
from{-webkit-transform:rotate(0deg)}
to{-webkit-transform:rotate(360deg)}
}
@-moz-keyframes ROTATION{
from{-moz-transform:rotate(0deg)}
to{-moz-transform:rotate(360deg)}
}
@-o-keyframes ROTATION{
from{-o-transform:rotate(0deg)}
to{-o-transform:rotate(360deg)}
}
@-ms-keyframes ROTATION{
from{-o-transform:rotate(0deg)}
to{-o-transform:rotate(360deg)}
}
/* Layout */
.x>.xin{box-shadow:0 0 5px #999;border-radius:5px;margin:10px}
.x>.xin>.skipNav{margin:0}

View file

@ -249,8 +249,10 @@ jQuery(function($){
// :radio, :checkbox checked class
$.fn.checkToggle = function(){
function check(){
$(':checked').parent('label').addClass('checked');
$(':not(":checked")').parent('label').removeClass('checked');
setTimeout(function(){
$(':checked').parent('label').addClass('checked');
$(':not(":checked")').parent('label').removeClass('checked');
},0);
}
this.change(check);
check();
@ -1077,27 +1079,27 @@ jQuery(function($){
$.exec_json('module.getFileBoxListHtml', {'page': '1'}, on_complete);
});
// Details toggle in admin table
var simpleBtn = $('.x .dsTg .__simple');
var detailBtn = $('.x .dsTg .__detail');
var tdTitle = $('.x .dsTg td.title');
tdTitle.each(function(){
var $t = $(this)
if($t.find('p.x_alert').length==0){
$t.addClass('tg').find('>*:not(:first-child)').hide();
}
});
var details = $('.x .dsTg td.tg>*:not(:first-child)');
simpleBtn.click(function(){
details.slideUp(200);
detailBtn.removeClass('x_active');
simpleBtn.addClass('x_active');
});
detailBtn.click(function(){
details.slideDown(200);
detailBtn.addClass('x_active');
simpleBtn.removeClass('x_active');
});
// Details toggle in admin table
var simpleBtn = $('.x .dsTg .__simple');
var detailBtn = $('.x .dsTg .__detail');
var tdTitle = $('.x .dsTg td.title');
tdTitle.each(function(){
var $t = $(this)
if($t.find('p.x_alert').length==0){
$t.addClass('tg').find('>*:not(:first-child)').hide();
}
});
var details = $('.x .dsTg td.tg>*:not(:first-child)');
simpleBtn.click(function(){
details.slideUp(200);
detailBtn.removeClass('x_active');
simpleBtn.addClass('x_active');
});
detailBtn.click(function(){
details.slideDown(200);
detailBtn.addClass('x_active');
simpleBtn.removeClass('x_active');
});
});
// Multilingual Window

File diff suppressed because one or more lines are too long

View file

@ -41,11 +41,11 @@
<label class="x_control-label" for="{$id}">{$var->name}</label>
<div class="x_controls">
<div cond="$var->type == 'text'">
<input type="text" name="{$id}" class="lang_code" />
<input type="text" name="{$id}" />
</div>
<input cond="$var->type == 'color'" type="text" name="{$id}" value="" id="{$id}" class="color-indicator" style="width:178px" />
<div cond="$var->type == 'textarea'">
<textarea cond="$var->type == 'textarea'" name="{$id}" id="{$id}" class="lang_code" rows="8" cols="42"></textarea>
<textarea cond="$var->type == 'textarea'" name="{$id}" id="{$id}" rows="8" cols="42"></textarea>
</div>
<select cond="$var->type == 'select'" name="{$id}" id="{$id}" style="width:220px">
<option loop="$var->options => $key, $val" value="{$key}">{$val}</option>