master
chenshengping 2 years ago
parent 92156c11ff
commit 81f3f4f435

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

@ -0,0 +1,31 @@
<component name="ArtifactManager">
<artifact type="exploded-war" name="shetuansys:Web exploded">
<output-path>$PROJECT_DIR$/out/artifacts/shetuansys_Web_exploded</output-path>
<root id="root">
<element id="javaee-facet-resources" facet="shetuansys/web/Web" />
<element id="directory" name="WEB-INF">
<element id="directory" name="classes">
<element id="module-output" name="shetuansys" />
</element>
<element id="directory" name="lib">
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-beanutils-1.8.0.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-beanutils-1.8.3.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-collections-3.2.1.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-dbutils-1.6.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-fileupload-1.2.1.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-io-1.4.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-lang-2.5.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/commons-logging.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/ezmorph-1.0.6.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/FilelLoad.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/json-lib-2.3-jdk15.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/jsonplugin-0.34.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/jstl.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/mysql-connector-java-5.1.7-bin.jar" />
<element id="file-copy" path="$PROJECT_DIR$/shetuansys/WebContent/WEB-INF/lib/standard.jar" />
</element>
</element>
</root>
</artifact>
</component>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/shetuansys/src/com/xxx/util/CpachaUtil.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/shetuansys/src/com/xxx/util/DbUtil.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/shetuansys/src/com/xxx/util/StringUtil.java" charset="GBK" />
<file url="file://$PROJECT_DIR$/shetuansys/src/com/xxx/util/UploadHandle.java" charset="GBK" />
<file url="PROJECT" charset="GBK" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/shetuansys/shetuansys.iml" filepath="$PROJECT_DIR$/shetuansys/shetuansys.iml" />
</modules>
</component>
</project>

@ -0,0 +1,17 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" isErrorPage="true"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>不好意思您访问的页面不存在</title>
<link href="h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="h-ui/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page-404 text-c">
<p class="error-title"><i class="Hui-iconfont">&#xe688;</i>404</p>
<p class="error-description">不好意思,您访问的页面不存在~</p>
</div>
</body>
</html>

@ -0,0 +1,17 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" isErrorPage="true"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>服务端错误</title>
<link href="h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="h-ui/lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="page-404 text-c">
<p class="error-title"><i class="Hui-iconfont">&#xe688;</i>500</p>
<p class="error-description">不好意思,服务端错误啦~</p>
</div>
</body>
</html>

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
clearStr: "Clear",
todayStr: "Today",
okStr: "OK",
updateStr: "OK",
timeStr: "Time",
quickStr: "Quick Selection",
err_1: 'MinDate Cannot be bigger than MaxDate!'
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
clearStr: "\u6E05\u7A7A",
todayStr: "\u4ECA\u5929",
okStr: "\u786E\u5B9A",
updateStr: "\u786E\u5B9A",
timeStr: "\u65F6\u95F4",
quickStr: "\u5FEB\u901F\u9009\u62E9",
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!'
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
clearStr: "\u6E05\u7A7A",
todayStr: "\u4ECA\u5929",
okStr: "\u78BA\u5B9A",
updateStr: "\u78BA\u5B9A",
timeStr: "\u6642\u9593",
quickStr: "\u5FEB\u901F\u9078\u64C7",
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!'
}

@ -0,0 +1,11 @@
.Wdate{
border:#999 1px solid;
height:20px;
background:#fff url(datePicker.gif) no-repeat right;
}
.Wdate::-ms-clear{display:none;}
.WdateFmtErr{
font-weight:bold;
color:red;
}

@ -0,0 +1,246 @@
/*
* My97 DatePicker 4.8
*/
.WdateDiv{
width:180px;
background-color:#FFFFFF;
border:#bbb 1px solid;
padding:2px;
}
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
.WdateDiv .NavImg a{
display:block;
cursor:pointer;
height:16px;
width:16px;
}
.WdateDiv .NavImgll a{
float:left;
background:transparent url(img.gif) no-repeat scroll 0 0;
}
.WdateDiv .NavImgl a{
float:left;
background:transparent url(img.gif) no-repeat scroll -16px 0;
}
.WdateDiv .NavImgr a{
float:right;
background:transparent url(img.gif) no-repeat scroll -32px 0;
}
.WdateDiv .NavImgrr a{
float:right;
background:transparent url(img.gif) no-repeat scroll -48px 0;
}
.WdateDiv #dpTitle{
height:24px;
margin-bottom:2px;
padding:1px;
}
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
height:20px;
border:0px;
width:50px;
cursor:pointer;
}
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
font-weight:bold;
height:20px;
color:blue;
border:#ccc 1px solid;
width:50px;
}
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#ccc 1px solid;
display:none;
}
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
}
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
.WdateDiv .invalidMenu{
color:#aaa;
}
.WdateDiv .YMenu{
margin-top:20px;
}
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
.WdateDiv .MTitle{
background-color:#BDEBEE;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#c5d9e8 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
.WdateDiv .WdayTable{
line-height:20px;
border:#c5d9e8 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
.WdateDiv .Wday{
cursor:pointer;
}
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .Wwday{
cursor:pointer;
color:#FF2F2F;
}
.WdateDiv .WwdayOn{
cursor:pointer;
color:#000;
background-color:#C0EBEF;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A9E4E9;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
.WdateDiv .WotherDay{
cursor:pointer;
color:#6A6AFF;
}
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .WinvalidDay{
color:#aaa;
}
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
}
.WdateDiv #dpTime input{
width:18px;
height:20px;
text-align:center;
border:#ccc 1px solid;
}
.WdateDiv #dpTime .tB{
border-right:0px;
}
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
border:#ccc 1px solid;
margin-top:2px;
margin-right:1px;
}

@ -0,0 +1,256 @@
/*
* My97 DatePicker 4.8 Skin:whyGreen
*/
.WdateDiv{
width:180px;
background-color:#fff;
border:#C5E1E4 1px solid;
padding:2px;
}
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
.WdateDiv .NavImg a{
cursor:pointer;
display:block;
width:16px;
height:16px;
margin-top:1px;
}
.WdateDiv .NavImgll a{
float:left;
background:url(img.gif) no-repeat;
}
.WdateDiv .NavImgl a{
float:left;
background:url(img.gif) no-repeat -16px 0px;
}
.WdateDiv .NavImgr a{
float:right;
background:url(img.gif) no-repeat -32px 0px;
}
.WdateDiv .NavImgrr a{
float:right;
background:url(img.gif) no-repeat -48px 0px;
}
.WdateDiv #dpTitle{
height:24px;
padding:1px;
border:#c5d9e8 1px solid;
background:url(bg.jpg);
margin-bottom:2px;
}
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
border:0px;
height:20px;
width:50px;
color:#034c50;
background-color:transparent;
cursor:pointer;
}
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
border:#939393 1px solid;
font-weight:bold;
color:#034c50;
height:20px;
width:50px;
}
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#A3C6C8 1px solid;
display:none;
}
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
color:#11777C;
}
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
.WdateDiv .invalidMenu{
color:#aaa;
}
.WdateDiv .YMenu{
margin-top:20px;
}
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
.WdateDiv .MTitle{
color:#13777e;
background-color:#bdebee;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
.WdateDiv .WdayTable{
line-height:20px;
color:#13777e;
background-color:#edfbfb;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
.WdateDiv .Wday{
cursor:pointer;
}
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#74d2d9 ;
}
.WdateDiv .Wwday{
cursor:pointer;
color:#ab1e1e;
}
.WdateDiv .WwdayOn{
cursor:pointer;
background-color:#74d2d9;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A7E2E7;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
.WdateDiv .WotherDay{
cursor:pointer;
color:#0099CC;
}
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .WinvalidDay{
color:#aaa;
}
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
color:#497F7F;
}
.WdateDiv #dpTime input{
height:20px;
width:18px;
text-align:center;
color:#333;
border:#61CAD0 1px solid;
}
.WdateDiv #dpTime .tB{
border-right:0px;
}
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
margin-top:3px;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
margin-top:2px;
border:#38B1B9 1px solid;
background-color:#CFEBEE;
color:#08575B;
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
clearStr: "Clear",
todayStr: "Today",
okStr: "OK",
updateStr: "OK",
timeStr: "Time",
quickStr: "Quick Selection",
err_1: 'MinDate Cannot be bigger than MaxDate!'
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "不合法的日期格式或者日期超出限定范围,需要撤销吗?",
aWeekStr: ["周","日","一","二","三","四","五","六"],
aLongWeekStr:["周","星期日","星期一","星期二","星期三","星期四","星期五","星期六"],
aMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一","十二"],
aLongMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
clearStr: "清空",
todayStr: "今天",
okStr: "确定",
updateStr: "确定",
timeStr: "时间",
quickStr: "快速选择",
err_1: '最小日期不能大于最大日期!'
}

@ -0,0 +1,14 @@
var $lang={
errAlertMsg: "不合法的日期格式或者日期超出限定範圍,需要撤銷嗎?",
aWeekStr: ["周","日","一","二","三","四","五","六"],
aLongWeekStr:["周","星期日","星期一","星期二","星期三","星期四","星期五","星期六"],
aMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一","十二"],
aLongMonStr: ["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],
clearStr: "清空",
todayStr: "今天",
okStr: "確定",
updateStr: "確定",
timeStr: "時間",
quickStr: "快速選擇",
err_1: '最小日期不能大於最大日期!'
}

@ -0,0 +1,11 @@
.Wdate{
border:#999 1px solid;
height:20px;
background:#fff url(datePicker.gif) no-repeat right;
}
.Wdate::-ms-clear{display:none;}
.WdateFmtErr{
font-weight:bold;
color:red;
}

@ -0,0 +1,267 @@
/*
* My97 DatePicker 4.8
* :default
*/
/* 日期选择容器 DIV */
.WdateDiv{
width:180px;
background-color:#FFFFFF;
border:#bbb 1px solid;
padding:2px;
}
/* 双月日历的宽度 */
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
/****************************
* A
***************************/
.WdateDiv .NavImg a{
display:block;
cursor:pointer;
height:16px;
width:16px;
}
.WdateDiv .NavImgll a{
float:left;
background:transparent url(img.gif) no-repeat scroll 0 0;
}
.WdateDiv .NavImgl a{
float:left;
background:transparent url(img.gif) no-repeat scroll -16px 0;
}
.WdateDiv .NavImgr a{
float:right;
background:transparent url(img.gif) no-repeat scroll -32px 0;
}
.WdateDiv .NavImgrr a{
float:right;
background:transparent url(img.gif) no-repeat scroll -48px 0;
}
/****************************
*
***************************/
/* 年份月份栏 DIV */
.WdateDiv #dpTitle{
height:24px;
margin-bottom:2px;
padding:1px;
}
/* 年份月份输入框 INPUT */
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
height:20px;
border:0px;
width:50px;
cursor:pointer;
}
/* 年份月份输入框获得焦点时的样式 INPUT */
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
font-weight:bold;
height:20px;
color:blue;
border:#ccc 1px solid;
width:50px;
}
/* 菜单选择框 DIV */
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#ccc 1px solid;
display:none;
}
/* 菜单的样式 TD */
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
}
/* 菜单的mouseover样式 TD */
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
/* 菜单无效时的样式 TD */
.WdateDiv .invalidMenu{
color:#aaa;
}
/* 年选择框的偏移 DIV */
.WdateDiv .YMenu{
margin-top:20px;
}
/* 月选择框的偏移 DIV */
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
/* 时选择框的位置 DIV */
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
/* 分选择框的位置 DIV */
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
/* 秒选择框的位置 DIV */
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
/****************************
*
***************************/
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
/****************************
* ,
***************************/
/* 星期栏 TR */
.WdateDiv .MTitle{
background-color:#BDEBEE;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#c5d9e8 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
/* 日期栏表格 TABLE */
.WdateDiv .WdayTable{
line-height:20px;
border:#c5d9e8 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
/* 日期格的样式 TD */
.WdateDiv .Wday{
cursor:pointer;
}
/* 日期格的mouseover样式 TD */
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#C0EBEF;
}
/* 周末日期格的样式 TD */
.WdateDiv .Wwday{
cursor:pointer;
color:#FF2F2F;
}
/* 周末日期格的mouseover样式 TD */
.WdateDiv .WwdayOn{
cursor:pointer;
color:#000;
background-color:#C0EBEF;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A9E4E9;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
/* 其他月份的日期 */
.WdateDiv .WotherDay{
cursor:pointer;
color:#6A6AFF;
}
/* 其他月份的日期mouseover样式 */
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
/* 无效日期的样式,即在日期范围以外日期格的样式,不能选择的日期 */
.WdateDiv .WinvalidDay{
color:#aaa;
}
/****************************
*
***************************/
/* 时间栏 DIV */
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
/* 时间文字 SPAN */
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
}
/* 时间输入框 INPUT */
.WdateDiv #dpTime input{
width:18px;
height:20px;
text-align:center;
border:#ccc 1px solid;
}
/* 时间 时 INPUT */
.WdateDiv #dpTime .tB{
border-right:0px;
}
/* 时间 分和间隔符 ':' INPUT */
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
/* 时间 秒 INPUT */
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
/* 时间右边的向上按钮 BUTTON */
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
/* 时间右边的向下按钮 BUTTON */
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
/****************************
*
***************************/
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
border:#ccc 1px solid;
margin-top:2px;
margin-right:1px;
}

