diff --git a/common/lang/lang.xml b/common/lang/lang.xml index 872ba182c..5e4b74da5 100644 --- a/common/lang/lang.xml +++ b/common/lang/lang.xml @@ -3773,4 +3773,10 @@ Xin vui lòng kiểm tra lại thông tin Database.]]> + + + + + + diff --git a/modules/comment/tpl/comment_list.html b/modules/comment/tpl/comment_list.html index 90d97d8df..2e4f437a9 100644 --- a/modules/comment/tpl/comment_list.html +++ b/modules/comment/tpl/comment_list.html @@ -1,3 +1,7 @@ +

{$XE_VALIDATOR_MESSAGE}

@@ -129,7 +133,7 @@ -
+ diff --git a/modules/comment/tpl/js/comment_admin.js b/modules/comment/tpl/js/comment_admin.js index 19dc9454c..b02e83a04 100644 --- a/modules/comment/tpl/js/comment_admin.js +++ b/modules/comment/tpl/js/comment_admin.js @@ -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; + } +} diff --git a/modules/document/tpl/document_list.html b/modules/document/tpl/document_list.html index 794f007b6..333782139 100644 --- a/modules/document/tpl/document_list.html +++ b/modules/document/tpl/document_list.html @@ -1,3 +1,7 @@ +

{$XE_VALIDATOR_MESSAGE}

@@ -155,7 +159,7 @@ -
+ diff --git a/modules/document/tpl/js/document_admin.js b/modules/document/tpl/js/document_admin.js index c540c5250..3da2cfc60 100644 --- a/modules/document/tpl/js/document_admin.js +++ b/modules/document/tpl/js/document_admin.js @@ -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; + } +} diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index df2e089d4..98f1678ca 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -1,3 +1,7 @@ +

{$XE_VALIDATOR_MESSAGE}

@@ -163,7 +167,7 @@ -
+ diff --git a/modules/file/tpl/js/file_admin.js b/modules/file/tpl/js/file_admin.js index c1b54df7c..c35ff339e 100644 --- a/modules/file/tpl/js/file_admin.js +++ b/modules/file/tpl/js/file_admin.js @@ -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; + } +} diff --git a/modules/poll/tpl/js/poll_admin.js b/modules/poll/tpl/js/poll_admin.js index f1c747038..7fa7c235d 100644 --- a/modules/poll/tpl/js/poll_admin.js +++ b/modules/poll/tpl/js/poll_admin.js @@ -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; + } +} diff --git a/modules/poll/tpl/poll_list.html b/modules/poll/tpl/poll_list.html index 476649606..5bca922c4 100644 --- a/modules/poll/tpl/poll_list.html +++ b/modules/poll/tpl/poll_list.html @@ -1,3 +1,7 @@ +

{$XE_VALIDATOR_MESSAGE}

@@ -105,7 +109,7 @@ -
+