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

📄 head.inc

📁 一个Struts写的网上购物系统,是一个不错的实例.
💻 INC
字号:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  <tr><td colspan="11"><html:img height="6" alt="" page="/images/spacer.gif" width="1" border="0"/></td></tr>
  <tr>
    <td width="10"><html:img page="/images/spacer.gif" width="10" height="1" border="0" alt=""/></td>
    <td width="125"><a href="http://jakarta.apache.org/struts">
    <html:img page="/images/logo.gif" border="0" alt="Powered by Struts"/></a></td>
    <td width="110"><html:img page="/images/spacer.gif" width="110" height="1" border="0" alt=""/></td>
    <td width="240" align="right" valign="bottom" nowrap>
      <table width="240" border="0" cellspacing="0" cellpadding="0">
	<tr>
 	 <td colspan="2" align="left" valign="top" nowrap>
	   	   
	   <logic:notPresent name="SessionContainer" property="userView" scope="session">
	     <font size="2"> <b><bean:message key="head.inc.whatdo"/><html:link page="/action/viewsignin"><bean:message key="head.inc.login"/></html:link></b></font>	
	   </logic:notPresent>
	   
	   <logic:present name="SessionContainer" property="userView" scope="session">
	     <font size="2"><b><bean:write name="SessionContainer" property="userView.firstName" scope="session"/>,<bean:message key="head.inc.whatdo"/></font>
	      <html:link page="/action/signoff"> <bean:message key="head.inc.logout"/></html:link></b>	
	   </logic:present>	    
	    
	   
	 </td>
        </tr>
	<tr>
	 <td align="left" valign="top" nowrap>
	 <font size="2">
	    <bean:message key="head.inc.items"/><b>
	   
	   <logic:present name="SessionContainer" scope="session">
	    <b><bean:write name="SessionContainer" property="cart.size" scope="session"/></b>
	    <br>
	    <bean:message key="head.inc.total"/><b>$<bean:write name="SessionContainer" format="#,##0.00" property="cart.totalPrice" scope="session"/></b><br>
	   </logic:present>	    
	   
	   <logic:notPresent name="SessionContainer" scope="session">
	     <b>0</b>
	     <br>
	     <bean:message key="head.inc.total"/><b>$0.00</b><br>
	   </logic:notPresent>	   
	   
	 </font>
	</td>
	<td width="35" align="right" valign="bottom">
	  <html:link page="/action/cart?method=view">
	    <html:img page="/images/cart.gif" altKey="cart.checkcart" width="35" height="20" border="0"/>
	  </html:link>
	  <br>
	</td>
       </tr>
	</table>
   </td>		
    <td width="78"></td>		
    <td width="100%"></td>
	</tr>
</table>

⌨️ 快捷键说明

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