Document, Comment UI cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12041 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-11-02 07:52:43 +00:00
parent 86011ab063
commit 1367687ee7
6 changed files with 193 additions and 203 deletions

View file

@ -4,27 +4,23 @@ xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
</script>
<load target="js/comment_admin.js" usecdn="true" />
<div class="x_tabbable">
<ul class="x_nav x_nav-tabs">
<li class="x_active"|cond="$search_keyword == ''"><a href="{getUrl('search_keyword','','act','dispCommentAdminList', 'Y')}">{$lang->all}</a></li>
<li class="x_active"|cond="$search_target == 'is_secret' && $search_keyword == 'N'"><a href="{getUrl('search_target','is_secret','search_keyword', 'N')}">{$secret_name_list['N']}</a></li>
<li class="x_active"|cond="$search_target == 'is_secret' && $search_keyword == 'Y'"><a href="{getUrl('search_target','is_secret','search_keyword', 'Y')}">{$secret_name_list['Y']}</a></li>
<li class="x_active"|cond="$search_target == 'is_published' && $search_keyword == 'N'"><a href="{getUrl('search_target','is_published','search_keyword', 'N')}">{$lang->published_name_list['N']}</a></li>
<li class="x_active"|cond="$search_target == 'is_published' && $search_keyword == 'Y'"><a href="{getUrl('search_target','is_published','search_keyword', 'Y')}">{$lang->published_name_list['Y']}</a></li>
<li><a href="{getUrl('', 'module', 'admin', 'act','dispCommentAdminDeclared')}">{$lang->cmd_declared_list}</a></li>
</ul>
</div>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form id="fo_list" action="./" method="post">
<select cond="$modules_list" id="comment_modules" name="comment_modules" title="{$lang->select_module}" onchange="location.href='{getUrl('search_target','module','search_keyword','')}&amp;search_keyword='+this.value" style="width:220px">
<option>{$lang->select_module}</option>
<!--@foreach($modules_list as $key => $node)-->
<option value="{$key}"<!--@if($key==$search_keyword)-->selected<!--@end-->>{$node}</option>
<!--@end-->
</select>
<table id="commentListTable" class="x_table x_table-striped x_table-hover">
<caption>
<a href="{getUrl('search_keyword','','act','dispCommentAdminList', 'Y')}" class="active"|cond="$search_keyword == ''">{$lang->all}</a><block cond="$search_keyword == ''">({number_format($total_count)})</block>
<i>|</i>
<a href="{getUrl('search_target','is_secret','search_keyword', 'N')}" class="active"|cond="$search_target == 'is_secret' && $search_keyword == 'N'">{$secret_name_list['N']}</a><block cond="$search_target == 'is_secret' && $search_keyword == 'N'">({number_format($total_count)})</block>
<i>|</i>
<a href="{getUrl('search_target','is_secret','search_keyword', 'Y')}" class="active"|cond="$search_target == 'is_secret' && $search_keyword == 'Y'">{$secret_name_list['Y']}</a><block cond="$search_target == 'is_secret' && $search_keyword == 'Y'">({number_format($total_count)})</block>
<i>|</i>
<a href="{getUrl('search_target','is_published','search_keyword', 'N')}" class="active"|cond="$search_target == 'is_published' && $search_keyword == 'N'">{$lang->published_name_list['N']}</a><block cond="$search_target == 'is_published' && $search_keyword == 'N'">({number_format($total_count)})</block>
<i>|</i>
<a href="{getUrl('search_target','is_published','search_keyword', 'Y')}" class="active"|cond="$search_target == 'is_published' && $search_keyword == 'Y'">{$lang->published_name_list['Y']}</a><block cond="$search_target == 'is_published' && $search_keyword == 'Y'">({number_format($total_count)})</block>
{$lang->all}({number_format($total_count)})
<div class="x_pull-right">
<a href="#listManager" class="x_btn modalAnchor" onclick="getCommentList();">{$lang->comment_manager}...</a>
</div>
@ -119,7 +115,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />
<input type="hidden" name="error_return_url" value="" />
<select name="search_target" title="{$lang->search_target}">
<select name="search_target" title="{$lang->search_target}" style="margin-right:4px">
<!--@foreach($lang->search_target_list as $key => $val)-->
<option value="{$key}" <!--@if($search_target==$key)-->selected="selected"<!--@end-->>{$val}</option>
<!--@end-->

View file

@ -1,4 +1,16 @@
<include target="header.html" />
<div class="x_page-header">
<h1>{$lang->comment} {$lang->cmd_management}</h1>
</div>
<div class="x_tabbable">
<ul class="x_nav x_nav-tabs">
<li><a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_keyword','','act','dispCommentAdminList', 'Y')}">{$lang->all}</a></li>
<li><a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target','is_secret','search_keyword', 'N')}">{$status_name_list['PUBLIC']}</a></li>
<li><a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target','is_secret','search_keyword', 'Y')}">{$status_name_list['SECRET']}</a></li>
<li><a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target','is_published','search_keyword', 'N')}">{$lang->published_name_list['N']}</a></li>
<li><a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target','is_published','search_keyword', 'Y')}">{$lang->published_name_list['Y']}</a></li>
<li class="x_active"><a href="{getUrl('', 'module', 'admin', 'act','dispCommentAdminDeclared')}">{$lang->cmd_declared_list}</a></li>
</ul>
</div>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
@ -22,6 +34,16 @@
<th scope="col" style="width:15px"><input type="checkbox" /></th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="col">{$lang->comment}</th>
<th scope="col">{$lang->user_name}</th>
<th scope="col">{$lang->date}</th>
<th scope="col">{$lang->cmd_declare}</th>
<th scope="col">{$lang->ipaddress}</th>
<th scope="col" style="width:15px"><input type="checkbox" /></th>
</tr>
</tfoot>
<tbody>
<tr loop="$comment_list => $no, $oComment">
<td><a href="{getUrl('','document_srl',$oComment->get('document_srl'))}#comment_{$oComment->get('comment_srl')}" onclick="window.open(this.href);return false;">{$oComment->getSummary(100)}</a></td>

View file

@ -2,9 +2,3 @@
<div class="x_page-header">
<h1>{$lang->comment} {$lang->cmd_management}</h1>
</div>
<div class="x_tabbable">
<ul class="x_nav x_nav-tabs">
<li <!--@if($act=='dispCommentAdminList')-->class="x_active"<!--@end-->><a href="{getUrl('act','dispCommentAdminList')}">{$lang->comment_list}</a></li>
<li <!--@if($act=='dispCommentAdminDeclared')-->class="x_active"<!--@end-->><a href="{getUrl('act','dispCommentAdminDeclared')}">{$lang->cmd_declared_list}</a></li>
</ul>
</div>