📄 child.jsp
字号:
<TR>
<TD vAlign=top align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width=30 height=25><IMG height=10 src="../images/index_right2_arrow02.gif" width=10></TD>
<TD><a onclick="view('<%=straId[ka]%>');" target=_blank style="cursor:hand;" title=<%=straHits[ka]%>><%int len = ds.byteLength(stra[ka]);int len2 = wlen2;if(len<wlen2)len2 = len;String t1 = ds.strByteCopy(stra[ka],len2);%><%=t1.replaceAll(" "," ")%><%if(len>wlen2)out.print("...");%> <%if(strshowconf.equals("1")){%><font color=<%=color_time%>>(<%=stratime[ka]%>)</font><%}%></a></TD></TR>
</TBODY></TABLE>
</TD></TR>
<TR><TD vAlign=top align=left><IMG height=1 src="../images/<%=img%>" width="<%=w%>"></TD></TR>
</TBODY></TABLE>
</TD></TR>
<%
}//for_end
%>
<%if(sum==0)
{
%>
<tr align=center><td><font color=red><br>目前没有文章!!!<br><br></font></td></tr>
<TR><TD vAlign=top align=left><IMG height=1 src="../images/index_right2_line04.gif" width=284></TD></TR>
<%}%>
<%if(sum>0){%>
<tr height=18 valign=bottom>
<TD align=right><br>
每页记录数:<%=i_len3%> 共有记录数:<font color=red><%=tnum%></font>
<%if(vetarc.size()>1){%>
当前<font color=red><%=cur%></font>/<%=sum%>页   <%if(cur!=1){%><a onclick="firsrpg()" style="cursor:hand">第一页    </a> <%}%>
<%if(cur>1){ t=cur-1;%>
<a onclick="lastpg()" style="cursor:hand">上一页    </a><%}%>
<%if(cur<sum){ s=cur+1;%>
<a onclick="nextpg()" style="cursor:hand">下一页   </a><%}%>  
<%if(cur<sum){%>
<a onclick="finalpg()" style="cursor:hand">最后页    </a>
<%}%>
</TD>
<%}%>
</tr>
<%}%>
</TBODY>
</TABLE>
</TD></TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY></TABLE>
</TD>
<%
}//(3)end-----------------------------------------------------------------------
}
else if(!strtopicid.equals("0"))//(4)gegin-----------------------------------------------------------------------专题列表
{
sum = sum5;
tnum = tnum5;
%>
<TD align=left valign=top background="../images/index_right2_bg02.gif">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR><TD vAlign=top align=left><IMG height=9 src="../images/index_right2_top.gif"></TD></TR>
<tr height="5" valign=top>
<td height="5" align=left style="LINE-HEIGHT: 150%">
当前位置:<a class="MOUT" onclick="changemenu1('<%=strId1%>');" style="cursor:hand;"><%=strMenuName%></a> >> 热门专题 >> <%=myBean.getTopicName(strtopicid)%></td>
</tr>
<TR><TD vAlign=top align=left background="../images/index_right2_bg02.gif">
<TABLE cellSpacing=5 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR><TD vAlign=top align=left>
<TABLE height=20 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width=30><IMG height=10 src="../images/index_right2_arrow.gif" width=10></TD>
<TD style="LINE-HEIGHT: 150%"><STRONG><font color="#1258af"><%=myBean.getTopicName(strtopicid)%></font></STRONG></TD>
<TD align=right></TD></TR>
</TBODY></TABLE>
</TD></TR>
<TR><TD vAlign=top align=left background="../images/index_right2_line02bg.gif"><IMG height=3 src="../images/index_right2_line02.gif" width=288></TD></TR>
<%
for(int ka=2;ka<jop;ka++){
String img = "index_right2_line04.gif";
String w = "284";
if(ka!=(jop-1))
{
img = "index_right2_line03.gif";
w = "253";
}
%>
<TR><TD vAlign=top align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width=30 height=25><IMG height=10 src="../images/index_right2_arrow02.gif" width=10></TD>
<TD><a onclick="view('<%=stropId[ka]%>');" target=_blank title="<%=stropHits[ka]%>" style="cursor:hand;" ><%int len = ds.byteLength(stroptitle[ka]);int len2 = wlen2;if(len<wlen2)len2 = len;String t1 = ds.strByteCopy(stroptitle[ka],len2);%><%=t1.replaceAll(" "," ")%><%if(len>wlen2)out.print("...");%> <%if(strshowconf.equals("1")){%><font color=<%=color_time%>>(<%=stroptime[ka]%>)</font><%}%></a></TD></TR>
</TBODY></TABLE>
</TD></TR>
<TR><TD vAlign=top align=left><IMG height=1 src="../images/<%=img%>" width="<%=w%>"></TD></TR>
</TBODY></TABLE>
</TD></TR>
<%
}//for_end
%>
<%if(jop==0)
{
%>
<tr align=center><td><font color=red><br>目前没有文章!!!<br><br></font></td></tr>
<TR><TD vAlign=top align=left><IMG height=1 src="../images/index_right2_line04.gif" width=284></TD></TR>
<%}%>
<%if(jop>0){%>
<tr height=18 valign=bottom>
<TD align=right><br>
每页记录数:<%=i_len3%> 共有记录数:<font color=red><%=tnum%></font>
<%if(vetotopic.size()>1){%>
当前<font color=red><%=cur%></font>/<%=sum%>页   <%if(cur!=1){%><a onclick="firsrpg()" style="cursor:hand">第一页    </a> <%}%>
<%if(cur>1){ t=cur-1;%>
<a onclick="lastpg()" style="cursor:hand">上一页    </a><%}%>
<%if(cur<sum){ s=cur+1;%>
<a onclick="nextpg()" style="cursor:hand">下一页   </a><%}%>  
<%if(cur<sum){%>
<a onclick="finalpg()" style="cursor:hand">最后页    </a>
<%}%>
</TD>
<%}%>
</tr>
<%}%>
</TBODY>
</TABLE>
</TD></TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY></TABLE>
</TD>
<%
}//(4)end-----------------------------------------------------------------------
}
%>
</TR>
</TBODY></TABLE>
</TD></TR>
</TBODY></TABLE>
<table border="0" cellPadding="0" cellSpacing="0" width="790" background="../images/bg01.gif">
<tbody>
<tr vAlign=top>
<TD align=center valign=top>
<table border="0" cellPadding="0" cellSpacing="0" width="779">
<tbody>
<tr>
<TD vAlign=top align=right width=180 height=15><IMG height=15 width=172 src="../images/down1.gif"></td>
<td vAlign=bottom background="../images/index_right2_bg02.gif"><IMG height=9 src="../images/index_right2_down.gif"></td>
</TR>
</TBODY></TABLE>
</TD></TR>
</TBODY></TABLE>
</div>
<script>
function changemenu1(type)
{
document.all.txt_type1.value = type;
document.all.txt_type2.value = "";
document.all.txt_fileid.value = "";
document.all.txt_sub.value = "1";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "";
document.all.txt_topicid.value = "";
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
//改变二级菜单
function changemenu2(type)
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = type;
document.all.txt_fileid.value = "";
document.all.txt_sub.value = "2";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "";
document.all.txt_topicid.value = "";
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
function viewarticle(id,srsub)
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_sub.value = srsub;
document.all.txt_edit.value = "";
document.all.txt_menuid.value = id;
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
function firsrpg()
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_sub.value = "<%=strSub%>";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "<%=strmenuid%>";
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp?bm=1";
document.all.form1.submit();
}
function lastpg()
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_sub.value = "<%=strSub%>";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "<%=strmenuid%>";
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp?bm="+<%=t%>;
document.all.form1.submit();
}
function nextpg()
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_sub.value = "<%=strSub%>";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "<%=strmenuid%>";
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp?bm="+<%=s%>;
document.all.form1.submit();
}
function finalpg()
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_sub.value = "<%=strSub%>";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "<%=strmenuid%>";
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp?bm="+<%=sum%>;
document.all.form1.submit();
}
function view(id)
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = id;
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "";
document.all.txt_topicid.value = "";
document.all.txt_search.value = "";
//document.all.form1.action = "index.jsp";
//document.all.form1.submit();
var hWnd = window.open("index.jsp?txt_fileid="+id+"&txt_type1="+document.all.txt_type1.value+"&txt_type2="+document.all.txt_type2.value,"help");
hWnd.focus();
}
function viewtopic(type)
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "";
document.all.txt_topicid.value = type;
document.all.txt_search.value = "";
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
function search(theform)
{
document.all.txt_type1.value = "<%=strId1%>";
document.all.txt_type2.value = "<%=strId2%>";
document.all.txt_fileid.value = "";
document.all.txt_edit.value = "";
document.all.txt_menuid.value = "";
document.all.txt_topicid.value = "";
document.all.txt_search.value = "search.jsp?s1=1&s2=all&keyword="+theform.keyword.value;
if(document.all.keyword.value=="关键字:"||document.all.keyword.value=="")
{
alert("请输入搜索关键字!");
}
else
{
document.all.form1.action = "index.jsp";
document.all.form1.submit();
}
}
</script>
<%}finally{
if(myBean!=null)
myBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -