mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
issue 70 admin langauge apply
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9086 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d00f84fe03
commit
56a2ae027c
16 changed files with 75 additions and 103 deletions
|
|
@ -6,25 +6,25 @@
|
|||
<permission action="procTrashAdminRestore" target="manager" />
|
||||
</permissions>
|
||||
<actions>
|
||||
<action name="dispTrashAdminList" type="view" standalone="true" admin_index="true" menu_name="document" menu_index="true" />
|
||||
<action name="dispTrashAdminList" type="view" standalone="true" admin_index="true" menu_name="trash" menu_index="true" />
|
||||
|
||||
<action name="procTrashAdminEmptyTrash" type="controller" standalone="true" ruleset="emptyTrash" />
|
||||
<action name="procTrashAdminRestore" type="controller" standalone="true" />
|
||||
<action name="procTrashAdminGetList" type="controller" standalone="true" />
|
||||
</actions>
|
||||
<menus>
|
||||
<menu name="document">
|
||||
<title xml:lang="en">Document</title>
|
||||
<title xml:lang="ko">문서</title>
|
||||
<title xml:lang="zh-CN">Document</title>
|
||||
<title xml:lang="jp">Document</title>
|
||||
<title xml:lang="es">Document</title>
|
||||
<title xml:lang="ru">Document</title>
|
||||
<title xml:lang="fr">Document</title>
|
||||
<title xml:lang="zh-TW">Document</title>
|
||||
<title xml:lang="vi">Document</title>
|
||||
<title xml:lang="mn">Document</title>
|
||||
<title xml:lang="tr">Document</title>
|
||||
<menu name="trash">
|
||||
<title xml:lang="en">Trash</title>
|
||||
<title xml:lang="ko">휴지통</title>
|
||||
<title xml:lang="zh-CN">Trash</title>
|
||||
<title xml:lang="jp">Trash</title>
|
||||
<title xml:lang="es">Trash</title>
|
||||
<title xml:lang="ru">Trash</title>
|
||||
<title xml:lang="fr">Trash</title>
|
||||
<title xml:lang="zh-TW">Trash</title>
|
||||
<title xml:lang="vi">Trash</title>
|
||||
<title xml:lang="mn">Trash</title>
|
||||
<title xml:lang="tr">Trash</title>
|
||||
</menu>
|
||||
</menus>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -42,4 +42,8 @@
|
|||
<item name="fail_restore">
|
||||
<value xml:lang="ko"><![CDATA[복원하지 못했습니다.]]></value>
|
||||
</item>
|
||||
</lang>
|
||||
<item name="origin_module_type">
|
||||
<value xml:lang="ko"><![CDATA[원본 타입]]></value>
|
||||
<value xml:lang="en"><![CDATA[Source Type]]></value>
|
||||
</item>
|
||||
</lang>
|
||||
|
|
|
|||
|
|
@ -65,8 +65,12 @@ function completeGetTrashList(ret_obj, response_tags)
|
|||
for(var x in trash_list)
|
||||
{
|
||||
var objTrash = trash_list[x];
|
||||
var title = '';
|
||||
if(objTrash.title == '') title = no_text_comment;
|
||||
else title = objTrash.title;
|
||||
|
||||
htmlListBuffer += '<tr>' +
|
||||
'<td class="title">'+ objTrash.title +'</td>' +
|
||||
'<td class="title">'+ title +'</td>' +
|
||||
'<td>'+ objTrash.nickName +'</td>' +
|
||||
'<td>'+ objTrash.ipaddress +'</td>' +
|
||||
'</tr>' +
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
var confirm_restore_msg = '{$lang->confirm_restore}';
|
||||
var no_text_comment = '{$lang->no_text_comment}';
|
||||
</script>
|
||||
<!--%import("js/trash_admin.js")-->
|
||||
<div class="content" id="content">
|
||||
|
|
@ -10,37 +11,18 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
|
|||
<input type="hidden" name="act" value="procTrashAdminEmptyTrash" />
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
<input type="hidden" name="is_all" value="true" />
|
||||
<h1 class="h1">
|
||||
<!--@if($origin_module == 'document')-->
|
||||
{$lang->document}
|
||||
<!--@elseif($origin_module == 'comment')-->
|
||||
{$lang->comment}
|
||||
<!--@end-->
|
||||
</h1>
|
||||
<h1 class="h1">{$lang->trash}</h1>
|
||||
<div class="table even">
|
||||
<div class="cnb">
|
||||
<!--@if($origin_module == 'document')-->
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList')}">All</a>
|
||||
| <a href="{getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList', 'search_target', 'is_secret', 'search_keyword', 'N')}">{$status_name_list['PUBLIC']}</a>
|
||||
| <a href="{getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList', 'search_target', 'is_secret', 'search_keyword', 'Y')}">{$status_name_list['SECRET']}</a>
|
||||
| <a href="{getUrl('', 'module', 'admin', 'act', 'dispDocumentAdminList', 'search_target', 'is_secret', 'search_keyword', 'temp')}">{$status_name_list['TEMP']}</a>
|
||||
<!--@elseif($origin_module == 'comment')-->
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList')}">All</a>
|
||||
| <a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target','is_secret','search_keyword', 'N')}" <!--@if($search_target == 'is_secret' && $search_keyword == 'N')-->class="active"<!--@end-->>{$secret_name_list['N']}</a>
|
||||
| <a href="{getUrl('', 'module', 'admin', 'act', 'dispCommentAdminList', 'search_target','is_secret','search_keyword', 'Y')}" <!--@if($search_target == 'is_secret' && $search_keyword == 'Y')-->class="active"<!--@end-->>{$secret_name_list['Y']}</a>
|
||||
<!--@end-->
|
||||
| <a href="{getUrl('', 'module', 'admin', 'act', 'dispTrashAdminList', 'origin_module', $origin_module)}" class="active">{$lang->trash}</a>
|
||||
</div>
|
||||
<table width="100%" border="1" cellspacing="0" id="trashListTable">
|
||||
<caption>
|
||||
{$lang->trash}({number_format($total_count)})
|
||||
<span class="side"><span class="btn"><a href="#listManager" class="modalAnchor" onclick="getTrashList();">선택한 글 관리...</a></span>
|
||||
<span class="side"><span class="btn"><a href="#listManager" class="modalAnchor" onclick="getTrashList();">{$lang->document_manager}</a></span>
|
||||
<span class="btn"><button type="submit" name="is_all" value="true">{$lang->empty_trash_all}</button></span></span>
|
||||
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->document}</th>
|
||||
<th scope="col" class="title">{$lang->document}({$lang->origin_module_type})</th>
|
||||
<th scope="col">{$lang->trash_nick_name}</th>
|
||||
<th scope="col">{$lang->trash_date}</th>
|
||||
<th scope="col">{$lang->ipaddress}</th>
|
||||
|
|
@ -50,7 +32,7 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
|
|||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->document}</th>
|
||||
<th scope="col" class="title">{$lang->document}({$lang->origin_module_type})</th>
|
||||
<th scope="col">{$lang->trash_nick_name}</th>
|
||||
<th scope="col">{$lang->trash_date}</th>
|
||||
<th scope="col">{$lang->ipaddress}</th>
|
||||
|
|
@ -61,7 +43,7 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
|
|||
<tbody>
|
||||
<!--@foreach($trash_list as $no => $oTrashVO)-->
|
||||
<tr>
|
||||
<td class="title">{$oTrashVO->getTitle()}</td>
|
||||
<td class="title"><!--@if(!trim($oTrashVO->getTitle()) && $oTrashVO->getOriginModule() == 'comment')--><strong>{$lang->no_text_comment}</strong><!--@else-->{$oTrashVO->getTitle()}<!--@end--> (<!--@if($oTrashVO->getOriginModule() == 'document')-->{$lang->document}<!--@else-->{$lang->comment}<!--@end-->)</td>
|
||||
<td><span class="member_{$oTrashVO->getMemberSrl()">{htmlspecialchars($oTrashVO->getNickName())}</span></td>
|
||||
<td>{zdate($oTrashVO->getRegdate(), "Y-m-d H:i:s")}</td>
|
||||
<td>{$oTrashVO->getIpaddress()}</td>
|
||||
|
|
@ -73,7 +55,7 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
|
|||
</table>
|
||||
</div>
|
||||
<div class="btnArea">
|
||||
<span class="btn"><a href="#listManager" class="modalAnchor" onclick="getTrashList();">선택한 글 관리...</a></span>
|
||||
<span class="btn"><a href="#listManager" class="modalAnchor" onclick="getTrashList();">{$lang->document_manager}</a></span>
|
||||
<span class="btn"><button type="submit" name="is_all" value="true">{$lang->empty_trash_all}</button></span>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -83,10 +65,10 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
|
|||
<input type="hidden" name="page" value="{$page}" />
|
||||
<input type="hidden" name="is_all" value="false" />
|
||||
<input type="hidden" name="origin_module" value="{$origin_module}" />
|
||||
<h2 class="h2">선택한 글 관리</h2>
|
||||
<h2 class="h2">{$lang->document_manager}</h2>
|
||||
<div class="table even">
|
||||
<table width="100%" border="1" cellspacing="0" id="trashManageListTable">
|
||||
<caption>선택한 글 <strong id="selectedTrashCount">0</strong></caption>
|
||||
<caption>{$lang->selected_document} <strong id="selectedTrashCount">0</strong></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="title">{$lang->document}</th>
|
||||
|
|
@ -132,20 +114,5 @@ var confirm_restore_msg = '{$lang->confirm_restore}';
|
|||
<button type="submit">Go</button>
|
||||
</span>
|
||||
</form>
|
||||
<form action="">
|
||||
<select>
|
||||
<option>제목</option>
|
||||
<option>내용</option>
|
||||
<option>닉네임</option>
|
||||
<option>아이디</option>
|
||||
<option>사용자 이름</option>
|
||||
<option>공지사항</option>
|
||||
<option>IP 주소</option>
|
||||
<option>모듈 아이디</option>
|
||||
</select>
|
||||
<input title="Search" />
|
||||
<input type="submit" value="Search" />
|
||||
<a href="#">Cancel</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,32 +20,19 @@ class trashAdminView extends trash {
|
|||
* @brief trash list
|
||||
**/
|
||||
function dispTrashAdminList() {
|
||||
$origin_module = Context::get('origin_module');
|
||||
$args->page = Context::get('page'); // /< Page
|
||||
$args->list_count = 30; // /< the number of posts to display on a single page
|
||||
$args->page_count = 5; // /< the number of pages that appear in the page navigation
|
||||
|
||||
$args->search_target = Context::get('search_target'); // /< search (title, contents ...)
|
||||
$args->search_keyword = Context::get('search_keyword'); // /< keyword to search
|
||||
$args->originModule = Context::get('origin_module');
|
||||
|
||||
$oTrashModel = getModel('trash');
|
||||
$output = $oTrashModel->getTrashList($args);
|
||||
|
||||
if($origin_module == 'document')
|
||||
{
|
||||
// get Status name list
|
||||
$oDocumentModel = &getModel('document');
|
||||
$statusNameList = $oDocumentModel->getStatusNameList();
|
||||
Context::set('status_name_list', $statusNameList);
|
||||
}
|
||||
else if($origin_module == 'comment')
|
||||
{
|
||||
// get a list by using comment->getCommentList.
|
||||
$oCommentModel = &getModel('comment');
|
||||
$secretNameList = $oCommentModel->getSecretNameList();
|
||||
Context::set('secret_name_list', $secretNameList);
|
||||
}
|
||||
// for no text comment language and for document manange language
|
||||
$oCommentModel = &getModel('comment');
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
Context::set('trash_list', $output->data);
|
||||
Context::set('total_count', $output->total_count);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue