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@240 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f3419d2932
commit
61b7b47d6c
7 changed files with 96 additions and 1 deletions
|
|
@ -5,5 +5,7 @@
|
|||
* @desc : 한국어 언어팩 (기본적인 내용만 수록)
|
||||
**/
|
||||
|
||||
$lang->cmd_spamer_list = "등록된 스패머 목록";
|
||||
|
||||
$lang->msg_alert_registered_spamer = '스패머로 등록되셨습니다';
|
||||
?>
|
||||
|
|
|
|||
17
modules/spamfilter/queries/getSpammerList.xml
Normal file
17
modules/spamfilter/queries/getSpammerList.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<query id="getSpammerList" action="select">
|
||||
<tables>
|
||||
<table name="spamfilter_denied_ip" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="ipaddress" var="ipaddress" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" order="desc" />
|
||||
<list_count var="list_count" default="50" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
|
|
@ -13,6 +13,17 @@
|
|||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 등록된 스패머의 목록을 return
|
||||
**/
|
||||
function getSpammerList() {
|
||||
$oDB = &DB::getInstance();
|
||||
$args->sort_index = "regdate";
|
||||
$args->list_count = 50;
|
||||
$args->page = Context::get('page')?Context::get('page'):1;
|
||||
return $oDB->executeQuery('spamfilter.getSpammerList', $args);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 지정된 IPaddress의 특정 시간대 내의 로그 수를 return
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// 템플릿 경로 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl.admin');
|
||||
}
|
||||
|
||||
|
|
@ -18,6 +19,18 @@
|
|||
* @brief 관리자 모드에서 보여줄 화면
|
||||
**/
|
||||
function dispContent() {
|
||||
// 등록된 스패머의 목록을 가져옴
|
||||
$oSpamFilterModel = &getModel('spamfilter');
|
||||
$output = $oSpamFilterModel->getSpammerList();
|
||||
|
||||
Context::set('total_count', $output->total_count);
|
||||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('document_list', $output->data);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
4
modules/spamfilter/tpl.admin/header.html
Normal file
4
modules/spamfilter/tpl.admin/header.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<div style="margin-bottom:20px;">
|
||||
<span <!--@if($act=='dispContent')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispContent')}">{$lang->cmd_spamer_list}</a>]</span>
|
||||
<span <!--@if($act=='dispModuleConfig')-->style="font-weight:bold"<!--@end-->>[<a href="{getUrl('act','dispModuleConfig','module_srl','')}">{$lang->cmd_module_config}</a>]</span>
|
||||
</div>
|
||||
48
modules/spamfilter/tpl.admin/index.html
Normal file
48
modules/spamfilter/tpl.admin/index.html
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<!--#include("header.html")-->
|
||||
|
||||
<!-- 스패머 정보 -->
|
||||
<div>
|
||||
{number_format($total_count)},
|
||||
{$lang->page_count} : {number_format($page)} / {number_format($total_page)}
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 목록 -->
|
||||
<div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>{$lang->no}</th>
|
||||
<th>{$lang->ipaddress}</th>
|
||||
<th>{$lang->regdate}</th>
|
||||
<th>{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
<!--@foreach($spammer_list as $no => $val)-->
|
||||
<tr>
|
||||
<td>{$no}</td>
|
||||
<td>{$val->ipaddress}</td>
|
||||
<td>{zdate($val->regdate,"Y-m-d")}</td>
|
||||
<td><a href="{getUrl('act','dispAdminDeleteBoard','ipaddress', $val->ipaddress)}">{$lang->cmd_delete}</a></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 버튼 -->
|
||||
<div>
|
||||
[<a href="{getUrl('act','dispAdminInsertBoard','module_srl','')}">{$lang->cmd_insert}</a>]
|
||||
</div>
|
||||
|
||||
<!-- 페이지 네비게이션 -->
|
||||
<div>
|
||||
<a href="{getUrl('page','','module_srl','')}">[{$lang->first_page}]</a>
|
||||
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
<!--@if($page == $page_no)-->
|
||||
{$page_no}
|
||||
<!--@else-->
|
||||
<a href="{getUrl('page',$page_no,'module_srl','')}">[{$page_no}]</a>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
|
||||
<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}">[{$lang->last_page}]</a>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue