mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
댓글 신고시 신고 이유를 적을 수 있게 함
- 댓글에도 신고 이유를 적을 수 있다. - 코드 정리
This commit is contained in:
parent
a9915a7986
commit
4bbd91bd3c
18 changed files with 415 additions and 41 deletions
19
modules/comment/tpl/css/declare_comment.css
Normal file
19
modules/comment/tpl/css/declare_comment.css
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@charset "UTF-8";
|
||||
div.xe_mobile {
|
||||
display:none!important;
|
||||
}
|
||||
section.declare_comment{
|
||||
display:block;
|
||||
}
|
||||
section.declare_comment label{
|
||||
font-weight: bold;
|
||||
}
|
||||
section.declare_comment select,section.declare_comment textarea{
|
||||
box-sizing:border-box;
|
||||
height:auto;
|
||||
width: 100%;
|
||||
padding:7px;
|
||||
font-size: 11pt;
|
||||
line-height: normal;
|
||||
display:block;
|
||||
}
|
||||
55
modules/comment/tpl/declare_comment.html
Normal file
55
modules/comment/tpl/declare_comment.html
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{@Context::addMetaTag('viewport', 'width=device-width, user-scalable=no', FALSE);}
|
||||
<load target="./css/declare_comment.css" />
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<section class="declare_comment">
|
||||
<h1>{$lang->improper_comment_declare}</h1>
|
||||
<form action="./" method="post" id="fo_component" ruleset="insertDeclare">
|
||||
<input type="hidden" name="module" value="comment" />
|
||||
<input type="hidden" name="act" value="procCommentDeclare" />
|
||||
<input type="hidden" name="target_srl" value="{$target_srl}" />
|
||||
<input type="hidden" name="success_return_url" value="{getUrl('', 'act', $act, 'target_srl', $target_srl)}" />
|
||||
<input type="hidden" name="xe_validator_id" value="modules/comment/tpl/1" />
|
||||
<blockquote>
|
||||
<section class="target_article">
|
||||
<h1>{$lang->replies}</h1>
|
||||
<p>{$target_comment->getSummary(200)}</p>
|
||||
</section>
|
||||
</blockquote>
|
||||
<label class="x_control-label" for="message_option">{$lang->improper_comment_declare_reason}</label>
|
||||
<div class="x_controls">
|
||||
<select name="message_option" id="message_option">
|
||||
<option loop="$lang->improper_comment_reasons => $key,$text" value="{$key}">{$text}</option>
|
||||
</select>
|
||||
<textarea name="declare_message" id="declare_message"></textarea>
|
||||
<p>{$lang->about_improper_comment_declare}<p>
|
||||
</div>
|
||||
<div class="x_clearfix btnArea">
|
||||
<div class="x_pull-right">
|
||||
<button type="submit" class="x_btn x_btn-primary" />{$lang->cmd_submit}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<script>
|
||||
(function($){
|
||||
var msg_area = $('textarea[name="declare_message"]');
|
||||
$('select[name="message_option"]').change(function(){
|
||||
var option = {
|
||||
duration:200,
|
||||
complete: function(){setFixedPopupSize();}
|
||||
}
|
||||
if ($(this).val()==='others') {
|
||||
msg_area.slideDown(option);
|
||||
|
||||
}
|
||||
else {
|
||||
msg_area.slideUp(option);
|
||||
setFixedPopupSize();
|
||||
}
|
||||
});
|
||||
msg_area.hide();
|
||||
$(window).load(setFixedPopupSize);
|
||||
})(jQuery);
|
||||
</script>
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
<td><a href="{getUrl('','document_srl',$oComment->get('document_srl'))}#comment_{$oComment->get('comment_srl')}" onclick="window.open(this.href);return false;">{$oComment->getSummary(100)}</a></td>
|
||||
<td><span class="member_{$oComment->getMemberSrl()}">{$oComment->getNickName()}</span></td>
|
||||
<td>{$oComment->getRegdate("Y-m-d")}</td>
|
||||
<td><strong>{$oComment->get('declared_count')}</strong></td>
|
||||
<td><strong>{$oComment->get('declared_count')} (<a href="{getUrl('', 'act', 'dispCommentAdminDeclaredLogByCommentSrl', 'target_srl',$oComment->get('comment_srl'))}" onclick="popopen(this.href, 'admin_popup');return false">{$lang->improper_comment_declare_reason}</a>)</strong></td>
|
||||
<td>{$oComment->get('ipaddress')}</td>
|
||||
<td><input type="checkbox" name="cart[]" value="{$oComment->get('comment_srl')}" /></td>
|
||||
</tr>
|
||||
|
|
|
|||
71
modules/comment/tpl/declared_log.html
Normal file
71
modules/comment/tpl/declared_log.html
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
<h1>{$lang->improper_comment_declare}</h1>
|
||||
<div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/comment/tpl/declared_list/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||
</div>
|
||||
<form id="fo_list" action="./" method="get">
|
||||
<input type="hidden" name="module" value="comment" />
|
||||
<input type="hidden" name="page" value="{$page}" />
|
||||
<blockquote>
|
||||
<section>
|
||||
<h1>{$lang->replies}</h1>
|
||||
<p>{$declared_comment->getSummary(200)}</p>
|
||||
<address cond="$declared_comment->get('member_srl')"><a href="#popup_menu_area" class="member_{$declared_comment->get('member_srl')}">{$declared_comment->getNickName()}</a></address>
|
||||
</section>
|
||||
</blockquote>
|
||||
<h2>{$lang->improper_comment_declare_reason}</h2>
|
||||
<table class="x_table x_table-striped x_table-hover" id="commentListTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="nowr">{$lang->declaring_user}</th>
|
||||
<th scope="col" class="nowr">{$lang->improper_comment_declare_reason}</th>
|
||||
<th scope="col" class="nowr">{$lang->date}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr loop="$declare_log => $no,$log">
|
||||
<td class="nowr"><a cond="$log->member_srl" href="#popup_menu_area" class="member_{$log->member_srl}">{$reporter_list[$log->member_srl]->nick_name}</a> ({$log->ipaddress})</td>
|
||||
<td class="nowr">{$log->declare_message}</td>
|
||||
<td class="nowr">{date('Y-m-d H:i:s', strtotime($log->regdate))}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<form action="./" class="x_pagination">
|
||||
<input type="hidden" name="error_return_url" value="" />
|
||||
<input type="hidden" name="module" value="{$module}" />
|
||||
<input type="hidden" name="act" value="{$act}" />
|
||||
<input cond="$search_keyword" type="hidden" name="search_keyword" value="{$search_keyword}" />
|
||||
<input cond="$search_target" type="hidden" name="search_target" value="{$search_target}" />
|
||||
|
||||
<ul>
|
||||
<li class="x_disabled"|cond="!$page || $page == 1"><a href="{getUrl('page', '')}">« {$lang->first_page}</a></li>
|
||||
<block cond="$page_navigation->first_page != 1 && $page_navigation->first_page + $page_navigation->page_count > $page_navigation->last_page - 1 && $page_navigation->page_count != $page_navigation->total_page">
|
||||
{@$isGoTo = true}
|
||||
<li>
|
||||
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">…</a>
|
||||
<span cond="$isGoTo" id="goTo" class="x_input-append">
|
||||
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
|
||||
<button type="submit" class="x_add-on">Go</button>
|
||||
</span>
|
||||
</li>
|
||||
</block>
|
||||
|
||||
<!--@while($page_no = $page_navigation->getNextPage())-->
|
||||
{@$last_page = $page_no}
|
||||
<li class="x_active"|cond="$page_no == $page"><a href="{getUrl('page', $page_no)}">{$page_no}</a></li>
|
||||
<!--@end-->
|
||||
|
||||
<block cond="$last_page != $page_navigation->last_page && $last_page + 1 != $page_navigation->last_page">
|
||||
{@$isGoTo = true}
|
||||
<li>
|
||||
<a href="#goTo" data-toggle title="{$lang->cmd_go_to_page}">…</a>
|
||||
<span cond="$isGoTo" id="goTo" class="x_input-append">
|
||||
<input type="number" min="1" max="{$page_navigation->last_page}" required name="page" title="{$lang->cmd_go_to_page}" />
|
||||
<button type="submit" class="x_add-on">Go</button>
|
||||
</span>
|
||||
</li>
|
||||
</block>
|
||||
<li class="x_disabled"|cond="$page == $page_navigation->last_page"><a href="{getUrl('page', $page_navigation->last_page)}" title="{$page_navigation->last_page}">{$lang->last_page} »</a></li>
|
||||
</ul>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue