You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.1 KiB

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><3E><><EFBFBD><EFBFBD></title>
</head>
<body>
<%
String yuan=request.getParameter("yuan");
String id=request.getParameter("id");
String xuefei=request.getParameter("xuefei");
String xueyuan=request.getParameter("xueyuan");
String tablename=request.getParameter("tablename");
String sql="";
String sql2="";
if(yuan.equals("<22><>"))
{
sql="update "+tablename+" set iszf='<27><>' where id="+id;
sql2="update yonghuzhuce set yue=yue+'"+xuefei+"' where yonghuming='"+xueyuan+"'";
}
else
{
sql="update "+tablename+" set iszf='<27><>' where id="+id;
sql2="update yonghuzhuce set yue=yue-'"+xuefei+"' where yonghuming='"+xueyuan+"'";
}
new CommDAO().commOper(sql);
new CommDAO().commOper(sql2);
out.print("<script>location.href='"+request.getHeader("Referer")+"';</script>");
%>
</body>
</html>