issue 46 apply server side validator in comment module

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8494 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-06-16 01:48:33 +00:00
parent d904eb32f5
commit 657061e16a
7 changed files with 40 additions and 13 deletions

View file

@ -1,4 +1,3 @@
<!--%import("filter/delete_checked.xml")-->
<!--#include("./header.html")-->
<!-- 검색 -->
@ -21,7 +20,10 @@
</form>
</div>
<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<!--form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)"-->
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
<form ruleset="deleteChecked" id="fo_list" action="./" method="post">
<input type="hidden" name="act" value="procCommentAdminDeleteChecked" />
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="is_trash" value="false" />
@ -50,7 +52,7 @@
{@ $comment = cut_str(trim(htmlspecialchars(strip_tags($val->content))), 200, '...')}
<tr>
<td class="number center">{$no}</td>
<td class="center"><input type="checkbox" name="cart" value="{$val->comment_srl}" /></td>
<td class="center"><input type="checkbox" name="cart[]" value="{$val->comment_srl}" /></td>
<td class="left"><a href="{getUrl('','document_srl',$val->document_srl)}#comment_{$val->comment_srl}" onclick="window.open(this.href);return false;"><!--@if(strlen($comment))-->{$comment}<!--@else--><em style="font-style:italic;">{$lang->no_text_comment}</em><!--@end--></a></td>
<td class="nowrap"><span class="member_{$val->member_srl}">{htmlspecialchars($val->nick_name)}</span></td>
<td class="date center nowrap">{(zdate($val->regdate,"Y-m-d\nH:i:s"))}</td>

View file

@ -1,6 +1,6 @@
<!--%import("filter/insert_comment_module_config.xml")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_comment_module_config)">
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
<form ruleset="insertCommentModuleConfig" action="./" method="post">
<input type="hidden" name="act" value="procCommentInsertModuleConfig" />
<input type="hidden" name="target_module_srl" value="{$module_info->module_srl?$module_info->module_srl:$module_srls}" />
<h4 class="xeAdmin">{$lang->comment}</h4>

View file

@ -1,7 +1,9 @@
<!--%import("filter/delete_checked.xml")-->
<!--#include("header.html")-->
<form id="fo_list" action="./" method="get" onsubmit="return procFilter(this, delete_checked)">
<p class="xe_validator_error">{$XE_VALIDATOR_ERROR}</p>
<form ruleset="deleteChecked" id="fo_list" action="./" method="post">
<input type="hidden" name="act" value="procCommentAdminDeleteChecked" />
<input type="hidden" value="{getUrl('', 'module', $module, 'act', $act)}" name="success_return_url">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="is_trash" value="false" />