关于<%if(!cate.equals("")){out.print(" "+cate+"类 ");}%><%=q%> 的搜索结果 共 <%=totalhits%> 条
<%
java.util.HashMap mapTop = new java.util.HashMap();
mapTop.put("total",""+totalhits);
mapTop.put("perpage",""+perPage);
mapTop.put("nowindex",""+pageNum);
mapTop.put("url",""+"ls.jsp?q="+java.net.URLEncoder.encode(q,"UTF-8")+"&db="+db+"&sw="+sw+"&s="+s+"&cate="+java.net.URLEncoder.encode(cate,"UTF-8"));
mapTop.put("page_name","page");
mapTop.put("ajax","");
openv.base.Page thePageTop = new openv.base.Page(mapTop);
thePageTop.setFormat_left("");
thePageTop.setFormat_right("");
out.print(thePageTop.show(7));
%>
<%
if(sw.equals("list")){
%>
<% if(!correctTxt.equals("")){%>
您要找的是不是<%=correctTxt%>
<%
}
%>
<%
}else{
%>
<% if(!correctTxt.equals("")){%>
您要找的是不是<%=correctTxt%>
<%
}
%>
<%
}
%>
<%
int i=0; //用于判断矩阵类型时换行
if(pageNum == 1){
if(xmlList != null){
for(int k=0;k
-
- <%=title%>
- <%=Util.getStrDef(xmlVideo.getDrecontent(),"",36,"...",false)%>
- <%=xmlVideo.getPlaydate()%>
<%
}else if(sw.equals("view")){
i++;
%>
-
- <%=title%>
- <%=xmlVideo.getPlaydate()%>
<%
}
}
}
}
Video theVideo;
if(listArrayList!=null){
for(Iterator it=listArrayList.iterator(); it.hasNext();) {
i++;
theVideo=(Video)it.next();
tmp = Util.getParamStr(theVideo.getTargetpage());
//--====== 凤凰网屏蔽该参数 ======--//
if(tmp.toLowerCase().indexOf("phoenixtv.com")!=-1) tmp = "";
//String link = "player.jsp?targetpage="+Util.URLEncoderLoop(tmp,"utf-8",1)+"&ref="+theVideo.getDrereference()+"&db="+theVideo.getDredbname()+"&kw="+Util.URLEncoderLoop(q,"utf-8",1)+"&cfrom="+cfrom+(projectId>0?"&projectId="+projectId:"");
String link = "player.jsp?ref="+theVideo.getDrereference()+"&db="+theVideo.getDredbname()+"&kw="+Util.URLEncoderLoop(q,"utf-8",1)+"&cfrom="+cfrom+(projectId>0?"&projectId="+projectId:"")+"&targetpage="+Util.URLEncoderLoop(tmp,"utf-8",1);
String title = theVideo.getDretitle();
title = replaceHTMLCode(title).replaceAll("'","'");
if(sw.equals("list")){
%>
-
- <%=theVideo.getDretitle()%>
- <%=theVideo.getSummary()%>...
- <%=Util.getStrDef(theVideo.getChinesechannelname(),"",9,"...",false)%> <%=theVideo.getPlaydate()%>
<%
} else if(sw.equals("view")){
%>
-
- <%=theVideo.getDretitle()%>
- <%=openv.base.Util.getStrDef(theVideo.getChinesechannelname(),"",4,"",false)%>
- <%=theVideo.getPlaydate()%>
<%
}
}
}
%>
热门搜索
<% incPath = "inc/index_hotkeyword.jsp?target=ls"; %>
<%
java.util.HashMap map = new java.util.HashMap();
map.put("total",""+totalhits);
map.put("perpage",""+perPage);
map.put("nowindex",""+pageNum);
map.put("url",""+"ls.jsp?q="+java.net.URLEncoder.encode(q,"UTF-8")+"&db="+db+"&sw="+sw+"&s="+s+"&cate="+java.net.URLEncoder.encode(cate,"UTF-8"));
map.put("page_name","page");
map.put("ajax","");
openv.base.Page thePage = new openv.base.Page(map);
thePage.setFormat_left("");
thePage.setFormat_right("");
out.print(thePage.show(8));
%>
<%
if(!q.equals("")){
%>
<%
}
%>
<%
//主动内存回收
theDre = null;
listArrayList = null;
paraMap = null;
theCookieBean = null;
thePage = null;
%>
<%!
private String replaceHTMLCode(String s){
try{
s = s.replaceAll("(?s)<.*?>","");
}catch(Exception e){
}
return s;
}
%>