77 lines
2.1 KiB
Plaintext
77 lines
2.1 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=GB18030"
|
|
pageEncoding="GB18030" import="java.sql.*"%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<jsp:useBean id="gg" class="com.DB" scope="page" />
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>Insert title here</title>
|
|
<link href="../css/style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<table width="985" height="548" border="0" cellpadding="0"
|
|
cellspacing="0">
|
|
<tr>
|
|
<td valign="top" background="../image/RIGHT.jpg"><table
|
|
width="985" height="50" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="330" height="56" border="0" align="center"
|
|
cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="165" height="30" align="center" bgcolor="#ECE9D8">支付方式</td>
|
|
<td width="165" align="center" bgcolor="#ECE9D8">支付次数</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td height="26" align="center">刷卡</td>
|
|
<td align="center">
|
|
<%
|
|
|
|
String sqlo1="select * from feiyong where zhifu_type='刷卡'";
|
|
ResultSet rs31=gg.GetRs(sqlo1);
|
|
int i1=0;
|
|
while(rs31.next()){
|
|
i1=i1+1;
|
|
}
|
|
%> <% out.println (i1); %>
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height="26" align="center">现金</td>
|
|
<td align="center">
|
|
<%
|
|
|
|
String sqlo2="select * from feiyong where zhifu_type='现金'";
|
|
ResultSet rs32=gg.GetRs(sqlo2);
|
|
int i2=0;
|
|
while(rs32.next()){
|
|
i2=i2+1;
|
|
}
|
|
%> <% out.println (i2); %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td height="26" align="center">支付宝</td>
|
|
<td align="center">
|
|
<%
|
|
String sqlo3="select * from feiyong where zhifu_type='支付宝'";
|
|
ResultSet rs33=gg.GetRs(sqlo3);
|
|
int i3=0;
|
|
while(rs33.next()){
|
|
i3=i3+1;
|
|
}
|
|
%> <% out.println (i3); %>
|
|
</td>
|
|
</tr>
|
|
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |