mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
휴지통 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5914 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
cafe2ac4a0
commit
19a6b5fcc1
18 changed files with 400 additions and 6 deletions
|
|
@ -52,6 +52,7 @@
|
|||
|
||||
<!--@if(count($document_list))-->
|
||||
<div id="popFooter">
|
||||
<a href="#" onclick="doManageDocument('trash');return false;" class="button red"><span>{$lang->cmd_trash}</span></a>
|
||||
<a href="#" onclick="doManageDocument('delete');return false;" class="button black strong"><span>{$lang->cmd_delete}</span></a>
|
||||
<a href="#" onclick="doManageDocument('move');return false;" class="button blue"><span>{$lang->cmd_move}</span></a>
|
||||
<a href="#" onclick="doManageDocument('copy');return false;" class="button green"><span>{$lang->cmd_copy}</span></a>
|
||||
|
|
|
|||
|
|
@ -55,10 +55,14 @@
|
|||
<td class="number center">{$no}</td>
|
||||
<td class="center"><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end-->/></td>
|
||||
<td class="left subject">
|
||||
<!--@if($oDocument->get('module_srl')==$oDocument->get('member_srl'))-->
|
||||
{$lang->cmd_save}
|
||||
<!--@if($oDocument->get('module_srl') != 0)-->
|
||||
<!--@if($oDocument->get('module_srl')==$oDocument->get('member_srl'))-->
|
||||
{$lang->cmd_save}
|
||||
<!--@else-->
|
||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}" onclick="window.open(this.href);return false">{$oDocument->getTitle()}</a>
|
||||
<!--@end-->
|
||||
<!--@else-->
|
||||
<a href="{getUrl('','document_srl',$oDocument->document_srl)}" onclick="window.open(this.href);return false">{$oDocument->getTitle()}</a>
|
||||
[{$lang->in_trash}] {$oDocument->getTitle()}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
|
|
|
|||
73
modules/document/tpl/document_trash_list.html
Normal file
73
modules/document/tpl/document_trash_list.html
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
<!--%import("filter/delete_checked.xml")-->
|
||||
<!--%import("filter/manage_checked_document.xml")-->
|
||||
<!--%import("filter/restore_trash.xml")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<form id="restore_form" action="./" method="post">
|
||||
<input type="hidden" id="target_srl" name="target_srl" value="" />
|
||||
</form>
|
||||
|
||||
<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
|
||||
<!-- 모듈 선택 -->
|
||||
<div class="fr">
|
||||
<a href="{getUrl('','module','module','act','dispModuleSelectList','id','target_module','type','single')}" onclick="popopen(this.href,'ModuleSelect');return false;" class="button green"><span>{$lang->cmd_find_module}</span></a>
|
||||
<!-- <a href="{getUrl('','module','document','act','dispDocumentManageDocument')}" onclick="popopen(this.href,'manageDocument'); return false;" class="button blue"><span>{$lang->cmd_manage_document}</span></a> -->
|
||||
</div>
|
||||
|
||||
<!-- 목록 -->
|
||||
<table cellspacing="0" class="rowTable clear">
|
||||
<caption>Total {number_format($total_count)}, Page {number_format($page)}/{number_format($total_page)}</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><div>{$lang->no}</div></th>
|
||||
<!--<th scope="col"><div><input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></div></th>-->
|
||||
<th scope="col" class="wide"><div>{$lang->document}</div></th>
|
||||
<th scope="col"><div>{$lang->trash_nick_name}</div></th>
|
||||
<th scope="col"><div>{$lang->trash_date}</div></th>
|
||||
<th scope="col"><div>{$lang->ipaddress}</div></th>
|
||||
<th scope="col"><dib>{$lang->trash_description}</div></th>
|
||||
<th scope="col"><div>{$lang->cmd_restore}</div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<!--@foreach($document_list as $no => $oDocument)-->
|
||||
<tr>
|
||||
<td class="number center">{$no}</td>
|
||||
<!--<td class="center"><input type="checkbox" name="cart" value="{$oDocument->document_srl}" onclick="doAddDocumentCart(this)" <!--@if($oDocument->isCarted())-->checked="checked"<!--@end-->/></td>-->
|
||||
<td class="left subject">
|
||||
{$oDocument->getTitle()}
|
||||
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
[{$oDocument->getCommentCount()}]
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($oDocument->getTrackbackCount())-->
|
||||
[{$oDocument->getTrackbackCount()}]
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td class="nowrap"><span class="member_{$oDocument->get('trash_member_srl')}">{htmlspecialchars($oDocument->get('trash_nick_name'))}</span></td>
|
||||
<td class="date center nowrap">{zdate($oDocument->get('trash_date'), "Y-m-d H:i:s")}</td>
|
||||
<td class="number center nowrap">{$oDocument->get('ipaddress')}</td>
|
||||
<td class="left">{$oDocument->get('trash_description')}</td>
|
||||
<td class="center"><a href="#" onclick="executeFilterByTargetSrl('restore_form', {$oDocument->get('trash_srl')}, restore_trash);">{$lang->cmd_restore}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div class="pagination a1">
|
||||
<a href="{getUrl('page','','module_srl',$module_srl)}" class="prevEnd">{$lang->first_page}</a>
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
<strong>{$page_no}</strong>
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no,'module_srl',$module_srl)}">{$page_no}</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'module_srl',$module_srl)}" class="nextEnd">{$lang->last_page}</a>
|
||||
</div>
|
||||
|
|
@ -7,5 +7,6 @@
|
|||
<li <!--@if($act=='dispDocumentAdminList')-->class="on"<!--@end-->><a href="{getUrl('act','dispDocumentAdminList')}">{$lang->document_list}</a></li>
|
||||
<li <!--@if($act=='dispDocumentAdminConfig')-->class="on"<!--@end-->><a href="{getUrl('act','dispDocumentAdminConfig')}">{$lang->cmd_module_config}</a></li>
|
||||
<li <!--@if($act=='dispDocumentAdminDeclared')-->class="on"<!--@end-->><a href="{getUrl('act','dispDocumentAdminDeclared')}">{$lang->cmd_declared_list}</a></li>
|
||||
<li <!--@if($act=='dispDocumentAdminTrashList')-->class="on"<!--@end--><a href="{getUrl('act','dispDocumentAdminTrashList')}">{$lang->cmd_trash}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -116,11 +116,19 @@ function insertSelectedModule(id, module_srl, mid, browser_title) {
|
|||
function deleteByFilter(target_srl, filter)
|
||||
{
|
||||
var e = xGetElementById('target_srl');
|
||||
e.value= target_srl;
|
||||
e.value = target_srl;
|
||||
var hF = xGetElementById("deleteForm");
|
||||
procFilter(hF, filter);
|
||||
}
|
||||
|
||||
function executeFilterByTargetSrl(form_name, target_srl, filter)
|
||||
{
|
||||
var e = xGetElementById('target_srl');
|
||||
e.value = target_srl;
|
||||
var hF = xGetElementById(form_name);
|
||||
procFilter(hF, filter);
|
||||
}
|
||||
|
||||
function doDeleteExtraKey(module_srl, var_idx) {
|
||||
var fo_obj = xGetElementById('fo_delete');
|
||||
fo_obj.module_srl.value = module_srl;
|
||||
|
|
@ -136,3 +144,8 @@ function moveVar(type, module_srl, var_idx) {
|
|||
var response_tags = new Array('error','message');
|
||||
exec_xml('document','procAdminMoveExtraVar', params, function() { location.reload(); });
|
||||
}
|
||||
|
||||
function completeRestoreTrash(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
location.href = current_url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue