mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@271 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6e781c4f14
commit
847c335901
6 changed files with 196 additions and 0 deletions
87
modules/comment/tpl.admin/document_list.html
Normal file
87
modules/comment/tpl.admin/document_list.html
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
<!--%import("filter/search.xml")-->
|
||||
<!--%import("filter/delete_checked.xml")-->
|
||||
<!--%import("js/document.js")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 게시판 정보 -->
|
||||
<div>
|
||||
{$lang->document_count} : {number_format($total_count)},
|
||||
{$lang->page_count} : {number_format($page)} / {number_format($total_page)}
|
||||
</div>
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
|
||||
<!-- 목록 -->
|
||||
<div>
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2">{$lang->no}</th>
|
||||
<th>{$lang->module}</th>
|
||||
<th>{$lang->title}</th>
|
||||
<th>{$lang->user_name}</th>
|
||||
<th>{$lang->readed_count}</th>
|
||||
<th>{$lang->voted_count}</th>
|
||||
<th>{$lang->date}</th>
|
||||
</tr>
|
||||
<!--@foreach($document_list as $no => $val)-->
|
||||
<tr>
|
||||
<td>{$no}</td>
|
||||
<td><input type="checkbox" name="cart" value="{$val->document_srl}" /></td>
|
||||
<td><a href="#" onclick="window.open('./?mid={$val->mid}');return false">{$module_list[$val->module_srl]->browser_title}</a></td>
|
||||
<td>
|
||||
<a href="#" onclick="window.open('./?document_srl={$val->document_srl}');return false">{$val->title}</a>
|
||||
<!--@if($val->comment_count>0)-->
|
||||
[{$val->comment_count}]
|
||||
<!--@end-->
|
||||
<!--@if($val->trackback_count>0)-->
|
||||
[{$val->trackback_count}]
|
||||
<!--@end-->
|
||||
</td>
|
||||
<td>{$val->user_name}</td>
|
||||
<td>{$val->readed_count}</td>
|
||||
<td>{$val->voted_count}</td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 버튼 -->
|
||||
<div>
|
||||
<input type="submit" value="{$lang->cmd_delete_checked_document}" />
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<!-- 검색 -->
|
||||
<div>
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, search)">
|
||||
<input type="hidden" name="module" value="admin" />
|
||||
<input type="hidden" name="mo" value="document" />
|
||||
<input type="hidden" name="act" value="dispList" />
|
||||
<select name="search_target">
|
||||
<!--@foreach($search_option as $key => $val)-->
|
||||
<option value="{$key}" <!--@if($search_target==$key)-->selected="true"<!--@end-->>{$val}</option>
|
||||
<!--@end-->
|
||||
</select>
|
||||
<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" />
|
||||
<input type="submit" value="{$lang->cmd_search}" />
|
||||
<input type="button" value="{$lang->cmd_cancel}" onclick="location.href='{getUrl('search_target','','search_keyword','','page','1','document_srl','')}'"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div>
|
||||
<a href="{getUrl('page','','document_srl','')}">[{$lang->first_page}]</a>
|
||||
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
{$page_no}
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no,'document_srl','')}">[{$page_no}]</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'document_srl','')}">[{$lang->last_page}]</a>
|
||||
</div>
|
||||
13
modules/comment/tpl.admin/filter/delete_checked.xml
Normal file
13
modules/comment/tpl.admin/filter/delete_checked.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<filter name="delete_checked" module="document" act="procDeleteChecked" confirm_msg_code="confirm_delete">
|
||||
<form>
|
||||
<node target="cart" required="true" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="cart" target="cart" />
|
||||
<param name="search_keyword" target="search_keyword" />
|
||||
</parameter>
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
14
modules/comment/tpl.admin/filter/search.xml
Normal file
14
modules/comment/tpl.admin/filter/search.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<filter name="search" module="document">
|
||||
<form>
|
||||
<node target="search_target" required="true" />
|
||||
<node target="search_keyword" minlegnth="2" maxlength="40" required="true" />
|
||||
</form>
|
||||
<parameter>
|
||||
<param name="search_target" target="search_target" />
|
||||
<param name="search_keyword" target="search_keyword" />
|
||||
</parameter>
|
||||
<response callback_func="completeSearch">
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
10
modules/comment/tpl.admin/js/document.js
Normal file
10
modules/comment/tpl.admin/js/document.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* @file modules/document/tpl.admin/js/board.js
|
||||
* @author zero <zero@nzeo.com>
|
||||
* @biref board 모듈의 javascript
|
||||
**/
|
||||
|
||||
/* 검색 실행 */
|
||||
function completeSearch(fo_obj) {
|
||||
fo_obj.submit();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue