├── .gitignore ├── LICENSE ├── README.md ├── showimgs ├── 1.png └── 2.png ├── src ├── dao │ ├── ScoreD.java │ ├── StudentD.java │ └── TeacherD.java ├── servlet │ ├── add_student.java │ ├── check_login.java │ ├── check_register.java │ ├── delete_student.java │ ├── exit.java │ ├── one_page_score.java │ ├── one_page_student.java │ ├── update_score.java │ ├── update_student.java │ ├── update_student_security.java │ ├── update_teacher.java │ ├── update_teacher_password.java │ ├── upload_studentImg.class │ ├── upload_studentImg.java │ └── upload_teacherImg.java └── vo │ ├── Score.java │ ├── Student.java │ └── Teacher.java ├── student_manager.iml ├── student_manager.sql └── web ├── WEB-INF ├── classes │ ├── dao │ │ ├── ScoreD.class │ │ ├── StudentD.class │ │ └── TeacherD.class │ ├── servlet │ │ ├── add_student.class │ │ ├── check_login.class │ │ ├── check_register.class │ │ ├── delete_student.class │ │ ├── exit.class │ │ ├── one_page_score.class │ │ ├── one_page_student.class │ │ ├── update_score.class │ │ ├── update_student.class │ │ ├── update_student_security.class │ │ ├── update_teacher.class │ │ ├── update_teacher_password.class │ │ ├── upload_studentImg.class │ │ └── upload_teacherImg.class │ └── vo │ │ ├── Score.class │ │ ├── Student.class │ │ └── Teacher.class ├── lib │ ├── itextpdf-5.5.5.jar │ ├── jsmartcom_zh_CN.jar │ └── mysql-connector-java-5.1.47-bin.jar └── web.xml ├── code.jsp ├── forget.jsp ├── index.jsp ├── login.jsp ├── register.jsp ├── resources ├── css │ ├── bootstrap.min.css │ ├── default.css │ ├── forget.css │ ├── jquery-ui-1.10.4.custom.min.css │ ├── login.css │ └── register.css ├── font │ └── msyh.ttf ├── img │ ├── email.png │ ├── password.png │ └── user.png └── js │ ├── bootstrap.min.js │ ├── jquery-1.10.2.js │ ├── jquery-3.2.1.min.js │ ├── jquery-ui-1.10.4.custom.min.js │ └── popper.min.js ├── sendCode.jsp ├── student ├── main.jsp ├── pdf.jsp ├── personal.jsp └── resetPassword.jsp ├── teacher ├── main.jsp ├── personal.jsp ├── resetPassword.jsp ├── score.jsp └── score_excel.jsp └── userImg ├── 20162430634.jpeg ├── 20162430635.jpeg └── zzu.jpeg /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | # *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | # *.jar 15 | *.war 16 | *.nar 17 | *.ear 18 | *.zip 19 | *.tar.gz 20 | *.rar 21 | 22 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 23 | hs_err_pid* 24 | 25 | 26 | .idea 27 | 28 | 29 | student_manager/out 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # StudentManager 2 | 3 | JavaWeb期末项目,一个基于JSP和Servlet的学生管理系统实现,前端用了bootstrap和一些自定义的css样式,数据库使用mysql 4 | 5 | - 登录页 6 | 7 | ![1.png](showimgs/1.png) 8 | 9 | - 学生管理 10 | 11 | ![2.png](showimgs/2.png) 12 | 13 | ## 1.开发环境 14 | 15 | - idea 2018 16 | - jdk 1.8 17 | - tomcat 9.0 18 | - mysql 5.7 19 | 20 | ## 2.实现功能 21 | 22 | - 登录(教师, 学生) 23 | - 注册(教师, 验证码) 24 | - 找回密码(教师, 学生) 25 | - 记住登录状态 26 | - 学生管理(增删改查) 27 | - 成绩管理(修改, 导出excel) 28 | - 上传文件(头像) 29 | - 个人成绩(导出pdf) 30 | 31 | ## 3.使用方法 32 | 33 | 1. 下载项目 34 | 2. 在mysql中新建一个数据库 **student_manager** ,使用source命令加载 **根目录下的sql文件** 35 | 3. 用idea导入项目,修改 **/src/dao/** 下所有文件的MySQL连接代码中的用户密码信息,配置好tomcat后即可运行 36 | 37 | ## 4.简要说明 38 | 39 | #### servlet文件 40 | 41 | | 文件名 | 功能 | 42 | |--|--| 43 | | /servlet/check_login.java | 处理登录信息, 若成功则跳转对应身份的操作界面, 否则给出错误提示 | 44 | | /servlet/check_register.java | 处理注册信息, 若成功则跳转登录界面, 否则给出错误提示 | 45 | | /servlet/exit.java | 注销本次操作的所有session和cookie信息, 退出后跳转到登录界面 | 46 | | /servlet/one_page_student.java | 查询出一个页面的学生信息添加到session里传递到jsp页面显示 | 47 | | /servlet/one_page_score.java | 查询出一个页面的学生成绩信息添加到session里传递到jsp页面显示 | 48 | | /servlet/add_student.java | 添加学生, 获得jsp页面传过来的学生信息并添加到学生表里 | 49 | | /servlet/delete_student.java | 根据请求的学号从数据库里删除指定学生 | 50 | | /servlet/update_student.java | 根据请求的数据更新指定学生信息 | 51 | | /servlet/update_score.java | 根据请求数据更新指定学生的成绩信息 | 52 | | /servlet/update_teacher.java |根据请求的数据更新老师的信息 | 53 | | /servlet/update_teacher_password.java | 教师忘记密码时重置密码 | 54 | | /servlet/upload_teacherImg.java | 获得老师上传的头像并保存 | 55 | | /servlet/upload_studentImg.java | 获得学生上传的头像并保存 | 56 | | /servlet/update_student_security.java | 学生更新自己的安全信息以及忘记密码时重置密码 | 57 | 58 | #### jsp文件 59 | 60 | | 文件名 | 功能 | 61 | |--|--| 62 | | /index.jsp | 项目索引页面, 遍历cookie, 存在登录信息则进入对应模块, 否则跳转到登录界面 | 63 | | /login.jsp | 登录界面 | 64 | | /register.jsp | 注册界面 | 65 | | /forget.jsp | 忘记密码界面, 输入账号以找回密码 | 66 | | /sendCode.jsp | 发送验证码以及验证码输入页面, 若用户没有设置安全邮箱则给出提示信息, 验证码输入正确跳到重置密码页面 | 67 | | /code.jsp | 生成随机验证码 | 68 | | /teacher/*.jsp | 教师页面 | 69 | | /student/*.jsp | 学生页面 | 70 | -------------------------------------------------------------------------------- /showimgs/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/showimgs/1.png -------------------------------------------------------------------------------- /showimgs/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/showimgs/2.png -------------------------------------------------------------------------------- /src/dao/ScoreD.java: -------------------------------------------------------------------------------- 1 | package dao; 2 | 3 | import vo.Score; 4 | 5 | import java.sql.*; 6 | import java.util.ArrayList; 7 | 8 | public class ScoreD { 9 | 10 | private Connection conn = null; 11 | 12 | public boolean insertScore(String id) throws Exception{ 13 | initConnection(); 14 | String sql = "insert into score(id) values(?)"; 15 | PreparedStatement ps = conn.prepareStatement(sql); 16 | ps.setString(1, id); 17 | int i = ps.executeUpdate(); 18 | closeConnection(); 19 | return i == 1; 20 | } 21 | 22 | public boolean deleteScore(String id) throws Exception{ 23 | initConnection(); 24 | Statement stat = conn.createStatement(); 25 | String sql = "delete from score where id='"+id+"'"; 26 | int i = stat.executeUpdate(sql); 27 | closeConnection(); 28 | return i==1; 29 | } 30 | 31 | public void updateScoreInfo(String id, String database, String android, String jsp) throws Exception{ 32 | 33 | initConnection(); 34 | String sql = "update score set dat=?, android=?, jsp=? where id=?"; 35 | PreparedStatement ps = conn.prepareStatement(sql); 36 | ps.setString(1, database); 37 | ps.setString(2, android); 38 | ps.setString(3, jsp); 39 | ps.setString(4, id); 40 | ps.executeUpdate(); 41 | closeConnection(); 42 | } 43 | 44 | public Score findWithId(String id) throws Exception{ 45 | initConnection(); 46 | Statement stat = conn.createStatement(); 47 | String sql = "select * from score where id = '" + id + "'"; 48 | ResultSet rs = stat.executeQuery(sql); 49 | Score stu = getScore(rs); 50 | closeConnection(); 51 | return stu; 52 | } 53 | 54 | public ArrayList getOnePage(int page, int size) throws Exception{ 55 | ArrayList al = new ArrayList<>(); 56 | initConnection(); 57 | String sql = "SELECT * FROM score limit ?, ?"; 58 | PreparedStatement ps = conn.prepareStatement(sql); 59 | ps.setInt(1, (page-1)*size); 60 | ps.setInt(2, size); 61 | ResultSet rs = ps.executeQuery(); 62 | getMoreScore(al, rs); 63 | closeConnection(); 64 | return al; 65 | } 66 | 67 | public int getScoreCount() throws Exception{ 68 | initConnection(); 69 | String sql = "select count(*) from score"; 70 | Statement stat = conn.createStatement(); 71 | ResultSet rs = stat.executeQuery(sql); 72 | rs.next(); 73 | int count = rs.getInt(1); 74 | closeConnection(); 75 | return count; 76 | } 77 | 78 | private Score getScore(ResultSet rs) throws SQLException { 79 | Score stu = null; 80 | if (rs.next()){ 81 | stu = new Score(); 82 | stu.setId(rs.getString("id")); 83 | stu.setDatabase(rs.getString("dat")); 84 | stu.setAndroid(rs.getString("android")); 85 | stu.setJsp(rs.getString("jsp")); 86 | } 87 | return stu; 88 | } 89 | 90 | private void getMoreScore(ArrayList al, ResultSet rs) throws SQLException { 91 | while (rs.next()){ 92 | Score score = new Score(); 93 | score.setId(rs.getString("id")); 94 | score.setDatabase(rs.getString("dat")); 95 | score.setAndroid(rs.getString("android")); 96 | score.setJsp(rs.getString("jsp")); 97 | al.add(score); 98 | } 99 | } 100 | 101 | private void initConnection() throws Exception { 102 | Class.forName("com.mysql.jdbc.Driver"); 103 | conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/student_manager?useSSL=false", "root", "111"); 104 | } 105 | 106 | private void closeConnection() throws Exception{ 107 | conn.close(); 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/dao/StudentD.java: -------------------------------------------------------------------------------- 1 | package dao; 2 | 3 | import vo.Student; 4 | 5 | import java.sql.*; 6 | import java.util.ArrayList; 7 | 8 | public class StudentD { 9 | 10 | private Connection conn = null; 11 | 12 | public Student checkAccount(String user, String password) throws Exception { 13 | initConnection(); 14 | Statement stat = conn.createStatement(); 15 | String sql = "select * from student where id = '" + user + "' and password = '" + password + "'"; 16 | ResultSet rs = stat.executeQuery(sql); 17 | Student stu = getStudent(rs); 18 | closeConnection(); 19 | return stu; 20 | } 21 | 22 | public Student findWithId(String id) throws Exception{ 23 | initConnection(); 24 | Statement stat = conn.createStatement(); 25 | String sql = "select * from student where id = '" + id + "'"; 26 | ResultSet rs = stat.executeQuery(sql); 27 | Student stu = getStudent(rs); 28 | closeConnection(); 29 | return stu; 30 | } 31 | 32 | public ArrayList findWithName(String name) throws Exception{ 33 | ArrayList al = new ArrayList<>(); 34 | initConnection(); 35 | Statement stat = conn.createStatement(); 36 | String sql = "select * from student where name = '" + name + "'"; 37 | ResultSet rs = stat.executeQuery(sql); 38 | getMoreStudent(al, rs); 39 | closeConnection(); 40 | return al; 41 | } 42 | 43 | public boolean insertStudent(String id, String name, String sex, String school_date, String major) throws Exception{ 44 | initConnection(); 45 | String sql = "insert into student(id, name, sex, school_date, major) values(?, ?, ?, ?, ?)"; 46 | PreparedStatement ps = conn.prepareStatement(sql); 47 | ps.setString(1, id); 48 | ps.setString(2, name); 49 | ps.setString(3, sex); 50 | ps.setString(4, school_date); 51 | ps.setString(5, major); 52 | int i = ps.executeUpdate(); 53 | closeConnection(); 54 | return i == 1; 55 | } 56 | 57 | public boolean deleteStudent(String id) throws Exception{ 58 | 59 | initConnection(); 60 | Statement stat = conn.createStatement(); 61 | String sql = "delete from student where id='"+id+"'"; 62 | int i = stat.executeUpdate(sql); 63 | closeConnection(); 64 | return i==1; 65 | } 66 | 67 | public ArrayList getOnePage(int page, int size) throws Exception{ 68 | ArrayList al = new ArrayList<>(); 69 | initConnection(); 70 | String sql = "SELECT * FROM student limit ?, ?"; 71 | PreparedStatement ps = conn.prepareStatement(sql); 72 | ps.setInt(1, (page-1)*size); 73 | ps.setInt(2, size); 74 | ResultSet rs = ps.executeQuery(); 75 | getMoreStudent(al, rs); 76 | closeConnection(); 77 | return al; 78 | } 79 | 80 | public int getStudentCount() throws Exception{ 81 | initConnection(); 82 | String sql = "select count(*) from student"; 83 | Statement stat = conn.createStatement(); 84 | ResultSet rs = stat.executeQuery(sql); 85 | rs.next(); 86 | int count = rs.getInt(1); 87 | closeConnection(); 88 | return count; 89 | } 90 | 91 | public void updateStudentInfo(String id, String name, String sex, String major) throws Exception{ 92 | 93 | initConnection(); 94 | String sql = "update student set name=?, sex=?, major=? where id=?"; 95 | PreparedStatement ps = conn.prepareStatement(sql); 96 | ps.setString(1, name); 97 | ps.setString(2, sex); 98 | ps.setString(3, major); 99 | ps.setString(4, id); 100 | ps.executeUpdate(); 101 | closeConnection(); 102 | } 103 | 104 | public void updateStudentSecurity(String id, String email, String password) throws Exception{ 105 | 106 | initConnection(); 107 | String sql = "update student set password=?, email=? where id=?"; 108 | PreparedStatement ps = conn.prepareStatement(sql); 109 | ps.setString(1, password); 110 | ps.setString(2, email); 111 | ps.setString(3, id); 112 | ps.executeUpdate(); 113 | closeConnection(); 114 | } 115 | 116 | private Student getStudent(ResultSet rs) throws SQLException { 117 | Student stu = null; 118 | if (rs.next()){ 119 | stu = new Student(); 120 | stu.setId(rs.getString("id")); 121 | stu.setPassword(rs.getString("password")); 122 | stu.setName(rs.getString("name")); 123 | stu.setSex(rs.getString("sex")); 124 | stu.setSchool_date(rs.getString("school_date")); 125 | stu.setMajor(rs.getString("major")); 126 | stu.setEmail(rs.getString("email")); 127 | } 128 | return stu; 129 | } 130 | 131 | private void getMoreStudent(ArrayList al, ResultSet rs) throws SQLException { 132 | while (rs.next()){ 133 | Student stu = new Student(); 134 | stu.setId(rs.getString("id")); 135 | stu.setPassword(rs.getString("password")); 136 | stu.setName(rs.getString("name")); 137 | stu.setSex(rs.getString("sex")); 138 | stu.setSchool_date(rs.getString("school_date")); 139 | stu.setMajor(rs.getString("major")); 140 | stu.setEmail(rs.getString("email")); 141 | al.add(stu); 142 | } 143 | } 144 | 145 | private void initConnection() throws Exception { 146 | Class.forName("com.mysql.jdbc.Driver"); 147 | conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/student_manager?useSSL=false", "root", "111"); 148 | } 149 | 150 | private void closeConnection() throws Exception{ 151 | conn.close(); 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /src/dao/TeacherD.java: -------------------------------------------------------------------------------- 1 | package dao; 2 | 3 | import vo.Teacher; 4 | 5 | import java.sql.*; 6 | 7 | 8 | public class TeacherD { 9 | private Connection conn = null; 10 | 11 | public Teacher checkAccount(String id, String password) throws Exception { 12 | initConnection(); 13 | Statement stat = conn.createStatement(); 14 | String sql = "select * from teacher where id = '" + id + "' and password = '" + password + "'"; 15 | ResultSet rs = stat.executeQuery(sql); 16 | Teacher tea = getTeacher(rs); 17 | closeConnection(); 18 | return tea; 19 | } 20 | 21 | public Teacher findWithId(String id) throws Exception { 22 | initConnection(); 23 | Statement stat = conn.createStatement(); 24 | String sql = "select * from teacher where id = '" + id + "'"; 25 | ResultSet rs = stat.executeQuery(sql); 26 | Teacher tea = getTeacher(rs); 27 | closeConnection(); 28 | return tea; 29 | } 30 | 31 | public Teacher insertTeacher(String id, String password, String email) throws Exception { 32 | initConnection(); 33 | String sql = "insert into teacher(id, password, email) values(?, ?, ?)"; 34 | PreparedStatement ps = conn.prepareStatement(sql); 35 | ps.setString(1, id); 36 | ps.setString(2, password); 37 | ps.setString(3, email); 38 | ps.executeUpdate(); 39 | Teacher teacher = findWithId(id); 40 | closeConnection(); 41 | return teacher; 42 | } 43 | 44 | public Teacher updateTeacher(String id, String name, String sex, String email, String password) throws Exception{ 45 | 46 | initConnection(); 47 | String sql = "update teacher set name=?, sex=?, email=?, password=? where id=?"; 48 | PreparedStatement ps = conn.prepareStatement(sql); 49 | ps.setString(1, name); 50 | ps.setString(2, sex); 51 | ps.setString(3, email); 52 | ps.setString(4, password); 53 | ps.setString(5, id); 54 | ps.executeUpdate(); 55 | Teacher teacher = findWithId(id); 56 | closeConnection(); 57 | return teacher; 58 | } 59 | 60 | public void updateTeacherPassword(String id, String password) throws Exception{ 61 | 62 | initConnection(); 63 | String sql = "update teacher set password=? where id=?"; 64 | PreparedStatement ps = conn.prepareStatement(sql); 65 | ps.setString(1, password); 66 | ps.setString(2, id); 67 | ps.executeUpdate(); 68 | closeConnection(); 69 | } 70 | 71 | private Teacher getTeacher(ResultSet rs) throws SQLException { 72 | Teacher tea = null; 73 | if (rs.next()) { 74 | tea = new Teacher(); 75 | tea.setId(rs.getString("id")); 76 | tea.setPassword(rs.getString("password")); 77 | tea.setName(rs.getString("name")); 78 | tea.setEmail(rs.getString("email")); 79 | tea.setSex(rs.getString("sex")); 80 | } 81 | return tea; 82 | } 83 | 84 | private void initConnection() throws Exception { 85 | Class.forName("com.mysql.jdbc.Driver"); 86 | conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/student_manager?useSSL=false", "root", "111"); 87 | } 88 | 89 | private void closeConnection() throws Exception { 90 | conn.close(); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /src/servlet/add_student.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.ScoreD; 4 | import dao.StudentD; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | import java.io.IOException; 13 | import java.io.PrintWriter; 14 | import java.sql.DatabaseMetaData; 15 | import java.sql.Date; 16 | 17 | @WebServlet("/add_student") 18 | public class add_student extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | this.doGet(request, response); 21 | } 22 | 23 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 24 | 25 | response.setContentType("text/html;charset=utf-8"); 26 | response.setCharacterEncoding("utf-8"); 27 | request.setCharacterEncoding("utf-8"); 28 | 29 | PrintWriter out = response.getWriter(); 30 | 31 | StudentD studentD = new StudentD(); 32 | ScoreD scoreD = new ScoreD(); 33 | 34 | String id = request.getParameter("id"); 35 | String name = request.getParameter("name"); 36 | String sex = request.getParameter("sex"); 37 | String major = request.getParameter("major"); 38 | String school_date = request.getParameter("school_date"); 39 | 40 | try { 41 | studentD.insertStudent(id, name, sex, school_date, major); 42 | scoreD.insertScore(id); 43 | } 44 | catch (Exception e){ 45 | out.print(e); 46 | } 47 | response.sendRedirect("one_page_student"); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/servlet/check_login.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.StudentD; 4 | import dao.TeacherD; 5 | import vo.Student; 6 | import vo.Teacher; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.*; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | 14 | @WebServlet("/check_login") 15 | public class check_login extends HttpServlet { 16 | 17 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 18 | 19 | this.doGet(request, response); 20 | } 21 | 22 | protected void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | 24 | response.setContentType("text/html;charset=utf-8"); 25 | response.setCharacterEncoding("utf-8"); 26 | request.setCharacterEncoding("utf-8"); 27 | 28 | PrintWriter out = response.getWriter(); 29 | HttpSession session = request.getSession(); 30 | 31 | String user = request.getParameter("user"); 32 | String password = request.getParameter("password"); 33 | String remember = request.getParameter("remember"); 34 | 35 | TeacherD teacherD = new TeacherD(); 36 | StudentD studentD = new StudentD(); 37 | Teacher teacher = null; 38 | Student student = null; 39 | 40 | try { 41 | // 判断用户身份 42 | teacher = teacherD.checkAccount(user, password); 43 | student = studentD.checkAccount(user, password); 44 | } 45 | catch (Exception e) { 46 | out.print(e); 47 | } 48 | 49 | if (teacher != null) { 50 | //向session中添加用户信息 51 | session.setAttribute("info", teacher); 52 | 53 | //检查用户是否需要保持登录状态 54 | if (remember != null) { 55 | //发送cookie到客户端 56 | Cookie userCookie = new Cookie("name", user); 57 | userCookie.setMaxAge(10); 58 | response.addCookie(userCookie); 59 | } 60 | response.sendRedirect("one_page_student"); 61 | } 62 | else if (student != null){ 63 | //向session中添加用户信息 64 | session.setAttribute("info", student); 65 | 66 | //检查用户是否需要保持登录状态 67 | if (remember != null) { 68 | //发送cookie到客户端 69 | Cookie userCookie = new Cookie("name", user); 70 | userCookie.setMaxAge(10); 71 | response.addCookie(userCookie); 72 | } 73 | response.sendRedirect("student/main.jsp"); 74 | } 75 | else { 76 | out.print(""); 35 | } else { 36 | 37 | TeacherD teacherD = new TeacherD(); 38 | Teacher teacher = null; 39 | 40 | try { 41 | teacher = teacherD.insertTeacher(user, password, email); 42 | } catch (Exception e) { 43 | out.print(e); 44 | } 45 | if (teacher != null) { 46 | //向session中添加用户信息 47 | session.setAttribute("info", teacher); 48 | response.sendRedirect("one_page_student"); 49 | } else { 50 | out.print(""); 51 | } 52 | } 53 | } 54 | 55 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 56 | 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/servlet/delete_student.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.ScoreD; 4 | import dao.StudentD; 5 | import vo.Score; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import java.io.IOException; 13 | import java.io.PrintWriter; 14 | 15 | @WebServlet("/delete_student") 16 | public class delete_student extends HttpServlet { 17 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 18 | 19 | } 20 | 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 22 | 23 | response.setContentType("text/html;charset=utf-8"); 24 | response.setCharacterEncoding("utf-8"); 25 | request.setCharacterEncoding("utf-8"); 26 | 27 | PrintWriter out = response.getWriter(); 28 | StudentD studentD = new StudentD(); 29 | ScoreD scoreD = new ScoreD(); 30 | 31 | String id = request.getParameter("id"); 32 | try { 33 | studentD.deleteStudent(id); 34 | scoreD.deleteScore(id); 35 | response.sendRedirect("one_page_student"); 36 | } 37 | catch (Exception e){ 38 | out.print(e); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/servlet/exit.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import javax.servlet.ServletException; 4 | import javax.servlet.annotation.WebServlet; 5 | import javax.servlet.http.Cookie; 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | import java.io.IOException; 10 | 11 | @WebServlet("/exit") 12 | public class exit extends HttpServlet { 13 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 14 | 15 | } 16 | 17 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 18 | 19 | //清除cookie, 跳到起始页 20 | Cookie[] cookies = request.getCookies(); 21 | if (cookies != null) { 22 | for (Cookie c : cookies) { 23 | String cookieName = c.getName(); 24 | if ("name".equals(cookieName)) { 25 | c.setMaxAge(0); 26 | response.addCookie(c); 27 | } 28 | } 29 | } 30 | response.sendRedirect("index.jsp"); 31 | } 32 | } -------------------------------------------------------------------------------- /src/servlet/one_page_score.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.ScoreD; 4 | import dao.StudentD; 5 | import vo.Score; 6 | import vo.Student; 7 | 8 | import javax.servlet.ServletException; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.HttpServlet; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | import javax.servlet.http.HttpSession; 14 | import java.io.IOException; 15 | import java.io.PrintWriter; 16 | import java.util.ArrayList; 17 | import java.util.regex.Pattern; 18 | 19 | @WebServlet("/one_page_score") 20 | public class one_page_score extends HttpServlet { 21 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 22 | 23 | this.doGet(request, response); 24 | } 25 | 26 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 27 | 28 | response.setContentType("text/html;charset=utf-8"); 29 | response.setCharacterEncoding("utf-8"); 30 | request.setCharacterEncoding("utf-8"); 31 | 32 | PrintWriter out = response.getWriter(); 33 | HttpSession session = request.getSession(); 34 | 35 | String key = request.getParameter("id"); 36 | 37 | if (key == null) { 38 | 39 | int currentIndex, count, size = 10; 40 | String index = request.getParameter("index"); 41 | if (index == null) 42 | index = "1"; 43 | currentIndex = Integer.parseInt(index); 44 | 45 | try { 46 | ScoreD scoD = new ScoreD(); 47 | count = scoD.getScoreCount(); 48 | ArrayList stus = scoD.getOnePage(currentIndex, size); 49 | int sumIndex = count % size == 0 ? count / size : count / size + 1; 50 | session.setAttribute("onePageScore", stus); 51 | session.setAttribute("sumScoreIndex", sumIndex); 52 | response.sendRedirect("teacher/score.jsp"); 53 | } catch (Exception e) { 54 | out.print(e); 55 | } 56 | } 57 | else { 58 | ScoreD scoreD = new ScoreD(); 59 | try { 60 | Score score = scoreD.findWithId(key); 61 | ArrayList scores = new ArrayList<>(); 62 | scores.add(score); 63 | session.setAttribute("onePageScore", scores); 64 | session.setAttribute("sumScoreIndex", 1); 65 | response.sendRedirect("teacher/score.jsp"); 66 | } catch (Exception e) { 67 | out.print(e); 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/servlet/one_page_student.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.StudentD; 4 | import vo.Student; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import javax.servlet.http.HttpSession; 12 | import java.io.IOException; 13 | import java.io.PrintWriter; 14 | import java.util.ArrayList; 15 | import java.util.regex.Pattern; 16 | 17 | @WebServlet("/one_page_student") 18 | public class one_page_student extends HttpServlet { 19 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 20 | 21 | this.doGet(request, response); 22 | } 23 | 24 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 25 | 26 | response.setContentType("text/html;charset=utf-8"); 27 | response.setCharacterEncoding("utf-8"); 28 | request.setCharacterEncoding("utf-8"); 29 | 30 | PrintWriter out = response.getWriter(); 31 | HttpSession session = request.getSession(); 32 | 33 | String key = request.getParameter("key"); 34 | 35 | if (key == null || key.equals("")) { 36 | int currentIndex, count, size = 10; 37 | String index = request.getParameter("index"); 38 | if (index == null) 39 | index = "1"; 40 | currentIndex = Integer.parseInt(index); 41 | 42 | try { 43 | StudentD sdao = new StudentD(); 44 | ArrayList stus = sdao.getOnePage(currentIndex, size); 45 | count = sdao.getStudentCount(); 46 | int sumIndex = count % size == 0 ? count / size : count / size + 1; 47 | session.setAttribute("onePageStudent", stus); 48 | session.setAttribute("sumIndex", sumIndex); 49 | response.sendRedirect("teacher/main.jsp"); 50 | } catch (Exception e) { 51 | out.print(e); 52 | } 53 | } 54 | else { 55 | 56 | StudentD studentD = new StudentD(); 57 | String pattern = "^\\d+"; 58 | boolean isMatch = Pattern.matches(pattern, key); 59 | if (isMatch) { 60 | try { 61 | 62 | Student student = studentD.findWithId(key); 63 | ArrayList students = new ArrayList<>(); 64 | students.add(student); 65 | session.setAttribute("onePageStudent", students); 66 | session.setAttribute("sumIndex", 1); 67 | response.sendRedirect("teacher/main.jsp"); 68 | } catch (Exception e) { 69 | out.print(e); 70 | } 71 | } else { 72 | try { 73 | ArrayList stus = studentD.findWithName(key); 74 | session.setAttribute("onePageStudent", stus); 75 | session.setAttribute("sumIndex", 1); 76 | response.sendRedirect("teacher/main.jsp"); 77 | } catch (Exception e) { 78 | out.print(e); 79 | } 80 | } 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/servlet/update_score.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.ScoreD; 4 | import dao.StudentD; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | 14 | @WebServlet("/update_score") 15 | public class update_score extends HttpServlet { 16 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 17 | 18 | this.doGet(request, response); 19 | } 20 | 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 22 | 23 | response.setContentType("text/html;charset=utf-8"); 24 | response.setCharacterEncoding("utf-8"); 25 | request.setCharacterEncoding("utf-8"); 26 | 27 | PrintWriter out = response.getWriter(); 28 | ScoreD scoreD = new ScoreD(); 29 | 30 | String[] id = request.getParameterValues("id"); 31 | String[] database = request.getParameterValues("database"); 32 | String[] android = request.getParameterValues("android"); 33 | String[] jsp = request.getParameterValues("jsp"); 34 | 35 | try { 36 | for (int i=0; ialert(\"修改成功\");window.location.href='login.jsp';"); 36 | } 37 | catch (Exception e){ 38 | out.print(e); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/servlet/update_teacher.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.StudentD; 4 | import dao.TeacherD; 5 | import vo.Teacher; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.annotation.WebServlet; 9 | import javax.servlet.http.HttpServlet; 10 | import javax.servlet.http.HttpServletRequest; 11 | import javax.servlet.http.HttpServletResponse; 12 | import javax.servlet.http.HttpSession; 13 | import java.io.IOException; 14 | import java.io.PrintWriter; 15 | 16 | @WebServlet("/update_teacher") 17 | public class update_teacher extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | 20 | response.setContentType("text/html;charset=utf-8"); 21 | response.setCharacterEncoding("utf-8"); 22 | request.setCharacterEncoding("utf-8"); 23 | 24 | PrintWriter out = response.getWriter(); 25 | HttpSession session = request.getSession(); 26 | 27 | TeacherD teacherD = new TeacherD(); 28 | 29 | String uid = request.getParameter("uid"); 30 | String name = request.getParameter("name"); 31 | String sex = request.getParameter("sex"); 32 | String email = request.getParameter("email"); 33 | String password = request.getParameter("password"); 34 | try { 35 | Teacher teacher = teacherD.updateTeacher(uid, name, sex, email, password); 36 | session.setAttribute("info", teacher); 37 | out.print(""); 38 | } 39 | catch (Exception e){ 40 | out.print(e); 41 | } 42 | } 43 | 44 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/servlet/update_teacher_password.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import dao.StudentD; 4 | import dao.TeacherD; 5 | 6 | import javax.servlet.ServletException; 7 | import javax.servlet.annotation.WebServlet; 8 | import javax.servlet.http.HttpServlet; 9 | import javax.servlet.http.HttpServletRequest; 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.io.PrintWriter; 13 | 14 | @WebServlet("/update_teacher_password") 15 | public class update_teacher_password extends HttpServlet { 16 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 17 | 18 | this.doGet(request, response); 19 | } 20 | 21 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 22 | 23 | response.setContentType("text/html;charset=utf-8"); 24 | response.setCharacterEncoding("utf-8"); 25 | request.setCharacterEncoding("utf-8"); 26 | 27 | PrintWriter out = response.getWriter(); 28 | TeacherD teacherD = new TeacherD(); 29 | 30 | String id = request.getParameter("id"); 31 | String password = request.getParameter("password"); 32 | 33 | try { 34 | teacherD.updateTeacherPassword(id, password); 35 | out.print(""); 36 | } 37 | catch (Exception e){ 38 | out.print(e); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/servlet/upload_studentImg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/src/servlet/upload_studentImg.class -------------------------------------------------------------------------------- /src/servlet/upload_studentImg.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import com.jspsmart.upload.File; 4 | import com.jspsmart.upload.Request; 5 | import com.jspsmart.upload.SmartUpload; 6 | 7 | import javax.servlet.ServletConfig; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.HttpServlet; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | import java.io.IOException; 14 | import java.io.PrintWriter; 15 | 16 | @WebServlet("/upload_studentImg") 17 | public class upload_studentImg extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | 20 | this.doGet(request, response); 21 | } 22 | 23 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 24 | response.setContentType("text/html;charset=utf-8"); 25 | response.setCharacterEncoding("utf-8"); 26 | request.setCharacterEncoding("utf-8"); 27 | PrintWriter out = response.getWriter(); 28 | 29 | SmartUpload smartUpload = new SmartUpload(); 30 | Request rq = smartUpload.getRequest(); 31 | ServletConfig config = this.getServletConfig(); 32 | smartUpload.initialize(config, request, response); 33 | try { 34 | //上传文件 35 | smartUpload.upload(); 36 | String id = rq.getParameter("id"); 37 | File smartFile = smartUpload.getFiles().getFile(0); 38 | smartFile.saveAs("/userImg/"+id+".jpeg"); 39 | out.print(""); 40 | } 41 | catch (Exception e){ 42 | out.print(e); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/servlet/upload_teacherImg.java: -------------------------------------------------------------------------------- 1 | package servlet; 2 | 3 | import com.jspsmart.upload.File; 4 | import com.jspsmart.upload.Request; 5 | import com.jspsmart.upload.SmartUpload; 6 | 7 | import javax.servlet.ServletConfig; 8 | import javax.servlet.ServletException; 9 | import javax.servlet.annotation.WebServlet; 10 | import javax.servlet.http.HttpServlet; 11 | import javax.servlet.http.HttpServletRequest; 12 | import javax.servlet.http.HttpServletResponse; 13 | import java.io.IOException; 14 | import java.io.PrintWriter; 15 | 16 | @WebServlet("/upload_teacherImg") 17 | public class upload_teacherImg extends HttpServlet { 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | this.doGet(request, response); 20 | } 21 | 22 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 23 | 24 | response.setContentType("text/html;charset=utf-8"); 25 | response.setCharacterEncoding("utf-8"); 26 | request.setCharacterEncoding("utf-8"); 27 | PrintWriter out = response.getWriter(); 28 | 29 | SmartUpload smartUpload = new SmartUpload(); 30 | Request rq = smartUpload.getRequest(); 31 | ServletConfig config = this.getServletConfig(); 32 | smartUpload.initialize(config, request, response); 33 | try { 34 | //上传文件 35 | smartUpload.upload(); 36 | String id = rq.getParameter("id"); 37 | File smartFile = smartUpload.getFiles().getFile(0); 38 | smartFile.saveAs("/userImg/"+id+".jpeg"); 39 | out.print(""); 40 | } 41 | catch (Exception e){ 42 | out.print(e); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/vo/Score.java: -------------------------------------------------------------------------------- 1 | package vo; 2 | 3 | public class Score { 4 | 5 | private String id; 6 | private String database; 7 | private String android; 8 | private String jsp; 9 | 10 | public String getId(){ 11 | return id; 12 | } 13 | 14 | public String getDatabase(){ 15 | return database; 16 | } 17 | 18 | public String getAndroid(){ 19 | return android; 20 | } 21 | 22 | public String getJsp(){ 23 | return jsp; 24 | } 25 | 26 | public void setId(String id){ 27 | this.id = id; 28 | } 29 | 30 | public void setDatabase(String database){ 31 | this.database = database; 32 | } 33 | 34 | public void setAndroid(String android){ 35 | this.android = android; 36 | } 37 | 38 | public void setJsp(String jsp){ 39 | this.jsp = jsp; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/vo/Student.java: -------------------------------------------------------------------------------- 1 | package vo; 2 | 3 | import java.sql.Date; 4 | import java.sql.PseudoColumnUsage; 5 | import java.util.regex.Pattern; 6 | 7 | public class Student { 8 | 9 | private String id; 10 | private String password; 11 | private String name; 12 | private String sex; 13 | private String school_date; 14 | private String major; 15 | private String email; 16 | 17 | public String getId(){ 18 | return id; 19 | } 20 | 21 | public String getPassword(){ 22 | return password; 23 | } 24 | 25 | public String getName(){ 26 | return name; 27 | } 28 | 29 | public String getSex(){ 30 | return sex; 31 | } 32 | 33 | public String getSchool_date(){ 34 | return school_date; 35 | } 36 | 37 | public String getMajor(){ 38 | return major; 39 | } 40 | 41 | public String getEmail(){ 42 | return email; 43 | } 44 | 45 | public void setId(String id){ 46 | this.id = id; 47 | } 48 | 49 | public void setPassword(String password){ 50 | this.password = password; 51 | } 52 | 53 | public void setName(String name){ 54 | this.name = name; 55 | } 56 | 57 | public void setSex(String sex){ 58 | this.sex = sex; 59 | } 60 | 61 | public void setSchool_date(String school_date){ 62 | this.school_date = school_date; 63 | } 64 | 65 | public void setMajor(String major){ 66 | this.major = major; 67 | } 68 | 69 | public void setEmail(String email){ 70 | this.email = email; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/vo/Teacher.java: -------------------------------------------------------------------------------- 1 | package vo; 2 | 3 | 4 | public class Teacher { 5 | 6 | private String id; 7 | private String password; 8 | private String email; 9 | private String name; 10 | private String sex; 11 | 12 | public String getId(){ 13 | return id; 14 | } 15 | 16 | public String getPassword(){ 17 | return password; 18 | } 19 | 20 | public String getEmail(){ 21 | return email; 22 | } 23 | 24 | public String getName(){ 25 | return name; 26 | } 27 | 28 | public String getSex(){ 29 | return sex; 30 | } 31 | 32 | public void setId(String id){ 33 | this.id = id; 34 | } 35 | 36 | public void setPassword(String password){ 37 | this.password = password; 38 | } 39 | 40 | public void setEmail(String email){ 41 | this.email= email; 42 | } 43 | 44 | public void setName(String name){ 45 | this.name = name; 46 | } 47 | 48 | public void setSex(String sex){ 49 | this.sex = sex; 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /student_manager.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /student_manager.sql: -------------------------------------------------------------------------------- 1 | -- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) 2 | -- 3 | -- Host: localhost Database: student_manager 4 | -- ------------------------------------------------------ 5 | -- Server version 8.0.11 6 | 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 10 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; 11 | /*!40103 SET TIME_ZONE='+00:00' */; 12 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; 13 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; 14 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; 15 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; 16 | 17 | -- 18 | -- Table structure for table `score` 19 | -- 20 | 21 | DROP TABLE IF EXISTS `score`; 22 | /*!40101 SET @saved_cs_client = @@character_set_client */; 23 | CREATE TABLE `score` ( 24 | `id` varchar(50) NOT NULL, 25 | `dat` varchar(50) DEFAULT '', 26 | `android` varchar(50) DEFAULT '', 27 | `jsp` varchar(50) DEFAULT '', 28 | PRIMARY KEY (`id`) 29 | ); 30 | /*!40101 SET character_set_client = @saved_cs_client */; 31 | 32 | -- 33 | -- Dumping data for table `score` 34 | -- 35 | 36 | LOCK TABLES `score` WRITE; 37 | /*!40000 ALTER TABLE `score` DISABLE KEYS */; 38 | INSERT INTO `score` VALUES ('20162430634','90','59','90'),('20162430635','59','84','90'),('20162430636','93','97','90'),('20162430637','70','90','90'),('20162430638','90','50','50'),('20162430639','90','90','92'),('20162430640','90','90','90'),('20162430641','40','90','90'),('20162430642','90','90','90'),('20162430643','90','90','90'),('20162430644','85','94','90'),('20162430645','75','67','76'),('20162430646','89','78','87'); 39 | /*!40000 ALTER TABLE `score` ENABLE KEYS */; 40 | UNLOCK TABLES; 41 | 42 | -- 43 | -- Table structure for table `student` 44 | -- 45 | 46 | DROP TABLE IF EXISTS `student`; 47 | /*!40101 SET @saved_cs_client = @@character_set_client */; 48 | CREATE TABLE `student` ( 49 | `id` varchar(50) NOT NULL, 50 | `password` varchar(50) DEFAULT '0', 51 | `name` varchar(50) NOT NULL, 52 | `sex` varchar(50) NOT NULL, 53 | `school_date` varchar(50) NOT NULL, 54 | `major` varchar(50) NOT NULL, 55 | `email` varchar(50) DEFAULT NULL, 56 | PRIMARY KEY (`id`) 57 | ); 58 | /*!40101 SET character_set_client = @saved_cs_client */; 59 | 60 | -- 61 | -- Dumping data for table `student` 62 | -- 63 | 64 | LOCK TABLES `student` WRITE; 65 | /*!40000 ALTER TABLE `student` DISABLE KEYS */; 66 | INSERT INTO `student` VALUES ('20162430634','0','周华强','男','2016-9','计算机科学与技术',NULL),('20162430635','0','王俊凯','男','2016-9','计算机科学与技术',NULL),('20162430636','0','张宇苍','男','2016-9','软件工程',NULL),('20162430637','0','三松','男','2016-9','计算机科学与技术',NULL),('20162430638','0','王贺龙','男','2016-9','软件工程',NULL),('20162430639','0','张勃','男','2016-9','计算机科学与技术',NULL),('20162430640','0','张红展','男','2016-9','软件工程',NULL),('20162430641','0','赵旺奇','女','2016-9','软件工程',NULL),('20162430642','0','王配','男','2016-9','计算机科学与技术',NULL),('20162430643','0','大伟','男','2016-9','软件工程',NULL),('20162430644','0','谢强','男','2016-09','软件工程',NULL),('20162430645','0','韦清兵','男','2016-09','软件工程卓越班',NULL),('20162430646','0','崔仓豪','男','2018-12','计算机科学与技术',NULL); 67 | /*!40000 ALTER TABLE `student` ENABLE KEYS */; 68 | UNLOCK TABLES; 69 | 70 | -- 71 | -- Table structure for table `teacher` 72 | -- 73 | 74 | DROP TABLE IF EXISTS `teacher`; 75 | /*!40101 SET @saved_cs_client = @@character_set_client */; 76 | CREATE TABLE `teacher` ( 77 | `id` varchar(50) NOT NULL, 78 | `password` varchar(50) NOT NULL, 79 | `name` varchar(50) DEFAULT '', 80 | `sex` varchar(50) DEFAULT '', 81 | `email` varchar(50) NOT NULL, 82 | PRIMARY KEY (`id`) 83 | ); 84 | /*!40101 SET character_set_client = @saved_cs_client */; 85 | 86 | -- 87 | -- Dumping data for table `teacher` 88 | -- 89 | 90 | LOCK TABLES `teacher` WRITE; 91 | /*!40000 ALTER TABLE `teacher` DISABLE KEYS */; 92 | INSERT INTO `teacher` VALUES ('zzu','zzu','zzu','男',NULL); 93 | /*!40000 ALTER TABLE `teacher` ENABLE KEYS */; 94 | UNLOCK TABLES; 95 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; 96 | 97 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; 98 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; 99 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; 100 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 101 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 102 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 103 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; 104 | 105 | -- Dump completed on 2018-12-13 20:19:31 106 | -------------------------------------------------------------------------------- /web/WEB-INF/classes/dao/ScoreD.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/dao/ScoreD.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/dao/StudentD.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/dao/StudentD.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/dao/TeacherD.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/dao/TeacherD.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/add_student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/add_student.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/check_login.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/check_login.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/check_register.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/check_register.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/delete_student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/delete_student.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/exit.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/exit.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/one_page_score.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/one_page_score.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/one_page_student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/one_page_student.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/update_score.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/update_score.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/update_student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/update_student.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/update_student_security.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/update_student_security.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/update_teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/update_teacher.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/update_teacher_password.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/update_teacher_password.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/upload_studentImg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/upload_studentImg.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/servlet/upload_teacherImg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/servlet/upload_teacherImg.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/vo/Score.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/vo/Score.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/vo/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/vo/Student.class -------------------------------------------------------------------------------- /web/WEB-INF/classes/vo/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/classes/vo/Teacher.class -------------------------------------------------------------------------------- /web/WEB-INF/lib/itextpdf-5.5.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/lib/itextpdf-5.5.5.jar -------------------------------------------------------------------------------- /web/WEB-INF/lib/jsmartcom_zh_CN.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/lib/jsmartcom_zh_CN.jar -------------------------------------------------------------------------------- /web/WEB-INF/lib/mysql-connector-java-5.1.47-bin.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/WEB-INF/lib/mysql-connector-java-5.1.47-bin.jar -------------------------------------------------------------------------------- /web/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | -------------------------------------------------------------------------------- /web/code.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="java.awt.image.BufferedImage" %> 2 | <%@ page import="java.awt.*" %> 3 | <%@ page import="java.util.Random" %> 4 | <%@ page import="javax.imageio.ImageIO" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: 007 8 | Date: 2018/11/22 9 | Time: 18:48 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="image/JPEG;charset=UTF-8" pageEncoding="UTF-8" language="java" %> 13 | 14 | 15 | Title 16 | 17 | 18 | <% 19 | response.setCharacterEncoding("utf-8"); 20 | 21 | response.setHeader("Cache-Control", "no-cache"); 22 | //创建图像 23 | int width = 60, height = 20; 24 | BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); 25 | //获取画笔 26 | Graphics g = image.getGraphics(); 27 | //设定背景色 28 | g.setColor(new Color(200, 200, 200)); 29 | g.fillRect(0, 0, width, height); 30 | //随机产生四位数字 31 | Random rnd = new Random(); 32 | int randNum = rnd.nextInt(8999) + 1000; 33 | String randStr = String.valueOf(randNum); 34 | //将验证码存入session 35 | session.setAttribute("randStr", randStr); 36 | //显示到图像中 37 | g.setColor(Color.BLACK); 38 | g.setFont(new Font("", Font.PLAIN, 20)); 39 | g.drawString(randStr, 10, 17); 40 | //随机产生100个干扰点 41 | for (int i = 0; i < 100; i++) { 42 | int x = rnd.nextInt(width); 43 | int y = rnd.nextInt(height); 44 | g.drawOval(x, y, 1, 1); 45 | } 46 | //输出到页面 47 | ImageIO.write(image, "jpeg", response.getOutputStream()); 48 | out.clear(); 49 | out = pageContext.pushBody(); 50 | %> 51 | 52 | 53 | -------------------------------------------------------------------------------- /web/forget.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: 007 4 | Date: 2018/11/28 5 | Time: 10:12 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 找回密码 12 | 13 | 14 | 15 | 16 |

欢迎来到教务系统

17 |
18 |
19 |
20 |
21 | 22 | 23 |
24 |
25 |
26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /web/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="dao.TeacherD" %> 2 | <%@ page import="dao.StudentD" %> 3 | <%@ page import="vo.Teacher" %> 4 | <%@ page import="vo.Student" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: 007 8 | Date: 2018/10/25 9 | Time: 18:55 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 13 | 14 | 15 | $Title$ 16 | 17 | 18 | <% 19 | TeacherD teacherD = new TeacherD(); 20 | StudentD studentD = new StudentD(); 21 | Teacher teacher = null; 22 | Student student = null; 23 | 24 | Cookie[] cookies = request.getCookies(); 25 | if (cookies != null) { 26 | for (Cookie c : cookies) { 27 | String cookieName = c.getName(); 28 | if ("name".equals(cookieName)) { 29 | String user = c.getValue(); 30 | try { 31 | teacher = teacherD.findWithId(user); 32 | student = studentD.findWithId(user); 33 | } catch (Exception e) { 34 | out.print(e); 35 | } 36 | if (teacher != null) { 37 | session.setAttribute("info", teacher); 38 | response.sendRedirect("one_page_student"); 39 | return; 40 | } 41 | else if(student != null){ 42 | session.setAttribute("info", student); 43 | response.sendRedirect("student/main.jsp"); 44 | return; 45 | } 46 | } 47 | } 48 | } 49 | response.sendRedirect("login.jsp"); 50 | %> 51 | 52 | 53 | -------------------------------------------------------------------------------- /web/login.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: 007 4 | Date: 2018/11/1 5 | Time: 20:16 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 13 | 14 | 请登陆 15 | 16 | 17 | 18 | 19 | 33 |

