WebRoot/xinxi/kucunlist.jsp

(完整代码) 1KB

<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="com.util.*"%>
<%
request.setCharacterEncoding("gb2312");//设置页面字符集
DBO db=new DBO();//初始链接数据库类
String sql="select sum(a.sl) as sl,c.spmc from kucun a,cangku b,shangpin c where 1=1 and a.ck=b.ckid and a.sp=c.spid group by c.spmc ";//查询 库存sql语句
db.open();//打开数据库链接
ResultSet rs=db.query(sql);//查询结果
//库存信息查询
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>库存列表</title>
</head>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<link rel="stylesheet" type="text/css" media="screen" href="../css/tinyTips.css" />

<body>
<form name="form" action="" method="post" >
<div class=formzone>
<div class=namezone>商品数量统计</div>
<DIV class=listzone>
<TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
  <TBODY>
 
				 		<tr align="center" bgcolor="#ebf0f7">
 <td width="9%" height="25" >商品</td>
 <td width="9%" height="25" >数量</td>
 </tr>

			
					<%
					if(rs!=null){
					while(rs.next()){
					%>
                  	  <tr align='center' bgcolor='#FFFFFF' onmouseover='this.style.background="#F2FDFF"' onmouseout='this.style.background="#FFFFFF"'>
 <td height="24" ><%=rs.getString("spmc")%></td>
 <td height="24" ><%=rs.getString("sl")%></td>
 </tr>

                 <%
				 }
				 }
				 %>
    </TBODY></TABLE>
</DIV>


</div>
</form>


</body>
<%
db.close();
%>
</html>

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。