?? year_stat.jsp
字號(hào):
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../include.jsp"%>
<%
int ob = StringUtil.getInt(request,"ob",1);
int len = 450;
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>無(wú)標(biāo)題文檔</title>
<link href="../../style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../common.js"></script>
<style type="text/css">
<!--
.unnamed1 {
background-color: #cccccc;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color: 666666;
border-right-color: 999999;
border-bottom-color: 999999;
border-left-color: 666666;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="thetable">
<thead>
<tr>
<td valign="top"><a href="?ob=1"><font color="#0000FF">年
份</font></a></td>
<td width="56%" align="center" valign="middle"> </td>
<td width="5%" align="center" valign="middle"><a href="?ob=2"><font color="#0000FF">件</font></a></td>
<td width="11%" align="center" valign="middle"><a href="?ob=3"><font color="#0000FF">銷售金額</font></a></td>
<td width="7%" align="center" valign="middle">百份比</td>
</tr>
</thead>
<%
DBRow rows[] = productMgr.getYearStat(ob);
String lineBg;
for ( int i=0; i<rows.length; i++ )
{
if ( i%2==0 )
{
lineBg = "#ffffff";
}
else
{
lineBg = "#eeeeee";
}
%>
<tr onMouseOut="this.style.background='<%=lineBg%>'" onMouseOver="this.style.background='#F4E088'" bgcolor="<%=lineBg%>">
<td width="21%" height="26" align="left" valign="middle" style='word-break:break-all;padding-left:3px;' >
<%=rows[i].getString("day")%>
</td>
<td width="56%" align="left" valign="middle" ><table width="<%=len%>" height="14" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="610" class="unnamed1"><img src="stat_line.gif" width="<%=rows[i].get("percent",0f)*len%>" height="12"></td>
</tr>
</table></td>
<td width="5%" align="center" valign="middle" >
<%=(int)rows[i].get("total",0f)%>
</td>
<td width="11%" align="center" valign="middle" >
<%=rows[i].get("amount",0f)%>
</td>
<td width="7%" align="center" valign="middle" style='word-break:break-all;' >
<%=StringUtil.formatNumber("#0.00",rows[i].get("percent",0f)*100f)%>
%</td>
</tr>
<%
}
%>
</table>
<br>
<br>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -