資源簡介
超市會員積分管理系統主要用于實現了企業管理數據統計等。本系統結構如下:
(1)網絡會員管理中心界面:
會員修改密碼信息模塊:實現會員密碼功能;
會員登陸模塊:實現會員登陸功能;
會員注冊模塊:實現會員注冊功能;
留言板模塊:實現留言板留言功能
(2)后臺管理界面:
系統用戶管理模塊:實現管理員的增加、查看功能;
會員信息管理模塊:實現會員信息的增加、修改、查看功能;
注冊用戶管理模塊:實現注冊用戶的增加、修改、查看功能;
會員卡管理模塊:實現會員卡信息的增加、查看功能;
商品銷售管理模塊:實現商品信息的增加、查看功能;
會員積分管理模塊:實現合作公司信息的增加、查看功能;
信息統計模塊:實現數據統計報表功能;
留言板模塊:實現留言板信息的增加、修改、查看功能;
(1)網絡會員管理中心界面:
會員修改密碼信息模塊:實現會員密碼功能;
會員登陸模塊:實現會員登陸功能;
會員注冊模塊:實現會員注冊功能;
留言板模塊:實現留言板留言功能
(2)后臺管理界面:
系統用戶管理模塊:實現管理員的增加、查看功能;
會員信息管理模塊:實現會員信息的增加、修改、查看功能;
注冊用戶管理模塊:實現注冊用戶的增加、修改、查看功能;
會員卡管理模塊:實現會員卡信息的增加、查看功能;
商品銷售管理模塊:實現商品信息的增加、查看功能;
會員積分管理模塊:實現合作公司信息的增加、查看功能;
信息統計模塊:實現數據統計報表功能;
留言板模塊:實現留言板信息的增加、修改、查看功能;
代碼片段和文件信息
package?com.action;
/**
?*?管理員登陸?增加?修改?刪除?刪除登陸日志
?*/
import?java.io.IOException;
import?java.util.List;
import?java.util.StringTokenizer;
import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?javax.servlet.http.HttpSession;
import?com.bean.AdminBean;
import?com.bean.SystemBean;
import?com.util.Constant;
import?com.util.MD5;
public?class?AdminAction?extends?HttpServlet?{
/**
?*?Constructor?of?the?object.
?*/
public?AdminAction()?{
super();
}
/**
?*?Destruction?of?the?servlet.?
?*/
public?void?destroy()?{
super.destroy();?//?Just?puts?“destroy“?string?in?log
//?Put?your?code?here
}
/**
?*?The?doGet?method?of?the?servlet.?
?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?get.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doGet(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{
doPost(requestresponse);
}
/**
?*?The?doPost?method?of?the?servlet.?
?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?post.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doPost(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{
response.setContentType(Constant.CONTENTTYPE);
request.setCharacterEncoding(Constant.CHARACTERENCODING);
try{
String?method=request.getParameter(“method“).trim();
AdminBean?loginbean?=?new?AdminBean();
HttpSession?session?=?request.getSession();
session.setMaxInactiveInterval(1200);
SystemBean?systembean?=?new?SystemBean();
String?sysdir?=?systembean.getDir();
if(method.equals(“one“)){//admin登錄
String?username?=?request.getParameter(“username“);
String?password?=?request.getParameter(“password“);
if(username?==?null||username.trim().equals(““)){
request.setAttribute(“message“?“請正確輸入用戶名!“);
request.getRequestDispatcher(sysdir+“/login.jsp“).forward(request?response);
}
else?if(password?==?null||password.trim().equals(““)){
request.setAttribute(“message“?“請輸入密碼!“);
request.getRequestDispatcher(sysdir+“/login.jsp“).forward(request?response);
}
else{
String?md5password?=?MD5.MD5(password);
String?agent?=?request.getHeader(“user-agent“);?
StringTokenizer?st?=?new?StringTokenizer(agent“;“);?
String?useros=st.nextToken();
String?loginip?=?request.getRemoteA
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????17425??2018-11-07?18:36??超市積分管理系統\數據庫\jf.sql
?????文件???????2354??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.classpath
?????文件????????279??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.myme
?????文件???????1745??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.project
?????文件????????503??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\.jsdtscope
?????文件????????401??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\org.eclipse.jdt.core.prefs
?????文件????????114??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\org.eclipse.jst.ws.cxf.core.prefs
?????文件????????470??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\org.eclipse.wst.common.component
?????文件????????252??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2015-05-08?21:22??超市積分管理系統\源代碼\jf\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????9092??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\AdminAction.java
?????文件???????5642??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\AfficheAction.java
?????文件???????5789??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\CommonAction.java
?????文件??????18716??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\ComServlet.java
?????文件???????6986??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\GuestBookAction.java
?????文件???????7927??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\LoginAction.java
?????文件??????10522??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\MemberAction.java
?????文件???????6688??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\MemberManageAction.java
?????文件??????11196??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\NewsServlet.java
?????文件???????7655??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\action\UpServlet.java
?????文件???????7970??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\AdminBean.java
?????文件??????12956??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\AfficheBean.java
?????文件???????4538??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\ComBean.java
?????文件??????10482??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\GuestBookBean.java
?????文件??????14536??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\MemberBean.java
?????文件??????17386??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\MemberManageBean.java
?????文件??????13393??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\NewsBean.java
?????文件???????2039??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\bean\SystemBean.java
?????文件????????318??2015-05-08?21:22??超市積分管理系統\源代碼\jf\src\com\util\CheckCode.java
............此處省略798個文件信息
評論
共有 條評論