欢迎来到教务系统

34 |
35 |
36 | 登录 37 |  ·  38 | 注册 39 |
40 |
41 |
42 | 43 | 44 |
45 | 46 | 记住我 47 |
48 | 登录遇到问题? 49 | 50 |
51 |
52 |
53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /web/register.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: 007 4 | Date: 2018/11/1 5 | Time: 20:26 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 12 | 13 | 14 | 注册 15 | 16 | 17 | 18 | 19 | 37 |

欢迎来到教务系统

38 |
39 |
40 | 登录 41 |  ·  42 | 注册 43 |
44 |
45 |
46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 |
54 |
55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /web/resources/css/default.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | background: #202020; 4 | font-size: 12pt; 5 | font-weight: 200; 6 | color: #444444; 7 | } 8 | 9 | h1 10 | { 11 | font-weight: 400; 12 | color: #FFF; 13 | } 14 | 15 | ul 16 | { 17 | padding: 0; 18 | list-style: none; 19 | } 20 | 21 | a 22 | { 23 | color: #2980b9; 24 | } 25 | 26 | a:hover 27 | { 28 | text-decoration: none; 29 | } 30 | 31 | .container 32 | { 33 | overflow: hidden; 34 | margin: 40px auto; 35 | width: 1200px; 36 | } 37 | 38 | /*********************************************************************************/ 39 | /* Header */ 40 | /*********************************************************************************/ 41 | 42 | #header 43 | { 44 | position: relative; 45 | float: left; 46 | width: 300px; 47 | padding: 3em 0 1em; 48 | } 49 | 50 | /*********************************************************************************/ 51 | /* Logo */ 52 | /*********************************************************************************/ 53 | 54 | #logo 55 | { 56 | text-align: center; 57 | margin-top: 1em; 58 | margin-bottom: 4em; 59 | } 60 | 61 | #logo img 62 | { 63 | width: 140px; 64 | height: 140px; 65 | display: inline-block; 66 | margin-bottom: 1em; 67 | border-radius: 50%; 68 | } 69 | 70 | #logo h1 71 | { 72 | display: block; 73 | } 74 | 75 | /*********************************************************************************/ 76 | /* Menu */ 77 | /*********************************************************************************/ 78 | 79 | #menu li 80 | { 81 | border-top: 1px solid rgba(255,255,255,0.08); 82 | } 83 | 84 | #menu li a 85 | { 86 | display: block; 87 | padding: 2em 1.5em; 88 | text-align: center; 89 | text-decoration: none; 90 | text-transform: uppercase; 91 | font-weight: 700; 92 | color: rgba(255,255,255,0.5); 93 | } 94 | 95 | #menu .current_page_item a 96 | { 97 | background: #2980b9; 98 | color: rgba(255,255,255,1); 99 | } 100 | 101 | /*********************************************************************************/ 102 | /* Page */ 103 | /*********************************************************************************/ 104 | 105 | #page 106 | { 107 | background: #2a2a2a; 108 | } 109 | 110 | /*********************************************************************************/ 111 | /* Main */ 112 | /*********************************************************************************/ 113 | 114 | #main 115 | { 116 | height: 675px; 117 | overflow: hidden; 118 | float: right; 119 | width: 800px; 120 | padding: 2em 50px 1em 50px; 121 | background: #f9f9f9; 122 | border-top: 6px solid #2980b9; 123 | text-align: center; 124 | } 125 | 126 | .top{ 127 | width: 800px; 128 | } 129 | 130 | .table{ 131 | margin-top: 110px; 132 | height: 433px; 133 | } 134 | 135 | .btn-add{ 136 | width: 100px; 137 | height: 38px; 138 | float: left; 139 | margin-top: 30px; 140 | } 141 | 142 | .find{ 143 | float: right; 144 | margin-top: 30px; 145 | } 146 | 147 | #find-text{ 148 | width: 250px; 149 | height: 30px; 150 | } 151 | 152 | .find-btn{ 153 | height: 30px; 154 | } 155 | 156 | .table-input{ 157 | width: 40px; 158 | text-align: center; 159 | border-top: none; 160 | border-left: none; 161 | border-right: none; 162 | border-bottom-color: #e6e6e6; 163 | background: transparent; 164 | } 165 | 166 | .update-btn{ 167 | font-weight: 100; 168 | font-size: 16px; 169 | color: #2980b9; 170 | cursor:pointer; 171 | border:none; 172 | background:transparent; 173 | text-decoration:underline 174 | } 175 | 176 | .update-btn:hover{ 177 | text-decoration: none; 178 | } 179 | 180 | .personalImg{ 181 | width: 200px; 182 | height: 200px; 183 | margin-bottom: 5px; 184 | } 185 | 186 | .info{ 187 | margin-top: 20px; 188 | } 189 | 190 | .personalForm{ 191 | margin-top: 20px; 192 | } 193 | 194 | .personalInput{ 195 | height: 35px; 196 | margin-bottom: 10px; 197 | background: transparent; 198 | border-top: none; 199 | border-left: none; 200 | border-right: none; 201 | } 202 | 203 | #index{ 204 | margin-top: 20px; 205 | } -------------------------------------------------------------------------------- /web/resources/css/forget.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #f1f1f1; 3 | } 4 | 5 | 6 | .main{ 7 | width: 600px; 8 | height: 300px; 9 | position: absolute; 10 | left: 50%; 11 | top: 50%; 12 | margin: -150px 0 0 -300px; 13 | padding: 100px; 14 | background-color: white; 15 | border-radius:10px ; 16 | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 17 | } -------------------------------------------------------------------------------- /web/resources/css/jquery-ui-1.10.4.custom.min.css: -------------------------------------------------------------------------------- 1 | /*! jQuery UI - v1.10.4 - 2018-12-12 2 | * http://jqueryui.com 3 | * Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css 4 | * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=highlight_soft&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=glass&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=glass&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px 5 | * Copyright jQuery Foundation and other contributors; Licensed MIT */ 6 | 7 | .ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{min-height:0}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;min-height:0}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto}.ui-autocomplete{position:absolute;top:0;left:0;cursor:default}.ui-button{display:inline-block;position:relative;padding:0;line-height:normal;margin-right:.1em;cursor:pointer;vertical-align:middle;text-align:center;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:normal}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}input.ui-button::-moz-focus-inner,button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-dialog{overflow:hidden;position:absolute;top:0;left:0;padding:.2em;outline:0}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 0;white-space:nowrap;width:90%;overflow:hidden;text-overflow:ellipsis}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:20px;margin:-10px 0 0 0;padding:1px;height:20px}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin-top:.5em;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:12px;height:12px;right:-5px;bottom:-5px;background-position:16px 16px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;width:100%;list-style-image:url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;min-height:0;font-weight:normal}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px}.ui-menu .ui-state-disabled{font-weight:normal;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-progressbar .ui-progressbar-overlay{background:url("images/animated-overlay.gif");height:100%;filter:alpha(opacity=25);opacity:0.25}.ui-progressbar-indeterminate .ui-progressbar-value{background-image:none}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;color:inherit;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom-width:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav .ui-tabs-anchor{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-state-disabled .ui-tabs-anchor,.ui-tabs .ui-tabs-nav li.ui-tabs-loading .ui-tabs-anchor{cursor:text}.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active .ui-tabs-anchor{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url("images/ui-bg_highlight-soft_75_cccccc_1x100.png") 50% 50% repeat-x;color:#222;font-weight:bold}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url("images/ui-bg_glass_75_e6e6e6_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url("images/ui-bg_glass_75_dadada_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url("images/ui-bg_glass_65_ffffff_1x400.png") 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url("images/ui-bg_glass_55_fbf9ee_1x400.png") 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url("images/ui-bg_glass_95_fef1ec_1x400.png") 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content .ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.ui-widget-header .ui-icon{background-image:url("images/ui-icons_222222_256x240.png")}.ui-state-default .ui-icon{background-image:url("images/ui-icons_888888_256x240.png")}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url("images/ui-icons_454545_256x240.png")}.ui-state-active .ui-icon{background-image:url("images/ui-icons_454545_256x240.png")}.ui-state-highlight .ui-icon{background-image:url("images/ui-icons_2e83ff_256x240.png")}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url("images/ui-icons_cd0a0a_256x240.png")}.ui-icon-blank{background-position:16px 16px}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px} -------------------------------------------------------------------------------- /web/resources/css/login.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #f1f1f1; 3 | } 4 | 5 | 6 | .main{ 7 | width: 400px; 8 | height: 450px; 9 | position: absolute; 10 | left: 50%; 11 | top: 50%; 12 | margin: -250px 0 0 -200px; 13 | padding: 50px; 14 | background-color: white; 15 | border-radius:10px ; 16 | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 17 | } 18 | 19 | .title{ 20 | padding-top: 25px; 21 | padding-bottom: 40px; 22 | text-align: center; 23 | } 24 | 25 | .title a{ 26 | padding: 10px; 27 | color: #b19696; 28 | font-weight: 500; 29 | text-decoration: none; 30 | } 31 | 32 | #login{ 33 | font-weight: 600; 34 | color: #ea6f5a; 35 | border-bottom: 1px solid #ea6f5a; 36 | text-decoration: none; 37 | } 38 | 39 | .form-control{ 40 | height: 50px; 41 | } 42 | 43 | .user{ 44 | border-bottom: none; 45 | border-radius: 5px 5px 0 0; 46 | background:url(../img/user.png) no-repeat 5px 12px; 47 | background-size: 25px 25px; 48 | padding-left:35px; 49 | } 50 | 51 | .password{ 52 | border-radius: 0 0 5px 5px; 53 | background:url(../img/password.png) no-repeat 8px 12px; 54 | background-size: 20px 20px; 55 | padding-left:35px; 56 | } 57 | 58 | .code{ 59 | width: 200px; 60 | height: 30px; 61 | margin-top: 10px; 62 | border-radius: 5px; 63 | border: 1px solid #ced4da; 64 | padding-left: 10px; 65 | } 66 | 67 | .remember-btn{ 68 | float: left; 69 | margin: 25px 0 35px; 70 | font-size: 14px; 71 | color: #999; 72 | } 73 | .form-group .help{ 74 | float: right; 75 | position: relative; 76 | margin: 25px 0 35px; 77 | font-size: 14px; 78 | color: #999; 79 | } 80 | 81 | .btn{ 82 | margin-top: 40px; 83 | border: none; 84 | border-radius: 25px; 85 | background: #3194d0; 86 | } 87 | -------------------------------------------------------------------------------- /web/resources/css/register.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: #f1f1f1; 3 | } 4 | 5 | .main{ 6 | width: 400px; 7 | height: 500px; 8 | position: absolute; 9 | left: 50%; 10 | top: 50%; 11 | margin: -250px 0 0 -200px; 12 | padding: 50px; 13 | background-color: white; 14 | border-radius:10px ; 15 | box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 16 | } 17 | 18 | .title{ 19 | padding-top: 25px; 20 | padding-bottom: 40px; 21 | text-align: center; 22 | } 23 | 24 | .title a{ 25 | padding: 10px; 26 | color: #b19696; 27 | font-weight: 500; 28 | text-decoration: none; 29 | } 30 | 31 | #register{ 32 | font-weight: 600; 33 | color: #ea6f5a; 34 | border-bottom: 1px solid #ea6f5a; 35 | text-decoration: none; 36 | } 37 | 38 | .form-control{ 39 | height: 50px; 40 | } 41 | 42 | .email{ 43 | border-radius: 5px 5px 0 0; 44 | background:url(../img/email.png) no-repeat 5px 12px; 45 | background-size: 22px 22px; 46 | padding-left:35px; 47 | } 48 | 49 | .user{ 50 | border-top: none; 51 | border-radius: 0; 52 | background:url(../img/user.png) no-repeat 5px 12px; 53 | background-size: 25px 25px; 54 | padding-left:35px; 55 | } 56 | 57 | .password1{ 58 | border-top: none; 59 | border-radius: 0 0 5px 5px; 60 | background:url(../img/password.png) no-repeat 8px 12px; 61 | background-size: 20px 20px; 62 | padding-left:35px; 63 | } 64 | 65 | .code{ 66 | width: 200px; 67 | height: 50px; 68 | margin-top: 10px; 69 | border-radius: 5px; 70 | border: 1px solid #ced4da; 71 | padding-left: 10px; 72 | } 73 | 74 | .btn{ 75 | margin-top: 40px; 76 | border: none; 77 | border-radius: 25px; 78 | background: #42c02e; 79 | } 80 | -------------------------------------------------------------------------------- /web/resources/font/msyh.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/resources/font/msyh.ttf -------------------------------------------------------------------------------- /web/resources/img/email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/resources/img/email.png -------------------------------------------------------------------------------- /web/resources/img/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/resources/img/password.png -------------------------------------------------------------------------------- /web/resources/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/resources/img/user.png -------------------------------------------------------------------------------- /web/resources/js/popper.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (C) Federico Zivolo 2018 3 | Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 4 | */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function r(e){return 11===e?pe:10===e?se:pe||se}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1=o.clientWidth&&n>=o.clientHeight}),l=0a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),le({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=fe({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-us[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f],10),E=parseFloat(w['border'+f+'Width'],10),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},le(n,m,$(v)),le(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ge.FLIP:p=[n,i];break;case ge.CLOCKWISE:p=G(n);break;case ge.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)f(l.top)||'bottom'===n&&f(a.top)f(o.right),g=f(a.top)f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u);(m||b||y)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),y&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=fe({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=C(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottomo.right||t.top>o.bottom||t.rightwindow.devicePixelRatio||!me),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=H('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=fe({},E,e.attributes),e.styles=fe({},m,e.styles),e.arrowStyles=fe({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return j(e.instance.popper,e.styles),V(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&j(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),j(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ue}); 5 | //# sourceMappingURL=popper.min.js.map 6 | -------------------------------------------------------------------------------- /web/sendCode.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="dao.TeacherD" %> 2 | <%@ page import="dao.StudentD" %> 3 | <%@ page import="vo.Student" %> 4 | <%@ page import="vo.Teacher" %> 5 | <%@ page import="java.util.Properties" %> 6 | <%@ page import="javax.mail.Session" %> 7 | <%@ page import="javax.mail.internet.MimeMessage" %> 8 | <%@ page import="javax.mail.internet.InternetAddress" %> 9 | <%@ page import="javax.mail.Message" %> 10 | <%@ page import="java.util.Date" %> 11 | <%@ page import="javax.mail.Transport" %> 12 | <%-- 13 | Created by IntelliJ IDEA. 14 | User: 007 15 | Date: 2018/11/28 16 | Time: 19:11 17 | To change this template use File | Settings | File Templates. 18 | --%> 19 | <%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %> 20 | 21 | 22 | 23 | 验证码 24 | 25 | 26 | 27 | 28 |

