mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 2451 [Admin UI Refactoring] Content > Spam Filter
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11559 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e58a54edc7
commit
bb04beaed5
6 changed files with 144 additions and 77 deletions
41
modules/spamfilter/tpl/config_block.html
Normal file
41
modules/spamfilter/tpl/config_block.html
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<include target="./header.html" />
|
||||
<section class="section">
|
||||
<ul class="x_nav x_nav-tabs">
|
||||
<li><a href="{getUrl('','module','admin','act','dispSpamfilterAdminDeniedIPList')}">{$lang->cmd_denied_ip}</a></li>
|
||||
<li><a href="{getUrl('','module','admin','act','dispSpamfilterAdminDeniedWordList')}">{$lang->cmd_denied_word}</a></li>
|
||||
<li class="x_active"><a href="{getUrl('','module','admin','act','dispSpamfilterAdminConfigBlock')}">{$lang->cmd_config_block}</a></li>
|
||||
</ul>
|
||||
<form action="./" id="spamfilterConfig" ruleset="@insertConfig">
|
||||
<input type="hidden" name="act" value="procSpamfilterAdminInsertConfig" />
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="ruleset" value="insertConfig" />
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="inputEmail2">{$lang->cmd_interval}</label>
|
||||
<label for="spamCond1_yes" class="x_inline">
|
||||
<input type="radio" name="limits" id="spamCond1_yes" value="Y" <!--@if($config->limits=='Y' || $config->limits =='')-->checked="checked"<!--@end--> />
|
||||
{$lang->cmd_yes}</label>
|
||||
<label for="spamCond1_no" class="x_inline">
|
||||
<input type="radio" name="limits" id="spamCond1_no" value="N" <!--@if($config->limits!='Y' && $config->limits !='')--> checked="checked"<!--@end--> /> {$lang->cmd_no}
|
||||
</label>
|
||||
|
||||
</div>
|
||||
<div class="x_control-group">
|
||||
<label class="x_control-label" for="inputEmail2">{$lang->cmd_check_trackback}</label>
|
||||
<label for="spamCond2_yes" class="x_inline">
|
||||
<input type="radio" name="check_trackback" id="spamCond2_yes" value="Y" <!--@if($config->check_trackback=='Y' || $config->check_trackback=='')--> checked="checked"<!--@end--> />{$lang->cmd_yes}
|
||||
</label>
|
||||
<label for="spamCond2_yes" class="x_inline">
|
||||
<input type="radio" name="check_trackback" id="spamCond2_yes" value="N" <!--@if($config->check_trackback!='Y' && $config->check_trackback!='')--> checked="checked"<!--@end--> / > {$lang->cmd_no}
|
||||
</label>
|
||||
</div>
|
||||
<div class="x_clearfix btnArea">
|
||||
<div class="x_pull-right">
|
||||
<button type="submit" class="x_btn x_btn-primary">{$lang->cmd_save}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<include target="./footer.html" />
|
||||
|
||||
|
||||
43
modules/spamfilter/tpl/denied_ip_list.html
Normal file
43
modules/spamfilter/tpl/denied_ip_list.html
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<include target="./header.html" />
|
||||
<section>
|
||||
<ul class="x_nav x_nav-tabs">
|
||||
<li class="x_active"><a href="{getUrl('','module','admin','act','dispSpamfilterAdminDeniedIPList')}">{$lang->cmd_denied_ip}</a></li>
|
||||
<li><a href="{getUrl('','module','admin','act','dispSpamfilterAdminDeniedWordList')}">{$lang->cmd_denied_word}</a></li>
|
||||
<li><a href="{getUrl('','module','admin','act','dispSpamfilterAdminConfigBlock')}">{$lang->cmd_config_block}</a></li>
|
||||
</ul>
|
||||
<table class="x_table x_table-striped x_table-hover">
|
||||
<caption><strong>{$lang->cmd_denied_ip}</strong></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:160px">IP</th>
|
||||
<th>{$lang->description}</th>
|
||||
<th style="width:100px">{$lang->regdate}</th>
|
||||
<th style="width:50px">{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$ip_list => $ip_info">
|
||||
<td>{$ip_info->ipaddress}</td>
|
||||
<td>{$ip_info->description}</td>
|
||||
<td>{zdate($ip_info->regdate,'Y-m-d')}</td>
|
||||
<td><a href="#" onclick="doDeleteDeniedIP('{$ip_info->ipaddress}')">{$lang->cmd_delete}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<form action="./" class="x_form-horizontal">
|
||||
<input type="hidden" name="act" value="procSpamfilterAdminInsertDeniedIP" />
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="ruleset" value="insertDeniedIp" />
|
||||
<input type="hidden" name="active" value="ip" />
|
||||
<div class="x_control-group">
|
||||
<textarea name="ipaddress_list" title="{$lang->add_denied_ip}"></textarea>
|
||||
<span class="x_muted">{$lang->about_denied_ip}</span>
|
||||
</div>
|
||||
<div class="x_clearfix btnArea">
|
||||
<div class="x_pull-left">
|
||||
<button type="submit" class="x_btn x_btn-info">{$lang->add}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<include target="./footer.html" />
|
||||
45
modules/spamfilter/tpl/denied_word_list.html
Normal file
45
modules/spamfilter/tpl/denied_word_list.html
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<include target="./header.html" />
|
||||
<section>
|
||||
<ul class="x_nav x_nav-tabs">
|
||||
<li><a href="{getUrl('','module','admin','act','dispSpamfilterAdminDeniedIPList')}">{$lang->cmd_denied_ip}</a></li>
|
||||
<li class="x_active"><a href="{getUrl('','module','admin','act','dispSpamfilterAdminDeniedWordList')}">{$lang->cmd_denied_word}</a></li>
|
||||
<li><a href="{getUrl('','module','admin','act','dispSpamfilterAdminConfigBlock')}">{$lang->cmd_config_block}</a></li>
|
||||
</ul>
|
||||
<table class="x_table x_table-striped x_table-hover">
|
||||
<caption><strong>{$lang->cmd_denied_word}</strong></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>IP</th>
|
||||
<th style="width:100px" class="center">{$lang->latest_hit}</th>
|
||||
<th style="width:50px" class="center">{$lang->hit}</th>
|
||||
<th style="width:100px">{$lang->regdate}</th>
|
||||
<th style="width:50px">{$lang->cmd_delete}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$word_list => $word_info">
|
||||
<td>{$word_info->word}</td>
|
||||
<td class="center"><!--@if($word_info->latest_hit)-->{$word_info->latest_hit}<!--@else-->-<!--@end--></td>
|
||||
<td class="center">{$word_info->hit}</td>
|
||||
<td>{zdate($word_info->regdate,'Y-m-d')}</td>
|
||||
<td><a href="#" onclick="doDeleteDeniedWord('{$word_info->word}')">{$lang->cmd_delete}</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<form action="./" class="x_form-horizontal">
|
||||
<input type="hidden" name="act" value="procSpamfilterAdminInsertDeniedWord" />
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="ruleset" value="insertDeniedWord" />
|
||||
<input type="hidden" name="active" value="word" />
|
||||
<div class="x_control-group">
|
||||
<textarea name="word_list" title="{$lang->add_denied_word}"></textarea>
|
||||
<span class="x_muted">{$lang->about_denied_word}</span>
|
||||
</div>
|
||||
<div class="x_clearfix btnArea">
|
||||
<div class="x_pull-left">
|
||||
<button type="submit" class="x_btn x_btn-info">{$lang->add}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<include target="./footer.html" />
|
||||
8
modules/spamfilter/tpl/footer.html
Normal file
8
modules/spamfilter/tpl/footer.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<form id="spamfilterDelete" action="" method="post">
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="act" value="" />
|
||||
<input type="hidden" name="ipaddress" value="" />
|
||||
<input type="hidden" name="word" value="" />
|
||||
<input type="hidden" name="ruleset" value="">
|
||||
</form>
|
||||
|
||||
7
modules/spamfilter/tpl/header.html
Normal file
7
modules/spamfilter/tpl/header.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<load target="js/spamfilter_admin.js" usecdn="true" />
|
||||
<div class="x_page-header">
|
||||
<h1>{$lang->spamfilter}</h1>
|
||||
</div>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
<load target="js/spamfilter_admin.js" usecdn="true" />
|
||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form id="spamfilterDelete" action="" method="post">
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="act" value="" />
|
||||
<input type="hidden" name="ipaddress" value="" />
|
||||
<input type="hidden" name="word" value="" />
|
||||
<input type="hidden" name="ruleset" value="">
|
||||
</form>
|
||||
<form action="" id="spamfilterConfig" class="form" ruleset="@insertConfig">
|
||||
<input type="hidden" name="act" value="procSpamfilterAdminInsertConfig" />
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="ruleset" value="insertConfig" />
|
||||
<h1 class="h1">{$lang->spamfilter}</h1>
|
||||
<ul>
|
||||
<li>
|
||||
<p class="q">{$lang->cmd_interval}</p>
|
||||
<p class="a">
|
||||
<input type="radio" name="limits" id="spamCond1_yes" value="Y" <!--@if($config->limits=='Y' || $config->limits =='')-->checked="checked"<!--@end--> />
|
||||
<label for="spamCond1_yes">{$lang->cmd_yes}</label>
|
||||
<input type="radio" name="limits" id="spamCond1_no" value="N" <!--@if($config->limits!='Y' && $config->limits !='')--> checked="checked"<!--@end--> /> <label for="spamCond1_no">{$lang->cmd_no}</label>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q">{$lang->cmd_check_trackback}</p>
|
||||
<p class="a">
|
||||
<input type="radio" name="check_trackback" id="spamCond2_yes" value="Y" <!--@if($config->check_trackback=='Y' || $config->check_trackback=='')--> checked="checked"<!--@end--> />
|
||||
<label for="spamCond2_yes">{$lang->cmd_yes}</label>
|
||||
<input type="radio" name="check_trackback" id="spamCond2_yes" value="N" <!--@if($config->check_trackback!='Y' && $config->check_trackback!='')--> checked="checked"<!--@end--> / > <label for="spamCond2_yes">{$lang->cmd_no}</label>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="btnArea">
|
||||
<span class="btn medium"><input type="submit" value="{$lang->cmd_save}" /></span>
|
||||
</div>
|
||||
</form>
|
||||
<form action="" id="spamfilterInsert" class="form">
|
||||
<input type="hidden" name="act" value="" />
|
||||
<input type="hidden" name="module" value="spamfilter" />
|
||||
<input type="hidden" name="ruleset" value="" />
|
||||
<ul>
|
||||
<li>
|
||||
<p class="q">{$lang->cmd_denied_ip}</p>
|
||||
<div class="a">
|
||||
<ul class="textList">
|
||||
<!--@foreach($ip_list as $ipListKey)-->
|
||||
<li>{$ipListKey->ipaddress} <!--@if($ipListKey->description)-->// {$ipListKey->description} <!--@end-->
|
||||
<a href="#" onclick="doDeleteDeniedIP('{$ipListKey->ipaddress}')" class="side">{$lang->cmd_delete}</a>
|
||||
</li>
|
||||
<!--@endforeach-->
|
||||
</ul>
|
||||
</div>
|
||||
<p class="a">
|
||||
<textarea rows="8" cols="42" name="ipaddress_list" title="스팸 IP 추가"></textarea>
|
||||
<span class="btn small"><button type="button" onclick="doInsertDeniedIP('{$lang->msg_invalid_format}')">{$lang->cmd_insert}</button></span>
|
||||
<span class="desc">{$lang->about_denied_ip}</span>
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="q"><label for="spamKeyword">{$lang->cmd_denied_word}</label></p>
|
||||
<div class="a">
|
||||
<ul class="textList">
|
||||
<!--@foreach($word_list as $wordListKey)-->
|
||||
<li>{$wordListKey->word} <a href="#" onclick="doDeleteDeniedWord('{$wordListKey->word}')" class="side">{$lang->cmd_delete}</a></li>
|
||||
<!--@end-->
|
||||
</ul>
|
||||
</div>
|
||||
<p class="a">
|
||||
<textarea rows="8" cols="42" name="word_list" title="스팸 키워드 추가"></textarea>
|
||||
<span class="btn small"><button type="button" onclick="doInsertDeniedWord('{$lang->msg_invalid_format}')">{$lang->add}</button></span>
|
||||
<span class="desc">{$lang->about_denied_word}</span>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue