include_head.jsp
来自「本程序采用Struts结构开发一个小型的BBS论坛 ,论坛包括用户注册与登陆,主」· JSP 代码 · 共 147 行
JSP
147 行
<%@ page contentType="text/html;charset=GB2312" language="java" %><%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %><style><!--.menuskin { BORDER: 1px solid #666666; VISIBILITY: hidden; POSITION: absolute; BACKGROUND-COLOR:#EFEFEF; background-image:url('images/dvmenubg3.gif'); background-repeat : repeat-y; font-style:normal; font-variant:normal; font-weight:normal; font-size:12px; font-family:Verdana }.tableBorder1{width:98%;border: 1px; background-color: #6595D6;}TD{font-family: 宋体;font-size: 12px;line-height : 15px ;}td.TopDarkNav{background-image: url('images/topbg.gif');}td.TopLighNav2{background-color:#FFFFFF}td.TopLighNav{background-image: url('images/bottombg.gif');}td.TopLighNav1{background-image: url('images/tabs_m_tile.gif');}td.TableBody1{background-color: #FFFFFF;line-height : normal ;}a:link{TEXT-DECORATION:none ;Color:#000000}td.TableBody2{background-color: #E4E8EF;line-height : normal ;}--></style></head><body bgcolor="white"><html:javascript formName="logonForm"/><table class="tableborder1" cellSpacing="0" cellPadding="0" align="center" id="table1"> <tr> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> <td class="TopDarkNav" width="*" height="9"></td> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> </tr> <tr> <td width="1" height="70" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> <td class="TopLighNav2" height="70"> <table width="100%" align="center" border="0" id="table2"> <tr> <td id="Top_ads" align="middle" width="100%" style="font-family: 宋体; font-size: 12px; line-height: 15px"> <img src="images/StrutsBBS_3.jpg" border="0"></td> </tr> </table> </td> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> </tr> <tr> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> <td class="TopLighNav" width="*" height="9"></td> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> </tr> <tr> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> <td class="TopLighNav1" id="Menu" vAlign="center" height="22"> <!--顶部用户导航栏:客人菜单--> <a style="text-decoration: none; color: #000000" href="logon.jsp"> 登陆</a> <img src="images/navspacer.gif" align="absMiddle" border="0"> <a style="text-decoration: none; color: #000000" href="registrationInsert.jsp"> 注册</a> <img src="images/navspacer.gif" align="absMiddle" border="0"> <a style="text-decoration: none; color: #000000" href="search.jsp"> 搜索</a> <img src="images/navspacer.gif" align="absMiddle" border="0"> <a style="text-decoration: none; color: #000000" href="logoff.do"> 注销登陆</a> </td> <td width="1" style="font-family: 宋体; font-size: 12px; line-height: 15px"> </td> </tr></table><table cellSpacing="1" cellPadding="3" width="98%" align="center" border="0" id="table3"> <tr> <td vAlign="center" align="middle" width="100%" colSpan="2" style="font-family: 宋体; font-size: 12px; line-height: 15px"> <a style="text-decoration: none; color: #000000" href="javascript:openScript('announcements.jsp',500,400)"> <b>公告:祝大家工作顺利!学习进行</b></a>(2005-7-7 12:00:44) </td> </tr></table><table class="tableBorder1" cellSpacing="1" cellPadding="3" align="center" id="table4"> <tr> <th width="100%" colSpan="2" height="24" style="color: white; font-size: 12px; font-weight: bold; background-color: #4455aa; background-image: url('images/bg1.gif')"> </th> </tr> <tr> <td class="tableBody1" align="middle" width="80%"> <logic:present name="user"> <bean:write name="username" /> ,欢迎您访问StrutsBBS论坛! </logic:present> <logic:notPresent name="user"> 欢迎您访问StrutsBBS论坛,您还没有[<a class="cblue" href="registrationInsert.jsp">注册</a>]或[<a class="cblue" href="logon.jsp">登陆</a>]<br> <table cellSpacing="0" cellPadding="0" align="center" id="table5"> <html:form action="/logonAction" focus="username" onsubmit="return validateLogonForm(this);"> <td class="tablebody1" width="100%" height="40">用户姓名:<input maxLength="16" size="12" name="username" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"><br> 用户密码:<input type="password" maxLength="20" size="12" value name="password" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> <select name="CookieDate" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> <option value="0" selected style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> 不保存</option> <option value="1" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> 保存一天</option> <option value="2" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> 保存一月</option> <option value="3" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> 保存一年</option> </select> <input type="submit" value="登陆" name="submit" style="font-family: Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px; color: #000000"> </td></html:form></table> </td> </logic:notPresent> <td class="tableBody1" vAlign="top" width="340"> </td> </tr> <tr> <td class="tableBody2" align="middle" width="100%" colSpan="2" height="25"> <font face="Wingdings" color="#666666" style="line-height: normal">v</font> <a style="text-decoration: none; color: #000000" href="index.jsp"> 返回论坛首页</a> <font face="Wingdings" color="#666666" style="line-height: normal">v</font> <a style="text-decoration: none; color: #000000" href="search.jsp"> 查看新贴</a> <font face="Wingdings" color="#666666" style="line-height: normal">v</font> <a style="text-decoration: none; color: #000000" href="search.jsp"> 热门话题</a> <font face="Wingdings" color="#666666" style="line-height: normal">v</font> <a style="text-decoration: none; color: #000000" href="search.jsp"> 发贴排行</a> <font face="Wingdings" color="#666666" style="line-height: normal">v</font> <a style="text-decoration: none; color: #000000" href="registration.jsp"> 用户列表</a> <font face="Wingdings" color="#666666" style="line-height: normal">v</font> <a style="text-decoration: none; color: #000000" href="board.jsp"> 论坛版面管理</a> </td> </tr></table><html:javascript formName="logonForm"/><br>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?