@ -0,0 +1,277 @@
/*
* My97 DatePicker 4.8
* :whyGreen
*/
/* 日期选择容器 DIV */
.WdateDiv{
width:180px;
background-color:#fff;
border:#C5E1E4 1px solid;
padding:2px;
}
/* 双月日历的宽度 */
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
/****************************
* A
***************************/
.WdateDiv .NavImg a{
cursor:pointer;
display:block;
width:16px;
height:16px;
margin-top:1px;
}
.WdateDiv .NavImgll a{
float:left;
background:url(img.gif) no-repeat;
}
.WdateDiv .NavImgl a{
float:left;
background:url(img.gif) no-repeat -16px 0px;
}
.WdateDiv .NavImgr a{
float:right;
background:url(img.gif) no-repeat -32px 0px;
}
.WdateDiv .NavImgrr a{
float:right;
background:url(img.gif) no-repeat -48px 0px;
}
/****************************
*
***************************/
/* 年份月份栏 DIV */
.WdateDiv #dpTitle{
height:24px;
padding:1px;
border:#c5d9e8 1px solid;
background:url(bg.jpg);
margin-bottom:2px;
}
/* 年份月份输入框 INPUT */
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
border:0px;
height:20px;
width:50px;
color:#034c50;
background-color:transparent;
cursor:pointer;
}
/* 年份月份输入框获得焦点时的样式 INPUT */
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
border:#939393 1px solid;
font-weight:bold;
color:#034c50;
height:20px;
width:50px;
}
/* 菜单选择框 DIV */
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#A3C6C8 1px solid;
display:none;
}
/* 菜单的样式 TD */
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
color:#11777C;
}
/* 菜单的mouseover样式 TD */
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
/* 菜单无效时的样式 TD */
.WdateDiv .invalidMenu{
color:#aaa;
}
/* 年选择框的偏移 DIV */
.WdateDiv .YMenu{
margin-top:20px;
}
/* 月选择框的偏移 DIV */
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
/* 时选择框的位置 DIV */
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
/* 分选择框的位置 DIV */
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
/* 秒选择框的位置 DIV */
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
/****************************
*
***************************/
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
/****************************
* ,
***************************/
/* 星期栏 TR */
.WdateDiv .MTitle{
color:#13777e;
background-color:#bdebee;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
/* 日期栏表格 TABLE */
.WdateDiv .WdayTable{
line-height:20px;
color:#13777e;
background-color:#edfbfb;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
/* 日期格的样式 TD */
.WdateDiv .Wday{
cursor:pointer;
}
/* 日期格的mouseover样式 TD */
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#74d2d9 ;
}
/* 周末日期格的样式 TD */
.WdateDiv .Wwday{
cursor:pointer;
color:#ab1e1e;
}
/* 周末日期格的mouseover样式 TD */
.WdateDiv .WwdayOn{
cursor:pointer;
background-color:#74d2d9;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A7E2E7;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
/* 其他月份的日期 */
.WdateDiv .WotherDay{
cursor:pointer;
color:#0099CC;
}
/* 其他月份的日期mouseover样式 */
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
/* 无效日期的样式,即在日期范围以外日期格的样式,不能选择的日期 */
.WdateDiv .WinvalidDay{
color:#aaa;
}
/****************************
*
***************************/
/* 时间栏 DIV */
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
/* 时间文字 SPAN */
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
color:#497F7F;
}
/* 时间输入框 INPUT */
.WdateDiv #dpTime input{
height:20px;
width:18px;
text-align:center;
color:#333;
border:#61CAD0 1px solid;
}
/* 时间 时 INPUT */
.WdateDiv #dpTime .tB{
border-right:0px;
}
/* 时间 分和间隔符 ':' INPUT */
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
/* 时间 秒 INPUT */
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
/* 时间右边的向上按钮 BUTTON */
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
/* 时间右边的向下按钮 BUTTON */
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
/****************************
*
***************************/
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
margin-top:3px;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
margin-top:2px;
border:#38B1B9 1px solid;
background-color:#CFEBEE;
color:#08575B;
}

@ -0,0 +1,174 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" metadata-complete="true" version="3.0">
<display-name>shetuansys</display-name>
<welcome-file-list>
<welcome-file>home/index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/500.jsp</location>
</error-page>
<servlet>
<description>验证码</description>
<servlet-name>CpachaServlet</servlet-name>
<servlet-class>com.xxx.servlet.CpachaServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CpachaServlet</servlet-name>
<url-pattern>/CpachaServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>登录验证</description>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>com.xxx.servlet.LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/LoginServlet</url-pattern>
</servlet-mapping>
<filter>
<description>登录状态过滤</description>
<filter-name>LoginFilter</filter-name>
<filter-class>com.xxx.filter.LoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/SystemServlet</url-pattern>
<url-pattern>/StudentServlet</url-pattern>
<url-pattern>/ClazzServlet</url-pattern>
</filter-mapping>
<servlet>
<description>登录后的主界面</description>
<servlet-name>SystemServlet</servlet-name>
<servlet-class>com.xxx.servlet.SystemServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SystemServlet</servlet-name>
<url-pattern>/SystemServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>新闻管理</description>
<servlet-name>XinWenServlet</servlet-name>
<servlet-class>com.xxx.servlet.XinWenServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>XinWenServlet</servlet-name>
<url-pattern>/XinWenServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>分类管理</description>
<servlet-name>FenLeiServlet</servlet-name>
<servlet-class>com.xxx.servlet.FenLeiServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FenLeiServlet</servlet-name>
<url-pattern>/FenLeiServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>社团分类管理</description>
<servlet-name>FenLeiServlet2</servlet-name>
<servlet-class>com.xxx.servlet.FenLeiServlet2</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>FenLeiServlet2</servlet-name>
<url-pattern>/FenLeiServlet2</url-pattern>
</servlet-mapping>
<servlet>
<description>上传图片</description>
<servlet-name>imgeupload</servlet-name>
<servlet-class>com.xxx.servlet.imgeupload</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>imgeupload</servlet-name>
<url-pattern>/imgeupload</url-pattern>
</servlet-mapping>
<servlet>
<description>角色管理</description>
<servlet-name>RoleServlet</servlet-name>
<servlet-class>com.xxx.servlet.RoleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RoleServlet</servlet-name>
<url-pattern>/RoleServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>菜单管理</description>
<servlet-name>MenuServlet</servlet-name>
<servlet-class>com.xxx.servlet.MenuServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MenuServlet</servlet-name>
<url-pattern>/MenuServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>角色权限管理</description>
<servlet-name>RoleMenuServlet</servlet-name>
<servlet-class>com.xxx.servlet.RoleMenuServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>RoleMenuServlet</servlet-name>
<url-pattern>/RoleMenuServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>用户管理</description>
<servlet-name>UsersServlet</servlet-name>
<servlet-class>com.xxx.servlet.UsersServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UsersServlet</servlet-name>
<url-pattern>/UsersServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>指导老师</description>
<servlet-name>TeacherServlet</servlet-name>
<servlet-class>com.xxx.servlet.TeacherServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TeacherServlet</servlet-name>
<url-pattern>/TeacherServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>前台接口</description>
<servlet-name>HomeServlet</servlet-name>
<servlet-class>com.xxx.servlet.HomeServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HomeServlet</servlet-name>
<url-pattern>/HomeServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>社团管理</description>
<servlet-name>shetuanServlet</servlet-name>
<servlet-class>com.xxx.servlet.shetuanServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>shetuanServlet</servlet-name>
<url-pattern>/shetuanServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>活动管理</description>
<servlet-name>huodongServlet</servlet-name>
<servlet-class>com.xxx.servlet.huodongServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>huodongServlet</servlet-name>
<url-pattern>/huodongServlet</url-pattern>
</servlet-mapping>
<servlet>
<description>社员管理</description>
<servlet-name>sheyuanServlet</servlet-name>
<servlet-class>com.xxx.servlet.sheyuanServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>sheyuanServlet</servlet-name>
<url-pattern>/sheyuanServlet</url-pattern>
</servlet-mapping>
</web-app>

@ -0,0 +1,234 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 页面meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>数据 - AdminLTE2定制版</title>
<meta name="description" content="AdminLTE2定制版">
<meta name="keywords" content="AdminLTE2定制版">
<!-- Tell the browser to be responsive to screen width -->
<meta
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/iCheck/square/blue.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/morris/morris.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datepicker/datepicker3.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.theme.default.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/select2/select2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/style.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.skinNice.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-slider/slider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css">
<script src="<%=basePath %>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
})
</script>
</head>
<body class="hold-transition skin-purple sidebar-mini">
<!-- 内容区域 -->
<div class="content-wrapper111">
<!-- 内容头部 -->
<section class="content-header">
<h1>
分类管理 <small>分类表单</small>
</h1>
<ol class="breadcrumb">
<li><a href="<%=basePath %>admin/index.jsp"><i
class="fa fa-dashboard"></i> 首页</a></li>
<li><a
href="<%=basePath%>admin/pages/user-list">分类管理</a></li>
<li class="active">分类表单</li>
</ol>
</section>
<!-- 内容头部 /-->
<form action="<%=basePath %>FenLeiServlet?method=AddFenLei" method="post">
<!-- 正文区域 -->
<section class="content"> <!--产品信息-->
<div class="panel panel-default">
<div class="panel-heading">分类信息</div>
<div class="row data-type">
<div class="col-md-2 title">分类名称</div>
<div class="col-md-4 data">
<input type="text" class="form-control" name="name" id="name"
placeholder="分类名称" value="">
</div>
</div>
</div>
<!--订单信息/--> <!--工具栏-->
<div class="box-tools text-center">
<input type="hidden" value="0" id="parentid" name="parentid">
<button type="submit" class="btn bg-maroon">保存</button>
<button type="button" class="btn bg-default"
onclick="history.back(-1);">返回</button>
</div>
<!--工具栏/--> </section>
<!-- 正文区域 /-->
</form>
</div>
<!-- 内容区域 /-->
<!-- 底部导航 -->
<!-- 底部导航 /-->
<script
src="<%=basePath %>admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<script
src="<%=basePath %>admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/raphael/raphael-min.js"></script>
<script
src="<%=basePath %>admin/plugins/morris/morris.min.js"></script>
<script
src="<%=basePath %>admin/plugins/sparkline/jquery.sparkline.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script
src="<%=basePath %>admin/plugins/knob/jquery.knob.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/moment.min.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/bootstrap-datepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script
src="<%=basePath %>admin/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script
src="<%=basePath %>admin/plugins/fastclick/fastclick.js"></script>
<script
src="<%=basePath %>admin/plugins/iCheck/icheck.min.js"></script>
<script
src="<%=basePath %>admin/plugins/adminLTE/js/app.min.js"></script>
<script
src="<%=basePath %>admin/plugins/treeTable/jquery.treetable.js"></script>
<script
src="<%=basePath %>admin/plugins/select2/select2.full.min.js"></script>
<script
src="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/ckeditor/ckeditor.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/chartjs/Chart.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.categories.min.js"></script>
<script
src="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
$(document).ready(function() {
// 选择框
$(".select2").select2();
// WYSIHTML5编辑器
$(".textarea").wysihtml5({
locale : 'zh-CN'
});
});
// 设置激活分类
function setSidebarActive(tagUri) {
var liObj = $("#" + tagUri);
if (liObj.length > 0) {
liObj.parent().parent().addClass("active");
liObj.addClass("active");
}
}
</script>
</body>
</html>

@ -0,0 +1,465 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>分类列表</title>
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionicons/css/ionicons.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/iCheck/square/blue.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/morris/morris.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datepicker/datepicker3.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.theme.default.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/select2/select2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/style.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.skinNice.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-slider/slider.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/button.css">
<script src="<%=basePath %>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
loadlist();
})
function shuanxin()
{
window.location.reload();
}
var page=1,rows=10;
function loadlist()
{
$.ajax({
url: "../../FenLeiServlet?method=getFenLeiList",
type: "POST",
async: false,
dataType:'json',
data:{
name:$('#name').val(),
page:page,
rows:rows
},
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
success: function (data) {
var totalhtml='';
$.each(data.rows, function (i, val) {
totalhtml+='<tr>'+
'<td class="text-center"><input name="ids" id="ids" value="'+data.rows[i]["id"]+'" type="checkbox"></td>'+
'<td class="text-center">'+data.rows[i]["id"]+'</td>'+
'<td class="text-center">'+data.rows[i]["name"]+'</td>'+
'<td class="text-center">'+
'<a href="FenLeiModify.jsp?id='+data.rows[i]["id"]+'" class="btn bg-olive btn-xs">修改</a>'+
'</td>'+
'</tr>';
})
$('#tbody').html(totalhtml);
}
});
}
function home()
{
page=1;
loadlist();
}
function pre()
{
page=parseInt(page)-parseInt(1);
loadlist();
}
function next()
{
page=parseInt(page)+parseInt(1);
loadlist();
}
//实现获取复选框ID实现删除功能
function deleteByIds() {
//获取复选对象
var ids = document.getElementsByName("ids");
var arr = new Array();
for (var i = 0; i < ids.length; i++) {
//判断出被选中的复选框
if (ids[i].checked) {//true
//alert(ids[i].value);
//arr[i]=ids[i].value;
arr.push(ids[i].value)
}
}
$.ajax({
url: "../../FenLeiServlet?method=DeleteFenLei",
type: "POST",
async: false,
dataType: 'json',
data: {
ids: arr.toString()
},
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
success: function (data) {
if(data.msg=='success')
{
window.location.reload();
}
}
});
//location.href="../user/deleteByIds?ids="+arr;
}
</script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- 内容区域 -->
<div class="content-wrapper111">
<!-- 内容头部 -->
<section class="content-header">
<h1>
分类管理 <small>全部分类</small>
</h1>
<ol class="breadcrumb">
<li><a href="../index.jsp"><i
class="fa fa-dashboard"></i> 首页</a></li>
<li><a
href="<%=basePath%>admin/users/user-list">分类管理</a></li>
<li class="active">全部分类</li>
</ol>
</section>
<!-- 内容头部 /-->
<!-- 正文区域 -->
<section class="content"> <!-- .box-body -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">列表</h3>
</div>
<div class="box-body">
<!-- 数据表格 -->
<div class="table-box">
<!--工具栏-->
<div class="pull-left">
<div class="form-group form-inline">
<div class="btn-group">
<button type="button" class="btn btn-default" title="添加" onclick="location.href='<%=basePath %>admin/FenLei/FenLeiAdd.jsp'">
<i class="fa fa-file-o"></i> 添加
</button>
<button type="button" class="btn btn-default" title="删除" onclick="deleteByIds();">
<i class="fa fa-trash"></i> 删除
</button>
<button type="button" class="btn btn-default" onclick="shuanxin()" title="刷新">
<i class="fa fa-refresh"></i> 刷新
</button>
</div>
</div>
</div>
<div class="box-tools pull-right">
<div class="has-feedback">
<table>
<tr>
<td>
<input type="text" class="form-control input-sm" name="name" id="name" style="" placeholder="搜索">
<td>
<td>
<input type="button" onclick="loadlist()" class="ant-btn-red" value="查询">
</td>
</tr>
</table>
<!-- <span onclick="loadlist()" class="glyphicon glyphicon-search form-control-feedback"></span> -->
</div>
</div>
<!--工具栏/-->
<!--数据列表-->
<table id="dataList"
class="table table-bordered table-striped table-hover dataTable">
<thead>
<tr>
<th class="text-center" style="padding-right: 0px"><input
id="selall" type="checkbox" class="icheckbox_square-blue">
</th>
<th class="text-center">ID</th>
<th class="text-center">分类名称</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody id="tbody">
<!-- <tr>
<td><input name="ids" id="ids" type="checkbox"></td>
<td>001</td>
<td>貂蝉</td>
<td>123@qq.com</td>
<td>12345678</td>
<td>开启</td>
<td class="text-center">
<a href="#" class="btn bg-olive btn-xs">详情</a>
<a href="${pageContext.request.contextPath}/pages/user-role-add.jsp" class="btn bg-olive btn-xs">更改角色</a>
</td>
</tr> -->
</tbody>
<!--
<tfoot>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th>Engine version</th>
<th>CSS grade</th>
</tr>
</tfoot>-->
</table>
<!--数据列表/-->
</div>
<!-- 数据表格 /-->
</div>
<!-- /.box-body -->
<!-- .box-footer-->
<div class="box-footer">
<!-- <div class="pull-left">
<div class="form-group form-inline">
总共2 页共14 条数据。 每页 <select class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select> 条
</div>
</div>
-->
<div class="box-tools pull-right">
<ul class="pagination">
<li><a href="javascript:void(0)" onclick="home()" aria-label="Previous">首页</a></li>
<li><a href="javascript:void(0)" onclick="pre()">上一页</a></li>
<!-- <li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li> -->
<li><a href="javascript:void(0)" onclick="next()">下一页</a></li>
<!-- <li><a href="#" aria-label="Next">尾页</a></li> -->
</ul>
</div>
</div>
<!-- /.box-footer-->
</div>
</section>
<!-- 正文区域 /-->
</div>
<!-- @@close -->
<!-- 内容区域 /-->
<!-- 底部导航 -->
<!-- 底部导航 /-->
<script src="<%=basePath %>admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="<%=basePath %>admin/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<script src="<%=basePath %>admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="<%=basePath %>admin/plugins/raphael/raphael-min.js"></script>
<script src="<%=basePath %>admin/plugins/morris/morris.min.js"></script>
<script src="<%=basePath %>admin/plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="<%=basePath %>admin/plugins/knob/jquery.knob.js"></script>
<script src="<%=basePath %>admin/plugins/daterangepicker/moment.min.js"></script>
<script src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.js"></script>
<script src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script src="<%=basePath %>admin/plugins/datepicker/bootstrap-datepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script src="<%=basePath %>admin/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="<%=basePath %>admin/plugins/fastclick/fastclick.js"></script>
<script src="<%=basePath %>admin/plugins/iCheck/icheck.min.js"></script>
<script src="<%=basePath %>admin/plugins/adminLTE/js/app.min.js"></script>
<script src="<%=basePath %>admin/plugins/treeTable/jquery.treetable.js"></script>
<script src="<%=basePath %>admin/plugins/select2/select2.full.min.js"></script>
<script src="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-markdown/js/markdown.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script src="<%=basePath %>admin/plugins/ckeditor/ckeditor.js"></script>
<script src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script src="<%=basePath %>admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="<%=basePath %>admin/plugins/chartjs/Chart.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.categories.min.js"></script>
<script src="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script>
$(document).ready(function() {
// 选择框
$(".select2").select2();
// WYSIHTML5编辑器
$(".textarea").wysihtml5({
locale : 'zh-CN'
});
});
// 设置激活分类
function setSidebarActive(tagUri) {
var liObj = $("#" + tagUri);
if (liObj.length > 0) {
liObj.parent().parent().addClass("active");
liObj.addClass("active");
}
}
$(document)
.ready(
function() {
// 激活导航位置
setSidebarActive("admin-datalist");
// 列表按钮
$("#dataList td input[type='checkbox']")
.iCheck(
{
checkboxClass : 'icheckbox_square-blue',
increaseArea : '20%'
});
// 全选操作
$("#selall")
.click(
function() {
var clicks = $(this).is(
':checked');
if (!clicks) {
$(
"#dataList td input[type='checkbox']")
.iCheck(
"uncheck");
} else {
$(
"#dataList td input[type='checkbox']")
.iCheck("check");
}
$(this).data("clicks",
!clicks);
});
});
</script>
</body>
</html>

@ -0,0 +1,289 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 页面meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>数据 - AdminLTE2定制版</title>
<meta name="description" content="AdminLTE2定制版">
<meta name="keywords" content="AdminLTE2定制版">
<!-- Tell the browser to be responsive to screen width -->
<meta
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/iCheck/square/blue.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/morris/morris.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datepicker/datepicker3.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.theme.default.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/select2/select2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/style.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.skinNice.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-slider/slider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css">
<script src="<%=basePath %>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
getdetails();
})
function getdetails()
{
var Request = GetRequest();
var idd = Request["id"];
var totalhtml='';
var html = "";
$.ajax({
url: "../../FenLeiServlet?method=getFenLeiList",
type: "POST",
async: false,
dataType:'json',
data:{
id:idd
},
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
success: function (data) {
$.each(data.rows, function (i, val) {
$('#name').val(data.rows[i]["name"]);
$('#hidid').val(data.rows[i]["id"])
})
}
});
}
function GetRequest() {
var url = location.search; //获取url中"?"符后的字串
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
</script>
</head>
<body class="hold-transition skin-purple sidebar-mini">
<!-- 内容区域 -->
<div class="content-wrapper111">
<!-- 内容头部 -->
<section class="content-header">
<h1>
分类管理 <small>分类表单</small>
</h1>
<ol class="breadcrumb">
<li><a href="<%=basePath %>admin/index.jsp"><i
class="fa fa-dashboard"></i> 首页</a></li>
<li><a
href="<%=basePath%>admin/pages/user-list">分类管理</a></li>
<li class="active">分类表单</li>
</ol>
</section>
<!-- 内容头部 /-->
<form action="<%=basePath %>FenLeiServlet?method=EditFenLei" method="post">
<!-- 正文区域 -->
<section class="content"> <!--产品信息-->
<div class="panel panel-default">
<div class="panel-heading">分类信息</div>
<div class="row data-type">
<div class="col-md-2 title">分类名称</div>
<div class="col-md-4 data">
<input type="text" class="form-control" name="name" id="name"
placeholder="分类名称" value="">
</div>
</div>
</div>
<!--订单信息/--> <!--工具栏-->
<div class="box-tools text-center">
<input type="hidden" value="" name="id" id="hidid">
<button type="submit" class="btn bg-maroon">保存</button>
<button type="button" class="btn bg-default"
onclick="history.back(-1);">返回</button>
</div>
<!--工具栏/--> </section>
<!-- 正文区域 /-->
</form>
</div>
<!-- 内容区域 /-->
<!-- 底部导航 -->
<!-- 底部导航 /-->
<script
src="<%=basePath %>admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<script
src="<%=basePath %>admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/raphael/raphael-min.js"></script>
<script
src="<%=basePath %>admin/plugins/morris/morris.min.js"></script>
<script
src="<%=basePath %>admin/plugins/sparkline/jquery.sparkline.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script
src="<%=basePath %>admin/plugins/knob/jquery.knob.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/moment.min.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/bootstrap-datepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script
src="<%=basePath %>admin/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script
src="<%=basePath %>admin/plugins/fastclick/fastclick.js"></script>
<script
src="<%=basePath %>admin/plugins/iCheck/icheck.min.js"></script>
<script
src="<%=basePath %>admin/plugins/adminLTE/js/app.min.js"></script>
<script
src="<%=basePath %>admin/plugins/treeTable/jquery.treetable.js"></script>
<script
src="<%=basePath %>admin/plugins/select2/select2.full.min.js"></script>
<script
src="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/ckeditor/ckeditor.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/chartjs/Chart.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.categories.min.js"></script>
<script
src="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
$(document).ready(function() {
// 选择框
$(".select2").select2();
// WYSIHTML5编辑器
$(".textarea").wysihtml5({
locale : 'zh-CN'
});
});
// 设置激活分类
function setSidebarActive(tagUri) {
var liObj = $("#" + tagUri);
if (liObj.length > 0) {
liObj.parent().parent().addClass("active");
liObj.addClass("active");
}
}
</script>
</body>
</html>

@ -0,0 +1,234 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 页面meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>数据 - AdminLTE2定制版</title>
<meta name="description" content="AdminLTE2定制版">
<meta name="keywords" content="AdminLTE2定制版">
<!-- Tell the browser to be responsive to screen width -->
<meta
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/iCheck/square/blue.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/morris/morris.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datepicker/datepicker3.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.theme.default.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/select2/select2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/style.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.skinNice.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-slider/slider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css">
<script src="<%=basePath %>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
})
</script>
</head>
<body class="hold-transition skin-purple sidebar-mini">
<!-- 内容区域 -->
<div class="content-wrapper111">
<!-- 内容头部 -->
<section class="content-header">
<h1>
分类管理 <small>分类表单</small>
</h1>
<ol class="breadcrumb">
<li><a href="<%=basePath %>admin/index.jsp"><i
class="fa fa-dashboard"></i> 首页</a></li>
<li><a
href="<%=basePath%>admin/pages/user-list">分类管理</a></li>
<li class="active">分类表单</li>
</ol>
</section>
<!-- 内容头部 /-->
<form action="<%=basePath %>FenLeiServlet2?method=AddFenLei" method="post">
<!-- 正文区域 -->
<section class="content"> <!--产品信息-->
<div class="panel panel-default">
<div class="panel-heading">分类信息</div>
<div class="row data-type">
<div class="col-md-2 title">分类名称</div>
<div class="col-md-4 data">
<input type="text" class="form-control" name="name" id="name"
placeholder="分类名称" value="">
</div>
</div>
</div>
<!--订单信息/--> <!--工具栏-->
<div class="box-tools text-center">
<input type="hidden" value="0" id="parentid" name="parentid">
<button type="submit" class="btn bg-maroon">保存</button>
<button type="button" class="btn bg-default"
onclick="history.back(-1);">返回</button>
</div>
<!--工具栏/--> </section>
<!-- 正文区域 /-->
</form>
</div>
<!-- 内容区域 /-->
<!-- 底部导航 -->
<!-- 底部导航 /-->
<script
src="<%=basePath %>admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<script
src="<%=basePath %>admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/raphael/raphael-min.js"></script>
<script
src="<%=basePath %>admin/plugins/morris/morris.min.js"></script>
<script
src="<%=basePath %>admin/plugins/sparkline/jquery.sparkline.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script
src="<%=basePath %>admin/plugins/knob/jquery.knob.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/moment.min.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/bootstrap-datepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script
src="<%=basePath %>admin/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script
src="<%=basePath %>admin/plugins/fastclick/fastclick.js"></script>
<script
src="<%=basePath %>admin/plugins/iCheck/icheck.min.js"></script>
<script
src="<%=basePath %>admin/plugins/adminLTE/js/app.min.js"></script>
<script
src="<%=basePath %>admin/plugins/treeTable/jquery.treetable.js"></script>
<script
src="<%=basePath %>admin/plugins/select2/select2.full.min.js"></script>
<script
src="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/ckeditor/ckeditor.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/chartjs/Chart.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.categories.min.js"></script>
<script
src="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
$(document).ready(function() {
// 选择框
$(".select2").select2();
// WYSIHTML5编辑器
$(".textarea").wysihtml5({
locale : 'zh-CN'
});
});
// 设置激活分类
function setSidebarActive(tagUri) {
var liObj = $("#" + tagUri);
if (liObj.length > 0) {
liObj.parent().parent().addClass("active");
liObj.addClass("active");
}
}
</script>
</body>
</html>

