Trash UI cleaning.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11941 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-10-29 06:33:05 +00:00
parent e35a2ffaa8
commit e29e731599
2 changed files with 90 additions and 95 deletions

View file

@ -70,11 +70,10 @@ function completeGetTrashList(ret_obj, response_tags)
else title = objTrash.title;
htmlListBuffer += '<tr>' +
'<td class="title">'+ title +'</td>' +
'<td class="title">'+ title +'<input type="hidden" name="cart[]" value="'+objTrash.trashSrl+'" /></td>' +
'<td class="nowr">'+ objTrash.nickName +'</td>' +
'<td class="nowr">'+ objTrash.ipaddress +'</td>' +
'</tr>' +
'<input type="hidden" name="cart[]" value="'+objTrash.trashSrl+'" />';
'</tr>';
}
jQuery('#selectedTrashCount').html(trash_list.length);
}

View file

@ -3,24 +3,23 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
var no_text_comment = '{$lang->no_text_comment}';
</script>
<load target="js/trash_admin.js" usecdn="true" />
<div class="x_page-header">
<h1>{$lang->trash}</h1>
</div>
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="emptyTrash" action="./" method="post">
<form ruleset="emptyTrash" action="./" method="post">
<input type="hidden" name="module" value="trash" />
<input type="hidden" name="act" value="procTrashAdminEmptyTrash" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="is_all" value="true" />
<div class="x_page-header">
<h1>{$lang->trash}</h1>
</div>
<div class="table even">
<table width="100%" id="trashListTable" class="x_table x_table-striped x_table-hover">
<table id="trashListTable" class="x_table x_table-striped x_table-hover">
<caption>
{$lang->trash}({number_format($total_count)})
<div class="x_pull-right x_btn-group">
<a href="#fo_list" class="x_btn modalAnchor" onclick="getTrashList();">{$lang->document_manager}</a>
<button type="submit" class="x_btn x_btn-primary" name="is_all" value="true">{$lang->empty_trash_all}</button>
<button type="submit" class="x_btn x_btn-danger" name="is_all" value="true">{$lang->empty_trash_all}</button>
</div>
</caption>
<thead>
@ -56,54 +55,18 @@ var no_text_comment = '{$lang->no_text_comment}';
<!--@end-->
</tbody>
</table>
</div>
<div class="btnArea">
<div class="x_pull-right x_btn-group">
<a href="#fo_list" class="x_btn modalAnchor" onclick="getTrashList();">{$lang->document_manager}</a>
<button type="submit" class="x_btn x_btn-primary" name="is_all" value="true">{$lang->empty_trash_all}</button>
<button type="submit" class="x_btn x_btn-danger" name="is_all" value="true">{$lang->empty_trash_all}</button>
</div>
</div>
</form>
</form>
<form ruleset="emptyTrash" id="fo_list" action="./" method="post" class="x_modal fg">
<input type="hidden" name="module" value="trash" />
<input type="hidden" name="act" value="procTrashAdminEmptyTrash" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="is_all" value="false" />
<input type="hidden" name="origin_module" value="{$origin_module}" />
<div class="x_modal-header">
<h2>{$lang->document_manager}</h2>
</div>
<div class="x_modal-body">
<table width="100%" id="trashManageListTable" class="x_table x_table-striped x_table-hover">
<caption>{$lang->selected_document} <strong id="selectedTrashCount">0</strong></caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->document}</th>
<th scope="col" class="nowr">{$lang->trash_nick_name}</th>
<th scope="col" class="nowr">{$lang->ipaddress}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="x_modal-footer">
<div class="x_btn-group">
<button type="submit" class="x_btn x_btn-danger" name="is_all" value="false">{$lang->cmd_delete}</button>
<button type="submit" class="x_btn x_btn-primary" name="act" value="procTrashAdminRestore">{$lang->cmd_restore}</button>
</div>
</div>
</form>
<div class="search">
<form action="" class="x_pagination x_pagination-centered">
<form action="" class="x_pagination" style="margin-top:-10px">
<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}" />
<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">
@ -134,5 +97,38 @@ var no_text_comment = '{$lang->no_text_comment}';
</block>
<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>
</div>
</form>
<form ruleset="emptyTrash" id="fo_list" action="./" method="post" class="x_modal">
<input type="hidden" name="module" value="trash" />
<input type="hidden" name="act" value="procTrashAdminEmptyTrash" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="is_all" value="false" />
<input type="hidden" name="origin_module" value="{$origin_module}" />
<div class="x_modal-header">
<h3>{$lang->document_manager}</h3>
</div>
<div class="x_modal-body">
<table id="trashManageListTable" class="x_table x_table-striped x_table-hover">
<caption>{$lang->selected_document} <strong id="selectedTrashCount">0</strong></caption>
<thead>
<tr>
<th scope="col" class="title">{$lang->document}</th>
<th scope="col" class="nowr">{$lang->trash_nick_name}</th>
<th scope="col" class="nowr">{$lang->ipaddress}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="x_modal-footer">
<div class="x_pull-left">
<button type="submit" class="x_btn x_btn-primary" name="act" value="procTrashAdminRestore">{$lang->cmd_restore}</button>
</div>
<div class="x_pull-right">
<button type="submit" class="x_btn x_btn-danger" name="is_all" value="false">{$lang->cmd_delete}</button>
</div>
</div>
</form>