📄 main.jsp
字号:
<TABLE border=0 cellPadding=0 cellSpacing=0 height=20 width=288><!--8 start-->
<TBODY>
<TR>
<TD align=middle width=30><IMG height=10 src="../images/index_right2_arrow.gif" width=10></TD>
<TD>
<STRONG>
<STRONG><font color="#1258af"><%=strmenu2[2*kl]%></font></STRONG>
</TD>
<TD align=right><A onclick="changemenu2('<%=str4[2*kl]%>');" style="cursor:hand;" target=_blank title="更多的信息"><IMG height=14 src="../images/index_right2_more.gif" width=34></A></TD>
</TR>
</TBODY>
</TABLE><!--8 end-->
</TD>
</TR>
<TR>
<TD align=left vAlign=top><IMG height=3 src="../images/index_right2_line02.gif" width=288></TD>
</TR>
<%
//取得文章信息
Vector vetmu1 = (Vector)myBean.getArticle(strId1,str4[2*kl]);
int jmu1=vetmu1.size();
String strmu1Id [] = new String[jmu1];
String strmu1title[] = new String[jmu1];//存放文章标题
String strmu1time[] = new String[jmu1];//发表时间
String strmu1Hits[] = new String[jmu1];//取得数标题是信息
for(int is=0;is<vetmu1.size();is++)
{
Hashtable hash = (Hashtable)vetmu1.get(is);
strmu1Id[is] = (String)hash.get("id");
strmu1title[is] = (String)hash.get("title");
strmu1title[is] = strmu1title[is].replaceAll(" "," ");
strmu1time[is] = ((String)hash.get("addtime")).substring(5,10);
strmu1Hits[is] = ((String)hash.get("hits"));
}
if(jmu1>intnumconf) jmu1=intnumconf;
for(int kls=0;kls<jmu1;kls++)
{
%>
<TR>
<TD align=left vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--8 start-->
<TBODY>
<TR>
<TD align=left vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--9 start-->
<TBODY>
<TR>
<TD align=middle height=20 width=30><IMG height=10 src="../images/index_right2_arrow02.gif" width=10></TD>
<TD>
<a onclick="view('<%=strmu1Id[kls]%>');" style="cursor:hand;LINE-HEIGHT: 150%" target=_blank title=<%=strmu1Hits[kls]%>><%int len = ds.byteLength(strmu1title[kls]);int len1 = wlen;if(len<wlen)len1 = len;String t1 = ds.strByteCopy(strmu1title[kls],len1);%><%=t1.replaceAll(" "," ")%><%if(len>wlen)out.print("...");%>
<%if(strshowconf.equals("1")){%><font color=<%=color_time%>>(<%=strmu1time[kls]%>)</font><%}%></a>
</TD>
</TR>
</TBODY>
</TABLE><!--9 end-->
</TD>
</TR>
<%
if(kls != (jmu1-1))
{
%>
<TR>
<TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line03.gif" width=250></TD>
</TR>
<%
}
%>
</TBODY>
</TABLE><!--8 end-->
</TD>
</TR>
<% } %>
<TR>
<TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line04.gif" width=280></TD>
</TR>
</TBODY>
</TABLE><!--7 end-->
</TD>
<% if((2*kl+1<jmenu2))
{ %>
<TD width="50%">
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--7 start-->
<TBODY>
<TR>
<TD align=left vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 height=20 width=288><!--8 start-->
<TBODY>
<TR>
<TD align=middle width=30><IMG height=10 src="../images/index_right2_arrow.gif" width=10></TD>
<TD>
<STRONG>
<STRONG><font color="#1258af"><%=strmenu2[2*kl+1]%></font></STRONG>
</TD>
<TD align=right><A onclick="changemenu2('<%=str4[2*kl+1]%>');" style="cursor:hand;" target=_blank title="更多的信息"><IMG height=14 src="../images/index_right2_more.gif" width=34></A></TD>
</TR>
</TBODY>
</TABLE><!--8 end-->
</TD>
</TR>
<TR>
<TD align=left vAlign=top><IMG height=3 src="../images/index_right2_line02.gif" width=288></TD>
</TR>
<%
//取得文章信息
Vector vetmu2 = (Vector)myBean.getArticle(strId1,str4[2*kl+1]);
int jmu2=vetmu2.size();
String strmu2Id [] = new String[jmu2];
String strmu2title[] = new String[jmu2];//存放文章标题
String strmu2time[] = new String[jmu2];//发表时间
String strmu2Hits[] = new String[jmu2];//取得数标题是信息
for(int is=0;is<vetmu2.size();is++)
{
Hashtable hash = (Hashtable)vetmu2.get(is);
strmu2Id[is] = (String)hash.get("id");
strmu2title[is] = (String)hash.get("title");
strmu2title[is] = strmu2title[is].replaceAll(" "," ");
strmu2time[is] = ((String)hash.get("addtime")).substring(5,10);
strmu2Hits[is] = ((String)hash.get("hits"));
}
if(jmu2>intnumconf) jmu2=intnumconf;
for(int kls=0;kls<jmu2;kls++)
{
%>
<TR>
<TD align=left vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--8 start-->
<TBODY>
<TR>
<TD align=left vAlign=top>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"><!--9 start-->
<TBODY>
<TR>
<TD align=middle height=20 width=30><IMG height=10 src="../images/index_right2_arrow02.gif" width=10></TD>
<TD>
<a onclick="view('<%=strmu2Id[kls]%>');" style="cursor:hand;LINE-HEIGHT: 150%" target=_blank title=<%=strmu2Hits[kls]%>><%int len = ds.byteLength(strmu2title[kls]);int len1 = wlen;if(len<wlen)len1 = len;String t1 = ds.strByteCopy(strmu2title[kls],len1);%><%=t1.replaceAll(" "," ")%><%if(len>wlen)out.print("...");%>
<%if(strshowconf.equals("1")){%><font color=<%=color_time%>>(<%=strmu2time[kls]%>)</font><%}%></a>
</TD>
</TR>
</TBODY>
</TABLE><!--9 end-->
</TD>
</TR>
<TR>
<TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line03.gif" width=253></TD>
</TR>
</TBODY>
</TABLE><!--8 end-->
</TD>
</TR>
<% } %>
<TR>
<TD align=middle vAlign=top><IMG height=1 src="../images/index_right2_line04.gif" width=284></TD>
</TR>
</TBODY>
</TABLE><!--7 end-->
</TD>
<% }
else
{
%> <TD width="50%"></TD>
<%
}
%>
</TR>
</TBODY>
</TABLE><!--6 end-->
<% }%><!--for_end 二级版面以及文章生成结束------------------------------------>
</TD>
</TR>
<tr>
<td align="left" valign="top"><img src="../images/index_right2_down.gif" width="600" height="9"></td>
</tr>
</TBODY>
</TABLE><!--5 end-->
</TD>
</TR>
</TBODY></TABLE></TABLE>
</div>
<%}%><!-- ************mainStyle=3--软件下载模板,模板三结束******************-->
<script>
messages = new Array()
messages[0] = "博硕网页设计师"
messages[1] = "更新更全更方便"
messages[2] = "想交流请到网站"
messages[3] = "http://www.mcmx.com"
mescolor = new Array()
mescolor[0] = "000000"
mescolor[1] = "FF0000"
mescolor[2] = "008800"
mescolor[3] = "0000FF"
messize = new Array()
messize[0] = "12pt"
messize[1] = "12pt"
messize[2] = "12pt"
messize[3] = "12pt"
var i_messages = 0
var timer
function dotransition() {
if (document.all) {
content.filters[0].apply()
content.innerHTML = "<span style='color:"+mescolor[i_messages]+";font-size:"+messize[i_messages]+";filter: revealTrans(Transition=12, Duration=3)'>"+messages[i_messages]+"</span>"
content.filters[0].play()
if (i_messages >= messages.length-1) {i_messages = 0}
else {i_messages++}}
if (document.layers) {document.content.document.write("<span style='color:"+mescolor[i_messages]+"'>"+messages[i_messages]+"</span>")
if (i_messages >= messages.length-1) {i_messages = 0}
else {i_messages++}}
timer = setTimeout("dotransition()",5000) }
//菜单层的显示函数
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
</script>
<div id="content" style="VISIBILITY: hidden; filter: revealTrans(Transition=12, Duration=2); height: 30; left: 131; position: absolute; text-align: center; top: 370; width: 500"></div>
<script>
//查看文章
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 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 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();
}
</script>
<%}
catch(Exception e)
{ e.printStackTrace();}
finally{
if(myBean!=null)myBean.closeConn();
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -