- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/search.jsp,v 1.37 2004/03/23 12:43:08 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.37 $
- $Date: 2004/03/23 12:43:08 $
-
- ====================================================================
-
- Copyright (C) 2002-2004 by MyVietnam.net
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or any later version.
-
- All copyright notices regarding mvnForum MUST remain intact
- in the scripts and in the outputted HTML.
- The "powered by" text/logo with a link back to
- http://www.mvnForum.com and http://www.MyVietnam.net in the
- footer of the pages MUST remain visible when the pages
- are viewed on the internet or intranet.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
- Support can be obtained from support forums at:
- http://www.mvnForum.com/mvnforum/index
-
- Correspondence and Marketing Questions can be sent to:
- info@MyVietnam.net
-
- @author: Minh Nguyen minhnn@MyVietnam.net
- @author: Mai Nguyen mai.nh@MyVietnam.net
--%>
[mvnforum.common.forum.title_name] - [mvnforum.user.search.title]
function SubmitForm() {
if (ValidateForm() == true ) {
document.submitform.submitbutton.disabled=true;
document.submitform.submit();
}
}
function ValidateForm() {
if (document.submitform.key.value == '' && document.submitform.member.value == '') {
alert("\"[mvnforum.user.search.search_text]\" [mvnforum.common.js.prompt.fieldrequired]");
return false;
}
return true;
}
[mvnforum.common.nav.index] »
[mvnforum.user.search.title]
[mvnforum.user.search.prompt]:
[mvnforum.user.search.search_text]
[mvnforum.user.search.by_member]
[mvnforum.user.search.in_category_forum]
[mvnforum.user.search.all_forums]
CategoryCache categoryCache = CategoryCache.getInstance();
ForumCache forumCache = ForumCache.getInstance();
Collection catBeans = categoryCache.getBeans();
Collection forumBeans = forumCache.getBeans();
for (Iterator catIter = catBeans.iterator(); catIter.hasNext(); ) {
CategoryBean catBean = (CategoryBean)catIter.next();
int catID = catBean.getCategoryID();
int forumsInCurrentCat = forumCache.getNumberOfBeans(catID);
if (forumsInCurrentCat == 0) continue; %>
---------------------------------
for (Iterator forumIter = forumBeans.iterator(); forumIter.hasNext(); ) {
ForumBean forumBean = (ForumBean)forumIter.next();
if (forumBean.getCategoryID() != catID) continue;
if (permission.canReadPost(forumBean.getForumID()) && (forumBean.getForumStatus() != ForumBean.FORUM_STATUS_DISABLED) ) { %>
} // for forum
}// for category %>
[mvnforum.user.search.result_per_page]
10
20
30
50
100
Kiểu gõ tiếng Việt:
Telex
VNI
VIQR
Không sử dụng
setTypingMode(2);