📄 commendmanage.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: CommendManage.java
package com.laoer.bbscs.web.action;
import com.laoer.bbscs.business.ICommendService;
import com.laoer.bbscs.sys.*;
import com.laoer.bbscs.web.form.CommendManageForm;
import com.laoer.bbscs.web.servlet.UserCheck;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.*;
// Referenced classes of package com.laoer.bbscs.web.action:
// BaseAction
public class CommendManage extends BaseAction
{
public CommendManage()
{
}
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
{
ActionErrors errors = new ActionErrors();
CommendManageForm form = (CommendManageForm)actionForm;
UserCheck uc = getUserCheck(httpServletRequest, httpServletResponse);
if(uc.isGuest())
{
errors.add("error.pleaselogin", new ActionError("error.pleaselogin"));
saveErrors(httpServletRequest, errors);
return SysUtil.getPassLogin(actionMapping);
}
if(!uc.isSuperAdmin() && !uc.isBulletin())
{
errors.add("error.purviewerror", new ActionError("error.purviewerror"));
saveErrors(httpServletRequest, errors);
return actionMapping.findForward("error");
}
if(form.getAction().equals("list"))
{
Pages pages = new Pages(httpServletRequest);
pages.setPage(form.getPage());
pages.setPerPageNum(20);
pages.setFileName("commendManage" + Constant.FILEPREFIX);
pages.setStyle(1);
com.laoer.bbscs.sys.PageList pl = getCommendService().getCommendList((short)1, pages);
httpServletRequest.setAttribute("pl", pl);
form.setAction("del");
httpServletRequest.setAttribute("commendManageForm", form);
return actionMapping.findForward("commendmanage");
}
if(form.getAction().equals("del"))
{
for(int i = 0; i < form.getIds().length; i++)
getCommendService().removeCommend(form.getIds()[i]);
getCommendService().createCommendFile();
ActionForward f = new ActionForward("/commendManage" + Constant.FILEPREFIX + "?page=" + form.getPage(), true);
return f;
} else
{
return actionMapping.findForward("error");
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -