├── README.md
└── mydisks
├── .classpath
├── .mymetadata
├── .project
├── .settings
├── .jsdtscope
├── org.eclipse.jdt.core.prefs
├── org.eclipse.wst.common.component
├── org.eclipse.wst.common.project.facet.core.xml
├── org.eclipse.wst.jsdt.ui.superType.container
└── org.eclipse.wst.jsdt.ui.superType.name
├── WebRoot
├── META-INF
│ └── MANIFEST.MF
├── WEB-INF
│ ├── lib
│ │ ├── activation.jar
│ │ ├── c3p0-0.9.2-pre1.jar
│ │ ├── c3p0-oracle-thin-extras-0.9.2-pre1.jar
│ │ ├── commons-beanutils-1.8.3.jar
│ │ ├── commons-collections-3.2.1.jar
│ │ ├── commons-dbutils-1.4.jar
│ │ ├── commons-fileupload-1.3.1.jar
│ │ ├── commons-io-2.4.jar
│ │ ├── commons-lang-2.5.jar
│ │ ├── commons-logging-1.2.jar
│ │ ├── ezmorph-1.0.6.jar
│ │ ├── itcast-tools-1.4.2.jar
│ │ ├── json-lib-2.4-jdk15.jar
│ │ ├── mchange-commons-0.2.jar
│ │ └── mysql-connector-java-5.1.13-bin.jar
│ └── web.xml
├── css
│ ├── bootstrap.css
│ ├── remodal-default-theme.css
│ ├── remodal.css
│ └── reset.css
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── home.jsp
├── images
│ ├── 01.png
│ ├── 02.png
│ ├── 03.png
│ ├── 04.png
│ ├── 1024.png
│ ├── apk.jpg
│ ├── back1.jpg
│ ├── banner1.jpg
│ ├── banner2.jpg
│ ├── check.png
│ ├── down.png
│ ├── exe.jpg
│ ├── falut.png
│ ├── folder.png
│ ├── jepg.jpg
│ ├── logo1.png
│ ├── logo_small.png
│ ├── more.png
│ ├── music.jpg
│ ├── navback.jpg
│ ├── notfound.png
│ ├── others.jpg
│ ├── reback1.jpg
│ ├── save.png
│ ├── sign-check-icon.png
│ ├── sign.jpg
│ ├── spare.png
│ ├── user.jpg
│ ├── video.jpg
│ ├── welcome.jpg
│ ├── yz.jpg
│ └── zip.jpg
├── index.jsp
└── js
│ ├── bootstrap.js
│ ├── jquery.min.js
│ └── login.js
└── src
├── c3p0-config.xml
└── lz
└── xawl
├── Catalog
├── dao
│ └── CatalogDao.java
├── domain
│ └── Catalog.java
├── service
│ └── CatalogService.java
└── servlet
│ └── CatalogServlet.java
├── File
├── dao
│ └── FileDao.java
├── domain
│ └── File.java
├── service
│ └── FileService.java
└── servlet
│ ├── DownLoadServlet.java
│ ├── FileServlet.java
│ ├── ProgressServlet.java
│ ├── UploadServlet.java
│ ├── fileUploadStatus.java
│ └── myProgressListener.java
└── Util
└── Tool.java
/README.md:
--------------------------------------------------------------------------------
1 | # disk
2 | 网盘系统
3 |
4 |
5 |
6 | 使用java做的一个网盘系统,实现上传,下载,删除,分享等功能。
7 | 数据库:
8 | /*
9 | SQLyog Professional v12.09 (64 bit)
10 | MySQL - 5.6.21 : Database - drive
11 | *********************************************************************
12 | */
13 |
14 |
15 | /*!40101 SET NAMES utf8 */;
16 |
17 | /*!40101 SET SQL_MODE=''*/;
18 |
19 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
20 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
21 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
22 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
23 | CREATE DATABASE /*!32312 IF NOT EXISTS*/`drive` /*!40100 DEFAULT CHARACTER SET utf8 */;
24 |
25 | USE `drive`;
26 |
27 | /*Table structure for table `catalog` */
28 |
29 | DROP TABLE IF EXISTS `catalog`;
30 |
31 | CREATE TABLE `catalog` (
32 | `cId` varchar(50) NOT NULL,
33 | `pId` varchar(50) DEFAULT NULL,
34 | `cName` varchar(50) DEFAULT NULL,
35 | `cDate` varchar(50) DEFAULT NULL,
36 | `cF` varchar(50) DEFAULT NULL,
37 | `isShare` varchar(2) DEFAULT NULL,
38 | PRIMARY KEY (`cId`)
39 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
40 |
41 | /*Table structure for table `catalog_file` */
42 |
43 | DROP TABLE IF EXISTS `catalog_file`;
44 |
45 | CREATE TABLE `catalog_file` (
46 | `cf` varchar(50) NOT NULL,
47 | `fid` varchar(50) DEFAULT NULL,
48 | KEY `cf` (`cf`)
49 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
50 |
51 | /*Table structure for table `file` */
52 |
53 | DROP TABLE IF EXISTS `file`;
54 |
55 | CREATE TABLE `file` (
56 | `fId` varchar(50) NOT NULL,
57 | `fPath` text,
58 | `fSize` int(50) DEFAULT NULL,
59 | `fType` varchar(50) DEFAULT NULL,
60 | `fName` varchar(50) DEFAULT NULL,
61 | `fHash` varchar(50) DEFAULT NULL,
62 | `fDowncount` int(11) DEFAULT NULL,
63 | `fDesc` varchar(50) DEFAULT NULL,
64 | `fUploadtime` date DEFAULT NULL,
65 | `isShare` bigint(2) DEFAULT NULL,
66 | `cId` varchar(50) DEFAULT NULL,
67 | `fDiskName` varchar(50) DEFAULT NULL,
68 | PRIMARY KEY (`fId`)
69 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
70 |
71 | /*Table structure for table `info` */
72 |
73 | DROP TABLE IF EXISTS `info`;
74 |
75 | CREATE TABLE `info` (
76 | `iId` varchar(50) NOT NULL,
77 | `iTitle` varchar(100) DEFAULT NULL,
78 | `iContent` text,
79 | `iTime` varchar(50) DEFAULT NULL,
80 | `iImage` varchar(500) DEFAULT NULL,
81 | `isImage` int(11) DEFAULT NULL,
82 | `iLocation` int(11) DEFAULT NULL,
83 | `iStart` int(11) DEFAULT NULL,
84 | PRIMARY KEY (`iId`)
85 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
86 |
87 | /*Table structure for table `role` */
88 |
89 | DROP TABLE IF EXISTS `role`;
90 |
91 | CREATE TABLE `role` (
92 | `role` varchar(20) DEFAULT NULL
93 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
94 |
95 | /*Table structure for table `user` */
96 |
97 | DROP TABLE IF EXISTS `user`;
98 |
99 | CREATE TABLE `user` (
100 | `uId` varchar(55) NOT NULL,
101 | `userName` varchar(50) DEFAULT NULL,
102 | `uPassword` varchar(50) DEFAULT NULL,
103 | `cId` varchar(50) DEFAULT NULL,
104 | `uTime` varchar(50) DEFAULT NULL,
105 | `role` varchar(50) DEFAULT NULL,
106 | `fileSize` varchar(100) DEFAULT NULL,
107 | PRIMARY KEY (`uId`)
108 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
109 |
110 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
111 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
112 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
113 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
114 |
--------------------------------------------------------------------------------
/mydisks/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/mydisks/.mymetadata:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/mydisks/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | mydisks
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.wst.common.project.facet.core.builder
10 |
11 |
12 |
13 |
14 | org.eclipse.wst.jsdt.core.javascriptValidator
15 |
16 |
17 |
18 |
19 | com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder
20 |
21 |
22 |
23 |
24 | org.eclipse.jdt.core.javabuilder
25 |
26 |
27 |
28 |
29 | com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator
30 |
31 |
32 |
33 |
34 | com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator
35 |
36 |
37 |
38 |
39 | org.eclipse.wst.validation.validationbuilder
40 |
41 |
42 |
43 |
44 | com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder
45 |
46 |
47 |
48 |
49 |
50 | com.genuitec.eclipse.ast.deploy.core.deploymentnature
51 | org.eclipse.jem.workbench.JavaEMFNature
52 | com.genuitec.eclipse.j2eedt.core.webnature
53 | org.eclipse.jdt.core.javanature
54 | org.eclipse.wst.jsdt.core.jsNature
55 | org.eclipse.wst.common.project.facet.core.nature
56 | org.eclipse.wst.common.modulecore.ModuleCoreNature
57 |
58 |
59 |
--------------------------------------------------------------------------------
/mydisks/.settings/.jsdtscope:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/mydisks/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
4 | org.eclipse.jdt.core.compiler.compliance=1.5
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7 | org.eclipse.jdt.core.compiler.source=1.5
8 |
--------------------------------------------------------------------------------
/mydisks/.settings/org.eclipse.wst.common.component:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/mydisks/.settings/org.eclipse.wst.common.project.facet.core.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/mydisks/.settings/org.eclipse.wst.jsdt.ui.superType.container:
--------------------------------------------------------------------------------
1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary
--------------------------------------------------------------------------------
/mydisks/.settings/org.eclipse.wst.jsdt.ui.superType.name:
--------------------------------------------------------------------------------
1 | Window
--------------------------------------------------------------------------------
/mydisks/WebRoot/META-INF/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 | Class-Path:
3 |
4 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/activation.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/activation.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/c3p0-0.9.2-pre1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/c3p0-0.9.2-pre1.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/c3p0-oracle-thin-extras-0.9.2-pre1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/c3p0-oracle-thin-extras-0.9.2-pre1.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-beanutils-1.8.3.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-beanutils-1.8.3.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-collections-3.2.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-collections-3.2.1.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-dbutils-1.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-dbutils-1.4.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-fileupload-1.3.1.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-fileupload-1.3.1.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-io-2.4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-io-2.4.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-lang-2.5.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-lang-2.5.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/commons-logging-1.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/commons-logging-1.2.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/ezmorph-1.0.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/ezmorph-1.0.6.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/itcast-tools-1.4.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/itcast-tools-1.4.2.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/json-lib-2.4-jdk15.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/json-lib-2.4-jdk15.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/mchange-commons-0.2.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/mchange-commons-0.2.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar
--------------------------------------------------------------------------------
/mydisks/WebRoot/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | This is the description of my J2EE component
5 | This is the display name of my J2EE component
6 | CatalogServlet
7 | lz.xawl.Catalog.servlet.CatalogServlet
8 |
9 |
10 | This is the description of my J2EE component
11 | This is the display name of my J2EE component
12 | DownLoadServlet
13 | lz.xawl.File.servlet.DownLoadServlet
14 |
15 |
16 | This is the description of my J2EE component
17 | This is the display name of my J2EE component
18 | FileServlet
19 | lz.xawl.File.servlet.FileServlet
20 |
21 |
22 | This is the description of my J2EE component
23 | This is the display name of my J2EE component
24 | ProgressServlet
25 | lz.xawl.File.servlet.ProgressServlet
26 |
27 |
28 | This is the description of my J2EE component
29 | This is the display name of my J2EE component
30 | UploadServlet
31 | lz.xawl.File.servlet.UploadServlet
32 |
33 |
34 | CatalogServlet
35 | /CatalogServlet
36 |
37 |
38 | DownLoadServlet
39 | /DownLoadServlet
40 |
41 |
42 | FileServlet
43 | /FileServlet
44 |
45 |
46 | ProgressServlet
47 | /ProgressServlet
48 |
49 |
50 | UploadServlet
51 | /UploadServlet
52 |
53 |
54 | index.jsp
55 |
56 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/css/remodal-default-theme.css:
--------------------------------------------------------------------------------
1 | /* ==========================================================================
2 | Remodal's default mobile first theme
3 | ========================================================================== */
4 |
5 | /* Default theme styles for the background */
6 |
7 | .remodal-bg.remodal-is-opening,
8 | .remodal-bg.remodal-is-opened {
9 | filter: blur(3px);
10 | }
11 |
12 |
13 | /* Default theme styles of the overlay */
14 |
15 | .remodal-overlay {
16 | background: rgba(43, 46, 56, 0.9);
17 | }
18 |
19 | .remodal-overlay.remodal-is-opening,
20 | .remodal-overlay.remodal-is-closing {
21 | animation-fill-mode: forwards;
22 | }
23 |
24 | .remodal-overlay.remodal-is-opening {
25 | animation: remodal-overlay-opening-keyframes 0.3s;
26 | }
27 |
28 | .remodal-overlay.remodal-is-closing {
29 | animation: remodal-overlay-closing-keyframes 0.3s;
30 | }
31 |
32 | /* Default theme styles of the wrapper */
33 |
34 | .remodal-wrapper {
35 | padding: 10px 10px 0;
36 | }
37 |
38 | /* Default theme styles of the modal dialog */
39 |
40 | .remodal {
41 | box-sizing: border-box;
42 | width: 100%;
43 | margin-bottom: 10px;
44 | padding: 35px;
45 |
46 | transform: translate3d(0, 0, 0);
47 |
48 | color: #2b2e38;
49 | background: #fff;
50 | }
51 |
52 | .remodal.remodal-is-opening,
53 | .remodal.remodal-is-closing {
54 | animation-fill-mode: forwards;
55 | }
56 |
57 | .remodal.remodal-is-opening {
58 | animation: remodal-opening-keyframes 0.3s;
59 | }
60 |
61 | .remodal.remodal-is-closing {
62 | animation: remodal-closing-keyframes 0.3s;
63 | }
64 |
65 | /* Vertical align of the modal dialog */
66 |
67 | .remodal,
68 | .remodal-wrapper:after {
69 | vertical-align: middle;
70 | }
71 |
72 | /* Close button */
73 |
74 | .remodal-close {
75 | position: absolute;
76 | top: 0;
77 | right: 0;
78 |
79 | display: block;
80 | overflow: visible;
81 |
82 | width: 35px;
83 | height: 35px;
84 | margin: 0;
85 | padding: 0;
86 |
87 | cursor: pointer;
88 | transition: color 0.2s;
89 | text-decoration: none;
90 |
91 | color: #95979c;
92 | border: 0;
93 | outline: 0;
94 | background: transparent;
95 | }
96 |
97 | .remodal-close:hover,
98 | .remodal-close:focus {
99 | color: #2b2e38;
100 | }
101 |
102 | .remodal-close:before {
103 | font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
104 | font-size: 25px;
105 | line-height: 35px;
106 |
107 | position: absolute;
108 | top: 0;
109 | left: 0;
110 |
111 | display: block;
112 |
113 | width: 35px;
114 |
115 | content: "\00d7";
116 | text-align: center;
117 | }
118 |
119 | /* Dialog buttons */
120 |
121 | .remodal-confirm,
122 | .remodal-cancel {
123 | font: inherit;
124 |
125 | display: inline-block;
126 | overflow: visible;
127 |
128 | min-width: 110px;
129 | margin: 0;
130 | padding: 12px 0;
131 |
132 | cursor: pointer;
133 | transition: background 0.2s;
134 | text-align: center;
135 | vertical-align: middle;
136 | text-decoration: none;
137 |
138 | border: 0;
139 | outline: 0;
140 | }
141 |
142 | .remodal-confirm {
143 | color: #fff;
144 | background: #0275D8;
145 | }
146 |
147 | .remodal-confirm:hover,
148 | .remodal-confirm:focus {
149 | background:#51A8FF;
150 | }
151 |
152 | .remodal-cancel {
153 | color: #fff;
154 | background: #e57373;
155 | }
156 |
157 | .remodal-cancel:hover,
158 | .remodal-cancel:focus {
159 | background: #ef5350;
160 | }
161 |
162 | /* Remove inner padding and border in Firefox 4+ for the button tag. */
163 |
164 | .remodal-confirm::-moz-focus-inner,
165 | .remodal-cancel::-moz-focus-inner,
166 | .remodal-close::-moz-focus-inner {
167 | padding: 0;
168 |
169 | border: 0;
170 | }
171 |
172 | /* Keyframes
173 | ========================================================================== */
174 |
175 | @keyframes remodal-opening-keyframes {
176 | from {
177 | transform: scale(1.05);
178 |
179 | opacity: 0;
180 | }
181 | to {
182 | transform: none;
183 |
184 | opacity: 1;
185 | }
186 | }
187 |
188 | @keyframes remodal-closing-keyframes {
189 | from {
190 | transform: scale(1);
191 |
192 | opacity: 1;
193 | }
194 | to {
195 | transform: scale(0.95);
196 |
197 | opacity: 0;
198 | }
199 | }
200 |
201 | @keyframes remodal-overlay-opening-keyframes {
202 | from {
203 | opacity: 0;
204 | }
205 | to {
206 | opacity: 1;
207 | }
208 | }
209 |
210 | @keyframes remodal-overlay-closing-keyframes {
211 | from {
212 | opacity: 1;
213 | }
214 | to {
215 | opacity: 0;
216 | }
217 | }
218 |
219 | /* Media queries
220 | ========================================================================== */
221 |
222 | @media only screen and (min-width: 641px) {
223 | .remodal {
224 | max-width: 700px;
225 | }
226 | }
227 |
228 | /* IE8
229 | ========================================================================== */
230 |
231 | .lt-ie9 .remodal-overlay {
232 | background: #2b2e38;
233 | }
234 |
235 | .lt-ie9 .remodal {
236 | width: 700px;
237 | }
238 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/css/remodal.css:
--------------------------------------------------------------------------------
1 | /* ==========================================================================
2 | Remodal's necessary styles
3 | ========================================================================== */
4 |
5 | /* Hide scroll bar */
6 |
7 | html.remodal-is-locked {
8 | overflow: hidden;
9 | }
10 |
11 | /* Anti FOUC */
12 |
13 | .remodal,
14 | [data-remodal-id] {
15 | display: none;
16 | }
17 |
18 | /* Necessary styles of the overlay */
19 |
20 | .remodal-overlay {
21 | position: fixed;
22 | z-index: 9999;
23 | top: -5000px;
24 | right: -5000px;
25 | bottom: -5000px;
26 | left: -5000px;
27 |
28 | display: none;
29 | }
30 |
31 | /* Necessary styles of the wrapper */
32 |
33 | .remodal-wrapper {
34 | position: fixed;
35 | z-index: 10000;
36 | top: 0;
37 | right: 0;
38 | bottom: 0;
39 | left: 0;
40 |
41 | display: none;
42 | overflow: auto;
43 |
44 | text-align: center;
45 |
46 | -webkit-overflow-scrolling: touch;
47 | }
48 |
49 | .remodal-wrapper:after {
50 | display: inline-block;
51 |
52 | height: 100%;
53 | margin-left: -0.05em;
54 |
55 | content: "";
56 | }
57 |
58 | /* Fix iPad, iPhone glitches */
59 |
60 | .remodal-overlay,
61 | .remodal-wrapper {
62 | backface-visibility: hidden;
63 | }
64 |
65 | /* Necessary styles of the modal dialog */
66 |
67 | .remodal {
68 | position: relative;
69 |
70 | outline: none;
71 |
72 | text-size-adjust: 100%;
73 | }
74 |
75 | .remodal-is-initialized {
76 | /* Disable Anti-FOUC */
77 | display: inline-block;
78 | }
79 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/css/reset.css:
--------------------------------------------------------------------------------
1 | body{
2 | margin:0 auto;
3 | padding:0;
4 | min-width:1024px;
5 | }
6 | #all a{
7 | text-decoration:none;
8 | outline: none;
9 | hide-focus: expression(this.hideFocus=true);
10 | }
11 | #all a:hover{
12 | color:#0060BF;
13 | }
14 | .top{
15 | position:relative;
16 | }
17 | .navbar-brand img{
18 | height:30px;
19 | float:left;
20 | }
21 | .navbar-brand p{
22 | float:right;
23 | margin-bottom: 0rem;
24 | margin-left:10px;
25 | }
26 | .nav li{
27 | padding-right:30px;
28 | }
29 | .top .navbar {
30 | border-radius: 0rem;
31 | }
32 | .nav_width{
33 | margin:0 auto;
34 | }
35 | .nav_width p{
36 | font-famliy:"微软雅黑";
37 | font-size:20px;
38 | font-weight:600;
39 | }
40 | .login label{
41 | display:block;
42 | }
43 | .login{
44 | position: absolute;
45 | z-index: 1000;
46 | width:300px;
47 | top:20%;
48 | right:15%;
49 | background-color:#fff;
50 | padding:30px;
51 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.13), 0px 1px 5px rgba(0, 0, 0, 0.36), 0px 0px 0px 1px rgba(255, 255, 255, 0.69) inset;
52 | }
53 | .login_in{
54 | margin:0 auto;
55 | text-align:left;
56 | }
57 | .login_in p{
58 | color:#0275D8;
59 | }
60 | #fault{
61 | width:200px;
62 | height:16px;
63 | background-image:url(../images/falut.png);
64 | background-repeat:no-repeat;
65 | display:none;
66 | }
67 | .alerterro {
68 | height:16px;
69 | margin:6px 0;
70 | }
71 |
72 | .alerterro span{
73 | padding-left:25px;
74 | font-size:14px;
75 | color:#666;
76 | font-style:normal;
77 | }
78 | .btn{
79 | width:220px;
80 | }
81 | .verification input{
82 | width:125px;
83 | margin-right:15px;
84 | float:left;
85 | }
86 | .verification img{
87 | width:90px;
88 | height:35px;
89 | float:right;
90 | }
91 | .middle{
92 | max-width:1100px;
93 | margin:0 auto;
94 | margin-bottom:40px;
95 | }
96 | .middle_nav{
97 | width:200px;
98 | height:35px;
99 | margin:30px 0 30px 0;
100 | font-size:20px;
101 | font-family:"微软雅黑";
102 | background-image:url(../images/navback.jpg);
103 | background-repeat:no-repeat;
104 | }
105 | .mid_title {
106 | text-align:center;
107 | margin:0 auto;
108 |
109 | }
110 | .mid_title p{
111 | font-size:20px;
112 | color:#474775;
113 | font-family:"微软雅黑";
114 | font-weight:600;
115 | }
116 | .footer{
117 | margin-top:20px;
118 | font-size:14px;
119 | text-align:center;
120 | color:#999;
121 | }
122 | .rborder{
123 | border:1px solid #fff;
124 | border-right-color:#ccc;
125 | }
126 |
127 |
128 | #main-nav {
129 | background-color:#F5F5F5;
130 | padding:20px 15px 0 15px;
131 | min-height:650px;
132 | }
133 |
134 | #main-nav li{
135 | padding:10px;
136 | text-align:center;
137 |
138 | }
139 | #main-nav li a{
140 | color:#333333;
141 | }
142 | .nav-tabs {
143 | border:none;
144 | }
145 | .rightarea{
146 | padding:20px;
147 | min-height:650px;
148 | border:1px solid #F0F0F0;
149 | box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.13), 0px 0px 0px rgba(0, 0, 0, 0.36), 0px 0px 0px 0px rgba(255, 255, 255, 0.69) inset;
150 | }
151 | .rightarea button{
152 | width:100px;
153 | }
154 | .righthead{
155 | margin-bottom:10px;
156 | }
157 | .searchf p{
158 | float:left;
159 | }
160 | .searchf .input-group{
161 | width:260px;
162 | margin-bottom:20px;
163 | float:right;
164 | }
165 | .table tr:hover{
166 | background-color:#F7F9FD;
167 | }
168 | .table th, .table td {
169 | padding: 0.5rem;
170 | }
171 | .admin{
172 | margin-top:28px;
173 | padding:0px 20px;
174 | text-align:center;
175 | }
176 | .admin p{
177 | margin:10px;
178 | }
179 | .admin img{
180 | width:110px;
181 | height:110px;
182 | border:1px solid #999;
183 | }
184 | .admin a{
185 | color:#333;
186 | }
187 | .admin .table a:focus, a:hover{
188 | color:#0080FF;
189 | }
190 | .admin i{
191 | padding-right:20px;
192 | }
193 | .filefound{
194 | box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.13), 0px 0px 0px rgba(0, 0, 0, 0.36), 0px 0px 0px 0px rgba(255, 255, 255, 0.69) inset;
195 | max-width:1100px;
196 | min-height:600px;
197 | margin-top:20px;
198 | margin-left:20px;
199 | margin-right:50px;
200 | padding:30px;
201 | }
202 | .filefound button {
203 | width:130px;
204 | }
205 | .found{
206 | box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.13), 0px 0px 0px rgba(0, 0, 0, 0.36), 0px 0px 0px 0px rgba(255, 255, 255, 0.69) inset;
207 | max-width:1100px;
208 | min-height:600px;
209 | margin-top:20px;
210 | margin-left:20px;
211 | margin-right:50px;
212 | }
213 | .found img{
214 | margin-top:200px;
215 | vertical-align:central;
216 | }
217 | .ftitle{
218 | float:left;
219 | margin:30px 0 0 30px;
220 | color:#333;
221 | }
222 | .found i{
223 | margin-right:10px;
224 | }
225 | .found p{
226 | text-align:center;
227 | }
228 | .found .btn{
229 | width:100px;
230 | float:right;
231 | margin:20px 20px;
232 | }
233 | .size{
234 | font-size:14px;
235 | color:#999;
236 | margin-top:20px;
237 | }
238 | .sign_middle {
239 | max-width:1000px;
240 | margin:0 auto;
241 | box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.13), 0px 0px 0px rgba(0, 0, 0, 0.36), 0px 0px 0px 0px rgba(255, 255, 255, 0.69) inset;
242 | min-height:600px;
243 | }
244 | .signtitle {
245 | background-image: url(../images/sign.jpg);
246 | background-repeat: no-repeat;
247 | height:40px;
248 | margin:30px 0 30px 30px;
249 | text-align:right;
250 | }
251 | .inputlist{
252 | margin-left:50px;
253 | }
254 |
255 | .sign_middle .input-group input{
256 | width:350px;
257 | float:right;
258 | margin:15px;
259 | }
260 | .inputlist .input-group .btn{
261 | margin-top:40px;
262 | margin-left:85px;
263 | width:250px;
264 | }
265 | .sign_middle p{
266 | float:right;
267 | font-size:14px;
268 | color:#666;
269 | margin:20px;
270 | }
271 | .sign_middle .proof input{
272 | width:150px;
273 | float:right;
274 | }
275 | .sign_middle .proof img{
276 | float:right;
277 | margin:15px;
278 | height:38px;
279 | }
280 | .sign_middle .proof a{
281 | float:right;
282 | margin:15px;
283 | }
284 | .sign_middle label{
285 | width:50px;
286 | text-align:right;
287 | float:left;
288 | line-height:60px;
289 | }
290 | .sign_middle .btn-lg, .btn-group-lg > .btn{
291 | padding: 0.4rem 1rem;
292 | }
293 | .sign_middle button{
294 | margin:40px 170px;
295 | }
296 | .signsucess{
297 | width:400px;
298 | margin:0 auto;
299 | margin-top:200px;
300 | }
301 | .signsucess img{
302 | width:80px;
303 | float:left;
304 | margin-right:20px;
305 | }
306 | .signsucess h3{
307 | padding-top:15px;
308 | font-family:"微软雅黑";
309 | }
310 | .remodal-bg{
311 | display:block;
312 | float:right;
313 | margin-top:23px;
314 | margin-right:25px;
315 | }
316 | .fmall{
317 | margin:0 auto;
318 | }
319 | .fmtable{
320 | margin-top:20px;
321 | }
322 | .fmlist{
323 | margin:0 20px;
324 |
325 | }
326 | .fmadmin img{
327 | border:1px solid #999;
328 | margin-top:20px;
329 | margin-left:20px;
330 | }
331 | .fmlist p{
332 | line-height:16px;
333 | margin-bottom:0px;
334 | }
335 | .fmlist a img{
336 | margin-right:15px;
337 | }
338 | .fmlist .dropdown {
339 | display:inline;
340 | }
341 | .fmlist .dropdown-menu{
342 | min-width:100px;
343 | }
344 | .fmlist .dropdown li{
345 | padding-left:20px;
346 | }
347 | .fp p{
348 | line-height:16px;
349 | margin-bottom:0px;
350 | margin-top:7px;
351 | }
352 | .fp a{
353 | margin-right:20px;
354 | }
355 | .exe{
356 | background-image:url(../images/exe.jpg);
357 | background-repeat:no-repeat;
358 | padding-left:30px;
359 | }
360 | .jpg{
361 | background-image:url(../images/jepg.jpg);
362 | background-repeat:no-repeat;
363 | padding-left:30px;
364 | }
365 | .apk{
366 | background-image:url(../images/apk.jpg);
367 | background-repeat:no-repeat;
368 | padding-left:30px;
369 | }
370 | .mp3{
371 | background-image:url(../images/music.jpg);
372 | background-repeat:no-repeat;
373 | padding-left:30px;
374 | }
375 | .zip{
376 | background-image:url(../images/zip.jpg);
377 | background-repeat:no-repeat;
378 | padding-left:30px;
379 | }
380 | .others{
381 | background-image:url(../images/others.jpg);
382 | background-repeat:no-repeat;
383 | padding-left:30px;
384 | }
385 | .mp4{
386 | background-image:url(../images/video.jpg);
387 | background-repeat:no-repeat;
388 | padding-left:30px;
389 | }
390 | .fmback{
391 | max-width:1100px;
392 | background-image:url(../images/back1.jpg);
393 | padding-left:50px;
394 | }
395 | .fmtable .table a{
396 | color:#333;
397 | }
398 | .fmtable .table td{
399 | width:20px;
400 | }
401 | .fmlist .table td{
402 | padding:0.8em;
403 | }
404 | .fmlist .table a{
405 | color:#333;
406 | }
407 | #fmtable .table-hover tbody tr:hover {
408 | background-color: #F0F0F0;
409 | }
410 | #fmtable td{
411 | border:none;
412 | line-height:0.5em;
413 | }
414 | #fmtable p{
415 | padding-top:25px;
416 | }
417 | #fmtable table{
418 | width:250px;
419 | margin-top:15px;
420 | margin-left:-10px;
421 | }
422 | .fmreback{
423 | background-image:url(../images/reback1.jpg);
424 | background-repeat:repeat-x;
425 | }
426 | .fmtime{
427 | text-align:center;
428 | }
429 | .filefound .form-inline{
430 | width:600px;
431 | margin:0 auto;
432 | margin-top:200px;
433 | }
434 | .myprogress {
435 | width:600px;
436 | margin:0px 0 20px 0;
437 | }
438 | .myprogress .progress{
439 | width:500px;
440 | float:left;
441 | }
442 | .myprogress .myprogress_text{
443 | float:right;
444 | line-height:15px;
445 | }
--------------------------------------------------------------------------------
/mydisks/WebRoot/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/mydisks/WebRoot/fonts/glyphicons-halflings-regular.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/mydisks/WebRoot/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/mydisks/WebRoot/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/mydisks/WebRoot/home.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 |
3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 | <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
5 | <%
6 | String path = request.getContextPath();
7 | String basePath = request.getScheme() + "://"
8 | + request.getServerName() + ":" + request.getServerPort()
9 | + path + "/";
10 | %>
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | 信息工程学院网盘
20 |
21 |
22 |
23 |
24 |
25 |
72 |
73 |
74 |
75 |
99 |
100 |
101 |
102 |
103 |
104 |

105 |
${sessionScope.session_user.username}
106 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
我的文件
119 |
125 |
126 |
127 |
128 |
129 |
135 |
136 |
140 |
141 |
我的文件>>
142 |
143 | ${p.name}>>
145 |
146 |
147 |
148 | |
149 | 文件名 |
150 | 修改日期 |
151 | 大小 |
152 | 类型 |
153 | 下载次数 |
154 | 操作 |
155 |
156 |
157 |
158 |
159 | 对不起,没有文件了 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |  |
168 |
169 | ${c.cName } |
170 | ${c.cDate } |
171 | |
172 | |
173 | |
174 | 删除重命名 |
175 |
176 |
177 |
178 |
179 |
180 |  |
181 | ${f.fName } |
182 | ${f.fUploadtime } |
183 | MB |
184 | ${f.fType } |
185 | ${f.fDowncount } |
186 | 删除重命名 下载 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
208 |
209 |
210 |
211 |
212 |
367 |
372 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/01.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/02.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/02.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/03.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/04.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/04.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/1024.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/apk.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/apk.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/back1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/back1.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/banner1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/banner1.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/banner2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/banner2.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/check.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/down.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/exe.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/exe.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/falut.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/falut.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/folder.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/jepg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/jepg.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/logo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/logo1.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/logo_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/logo_small.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/more.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/music.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/music.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/navback.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/navback.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/notfound.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/notfound.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/others.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/others.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/reback1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/reback1.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/save.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/save.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/sign-check-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/sign-check-icon.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/sign.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/sign.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/spare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/spare.png
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/user.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/user.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/video.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/video.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/welcome.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/welcome.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/yz.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/yz.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/images/zip.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VinceLz/disk/fe01b2a7cd15c2a2f8ee572f744d8591c1659163/mydisks/WebRoot/images/zip.jpg
--------------------------------------------------------------------------------
/mydisks/WebRoot/index.jsp:
--------------------------------------------------------------------------------
1 | <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
3 |
4 |
--------------------------------------------------------------------------------
/mydisks/WebRoot/js/login.js:
--------------------------------------------------------------------------------
1 | function aCheck1(){
2 | document.getElementById("span1").style.display="block";
3 |
4 | }
5 | function bCheck2(){
6 | document.getElementById("span2").style.display="block";
7 | }
8 | function cCheck3(){
9 | document.getElementById("span3").style.display="block";
10 | }
11 |
12 |
13 |
--------------------------------------------------------------------------------
/mydisks/src/c3p0-config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | jdbc:mysql://localhost:3306/drive?useUnicode=true&characterEncoding=UTF8
7 | com.mysql.jdbc.Driver
8 | root
9 | zhen1314
10 |
11 | 3
12 | 10
13 | 2
14 | 10
15 |
16 |
17 |
18 |
19 | jdbc:mysql://localhost:3306/mydb1
20 | com.mysql.jdbc.Driver
21 | root
22 | 123
23 | 3
24 | 10
25 | 2
26 | 10
27 |
28 |
29 |
--------------------------------------------------------------------------------
/mydisks/src/lz/xawl/Catalog/dao/CatalogDao.java:
--------------------------------------------------------------------------------
1 | package lz.xawl.Catalog.dao;
2 |
3 | import java.sql.SQLException;
4 | import java.util.ArrayList;
5 | import java.util.List;
6 | import java.util.Map;
7 |
8 | import javax.servlet.ServletContext;
9 |
10 | import lz.xawl.Catalog.domain.Catalog;
11 | import lz.xawl.File.dao.FileDao;
12 | import lz.xawl.File.domain.File;
13 |
14 | import org.apache.commons.dbutils.QueryRunner;
15 | import org.apache.commons.dbutils.handlers.BeanHandler;
16 | import org.apache.commons.dbutils.handlers.MapHandler;
17 | import org.apache.commons.dbutils.handlers.MapListHandler;
18 | import org.apache.commons.dbutils.handlers.ScalarHandler;
19 |
20 | import cn.itcast.commons.CommonUtils;
21 | import cn.itcast.jdbc.TxQueryRunner;
22 |
23 | public class CatalogDao {
24 | private QueryRunner qr = new TxQueryRunner();
25 | private FileDao fileDao = new FileDao();
26 |
27 | // 给我一个cid,就可以查找下面一级的目录和文件
28 | public Catalog findByCidToCatalog(String cid) throws SQLException {
29 | String sql = "select * from catalog where cId=?";
30 | Map beanMap = qr.query(sql, new MapHandler(), cid);
31 | Catalog catalog = CommonUtils.toBean(beanMap, Catalog.class);
32 | // 还有pid cF 这个属性就行映射
33 | if (beanMap.get("pId") != null) {
34 | // 这不是最顶层目录 需要封装他的父级目录 只有pid
35 | Catalog c = new Catalog();
36 | c.setcId((String) beanMap.get("pId"));
37 | catalog.setParent(c);
38 | }
39 | sql = "select * from catalog where pId=?";
40 | List