@ -0,0 +1,465 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>分类列表</title>
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionicons/css/ionicons.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/iCheck/square/blue.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/morris/morris.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datepicker/datepicker3.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.theme.default.css"/>
<link rel="stylesheet" href="<%=basePath %>admin/plugins/select2/select2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/style.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.skinNice.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-slider/slider.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/button.css">
<script src="<%=basePath %>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
loadlist();
})
function shuanxin()
{
window.location.reload();
}
var page=1,rows=10;
function loadlist()
{
$.ajax({
url: "../../FenLeiServlet2?method=getFenLeiList",
type: "POST",
async: false,
dataType:'json',
data:{
name:$('#name').val(),
page:page,
rows:rows
},
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
success: function (data) {
var totalhtml='';
$.each(data.rows, function (i, val) {
totalhtml+='<tr>'+
'<td class="text-center"><input name="ids" id="ids" value="'+data.rows[i]["id"]+'" type="checkbox"></td>'+
'<td class="text-center">'+data.rows[i]["id"]+'</td>'+
'<td class="text-center">'+data.rows[i]["name"]+'</td>'+
'<td class="text-center">'+
'<a href="FenLeiModify.jsp?id='+data.rows[i]["id"]+'" class="btn bg-olive btn-xs">修改</a>'+
'</td>'+
'</tr>';
})
$('#tbody').html(totalhtml);
}
});
}
function home()
{
page=1;
loadlist();
}
function pre()
{
page=parseInt(page)-parseInt(1);
loadlist();
}
function next()
{
page=parseInt(page)+parseInt(1);
loadlist();
}
//实现获取复选框ID实现删除功能
function deleteByIds() {
//获取复选对象
var ids = document.getElementsByName("ids");
var arr = new Array();
for (var i = 0; i < ids.length; i++) {
//判断出被选中的复选框
if (ids[i].checked) {//true
//alert(ids[i].value);
//arr[i]=ids[i].value;
arr.push(ids[i].value)
}
}
$.ajax({
url: "../../FenLeiServlet2?method=DeleteFenLei",
type: "POST",
async: false,
dataType: 'json',
data: {
ids: arr.toString()
},
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
success: function (data) {
if(data.msg=='success')
{
window.location.reload();
}
}
});
//location.href="../user/deleteByIds?ids="+arr;
}
</script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- 内容区域 -->
<div class="content-wrapper111">
<!-- 内容头部 -->
<section class="content-header">
<h1>
分类管理 <small>全部分类</small>
</h1>
<ol class="breadcrumb">
<li><a href="../index.jsp"><i
class="fa fa-dashboard"></i> 首页</a></li>
<li><a
href="<%=basePath%>admin/users/user-list">分类管理</a></li>
<li class="active">全部分类</li>
</ol>
</section>
<!-- 内容头部 /-->
<!-- 正文区域 -->
<section class="content"> <!-- .box-body -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">列表</h3>
</div>
<div class="box-body">
<!-- 数据表格 -->
<div class="table-box">
<!--工具栏-->
<div class="pull-left">
<div class="form-group form-inline">
<div class="btn-group">
<button type="button" class="btn btn-default" title="添加" onclick="location.href='<%=basePath %>admin/FenLei2/FenLeiAdd.jsp'">
<i class="fa fa-file-o"></i> 添加
</button>
<button type="button" class="btn btn-default" title="删除" onclick="deleteByIds();">
<i class="fa fa-trash"></i> 删除
</button>
<button type="button" class="btn btn-default" onclick="shuanxin()" title="刷新">
<i class="fa fa-refresh"></i> 刷新
</button>
</div>
</div>
</div>
<div class="box-tools pull-right">
<div class="has-feedback">
<table>
<tr>
<td>
<input type="text" class="form-control input-sm" name="name" id="name" style="" placeholder="搜索">
<td>
<td>
<input type="button" onclick="loadlist()" class="ant-btn-red" value="查询">
</td>
</tr>
</table>
<!-- <span onclick="loadlist()" class="glyphicon glyphicon-search form-control-feedback"></span> -->
</div>
</div>
<!--工具栏/-->
<!--数据列表-->
<table id="dataList"
class="table table-bordered table-striped table-hover dataTable">
<thead>
<tr>
<th class="text-center" style="padding-right: 0px"><input
id="selall" type="checkbox" class="icheckbox_square-blue">
</th>
<th class="text-center">ID</th>
<th class="text-center">分类名称</th>
<th class="text-center">操作</th>
</tr>
</thead>
<tbody id="tbody">
<!-- <tr>
<td><input name="ids" id="ids" type="checkbox"></td>
<td>001</td>
<td>貂蝉</td>
<td>123@qq.com</td>
<td>12345678</td>
<td>开启</td>
<td class="text-center">
<a href="#" class="btn bg-olive btn-xs">详情</a>
<a href="${pageContext.request.contextPath}/pages/user-role-add.jsp" class="btn bg-olive btn-xs">更改角色</a>
</td>
</tr> -->
</tbody>
<!--
<tfoot>
<tr>
<th>Rendering engine</th>
<th>Browser</th>
<th>Platform(s)</th>
<th>Engine version</th>
<th>CSS grade</th>
</tr>
</tfoot>-->
</table>
<!--数据列表/-->
</div>
<!-- 数据表格 /-->
</div>
<!-- /.box-body -->
<!-- .box-footer-->
<div class="box-footer">
<!-- <div class="pull-left">
<div class="form-group form-inline">
总共2 页共14 条数据。 每页 <select class="form-control">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select> 条
</div>
</div>
-->
<div class="box-tools pull-right">
<ul class="pagination">
<li><a href="javascript:void(0)" onclick="home()" aria-label="Previous">首页</a></li>
<li><a href="javascript:void(0)" onclick="pre()">上一页</a></li>
<!-- <li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li> -->
<li><a href="javascript:void(0)" onclick="next()">下一页</a></li>
<!-- <li><a href="#" aria-label="Next">尾页</a></li> -->
</ul>
</div>
</div>
<!-- /.box-footer-->
</div>
</section>
<!-- 正文区域 /-->
</div>
<!-- @@close -->
<!-- 内容区域 /-->
<!-- 底部导航 -->
<!-- 底部导航 /-->
<script src="<%=basePath %>admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="<%=basePath %>admin/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<script src="<%=basePath %>admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="<%=basePath %>admin/plugins/raphael/raphael-min.js"></script>
<script src="<%=basePath %>admin/plugins/morris/morris.min.js"></script>
<script src="<%=basePath %>admin/plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="<%=basePath %>admin/plugins/knob/jquery.knob.js"></script>
<script src="<%=basePath %>admin/plugins/daterangepicker/moment.min.js"></script>
<script src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.js"></script>
<script src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script src="<%=basePath %>admin/plugins/datepicker/bootstrap-datepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script src="<%=basePath %>admin/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="<%=basePath %>admin/plugins/fastclick/fastclick.js"></script>
<script src="<%=basePath %>admin/plugins/iCheck/icheck.min.js"></script>
<script src="<%=basePath %>admin/plugins/adminLTE/js/app.min.js"></script>
<script src="<%=basePath %>admin/plugins/treeTable/jquery.treetable.js"></script>
<script src="<%=basePath %>admin/plugins/select2/select2.full.min.js"></script>
<script src="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-markdown/js/markdown.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script src="<%=basePath %>admin/plugins/ckeditor/ckeditor.js"></script>
<script src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script src="<%=basePath %>admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="<%=basePath %>admin/plugins/chartjs/Chart.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script src="<%=basePath %>admin/plugins/flot/jquery.flot.categories.min.js"></script>
<script src="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script src="<%=basePath %>admin/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script>
$(document).ready(function() {
// 选择框
$(".select2").select2();
// WYSIHTML5编辑器
$(".textarea").wysihtml5({
locale : 'zh-CN'
});
});
// 设置激活分类
function setSidebarActive(tagUri) {
var liObj = $("#" + tagUri);
if (liObj.length > 0) {
liObj.parent().parent().addClass("active");
liObj.addClass("active");
}
}
$(document)
.ready(
function() {
// 激活导航位置
setSidebarActive("admin-datalist");
// 列表按钮
$("#dataList td input[type='checkbox']")
.iCheck(
{
checkboxClass : 'icheckbox_square-blue',
increaseArea : '20%'
});
// 全选操作
$("#selall")
.click(
function() {
var clicks = $(this).is(
':checked');
if (!clicks) {
$(
"#dataList td input[type='checkbox']")
.iCheck(
"uncheck");
} else {
$(
"#dataList td input[type='checkbox']")
.iCheck("check");
}
$(this).data("clicks",
!clicks);
});
});
</script>
</body>
</html>

@ -0,0 +1,289 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isELIgnored="false" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- 页面meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>数据 - AdminLTE2定制版</title>
<meta name="description" content="AdminLTE2定制版">
<meta name="keywords" content="AdminLTE2定制版">
<!-- Tell the browser to be responsive to screen width -->
<meta
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"
name="viewport">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionicons/css/ionicons.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/iCheck/square/blue.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/morris/morris.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datepicker/datepicker3.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/treeTable/jquery.treetable.theme.default.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/select2/select2.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/AdminLTE.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/adminLTE/css/skins/_all-skins.min.css">
<link rel="stylesheet" href="<%=basePath %>admin/css/style.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.skinNice.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-slider/slider.css">
<link rel="stylesheet" href="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.css">
<script src="<%=basePath %>admin/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
getdetails();
})
function getdetails()
{
var Request = GetRequest();
var idd = Request["id"];
var totalhtml='';
var html = "";
$.ajax({
url: "../../FenLeiServlet2?method=getFenLeiList",
type: "POST",
async: false,
dataType:'json',
data:{
id:idd
},
contentType: "application/x-www-form-urlencoded;charset=UTF-8",
success: function (data) {
$.each(data.rows, function (i, val) {
$('#name').val(data.rows[i]["name"]);
$('#hidid').val(data.rows[i]["id"])
})
}
});
}
function GetRequest() {
var url = location.search; //获取url中"?"符后的字串
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
}
</script>
</head>
<body class="hold-transition skin-purple sidebar-mini">
<!-- 内容区域 -->
<div class="content-wrapper111">
<!-- 内容头部 -->
<section class="content-header">
<h1>
分类管理 <small>分类表单</small>
</h1>
<ol class="breadcrumb">
<li><a href="<%=basePath %>admin/index.jsp"><i
class="fa fa-dashboard"></i> 首页</a></li>
<li><a
href="<%=basePath%>admin/pages/user-list">分类管理</a></li>
<li class="active">分类表单</li>
</ol>
</section>
<!-- 内容头部 /-->
<form action="<%=basePath %>FenLeiServlet2?method=EditFenLei" method="post">
<!-- 正文区域 -->
<section class="content"> <!--产品信息-->
<div class="panel panel-default">
<div class="panel-heading">分类信息</div>
<div class="row data-type">
<div class="col-md-2 title">分类名称</div>
<div class="col-md-4 data">
<input type="text" class="form-control" name="name" id="name"
placeholder="分类名称" value="">
</div>
</div>
</div>
<!--订单信息/--> <!--工具栏-->
<div class="box-tools text-center">
<input type="hidden" value="" name="id" id="hidid">
<button type="submit" class="btn bg-maroon">保存</button>
<button type="button" class="btn bg-default"
onclick="history.back(-1);">返回</button>
</div>
<!--工具栏/--> </section>
<!-- 正文区域 /-->
</form>
</div>
<!-- 内容区域 /-->
<!-- 底部导航 -->
<!-- 底部导航 /-->
<script
src="<%=basePath %>admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<script
src="<%=basePath %>admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/raphael/raphael-min.js"></script>
<script
src="<%=basePath %>admin/plugins/morris/morris.min.js"></script>
<script
src="<%=basePath %>admin/plugins/sparkline/jquery.sparkline.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script
src="<%=basePath %>admin/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script
src="<%=basePath %>admin/plugins/knob/jquery.knob.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/moment.min.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/bootstrap-datepicker.js"></script>
<script
src="<%=basePath %>admin/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script
src="<%=basePath %>admin/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script
src="<%=basePath %>admin/plugins/fastclick/fastclick.js"></script>
<script
src="<%=basePath %>admin/plugins/iCheck/icheck.min.js"></script>
<script
src="<%=basePath %>admin/plugins/adminLTE/js/app.min.js"></script>
<script
src="<%=basePath %>admin/plugins/treeTable/jquery.treetable.js"></script>
<script
src="<%=basePath %>admin/plugins/select2/select2.full.min.js"></script>
<script
src="<%=basePath %>admin/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script
src="<%=basePath %>admin/plugins/ckeditor/ckeditor.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script
src="<%=basePath %>admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script
src="<%=basePath %>admin/plugins/chartjs/Chart.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.resize.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.pie.min.js"></script>
<script
src="<%=basePath %>admin/plugins/flot/jquery.flot.categories.min.js"></script>
<script
src="<%=basePath %>admin/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script
src="<%=basePath %>admin/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script>
$(document).ready(function() {
// 选择框
$(".select2").select2();
// WYSIHTML5编辑器
$(".textarea").wysihtml5({
locale : 'zh-CN'
});
});
// 设置激活分类
function setSidebarActive(tagUri) {
var liObj = $("#" + tagUri);
if (liObj.length > 0) {
liObj.parent().parent().addClass("active");
liObj.addClass("active");
}
}
</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save