資源簡介
HTML中文后臺(tái)管理靜態(tài)模板,后臺(tái)每個(gè)模板都有對應(yīng)的頁面,可以很快地拿來做自己的后臺(tái)管理界面

代碼片段和文件信息
package?com.baidu.ueditor;
import?java.util.Map;
import?javax.servlet.http.HttpServletRequest;
import?com.baidu.ueditor.define.ActionMap;
import?com.baidu.ueditor.define.AppInfo;
import?com.baidu.ueditor.define.baseState;
import?com.baidu.ueditor.define.State;
import?com.baidu.ueditor.hunter.FileManager;
import?com.baidu.ueditor.hunter.ImageHunter;
import?com.baidu.ueditor.upload.Uploader;
public?class?ActionEnter?{
private?HttpServletRequest?request?=?null;
private?String?rootPath?=?null;
private?String?contextPath?=?null;
private?String?actionType?=?null;
private?ConfigManager?configManager?=?null;
public?ActionEnter?(?HttpServletRequest?request?String?rootPath?)?{
this.request?=?request;
this.rootPath?=?rootPath;
this.actionType?=?request.getParameter(?“action“?);
this.contextPath?=?request.getContextPath();
this.configManager?=?ConfigManager.getInstance(?this.rootPath?this.contextPath?request.getRequestURI()?);
}
public?String?exec?()?{
String?callbackName?=?this.request.getParameter(“callback“);
if?(?callbackName?!=?null?)?{
if?(?!validCallbackName(?callbackName?)?)?{
return?new?baseState(?false?AppInfo.ILLEGAL?).toJSONString();
}
return?callbackName+“(“+this.invoke()+“);“;
}?else?{
return?this.invoke();
}
}
public?String?invoke()?{
if?(?actionType?==?null?||?!ActionMap.mapping.containsKey(?actionType?)?)?{
return?new?baseState(?false?AppInfo.INVALID_ACTION?).toJSONString();
}
if?(?this.configManager?==?null?||?!this.configManager.valid()?)?{
return?new?baseState(?false?AppInfo.CONFIG_ERROR?).toJSONString();
}
State?state?=?null;
int?actionCode?=?ActionMap.getType(?this.actionType?);
Mapject>?conf?=?null;
switch?(?actionCode?)?{
case?ActionMap.CONFIG:
return?this.configManager.getAllConfig().toString();
case?ActionMap.UPLOAD_IMAGE:
case?ActionMap.UPLOAD_SCRAWL:
case?ActionMap.UPLOAD_VIDEO:
case?ActionMap.UPLOAD_FILE:
conf?=?this.configManager.getConfig(?actionCode?);
state?=?new?Uploader(?request?conf?).doExec();
break;
case?ActionMap.CATCH_IMAGE:
conf?=?configManager.getConfig(?actionCode?);
String[]?list?=?this.request.getParameterValues(?(String)conf.get(?“fieldName“?)?);
state?=?new?ImageHunter(?conf?).capture(?list?);
break;
case?ActionMap.LIST_IMAGE:
case?ActionMap.LIST_FILE:
conf?=?configManager.getConfig(?actionCode?);
int?start?=?this.getStartIndex();
state?=?new?FileManager(?conf?).listFile(?start?);
break;
}
return?state.toJSONString();
}
public?int?getStartIndex?()?{
String?start?=?this.request.getParameter(?“start“?);
try?{
return?Integer.parseInt(?start?);
}?catch?(?Exception?e?)?{
return?0;
}
}
/**
?*?callback參數(shù)驗(yàn)證
?*/
public?boolean?valid
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????14671??2016-07-19?16:07??advertising.html
?????文件???????7235??2016-08-02?15:22??Amounts.html
?????文件???????6210??2016-07-26?11:38??article_add.html
?????文件???????9317??2016-07-26?11:40??article_list.html
?????文件???????8648??2016-07-26?15:23??article_Sort.html
?????文件??????23767??2016-06-24?16:51??Brand_detailed.html
?????文件??????19657??2016-09-18?17:58??Brand_Manage.html
?????文件???????4886??2016-06-14?11:34??Category_Manage.html
?????文件??????19068??2016-07-01?16:18??Competence.html
?????文件???????8398??2016-09-18?17:58??Cover_management.html
?????文件???????9003??2016-09-18?17:58??Feedback.html
?????文件???????9331??2016-09-18?17:58??Guestbook.html
?????文件???????9711??2016-08-01?10:45??home.html
?????文件??????25346??2018-07-21?17:42??index.html
?????文件??????14581??2016-09-18?17:58??integration.html
?????文件???????5374??2016-09-20?15:22??login.html
?????文件??????14618??2016-07-08?17:35??member-Grading.html
?????文件???????2221??2016-06-28?16:08??member-show.html
?????文件???????5559??2016-08-02?17:26??Order_Chart.html
?????文件???????9020??2016-07-19?16:20??order_detailed.html
?????文件??????10763??2016-09-18?17:58??Order_handling.html
?????文件??????19522??2016-09-18?17:58??Orderform.html
?????文件???????8621??2016-08-01?10:34??Payment_Configure.html
?????文件??????11996??2016-07-28?17:21??Payment_details.html
?????文件??????12063??2016-07-25?17:34??payment_method.html
?????文件??????34541??2016-07-26?10:48??picture-add.html
?????文件???????3753??2016-06-23?17:49??product-category-add.html
?????文件??????23426??2016-09-18?17:58??Products_List.html
?????文件???????7123??2016-09-18?17:58??Refund.html
?????文件???????4661??2016-07-29?16:56??Refund_detailed.html
............此處省略897個(gè)文件信息
評(píng)論
共有 條評(píng)論