欢迎来到教务系统

29 | <% 30 | String id = request.getParameter("user"); 31 | TeacherD teacherD = new TeacherD(); 32 | StudentD studentD = new StudentD(); 33 | Teacher teacher = null; 34 | Student student = null; 35 | try { 36 | teacher = teacherD.findWithId(id); 37 | student = studentD.findWithId(id); 38 | } catch (Exception e) { 39 | out.print(e); 40 | } 41 | 42 | if (teacher != null) { 43 | if(teacher.getEmail() == null){ 44 | %> 45 | 48 | <% 49 | }else { 50 | int x = (int) (1000 + Math.random() * (9999 - 1000 + 1)); 51 | String toMail = teacher.getEmail(); 52 | String title = "验证码"; 53 | String content = Integer.toString(x); 54 | 55 | try { 56 | Properties prop = new Properties(); 57 | prop.put("mail.smtp.auth", true); 58 | Session s = Session.getInstance(prop); 59 | 60 | MimeMessage message = new MimeMessage(s); 61 | message.setFrom(new InternetAddress("434935656@qq.com")); 62 | message.setRecipient(Message.RecipientType.TO, new InternetAddress(toMail)); 63 | 64 | message.setSubject(title); 65 | message.setContent(content, "text/plain;charset=utf-8"); 66 | message.setSentDate(new Date()); 67 | message.saveChanges(); 68 | 69 | Transport transport = s.getTransport("smtp"); 70 | transport.connect("smtp.qq.com", "434935656@qq.com", "ylwaxdtbeogbcacc"); 71 | transport.sendMessage(message, message.getAllRecipients()); 72 | transport.close(); 73 | session.setAttribute("reset", content); 74 | %> 75 | 76 |
77 |
78 |
79 |
80 | 81 | 82 | 83 |
84 |
85 |
86 | <% 87 | } catch (Exception e) { 88 | out.print(e); 89 | } 90 | } 91 | 92 | } else if (student != null) { 93 | if (student.getEmail() == null) { 94 | %> 95 | 98 | <% 99 | } else { 100 | int x = (int) (1000 + Math.random() * (9999 - 1000 + 1)); 101 | String toMail = student.getEmail(); 102 | String title = "验证码"; 103 | String content = Integer.toString(x); 104 | 105 | try { 106 | Properties prop = new Properties(); 107 | prop.put("mail.smtp.auth", true); 108 | Session s = Session.getInstance(prop); 109 | 110 | MimeMessage message = new MimeMessage(s); 111 | message.setFrom(new InternetAddress("434935656@qq.com")); 112 | message.setRecipient(Message.RecipientType.TO, new InternetAddress(toMail)); 113 | 114 | message.setSubject(title); 115 | message.setContent(content, "text/plain;charset=utf-8"); 116 | message.setSentDate(new Date()); 117 | message.saveChanges(); 118 | 119 | Transport transport = s.getTransport("smtp"); 120 | transport.connect("smtp.qq.com", "434935656@qq.com", "ylwaxdtbeogbcacc"); 121 | transport.sendMessage(message, message.getAllRecipients()); 122 | transport.close(); 123 | session.setAttribute("reset", content); 124 | %> 125 | 126 |
127 |
128 |
129 |
130 | 131 | 132 | 133 | 134 |
135 |
136 |
137 | <% 138 | } catch (Exception e) { 139 | out.print(e); 140 | } 141 | } 142 | }else { 143 | %> 144 | 147 | <% 148 | } 149 | %> 150 | 151 | 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /web/student/main.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="dao.StudentD" %> 2 | <%@ page import="vo.Student" %> 3 | <%@ page import="dao.ScoreD" %> 4 | <%@ page import="vo.Score" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: 007 8 | Date: 2018/11/1 9 | Time: 20:11 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 13 | 14 | 15 | 16 | main 17 | 18 | 19 | 20 | <% 21 | Student student = (Student) session.getAttribute("info"); 22 | %> 23 |
24 | 37 |
38 |
39 |

成绩信息

40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | <% 54 | try { 55 | ScoreD scoD = new ScoreD(); 56 | StudentD stuD = new StudentD(); 57 | Score stu = scoD.findWithId(student.getId()); 58 | String name = stuD.findWithId(student.getId()).getName(); 59 | String major = stuD.findWithId(student.getId()).getMajor(); 60 | %> 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | <% 71 | } 72 | catch (Exception e){ 73 | out.print(e); 74 | } 75 | %> 76 |
学号姓名专业数据库AndroidJavaWeb操作
<%=stu.getId()%><%=name%><%=major%><%=stu.getDatabase()%><%=stu.getAndroid()%><%=stu.getJsp()%>PDF
77 |
78 |
79 |
80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /web/student/pdf.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.itextpdf.text.Document" %> 2 | <%@ page import="com.itextpdf.text.pdf.PdfWriter" %> 3 | <%@ page import="com.itextpdf.text.Paragraph" %> 4 | <%@ page import="com.itextpdf.text.pdf.BaseFont" %> 5 | <%@ page import="com.itextpdf.text.Font" %> 6 | <%@ page import="com.itextpdf.text.PageSize" %> 7 | <%@ page import="com.itextpdf.text.Element" %> 8 | <%@ page import="com.itextpdf.text.pdf.PdfPTable" %> 9 | <%@ page import="com.itextpdf.text.pdf.PdfPCell" %> 10 | <%@ page import="java.io.ByteArrayOutputStream" %> 11 | <%@ page import="java.io.DataOutput" %> 12 | <%@ page import="java.io.DataOutputStream" %> 13 | <%-- 14 | Created by IntelliJ IDEA. 15 | User: 007 16 | Date: 2018/11/25 17 | Time: 20:06 18 | To change this template use File | Settings | File Templates. 19 | --%> 20 | <%@ page language="java" pageEncoding="UTF-8" %> 21 | 22 | 23 | Title 24 | 25 | 26 | <% 27 | // 制作PDF文件, 通过流的形式输送到客户端 28 | response.setContentType("application/pdf"); 29 | response.addHeader("Content-Disposition", "attachment;filename=report.pdf"); 30 | 31 | String id = request.getParameter("id"); 32 | String name = request.getParameter("name"); 33 | String major = request.getParameter("major"); 34 | String database = request.getParameter("database"); 35 | String android = request.getParameter("android"); 36 | String jsp = request.getParameter("jsp"); 37 | 38 | try { 39 | Document doc = new Document(PageSize.A4); 40 | ByteArrayOutputStream buffer = new ByteArrayOutputStream(); 41 | PdfWriter.getInstance(doc, buffer); 42 | BaseFont bf = BaseFont.createFont(request.getSession().getServletContext().getRealPath("/")+"resources/font/msyh.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED); 43 | Font font = new Font(bf, 15, Font.NORMAL); 44 | 45 | doc.open(); 46 | Paragraph paragraph = new Paragraph("成绩单", font); 47 | paragraph.setAlignment(Element.ALIGN_CENTER); 48 | doc.add(paragraph); 49 | doc.add(new Paragraph(" ")); 50 | 51 | PdfPTable table = new PdfPTable(6); 52 | table.setWidthPercentage(100); 53 | table.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER); 54 | table.getDefaultCell().setVerticalAlignment(Element.ALIGN_CENTER); 55 | 56 | PdfPCell cell; 57 | cell = new PdfPCell(new Paragraph("学号", font)); 58 | cell.setRowspan(2); 59 | cell.setHorizontalAlignment(Element.ALIGN_CENTER); 60 | cell.setVerticalAlignment(Element.ALIGN_CENTER); 61 | table.addCell(cell); 62 | 63 | cell = new PdfPCell(new Paragraph("姓名", font)); 64 | cell.setRowspan(2); 65 | cell.setHorizontalAlignment(Element.ALIGN_CENTER); 66 | table.addCell(cell); 67 | 68 | cell = new PdfPCell(new Paragraph("专业", font)); 69 | cell.setRowspan(2); 70 | cell.setHorizontalAlignment(Element.ALIGN_CENTER); 71 | table.addCell(cell); 72 | 73 | cell = new PdfPCell(new Paragraph("成绩", font)); 74 | cell.setColspan(3); 75 | cell.setHorizontalAlignment(Element.ALIGN_CENTER); 76 | table.addCell(cell); 77 | 78 | table.addCell(new Paragraph("数据库", font)); 79 | table.addCell("Android"); 80 | table.addCell("JavaWeb"); 81 | table.addCell(id); 82 | table.addCell(new Paragraph(name, font)); 83 | table.addCell(new Paragraph(major, font)); 84 | table.addCell(database); 85 | table.addCell(android); 86 | table.addCell(jsp); 87 | doc.add(table); 88 | doc.close(); 89 | 90 | DataOutput output = new DataOutputStream(response.getOutputStream()); 91 | byte[] bytes = buffer.toByteArray(); 92 | response.setContentLength(bytes.length); 93 | for( int i = 0; i < bytes.length; i++ ) { 94 | output.writeByte( bytes[i] ); 95 | } 96 | } 97 | catch (Exception e){ 98 | out.print(e); 99 | } 100 | %> 101 | 102 | 103 | -------------------------------------------------------------------------------- /web/student/personal.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="vo.Student" %> 2 | <%-- 3 | Created by IntelliJ IDEA. 4 | User: 007 5 | Date: 2018/11/1 6 | Time: 20:11 7 | To change this template use File | Settings | File Templates. 8 | --%> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 13 | main 14 | 15 | 16 | 17 | 18 | 19 | 20 | <% 21 | Student student = (Student) session.getAttribute("info"); 22 | %> 23 |
24 | 37 |
38 |
39 |

个人信息

40 |
41 |
42 |
43 |
44 |
45 | 46 | 47 | 48 |
49 | 50 |
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 |
学号<%=student.getId()%>
姓名<%=student.getName()%>
性别<%=student.getSex()%>
专业<%=student.getMajor()%>
69 |
70 | 71 |
72 |
73 |
74 | 75 | <%--修改密码对话框--%> 76 |
77 |
78 | 79 | 邮箱:   

80 | 新密码:
81 |
82 | 85 | 87 |
88 |
89 | 90 | 102 | 103 | 108 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /web/student/resetPassword.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: 007 4 | Date: 2018/11/28 5 | Time: 19:56 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 重置密码 12 | 13 | 14 | 15 | 16 |

欢迎来到教务系统

17 | <% 18 | String id = request.getParameter("id"); 19 | String email = request.getParameter("email"); 20 | String reset = request.getParameter("reset"); 21 | String code = (String) session.getAttribute("reset"); 22 | if (!reset.equals(code)){ 23 | %> 24 | 25 | <% 26 | } 27 | else { 28 | %> 29 |
30 |
31 |
32 |
33 | 34 | 35 | 36 | 37 |
38 |
39 |
40 | <% 41 | } 42 | %> 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /web/teacher/main.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="java.util.ArrayList" %> 2 | <%@ page import="vo.Student" %> 3 | <%@ page import="vo.Teacher" %> 4 | <%-- 5 | Created by IntelliJ IDEA. 6 | User: 007 7 | Date: 2018/11/1 8 | Time: 20:11 9 | To change this template use File | Settings | File Templates. 10 | --%> 11 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 12 | 13 | 14 | 15 | 16 | 17 | 18 | main 19 | 20 | 21 | 22 | <% 23 | Teacher teacher = (Teacher) session.getAttribute("info"); 24 | ArrayList stus = (ArrayList) session.getAttribute("onePageStudent"); 25 | int sumIndex = (int) session.getAttribute("sumIndex"); 26 | %> 27 |
28 | 43 |
44 |
45 |

学生信息管理

46 |
47 | 48 |
49 |
50 | 51 | 52 |
53 |
54 |
55 |
56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | <% 66 | for (Student stu : stus) { 67 | %> 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 80 | 81 | 82 | <% 83 | } 84 | %> 85 |
学号姓名性别入学日期专业操作
<%=stu.getId()%><%=stu.getSchool_date()%> >删除  查看成绩 79 |
86 |
87 | <% 88 | if (sumIndex > 1){ 89 | %> 90 |
91 | 首页 92 | <% 93 | for (int i=1; i<=sumIndex; i++){ 94 | %> 95 | 第<%=i%>页 96 | <% 97 | } 98 | %> 99 | 尾页 100 |
101 | <% 102 | } 103 | %> 104 |
105 |
106 | 107 | <%--添加学生信息对话框--%> 108 |
109 |
110 | 学号:
111 | 姓名:
112 | 性别:
113 | 专业:
114 | 入学日期: 115 |
116 | 119 | 121 |
122 |
123 | 124 | 129 | 130 | 142 | 143 | 144 | 145 | -------------------------------------------------------------------------------- /web/teacher/personal.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="vo.Teacher" %> 2 | <%-- 3 | Created by IntelliJ IDEA. 4 | User: 007 5 | Date: 2018/11/1 6 | Time: 20:11 7 | To change this template use File | Settings | File Templates. 8 | --%> 9 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 10 | 11 | 12 | 13 | main 14 | 15 | 16 | 17 | <% 18 | Teacher teacher = (Teacher) session.getAttribute("info"); 19 | %> 20 |
21 | 36 |
37 |
38 |

个人信息

39 |
40 |
41 |
42 |
43 |
44 | 45 | 46 | 47 |
48 |
49 | 50 | 姓名:
51 | 性别:
52 | 邮箱:
53 | 密码:
54 | 55 |
56 |
57 |
58 |
59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /web/teacher/resetPassword.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: 007 4 | Date: 2018/11/28 5 | Time: 19:56 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 重置密码 12 | 13 | 14 | 15 | 16 |

欢迎来到教务系统

17 | <% 18 | String id = request.getParameter("id"); 19 | String reset = request.getParameter("reset"); 20 | String code = (String) session.getAttribute("reset"); 21 | if (!reset.equals(code)){ 22 | %> 23 | 24 | <% 25 | } else { 26 | %> 27 |
28 |
29 |
30 |
31 | 32 | 33 | 34 |
35 |
36 |
37 | <% 38 | } 39 | %> 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /web/teacher/score.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="vo.Teacher" %> 2 | <%@ page import="vo.Score" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%@ page import="dao.StudentD" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: 007 8 | Date: 2018/11/1 9 | Time: 20:11 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 13 | 14 | 15 | 16 | main 17 | 18 | 19 | 20 | <% 21 | Teacher teacher = (Teacher) session.getAttribute("info"); 22 | ArrayList stus = (ArrayList) session.getAttribute("onePageScore"); 23 | int sumIndex = (int) session.getAttribute("sumScoreIndex"); 24 | %> 25 |
26 | 41 |
42 |
43 |

学生成绩管理

44 |
45 |
46 |
47 | 48 | 49 |
50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | <% 60 | try { 61 | StudentD stuD = new StudentD(); 62 | for (Score stu : stus) { 63 | String name = stuD.findWithId(stu.getId()).getName(); 64 | String major = stuD.findWithId(stu.getId()).getMajor(); 65 | %> 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | <% 76 | } 77 | } catch (Exception e) { 78 | e.printStackTrace(); 79 | } 80 | %> 81 |
学号姓名专业数据库AndroidJavaWeb
<%=stu.getId()%><%=name%><%=major%>
82 | 83 |
84 |
85 | 86 | <% 87 | if (sumIndex > 1){ 88 | %> 89 |
90 | 首页 91 | <% 92 | for (int i = 1; i <= sumIndex; i++) { 93 | %> 94 | 第<%=i%>页 95 | <% 96 | } 97 | %> 98 | 尾页 99 |
100 | <% 101 | } 102 | %> 103 |
104 |
105 | 106 | 107 | 108 | -------------------------------------------------------------------------------- /web/teacher/score_excel.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="dao.ScoreD" %> 2 | <%@ page import="vo.Score" %> 3 | <%@ page import="java.util.ArrayList" %> 4 | <%@ page import="dao.StudentD" %> 5 | <%-- 6 | Created by IntelliJ IDEA. 7 | User: 007 8 | Date: 2018/11/1 9 | Time: 20:11 10 | To change this template use File | Settings | File Templates. 11 | --%> 12 | <%@ page contentType="application/msexcel" language="java" pageEncoding="UTF-8" %> 13 | 14 | 15 | 16 | main 17 | 18 | 19 | <% 20 | out.clearBuffer(); 21 | response.setHeader("Content-Disposition", "attachment;filename=excel.xls"); 22 | %> 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | <% 33 | try { 34 | ScoreD scoD = new ScoreD(); 35 | StudentD stuD = new StudentD(); 36 | ArrayList stus = scoD.getOnePage(1, 10000); 37 | for (Score stu : stus) { 38 | String name = stuD.findWithId(stu.getId()).getName(); 39 | String major = stuD.findWithId(stu.getId()).getMajor(); 40 | %> 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | <% 50 | } 51 | } catch (Exception e) { 52 | e.printStackTrace(); 53 | } 54 | %> 55 |
学号姓名专业数据库AndroidJavaWeb
<%=stu.getId()%><%=name%><%=major%><%=stu.getDatabase()%><%=stu.getAndroid()%><%=stu.getJsp()%>
56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /web/userImg/20162430634.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/userImg/20162430634.jpeg -------------------------------------------------------------------------------- /web/userImg/20162430635.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/userImg/20162430635.jpeg -------------------------------------------------------------------------------- /web/userImg/zzu.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ikunjee/StudentManager/6dfe17de0059278bd4f52daaef6787fb9260ee3e/web/userImg/zzu.jpeg --------------------------------------------------------------------------------