theme_config_upload.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8"
- import = "java.io.File"
- import = "cn.js.fan.db.*"
- import = "cn.js.fan.util.*"
- import = "cn.js.fan.web.Global"
- import = "cn.js.fan.web.SkinUtil"
- import = "com.redmoon.forum.ui.*"
- import = "com.redmoon.forum.*"
- %>
- <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
- <%@ include file="../inc/nocache.jsp" %>
- <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
- <%
- if (!privilege.isMasterLogin(request))
- {
- out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
- return;
- }
- try {
- ThemeUploadMgr tum = new ThemeUploadMgr();
- String filename = tum.uploadImg(application, request);
- //out.print(filename);
- out.println(fchar.Alert_Redirect(SkinUtil.LoadString(request, "info_op_success"), "theme_config.jsp?op=modify&filename=" + filename));
- }
- catch (ErrMsgException e) {
- out.print(StrUtil.Alert_Back(e.getMessage()));
- }
- %>