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

@ -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>