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:
ovclas 2011-09-19 06:43:41 +00:00
parent 8ac23139e8
commit ace9dd3f6e
12 changed files with 102 additions and 6 deletions

View file

@ -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="en"><![CDATA[Find Site]]></value>
</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>

View file

@ -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")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
@ -129,7 +133,7 @@
</span>
</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="act" value="{$act}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />

View file

@ -65,3 +65,17 @@ function completeGetCommentList(ret_obj, response_tags)
}
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;
}
}

View file

@ -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")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
@ -155,7 +159,7 @@
</span>
</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="act" value="{$act}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />

View file

@ -241,3 +241,17 @@ function completeGetCategoryFromModules(ret_obj, response_tags) {
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;
}
}

View file

@ -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")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
@ -163,7 +167,7 @@
</span>
</form>
<form action="./" method="get">
<form action="./" method="get" onsubmit="return checkSearch(this)">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />

View file

@ -44,3 +44,17 @@ function completeGetFileList(ret_obj, response_tags)
}
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;
}
}

View file

@ -98,3 +98,17 @@ function completeGetPollList(ret_obj, response_tags)
}
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;
}
}

View file

@ -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")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
@ -105,7 +109,7 @@
</span>
</form>
<form action="./" method="get">
<form action="./" method="get" onsubmit="return checkSearch(this)">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<select name="search_target">

View file

@ -14,4 +14,4 @@ function doChangeIcon(ret_obj, response_tags) {
} else {
obj.className = "buttonSet buttonActive";
}
}
}

View file

@ -60,3 +60,17 @@ function completeGetTrackbackList(ret_obj, response_tags)
}
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;
}
}

View file

@ -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")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
<p>{$XE_VALIDATOR_MESSAGE}</p>
@ -104,7 +108,7 @@
</span>
</form>
<form action="">
<form action="" onsubmit="return checkSearch(this)">
<input type="hidden" name="module" value="{$module}" />
<input type="hidden" name="act" value="{$act}" />
<input type="hidden" name="module_srl" value="{$module_srl}" />