全站搜索
-
<%
if(null!=infoRs&&infoRs.next()){
infoRs.beforeFirst();
while(null!=infoRs&&infoRs.next()){
link = infoRs.getString("file_name")==null?"":infoRs.getString("file_name");
myid = infoRs.getInt("id");
linkOther = infoRs.getString("link_other")==null?"":infoRs.getString("link_other");
folderPathMap.put(infoRs.getString("no"),infoRs.getString("folder_path"));
name = infoRs.getString("name")==null?"":infoRs.getString("name");
content = infoRs.getString("content")==null?"":infoRs.getString("content");
name = name.replaceAll("\\&[a-zA-Z]{1,10};", "").replaceAll("<[^>]*>", "").replaceAll("[(/>)<]", "").replaceAll(" ","");
content = content.replaceAll("\\&[a-zA-Z]{1,10};", "").replaceAll("<[^>]*>", "").replaceAll("[(/>)<]", "").replaceAll(" ","");
if(name.length()>75){
name = name.substring(0,75)+"...";
}
if(content.length()>150){
content = content.substring(0,150)+"...";
}
flag = infoRs.getString("flag")==null?"":infoRs.getString("flag");
specialNo = infoRs.getString("special_no")==null?"":infoRs.getString("special_no");
channelNode = infoRs.getString("channel_node")==null?"":infoRs.getString("channel_node");
pathName = (String)folderPathMap.get(channelNode);
if(!"".equals(linkOther)){
link = linkOther;
}else{
if(flag.equals("1")){
chan="select * from jrcms_website_channel where website_no='20150623163145344' and no='"+channelNode+"'";
chanRs = db.executeQuery(conn,chan);
if(chanRs.next()&&chanRs!=null){
folderName = chanRs.getString("folder_path");
fileName=chanRs.getString("file_name");
fileName = fileName.replace(".jsp","_text.htm");
}
link = "/product/"+folderName+"/" + myid+"_for_"+ fileName;
}else if(flag.equals("2")){
chan="select * from jrcms_website_channel where website_no='20150623163145344' and no='"+channelNode+"'";
chanRs = db.executeQuery(conn,chan);
if(chanRs.next()&&chanRs!=null){
folderName = chanRs.getString("folder_path");
fileName=chanRs.getString("file_name");
fileName = fileName.replace(".jsp","_text.htm");
}
link = "/product/"+folderName+"/" + myid+"_for_"+ fileName;
//link ="/" + pathName + "/" + link;
}else if(flag.equals("3")){
link ="/" + pathName + "/" + "zhaopingangwei.jsp";
}else if(flag.equals("4")){
if(pathName.equals("/")||"".equals(pathName)){
link = "/";
}else{
if(!link.equals("index.htm")){
link = "/product/" + pathName + "/" + link;
}else{
link = "/" + pathName + "/" + link;
}
}
}else if(flag.equals("5")){
chan="select * from jrcms_website_channel where website_no='20150623163145344' and no='"+channelNode+"'";
chanRs = db.executeQuery(conn,chan);
if(chanRs.next()&&chanRs!=null){
folderName = chanRs.getString("folder_path");
fileName=chanRs.getString("file_name");
fileName = fileName.replace(".jsp","_text.htm");
}
link = "/"+folderName+"/" + myid+"_for_"+ fileName;
}
}
if(flag.equals("1")){
types="新闻";
}else if(flag.equals("2")){
types="产品";
}else if(flag.equals("3")){
types="招聘";
}else if(flag.equals("4")){
types="栏目";
}else if(flag.equals("5")){
types="案例";
}
%>
-
<%=types%> <%=name%>
<%count++;}}else{%>
- 未找到符合条件的信息,建议换个关键词搜索! <%}%>