mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
issue 160 search input value check
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9196 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8ac23139e8
commit
ace9dd3f6e
12 changed files with 102 additions and 6 deletions
|
|
@ -3773,4 +3773,10 @@ Xin vui lòng kiểm tra lại thông tin Database.]]></value>
|
||||||
<value xml:lang="ko"><![CDATA[사이트 찾기]]></value>
|
<value xml:lang="ko"><![CDATA[사이트 찾기]]></value>
|
||||||
<value xml:lang="en"><![CDATA[Find Site]]></value>
|
<value xml:lang="en"><![CDATA[Find Site]]></value>
|
||||||
</item>
|
</item>
|
||||||
|
<item name="msg_empty_search_target">
|
||||||
|
<value xml:lang="ko"><![CDATA[검색대상이 없습니다.]]></value>
|
||||||
|
</item>
|
||||||
|
<item name="msg_empty_search_keyword">
|
||||||
|
<value xml:lang="ko"><![CDATA[검색어가 없습니다.]]></value>
|
||||||
|
</item>
|
||||||
</lang>
|
</lang>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
|
||||||
|
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
||||||
|
</script>
|
||||||
<!--%import("js/comment_admin.js")-->
|
<!--%import("js/comment_admin.js")-->
|
||||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||||
|
|
@ -129,7 +133,7 @@
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="./" method="get" class="adminSearch">
|
<form action="./" method="get" class="adminSearch" onsubmit="return checkSearch(this)">
|
||||||
<input type="hidden" name="module" value="{$module}" />
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
<input type="hidden" name="act" value="{$act}" />
|
<input type="hidden" name="act" value="{$act}" />
|
||||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||||
|
|
|
||||||
|
|
@ -65,3 +65,17 @@ function completeGetCommentList(ret_obj, response_tags)
|
||||||
}
|
}
|
||||||
jQuery('#commentManageListTable>tbody').html(htmlListBuffer);
|
jQuery('#commentManageListTable>tbody').html(htmlListBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkSearch(form)
|
||||||
|
{
|
||||||
|
if(form.search_target.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_target);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(form.search_keyword.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_keyword);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
|
||||||
|
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
||||||
|
</script>
|
||||||
<!--%import("js/document_admin.js")-->
|
<!--%import("js/document_admin.js")-->
|
||||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||||
|
|
@ -155,7 +159,7 @@
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="./" method="get" class="adminSearch">
|
<form action="./" method="get" class="adminSearch" onsubmit="return checkSearch(this)">
|
||||||
<input type="hidden" name="module" value="{$module}" />
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
<input type="hidden" name="act" value="{$act}" />
|
<input type="hidden" name="act" value="{$act}" />
|
||||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||||
|
|
|
||||||
|
|
@ -241,3 +241,17 @@ function completeGetCategoryFromModules(ret_obj, response_tags) {
|
||||||
obj.options[obj.options.length] = opt;
|
obj.options[obj.options.length] = opt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkSearch(form)
|
||||||
|
{
|
||||||
|
if(form.search_target.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_target);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(form.search_keyword.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_keyword);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
|
||||||
|
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
||||||
|
</script>
|
||||||
<!--%import("js/file_admin.js")-->
|
<!--%import("js/file_admin.js")-->
|
||||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||||
|
|
@ -163,7 +167,7 @@
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="./" method="get">
|
<form action="./" method="get" onsubmit="return checkSearch(this)">
|
||||||
<input type="hidden" name="module" value="{$module}" />
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
<input type="hidden" name="act" value="{$act}" />
|
<input type="hidden" name="act" value="{$act}" />
|
||||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||||
|
|
|
||||||
|
|
@ -44,3 +44,17 @@ function completeGetFileList(ret_obj, response_tags)
|
||||||
}
|
}
|
||||||
jQuery('#fileManageListTable>tbody').html(htmlListBuffer);
|
jQuery('#fileManageListTable>tbody').html(htmlListBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkSearch(form)
|
||||||
|
{
|
||||||
|
if(form.search_target.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_target);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(form.search_keyword.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_keyword);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -98,3 +98,17 @@ function completeGetPollList(ret_obj, response_tags)
|
||||||
}
|
}
|
||||||
jQuery('#pollManageListTable>tbody').html(htmlListBuffer);
|
jQuery('#pollManageListTable>tbody').html(htmlListBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkSearch(form)
|
||||||
|
{
|
||||||
|
if(form.search_target.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_target);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(form.search_keyword.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_keyword);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
|
||||||
|
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
||||||
|
</script>
|
||||||
<!--%import("js/poll_admin.js")-->
|
<!--%import("js/poll_admin.js")-->
|
||||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||||
|
|
@ -105,7 +109,7 @@
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="./" method="get">
|
<form action="./" method="get" onsubmit="return checkSearch(this)">
|
||||||
<input type="hidden" name="module" value="{$module}" />
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
<input type="hidden" name="act" value="{$act}" />
|
<input type="hidden" name="act" value="{$act}" />
|
||||||
<select name="search_target">
|
<select name="search_target">
|
||||||
|
|
|
||||||
|
|
@ -60,3 +60,17 @@ function completeGetTrackbackList(ret_obj, response_tags)
|
||||||
}
|
}
|
||||||
jQuery('#trackbackManageListTable>tbody').html(htmlListBuffer);
|
jQuery('#trackbackManageListTable>tbody').html(htmlListBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkSearch(form)
|
||||||
|
{
|
||||||
|
if(form.search_target.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_target);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(form.search_keyword.value == '')
|
||||||
|
{
|
||||||
|
alert(xe.lang.msg_empty_search_keyword);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
<script type="text/javascript">
|
||||||
|
xe.lang.msg_empty_search_target = '{$lang->msg_empty_search_target}';
|
||||||
|
xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}';
|
||||||
|
</script>
|
||||||
<!--%import("js/trackback_admin.js")-->
|
<!--%import("js/trackback_admin.js")-->
|
||||||
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
|
||||||
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
<p>{$XE_VALIDATOR_MESSAGE}</p>
|
||||||
|
|
@ -104,7 +108,7 @@
|
||||||
</span>
|
</span>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form action="">
|
<form action="" onsubmit="return checkSearch(this)">
|
||||||
<input type="hidden" name="module" value="{$module}" />
|
<input type="hidden" name="module" value="{$module}" />
|
||||||
<input type="hidden" name="act" value="{$act}" />
|
<input type="hidden" name="act" value="{$act}" />
|
||||||
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
<input type="hidden" name="module_srl" value="{$module_srl}" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue