⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolbar.jsp

📁 一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs12315src里,没有打包数据库.
💻 JSP
字号:

<%
/**
 *	$RCSfile: toolbar.jsp,v $
 *	$Revision: 1.4.2.1 $
 *	$Date: 2001/01/21 21:30:25 $
 */
%>

<%!	/////////////////////
	// toolbar variables
	
	// change these values to customize the look of your toolbar
	
	// Colors
	final static String toolbarBgcolor = "#cccccc";
	final static String toolbarFgcolor = "#eeeeff";
%>

<%	//////////////////
	// variables for displaying items on the toolbar
	boolean showLink = (viewLink!=null && !viewLink.equals(""));
	boolean showPost = (postLink!=null && !postLink.equals(""));
	boolean showReply = (replyLink!=null && !replyLink.equals(""));
	//boolean showSearch = (searchLink!=null && !searchLink.equals(""));
	//boolean showAccount = (accountLink!=null && !accountLink.equals(""));
%>

<%	/////////////////////
	// toolbar variables
	
	// change these values to customize the text and links of the
	// toolbar buttons
	
	// view button
	String viewButtonText = "View Topics";
	String viewButtonURL = viewLink;
	String viewButtonImgSRC = "images/doc_white.gif";
	String viewButtonImgWidth = "19";
	String viewButtonImgHeight = "19";
	String viewButtonImgAltText = "Click to view all topics in this forum";
	
	// post button
	String postButtonText = "Post New Message";
	String postButtonURL = postLink;
	String postButtonImgSRC = "images/doc_yellow.gif";
	String postButtonImgWidth = "19";
	String postButtonImgHeight = "19";
	String postButtonImgAltText = "Click to post a new message in this forum";
	
	// reply button
	String replyButtonText = "Reply";
	String replyButtonURL = replyLink;
	String replyButtonImgSRC = "images/doc_green.gif";
	String replyButtonImgWidth = "19";
	String replyButtonImgHeight = "19";
	String replyButtonImgAltText = "Click to reply to this message";
	
		
	// Login button
	String loginButtonText = "Login";
	String loginButtonURL = "login.jsp";
	String loginButtonImgSRC = "images/login.gif";
	String loginButtonImgWidth = "19";
	String loginButtonImgHeight = "19";
	String loginButtonImgAltText = "Login in or create a new user account";
	
	// logout button
	String logoutButtonText = "Logout";
	String logoutButtonURL = "index.jsp?logout=true";
	String logoutButtonImgSRC = "images/x.gif";
	String logoutButtonImgWidth = "19";
	String logoutButtonImgHeight = "19";
	String logoutButtonImgAltText = "Logout of this forum";
	
	
%>

<%	////////////////////
	//
	if( showToolbar ) {
%>
   	<table bgcolor="<%= toolbarBgcolor %>" width="100%" border="0" cellspacing="0" cellpadding="1">
	<td><table bgcolor="<%= toolbarFgcolor %>" width="100%" border="0" cellspacing="0" cellpadding="3">

	<%	int count1 = 0; %>

	<%	if( showLink ) {  count1 += 3; %>
		<td width="1%"><a href="<%= viewButtonURL %>"><img src="<%= viewButtonImgSRC %>" width="<%= viewButtonImgWidth %>" height="<%= viewButtonImgHeight %>" border="0" alt="<%= viewButtonImgAltText %>"></a></td>
		<td width="1%" nowrap><a href="<%= viewButtonURL %>" class="toolbar" title="<%= viewButtonImgAltText %>"><%= viewButtonText %></a></td>
		<td width="1%">&nbsp;&nbsp;</td>
	<%	} %>

	<%	if( showPost ) {  count1 += 3; %>
		<td width="1%"><a href="<%= postButtonURL %>"><img src="<%= postButtonImgSRC %>" width="<%= postButtonImgWidth %>" height="<%= postButtonImgHeight %>" border="0" alt="<%= postButtonImgAltText %>"></a></td>
		<td width="1%" nowrap><a href="<%= postButtonURL %>" class="toolbar" title="<%= postButtonImgAltText %>"><%= postButtonText %></a></td>
		<td width="1%">&nbsp;&nbsp;</td>
	<%	} %>

	<%	if( showReply ) {  count1 += 3; %>
		<td width="1%"><a href="<%= replyButtonURL %>"><img src="<%= replyButtonImgSRC %>" width="<%= replyButtonImgWidth %>" height="<%= replyButtonImgHeight %>" border="0" alt="<%= replyButtonImgAltText %>"></a></td>
		<td width="1%" nowrap><a href="<%= replyButtonURL %>" class="toolbar" title="<%= replyButtonImgAltText %>"><%= replyButtonText %></a></td>
		<td width="1%">&nbsp;&nbsp;</td>
	<%	} %>

	<td width="<%= (100-5-count1) %>%">
		<span class="toolbar"><br></span>
	</td>
	
<%	// show a link to a user account if there is a registered user
	// logged into this skin. Otherwise, we'll display a link to a 
	// "create account" page
	
		// if this is a registered user...

%>
	


<%		} else { %>
	<td width="1%"><a href="<%= loginButtonURL %>"><img src="<%= loginButtonImgSRC %>" width="<%= loginButtonImgWidth %>" height="<%= loginButtonImgHeight %>" border="0" alt="<%= loginButtonImgAltText %>"></a></td>
	<td width="1%" nowrap><a href="<%= loginButtonURL %>" class="toolbar" title="<%= loginButtonImgAltText %>"><%= loginButtonText %></a></td>
	<td width="1%">&nbsp;&nbsp;</td>


<%	// only show a logout button if the user is a registered user
	
	if( !user.isAnonymous() ) {
%>
	<td width="1%"><a href="<%= logoutButtonURL %>"><img src="<%= logoutButtonImgSRC %>" width="<%= logoutButtonImgWidth %>" height="<%= logoutButtonImgHeight %>" border="0" alt="<%= logoutButtonImgAltText %>"></a></td>
	<td width="1%" nowrap><a href="<%= logoutButtonURL %>" class="toolbar" title="<%= logoutButtonImgAltText %>"><%= logoutButtonText %></a></td>
	
<%	} %>
	
	</table>
	</td>
	</table>
	
<%	} %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -