forked from p6jzelshw/ssm
Compare commits
164 Commits
Author | SHA1 | Date |
---|---|---|
|
fd9f67070b | 2 years ago |
|
da873d6dc8 | 2 years ago |
|
5ae19810b7 | 2 years ago |
|
74bc6c9ca9 | 2 years ago |
|
a317b79e9b | 2 years ago |
|
8935100939 | 2 years ago |
|
c0ed856d2b | 2 years ago |
|
8669b92466 | 2 years ago |
|
e1de00389b | 2 years ago |
|
d7c43d2d12 | 2 years ago |
|
e35562265d | 2 years ago |
|
015b5285b5 | 2 years ago |
|
4b56096597 | 2 years ago |
|
1e301d6120 | 2 years ago |
|
fbc53c5ad9 | 2 years ago |
|
c798323edf | 2 years ago |
|
5e5a219142 | 2 years ago |
|
30d0059644 | 2 years ago |
|
870f5b6a97 | 2 years ago |
|
9b8a96f3fb | 2 years ago |
|
604e689f9e | 2 years ago |
|
80845ef914 | 2 years ago |
|
bfe049d9bc | 2 years ago |
|
5f48f74b1f | 2 years ago |
|
e068ac10b6 | 2 years ago |
|
882b2076fd | 2 years ago |
|
c9aec8fde0 | 2 years ago |
|
a3d0446867 | 2 years ago |
|
7617bec2ba | 2 years ago |
|
527881174a | 2 years ago |
|
8e2fd9fc01 | 2 years ago |
|
98f30a53c6 | 2 years ago |
|
a6ce234325 | 2 years ago |
|
177ba01bcc | 2 years ago |
|
861e06d201 | 2 years ago |
|
451d4d6859 | 2 years ago |
|
3ad04f1dc2 | 2 years ago |
|
ddf9d52338 | 2 years ago |
|
2d1268cb65 | 2 years ago |
|
7545c2e729 | 2 years ago |
|
ad22bfdb45 | 2 years ago |
|
194b14ff77 | 2 years ago |
|
5d68e38f74 | 2 years ago |
|
6d413bf11f | 2 years ago |
|
150b644554 | 2 years ago |
|
7cef6db603 | 2 years ago |
|
a21a6140ea | 2 years ago |
|
dd2c86cc4c | 2 years ago |
|
ca5b156999 | 2 years ago |
|
a8ce5be345 | 2 years ago |
|
f18246a5c3 | 2 years ago |
|
6073367e56 | 2 years ago |
|
82d93fb71f | 2 years ago |
|
c13338ef8f | 2 years ago |
|
46146af99d | 2 years ago |
|
d7f3472a5b | 2 years ago |
|
deeb1878ad | 2 years ago |
|
e1eb1819bc | 2 years ago |
|
61444d4467 | 2 years ago |
|
2af4a1dfc7 | 2 years ago |
|
09ac5fe1a4 | 2 years ago |
|
7f7bf15a5d | 2 years ago |
|
447484d200 | 2 years ago |
|
6fd0b648e3 | 2 years ago |
|
84c81ac62e | 2 years ago |
|
4f857a5b1b | 2 years ago |
|
e006aeeb5e | 2 years ago |
|
ed59542143 | 2 years ago |
|
18bf840718 | 2 years ago |
|
ebda3b01b5 | 2 years ago |
|
42046798d4 | 2 years ago |
|
b217d89930 | 2 years ago |
|
d9d97a8c06 | 2 years ago |
|
47d62f54b2 | 2 years ago |
|
1ef40c9173 | 2 years ago |
|
e90be3da0c | 2 years ago |
|
6bf745eebe | 2 years ago |
|
1e16b33d9e | 2 years ago |
|
f71557d9bf | 2 years ago |
|
bda6121e7d | 2 years ago |
|
d26f709491 | 2 years ago |
|
d84d9c9edf | 2 years ago |
|
f19223d3a7 | 2 years ago |
|
8094b9cad0 | 2 years ago |
|
4475105c33 | 2 years ago |
|
4601bafb9b | 2 years ago |
|
6871ad975e | 2 years ago |
|
b0b7d2e655 | 2 years ago |
|
3320d75889 | 2 years ago |
|
aa231b53b5 | 2 years ago |
|
7c848af228 | 2 years ago |
|
98b5533dd2 | 2 years ago |
|
b422f5a086 | 2 years ago |
|
25cc78eac7 | 2 years ago |
|
7c39f1b32f | 2 years ago |
|
1ad40817da | 2 years ago |
|
54d61cd198 | 2 years ago |
|
69839a0114 | 2 years ago |
|
bad7757813 | 2 years ago |
|
36864500fc | 2 years ago |
|
1b824080bd | 2 years ago |
|
7df4f88288 | 2 years ago |
|
5a9ac5d615 | 2 years ago |
|
bedf7731f3 | 2 years ago |
|
463a696d2e | 2 years ago |
|
603078a78d | 2 years ago |
|
ada60fcbe6 | 2 years ago |
|
b4dd022647 | 2 years ago |
|
f673a7ed08 | 2 years ago |
|
61902b39c9 | 2 years ago |
|
a312687b54 | 2 years ago |
|
8a7bd97c3b | 2 years ago |
|
9b3ebe39ca | 2 years ago |
|
64dfb84bcc | 2 years ago |
|
d07a34b4cf | 2 years ago |
|
3d18980b5a | 2 years ago |
|
8900f3c8ef | 2 years ago |
|
701649899e | 2 years ago |
|
1e619d992f | 2 years ago |
|
0e3fc7e10e | 2 years ago |
|
2eb228d6a1 | 2 years ago |
|
f450deda9a | 2 years ago |
|
d73b053dd2 | 2 years ago |
|
35e00244f4 | 2 years ago |
|
af9bb9688c | 2 years ago |
|
ef0358356c | 2 years ago |
|
3c3f593597 | 2 years ago |
|
a998a509b4 | 2 years ago |
|
d0ec9c842b | 2 years ago |
|
087fb3cb55 | 2 years ago |
|
ac40c73bf3 | 2 years ago |
|
2277cd2f92 | 2 years ago |
|
8af460abe8 | 2 years ago |
|
ad566416e0 | 2 years ago |
|
a0a57648d6 | 2 years ago |
|
9cd1bb96dc | 2 years ago |
|
7058d07098 | 2 years ago |
|
42a1270293 | 2 years ago |
|
d69d432f17 | 2 years ago |
|
b5eaf42dfb | 2 years ago |
|
58c4ea43d4 | 2 years ago |
|
8bc089747f | 2 years ago |
|
f4b37c21d1 | 2 years ago |
|
78ed4ba2a1 | 2 years ago |
|
a1061c0c49 | 2 years ago |
|
8fa38c2820 | 2 years ago |
|
392980ec14 | 2 years ago |
|
91ef98599f | 2 years ago |
|
f8152d43c6 | 2 years ago |
|
1d7caa3d98 | 2 years ago |
|
4b8ac75c91 | 2 years ago |
|
f24297423c | 2 years ago |
|
ff331160a9 | 2 years ago |
|
8830cc3e5b | 2 years ago |
|
633ca3277b | 2 years ago |
|
4e804ea5a0 | 2 years ago |
|
b3999ad1bf | 2 years ago |
|
b9667c7616 | 2 years ago |
|
2f092f42c8 | 2 years ago |
|
423fdce76b | 2 years ago |
|
2b4ee37358 | 2 years ago |
|
c6f4175051 | 2 years ago |
|
de8c47c3b7 | 2 years ago |
|
241513803c | 2 years ago |
@ -0,0 +1,234 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ArtifactsWorkspaceSettings">
|
||||
<artifacts-to-build>
|
||||
<artifact name="SSM_EMP-main:war exploded" />
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="d4c8d302-ed83-4148-bf82-c20e2454fe61" name="Default Changelist" comment="" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileTemplateManagerImpl">
|
||||
<option name="RECENT_TEMPLATES">
|
||||
<list>
|
||||
<option value="JUnit5 Test Class" />
|
||||
<option value="Jsp File" />
|
||||
<option value="Interface" />
|
||||
<option value="Class" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="LogFilters">
|
||||
<option name="FILTER_ERRORS" value="false" />
|
||||
<option name="FILTER_WARNINGS" value="false" />
|
||||
<option name="FILTER_INFO" value="true" />
|
||||
<option name="FILTER_DEBUG" value="true" />
|
||||
<option name="CUSTOM_FILTER" />
|
||||
</component>
|
||||
<component name="MarkdownSettingsMigration">
|
||||
<option name="stateVersion" value="1" />
|
||||
</component>
|
||||
<component name="MavenImportPreferences">
|
||||
<option name="generalSettings">
|
||||
<MavenGeneralSettings>
|
||||
<option name="localRepository" value="D:\Java\maven\downloadKits" />
|
||||
<option name="mavenHome" value="$USER_HOME$/maven/apache-maven-3.5.0" />
|
||||
<option name="userSettingsFile" value="D:\Java\maven\apache-maven-3.5.0\conf\settings.xml" />
|
||||
</MavenGeneralSettings>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectId" id="1t7g35BHqGyslAjAZX4jpL3fgRG" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"last_opened_file_path": "C:/Users/耿春莹/Desktop/SSM_EMP-main/target/SSM_EMP-1.0-SNAPSHOT/WEB-INF/lib"
|
||||
}
|
||||
}]]></component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="C:\Users\耿春莹\Desktop\SSM_EMP-main\target\SSM_EMP-1.0-SNAPSHOT\WEB-INF\lib" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\webapp\WEB-INF\pages" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\resources\mapper" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\resources" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\resources\spring" />
|
||||
</key>
|
||||
<key name="CreateTestDialog.Recents.Supers">
|
||||
<recent name="" />
|
||||
</key>
|
||||
<key name="MoveFile.RECENT_KEYS">
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\resources\mapper" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\webapp\WEB-INF\pages" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\webapp" />
|
||||
<recent name="D:\Java\JavaEE\SSM_EMP\src\main\java\com\dao" />
|
||||
</key>
|
||||
<key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
|
||||
<recent name="" />
|
||||
</key>
|
||||
<key name="CreateTestDialog.RecentsKey">
|
||||
<recent name="com.dao" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="excludedTypes">
|
||||
<set>
|
||||
<option value="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager">
|
||||
<configuration name="Tomcat 8.5.27" type="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" factoryName="Local" APPLICATION_SERVER_NAME="Tomcat 8.5.27" ALTERNATIVE_JRE_ENABLED="true" ALTERNATIVE_JRE_PATH="1.8" nameIsGenerated="true">
|
||||
<option name="BROWSER_ID" value="37cae5b9-e8b2-4949-9172-aafa37fbc09c" />
|
||||
<option name="UPDATING_POLICY" value="restart-server" />
|
||||
<deployment>
|
||||
<artifact name="SSM_EMP-main:war exploded">
|
||||
<settings>
|
||||
<option name="CONTEXT_PATH" value="/SSM_EMP_main_war_exploded" />
|
||||
</settings>
|
||||
</artifact>
|
||||
</deployment>
|
||||
<server-settings>
|
||||
<option name="BASE_DIRECTORY_NAME" value="5eb4bef8-ddb3-4475-82f9-c7ab7f3c22e3" />
|
||||
<option name="HTTP_PORT" value="8088" />
|
||||
</server-settings>
|
||||
<predefined_log_file enabled="true" id="Tomcat" />
|
||||
<predefined_log_file enabled="true" id="Tomcat Catalina" />
|
||||
<predefined_log_file id="Tomcat Manager" />
|
||||
<predefined_log_file id="Tomcat Host Manager" />
|
||||
<predefined_log_file id="Tomcat Localhost Access" />
|
||||
<RunnerSettings RunnerId="Debug">
|
||||
<option name="DEBUG_PORT" value="65407" />
|
||||
</RunnerSettings>
|
||||
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Cover">
|
||||
<option name="USE_ENV_VARIABLES" value="true" />
|
||||
<STARTUP>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</STARTUP>
|
||||
<SHUTDOWN>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</SHUTDOWN>
|
||||
</ConfigurationWrapper>
|
||||
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Debug">
|
||||
<option name="USE_ENV_VARIABLES" value="true" />
|
||||
<STARTUP>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</STARTUP>
|
||||
<SHUTDOWN>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</SHUTDOWN>
|
||||
</ConfigurationWrapper>
|
||||
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Profile">
|
||||
<option name="USE_ENV_VARIABLES" value="true" />
|
||||
<STARTUP>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</STARTUP>
|
||||
<SHUTDOWN>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</SHUTDOWN>
|
||||
</ConfigurationWrapper>
|
||||
<ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Run">
|
||||
<option name="USE_ENV_VARIABLES" value="true" />
|
||||
<STARTUP>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</STARTUP>
|
||||
<SHUTDOWN>
|
||||
<option name="USE_DEFAULT" value="true" />
|
||||
<option name="SCRIPT" value="" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="" />
|
||||
</SHUTDOWN>
|
||||
</ConfigurationWrapper>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
<option name="BuildArtifacts" enabled="true">
|
||||
<artifact name="SSM_EMP-main:war exploded" />
|
||||
</option>
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="ServiceViewManager">
|
||||
<option name="viewStates">
|
||||
<list>
|
||||
<serviceView>
|
||||
<option name="contentProportion" value="0.093643196" />
|
||||
<treeState>
|
||||
<expand />
|
||||
<select />
|
||||
</treeState>
|
||||
</serviceView>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="SpringGeneralSettings">
|
||||
<option name="allowAutoConfigurationMode" value="true" />
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="d4c8d302-ed83-4148-bf82-c20e2454fe61" name="Default Changelist" comment="" />
|
||||
<created>1622125338250</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1622125338250</updated>
|
||||
<workItem from="1622125342061" duration="15002000" />
|
||||
<workItem from="1622247506361" duration="12581000" />
|
||||
<workItem from="1622280978552" duration="8617000" />
|
||||
<workItem from="1622345066712" duration="20237000" />
|
||||
<workItem from="1622442872266" duration="11932000" />
|
||||
<workItem from="1622638258737" duration="4196000" />
|
||||
<workItem from="1622682906764" duration="95000" />
|
||||
<workItem from="1625729826683" duration="14215000" />
|
||||
<workItem from="1625752748187" duration="6423000" />
|
||||
<workItem from="1625796964053" duration="8582000" />
|
||||
<workItem from="1625808599050" duration="2355000" />
|
||||
<workItem from="1625811474075" duration="1913000" />
|
||||
<workItem from="1625814352681" duration="104000" />
|
||||
<workItem from="1625815065156" duration="34000" />
|
||||
<workItem from="1625815325858" duration="12928000" />
|
||||
<workItem from="1625910867526" duration="12426000" />
|
||||
<workItem from="1625960235071" duration="6732000" />
|
||||
<workItem from="1626067992775" duration="22528000" />
|
||||
<workItem from="1681197801365" duration="2012000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
||||
<SUITE FILE_PATH="coverage/SSM_EMP$tomcat9.ic" NAME="tomcat9 Coverage Results" MODIFIED="1622251280362" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4" />
|
@ -0,0 +1,120 @@
|
||||
package com.controller;
|
||||
|
||||
import com.entity.Department;
|
||||
import com.service.IDeptService;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Controller
|
||||
public class DepartmentController {
|
||||
@Autowired
|
||||
private IDeptService deptService;
|
||||
|
||||
@RequestMapping("/toDepartment")
|
||||
public ModelAndView toDepartment(Page page){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
List<Department> departmentList = deptService.listDept(page);
|
||||
int total = deptService.getDeptTotal();
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
mv.addObject("deptList",departmentList);
|
||||
mv.addObject("page",page);
|
||||
mv.addObject("total",total);
|
||||
mv.setViewName("department");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加部门
|
||||
* @param department 部门信息
|
||||
* @return 部门列表页面
|
||||
*/
|
||||
@RequestMapping("/addDept")
|
||||
public ModelAndView addDept(Department department){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//调用service层的方法
|
||||
deptService.addDept(department);
|
||||
//重定向到部门列表页面
|
||||
mv.setViewName("redirect:/toDepartment");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查找部门
|
||||
* @param deptName 部门名称
|
||||
* @param page 页面页数
|
||||
* @return 部门列表页面
|
||||
*/
|
||||
@RequestMapping("/searchDept")
|
||||
public ModelAndView searchDept(String deptName, Page page){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//根据部门名称查找部门信息,并进行分页显示
|
||||
List<Department> departmentList = deptService.findDeptByName(deptName, page);
|
||||
//得到总记录数
|
||||
int total = departmentList.size();
|
||||
//每页显示三条,总共显示的页数
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
//添加信息到modelview。
|
||||
mv.addObject("deptList",departmentList);
|
||||
mv.addObject("page",page);
|
||||
mv.addObject("total",total);
|
||||
//返回部门信息列表页面
|
||||
mv.setViewName("department");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转至修改部门信息页面
|
||||
* @param id 部门的id号
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toModifyDept")
|
||||
public ModelAndView toModifyDept(int id){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//找到部门信息
|
||||
Department department = deptService.findDeptById(id);
|
||||
//将该部门信息返回到页面
|
||||
mv.addObject("dept",department);
|
||||
//跳转至修改信息界面
|
||||
mv.setViewName("updateDepartment");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改部门信息
|
||||
* @param department 部门
|
||||
* @return 部门信息列表界面
|
||||
*/
|
||||
@RequestMapping("/modifyDept")
|
||||
public ModelAndView modifyDept(Department department){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//修改部门信息
|
||||
deptService.modifyDept(department);
|
||||
//重定向到部门信息列表界面
|
||||
mv.setViewName("redirect:/toDepartment");
|
||||
return mv;
|
||||
}
|
||||
@RequestMapping("/deleteDept")
|
||||
public ModelAndView deleteDept(int id){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//修改部门信息
|
||||
deptService.deleteDept(id);
|
||||
//重定向到部门信息列表界面
|
||||
mv.setViewName("redirect:/toDepartment");
|
||||
return mv;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,176 @@
|
||||
package com.controller;
|
||||
|
||||
import com.entity.Department;
|
||||
import com.entity.Employee;
|
||||
import com.service.IDeptService;
|
||||
import com.service.IEmpService;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Controller
|
||||
public class EmployeeController {
|
||||
@Autowired
|
||||
private IEmpService empService;
|
||||
@Autowired
|
||||
private IDeptService deptService;
|
||||
|
||||
/**
|
||||
* 跳转至员工列表页面
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toEmployee")
|
||||
public ModelAndView toEmployee(Page page){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//查询所有员工
|
||||
List<Employee> employeeList = empService.listEmp(page);
|
||||
//给每个员工设置部门名称
|
||||
for (Employee emp : employeeList) {
|
||||
emp.setDeptName(deptService.findDeptById(emp.getDeptId()).getDeptName());
|
||||
}
|
||||
//获取数据库中记录总数
|
||||
int total = empService.getEmpTotal();
|
||||
//页数。即:每页显示三条记录,总共展示几页
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
//将数据返回员工列表页面
|
||||
mv.addObject("empList",employeeList);
|
||||
mv.addObject("page",page);
|
||||
mv.addObject("total",total);
|
||||
mv.setViewName("employee");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据名称查找员工
|
||||
* @param page
|
||||
* @param name
|
||||
* @param email
|
||||
* @param empId
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/searchEmp")
|
||||
public ModelAndView toEmployee(Page page, String name, String email, String empId){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//根据部门名称查找部门信息,并进行分页显示
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
if(name != "" && name != null){
|
||||
map.put("name", name);
|
||||
}
|
||||
if(email != "" && email != null){
|
||||
map.put("email", email);
|
||||
}
|
||||
if(empId != "" && empId != null){
|
||||
map.put("empId", empId);
|
||||
}
|
||||
map.put("page", page);
|
||||
//得到符合条件的记录
|
||||
List<Employee> employeeList = empService.searchEmp(map);
|
||||
System.out.println(employeeList);
|
||||
//设置员工的部门名称
|
||||
for (Employee emp : employeeList) {
|
||||
emp.setDeptName(deptService.findDeptById(emp.getDeptId()).getDeptName());
|
||||
}
|
||||
//得到总记录数
|
||||
int total = employeeList.size();
|
||||
//每页显示三条,总共显示的页数
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
//将数据返回给页面
|
||||
mv.addObject("empList",employeeList);
|
||||
mv.addObject("page",page);
|
||||
mv.addObject("total",total);
|
||||
//返回部门信息列表页面
|
||||
mv.setViewName("employee");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转至添加员工页面
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toAddEmp")
|
||||
public ModelAndView toAddEmp(){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//添加信息到modelview。
|
||||
List<Department> departmentList = deptService.findAllDepartment();
|
||||
mv.addObject("deptList",departmentList);
|
||||
mv.setViewName("addEmployee");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加员工
|
||||
* @param employee
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/addEmp")
|
||||
public ModelAndView addEmp(Employee employee){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//添加员工到数据库
|
||||
empService.addEmp(employee);
|
||||
mv.setViewName("redirect:/toEmployee");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转至修改员工界面
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toModifyEmp")
|
||||
public ModelAndView toUpdateEmp(int id){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//得到员工信息
|
||||
mv.addObject("emp", empService.selectEmpById(id));
|
||||
//得到所有部门信息
|
||||
List<Department> departmentList = deptService.findAllDepartment();
|
||||
mv.addObject("deptList",departmentList);
|
||||
mv.setViewName("updateEmployee");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
* @param employee
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/modifyEmp")
|
||||
public ModelAndView modifyEmp(Employee employee){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//修改数据库中信息
|
||||
empService.modifyEmp(employee);
|
||||
List<Department> departmentList = deptService.findAllDepartment();
|
||||
mv.addObject("deptList",departmentList);
|
||||
//重定向到员工列表界面
|
||||
mv.setViewName("redirect:/toEmployee");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除员工
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/deleteEmp")
|
||||
public ModelAndView deleteEmp(int id){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//删除员工
|
||||
empService.deleteEmp(id);
|
||||
mv.setViewName("redirect:/toEmployee");
|
||||
return mv;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.controller;
|
||||
|
||||
import com.dao.ITestDao;
|
||||
import com.entity.TestEntity;
|
||||
import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Controller
|
||||
public class TestController {
|
||||
@Autowired
|
||||
private ITestDao testDao;
|
||||
@RequestMapping("/getTest")
|
||||
public ModelAndView getTest(Page page){
|
||||
ModelAndView mav = new ModelAndView();
|
||||
//从数据库中获取记录
|
||||
List<TestEntity> cs = testDao.list(page);
|
||||
//获取记录总数
|
||||
int total = testDao.total();
|
||||
//计算得到总页数
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
//将数据返回前端页面
|
||||
mav.addObject("testList",cs);
|
||||
mav.addObject("page",page);
|
||||
mav.addObject("total",total);
|
||||
mav.setViewName("test");
|
||||
return mav;
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package com.controller;
|
||||
|
||||
import com.entity.Department;
|
||||
import com.entity.Visitor;
|
||||
import com.service.IVisitorService;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Controller
|
||||
public class VistorController {
|
||||
@Autowired
|
||||
private IVisitorService visitorService;
|
||||
|
||||
/**
|
||||
* 跳转至访客列表界面
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toVisitor")
|
||||
public ModelAndView toVisitor(Page page){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//得到所有访客列表信息
|
||||
List<Visitor> visitorList = visitorService.listVisitor(page);
|
||||
//得到记录总数
|
||||
int total = visitorService.getVisitorTotal();
|
||||
//得到页数
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
//返回数据至页面
|
||||
mv.addObject("visitorList",visitorList);
|
||||
mv.addObject("page",page);
|
||||
mv.addObject("total",total);
|
||||
mv.setViewName("visitor");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据名称查找访客
|
||||
* @param name
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/searchVisitor")
|
||||
public ModelAndView searchDept(String name, Page page){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//根据部门名称查找部门信息,并进行分页显示
|
||||
List<Visitor> visitorList = visitorService.searchByName(name, page);
|
||||
//得到总记录数
|
||||
int total = visitorList.size();
|
||||
//每页显示三条,总共显示的页数
|
||||
int pageIndex = total / page.getCount();
|
||||
pageIndex = total % page.getCount() == 0 ? pageIndex : pageIndex+1;
|
||||
page.setTotalIndex(pageIndex);
|
||||
page.calculateLast(total);
|
||||
//添加信息到modelview。
|
||||
mv.addObject("visitorList",visitorList);
|
||||
mv.addObject("page",page);
|
||||
mv.addObject("total",total);
|
||||
//返回部门信息列表页面
|
||||
mv.setViewName("visitor");
|
||||
return mv;
|
||||
}
|
||||
}
|
@ -1,5 +1,172 @@
|
||||
package com.controller;
|
||||
|
||||
import com.entity.User;
|
||||
import com.entity.Visitor;
|
||||
import com.service.IUserService;
|
||||
import com.service.IVisitorService;
|
||||
import com.utils.MD5Utils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
@Controller
|
||||
public class loginController {
|
||||
@Autowired
|
||||
private IUserService userService;
|
||||
@Autowired
|
||||
private IVisitorService visitorService;
|
||||
|
||||
/**
|
||||
* 跳转至主页
|
||||
* @param username 用户名
|
||||
* @param password 密码
|
||||
* @param request
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/main")
|
||||
@ResponseBody
|
||||
public ModelAndView toMain(String username, String password, HttpServletRequest request){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
mv.setViewName("main");
|
||||
//使用session存储数据
|
||||
HttpSession session = request.getSession();
|
||||
mv.addObject("status", "ok");
|
||||
//根据用户名和密码查找用户
|
||||
User user = userService.findByNameAndPwd(username, MD5Utils.stringToMD5(password));
|
||||
//访客信息
|
||||
Visitor visitor = new Visitor();
|
||||
//用户不为空,则表示登录成功
|
||||
if(user != null){
|
||||
if(user.getName().equals(username) && user.getPassword().equals(MD5Utils.stringToMD5(password))){
|
||||
//跳转至首页
|
||||
mv.setViewName("main");
|
||||
// mv.addObject("userName", user.getName());
|
||||
// mv.addObject("status", "ok");
|
||||
//存储数据
|
||||
mv.addObject("userId", user.getId());
|
||||
session.setAttribute("userName", user.getName());
|
||||
session.setAttribute("userId", user.getId());
|
||||
//添加访客信息
|
||||
visitor.setName(user.getName());
|
||||
visitor.setEmail(user.getEmail());
|
||||
visitor.setIdentity(user.getIdentity());
|
||||
visitor.setTelPhone(user.getTelNumber());
|
||||
Date date = new Date(System.currentTimeMillis());
|
||||
visitor.setVisitTime(date);
|
||||
//存储方可信息
|
||||
visitorService.addVisitor(visitor);
|
||||
}else {
|
||||
//查询失败,返回登录页
|
||||
mv.setViewName("redirect:/index.jsp");
|
||||
mv.addObject("status", "userNameOrPwdError");
|
||||
}
|
||||
}else{
|
||||
//返回首页
|
||||
mv.setViewName("redirect:/index.jsp");
|
||||
mv.addObject("status", "userNameOrPwdError");
|
||||
}
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转至注册页面
|
||||
* @param user 用户
|
||||
* @return 返回登录页面
|
||||
*/
|
||||
@RequestMapping("/register")
|
||||
public String toRegister(User user){
|
||||
//对用户密码进行加密
|
||||
user.setPassword(MD5Utils.stringToMD5(user.getPassword()));
|
||||
//将用户信息插入数据库
|
||||
userService.insertUser(user);
|
||||
//重定向到首页
|
||||
return "redirect:/index.jsp";
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转至用户信息页
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toUserMsg")
|
||||
public ModelAndView toUserMsg(Integer id){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//根据id找到用户
|
||||
User user = userService.findById(id);
|
||||
mv.setViewName("userMsg");
|
||||
System.out.println(id);
|
||||
System.out.println(user);
|
||||
//将用户信息返回用户信息页
|
||||
mv.addObject("loginUser", user);
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户信息
|
||||
* @param user
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/modifyUserMsg")
|
||||
public ModelAndView modifyUserMsg(User user){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//修改用户信息
|
||||
userService.modifyUser(user);
|
||||
mv.addObject("loginUser", user);
|
||||
//修改完成后,跳转至用户信息页
|
||||
mv.setViewName("userMsg");
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户密码
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/toModifyPwd")
|
||||
public ModelAndView toModifyPwd(int id){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//找到用户
|
||||
User user = userService.findById(id);
|
||||
mv.setViewName("modifyPwd");
|
||||
mv.addObject("loginUser", user);
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改密码
|
||||
* @param id
|
||||
* @param password
|
||||
* @param rePassword
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/modifyPwd")
|
||||
public ModelAndView modifyPwd(Integer id, String password, String rePassword){
|
||||
ModelAndView mv = new ModelAndView();
|
||||
//判断两次输入的密码是否一致
|
||||
if(password.equals(rePassword)){
|
||||
//一致。则更改数据库,重定向到登录页
|
||||
userService.modifyPwd(password, id);
|
||||
mv.setViewName("redirect:/index.jsp");
|
||||
}else{
|
||||
//跳转到修改密码页面
|
||||
mv.setViewName("modifyPwd");
|
||||
}
|
||||
return mv;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转至关于页面
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/about")
|
||||
public String about(){
|
||||
return "about";
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.dao;
|
||||
|
||||
import com.entity.Employee;
|
||||
import com.utils.Page;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Repository
|
||||
public interface IEmployeeDao {
|
||||
|
||||
List<Employee> listEmp(Page page);
|
||||
|
||||
int getEmpTotal();
|
||||
|
||||
List<Employee> searchEmp(Map<String, Object> map);
|
||||
|
||||
|
||||
void addEmp(Employee employee);
|
||||
|
||||
|
||||
Employee selectEmpById(int id);
|
||||
|
||||
void modifyEmp(Employee employee);
|
||||
|
||||
|
||||
void deleteEmp(int id);
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.dao;
|
||||
|
||||
import com.entity.TestEntity;
|
||||
import com.utils.Page;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface ITestDao {
|
||||
List<TestEntity> findAll();
|
||||
List<TestEntity> list(Page page);
|
||||
int total();
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.dao;
|
||||
|
||||
import com.entity.Visitor;
|
||||
import com.utils.Page;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Repository
|
||||
public interface IVisitorDao {
|
||||
|
||||
List<Visitor> listVisitor(Page page);
|
||||
|
||||
int getVisitorTotal();
|
||||
|
||||
|
||||
void addVisitor(Visitor visitor);
|
||||
|
||||
Visitor> searchByName(Map<String, Object> map);
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.entity;
|
||||
|
||||
public class Department {
|
||||
private Integer id;
|
||||
private String deptId;
|
||||
private String deptName;
|
||||
|
||||
public Department() {
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Department{" +
|
||||
"id=" + id +
|
||||
", deptId='" + deptId + '\'' +
|
||||
", deptName='" + deptName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.entity;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Employee {
|
||||
private Integer id;
|
||||
private String empId;
|
||||
private String name;
|
||||
private String email;
|
||||
private Integer gender;
|
||||
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
private Date birth;
|
||||
private Integer deptId;
|
||||
private String deptName;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getEmpId() {
|
||||
return empId;
|
||||
}
|
||||
|
||||
public void setEmpId(String empId) {
|
||||
this.empId = empId;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public Integer getGender() {
|
||||
return gender;
|
||||
}
|
||||
|
||||
public void setGender(Integer gender) {
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
public Date getBirth() {
|
||||
return birth;
|
||||
}
|
||||
|
||||
public void setBirth(Date birth) {
|
||||
this.birth = birth;
|
||||
}
|
||||
|
||||
public Integer getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(Integer deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Employee{" +
|
||||
"id=" + id +
|
||||
", empId='" + empId + '\'' +
|
||||
", name='" + name + '\'' +
|
||||
", email='" + email + '\'' +
|
||||
", gender=" + gender +
|
||||
", birth=" + birth +
|
||||
", deptId=" + deptId +
|
||||
", deptName='" + deptName + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.entity;
|
||||
|
||||
public class TestEntity {
|
||||
private Integer id;
|
||||
private String num;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getNum() {
|
||||
return num;
|
||||
}
|
||||
|
||||
public void setNum(String num) {
|
||||
this.num = num;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TestEntity{" +
|
||||
"id=" + id +
|
||||
", num='" + num + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
package com.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
public class Visitor {
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String email;
|
||||
private Integer identity;
|
||||
private String telPhone;
|
||||
private Date visitTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getIdentity() {
|
||||
return identity;
|
||||
}
|
||||
|
||||
public void setIdentity(Integer identity) {
|
||||
this.identity = identity;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getTelPhone() {
|
||||
return telPhone;
|
||||
}
|
||||
|
||||
public void setTelPhone(String telPhone) {
|
||||
this.telPhone = telPhone;
|
||||
}
|
||||
|
||||
public Date getVisitTime() {
|
||||
return visitTime;
|
||||
}
|
||||
|
||||
public void setVisitTime(Date visitTime) {
|
||||
this.visitTime = visitTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Visitor{" +
|
||||
"id=" + id +
|
||||
", name='" + name + '\'' +
|
||||
", email='" + email + '\'' +
|
||||
", telPhone='" + telPhone + '\'' +
|
||||
", visitTime=" + visitTime +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Department;
|
||||
import com.utils.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface IDeptService {
|
||||
/**
|
||||
* 查询部门所有信息
|
||||
* @return
|
||||
*/
|
||||
List<Department> findAllDepartment();
|
||||
|
||||
/**
|
||||
* 添加部门
|
||||
* @param department
|
||||
*/
|
||||
void addDept(Department department);
|
||||
|
||||
/**
|
||||
* 根据部门名称查找部门
|
||||
* @param deptName
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Department> findDeptByName(String deptName, Page page);
|
||||
|
||||
/**
|
||||
* 获取记录总数
|
||||
* @return
|
||||
*/
|
||||
int getDeptTotal();
|
||||
|
||||
/**
|
||||
* 获取所有部门信息
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Department> listDept(Page page);
|
||||
|
||||
/**
|
||||
* 根据id查找部门
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Department findDeptById(int id);
|
||||
|
||||
/**
|
||||
* 修改部门信息
|
||||
* @param department
|
||||
*/
|
||||
void modifyDept(Department department);
|
||||
|
||||
/**
|
||||
* 删除部门信息
|
||||
* @param id
|
||||
*/
|
||||
void deleteDept(int id);
|
||||
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Employee;
|
||||
import com.utils.Page;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public interface IEmpService {
|
||||
/**
|
||||
* 查找所有员工信息
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Employee> listEmp(Page page);
|
||||
|
||||
/**
|
||||
* 获取记录总数
|
||||
* @return
|
||||
*/
|
||||
int getEmpTotal();
|
||||
|
||||
/**
|
||||
* 根据条件查找员工
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
List<Employee> searchEmp(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 添加员工
|
||||
* @param employee
|
||||
*/
|
||||
void addEmp(Employee employee);
|
||||
|
||||
/**
|
||||
* 根据id查找员工
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
Employee selectEmpById(int id);
|
||||
|
||||
/**
|
||||
* 修改员工信息
|
||||
* @param employee
|
||||
*/
|
||||
void modifyEmp(Employee employee);
|
||||
|
||||
/**
|
||||
* 删除员工信息
|
||||
* @param id
|
||||
*/
|
||||
void deleteEmp(int id);
|
||||
|
||||
|
||||
}
|
@ -1,5 +1,45 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.User;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
public interface IUserService {
|
||||
/**
|
||||
* 根据ID查找用户信息
|
||||
* @param id ID
|
||||
* @return 用户
|
||||
*/
|
||||
User findById(Integer id);
|
||||
|
||||
/**
|
||||
* 根据用户名和密码查找用户
|
||||
* @param name
|
||||
* @param password
|
||||
* @return
|
||||
*/
|
||||
User findByNameAndPwd(String name, String password);
|
||||
|
||||
/**
|
||||
* 添加用户
|
||||
* @param user
|
||||
* @return
|
||||
*/
|
||||
int insertUser(User user);
|
||||
|
||||
/**
|
||||
* 修改用户信息
|
||||
* @param user
|
||||
*/
|
||||
void modifyUser(User user);
|
||||
|
||||
/**
|
||||
* 修改用户密码
|
||||
* @param password
|
||||
* @param id
|
||||
*/
|
||||
void modifyPwd(String password, Integer id);
|
||||
}
|
||||
|
@ -0,0 +1,37 @@
|
||||
package com.service;
|
||||
|
||||
import com.entity.Visitor;
|
||||
import com.utils.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public interface IVisitorService {
|
||||
/**
|
||||
* 查找所有访客信息
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Visitor> listVisitor(Page page);
|
||||
|
||||
/**
|
||||
* 获取记录总数
|
||||
* @return
|
||||
*/
|
||||
int getVisitorTotal();
|
||||
|
||||
/**
|
||||
* 添加访客
|
||||
* @param visitor
|
||||
*/
|
||||
void addVisitor(Visitor visitor);
|
||||
|
||||
/**
|
||||
* 根据姓名查找访客
|
||||
* @param name
|
||||
* @param page
|
||||
* @return
|
||||
*/
|
||||
List<Visitor> searchByName(String name, Page page);
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.service.impl;
|
||||
|
||||
import com.dao.IDepartmentDao;
|
||||
import com.entity.Department;
|
||||
import com.service.IDeptService;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.management.ObjectName;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Service
|
||||
public class DeptServiceImpl implements IDeptService {
|
||||
@Autowired
|
||||
private IDepartmentDao departmentDao;
|
||||
@Override
|
||||
public List<Department> findAllDepartment() {
|
||||
return departmentDao.findAllDepartment();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addDept(Department department) {
|
||||
departmentDao.insertDept(department);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Department> findDeptByName(String deptName, Page page) {
|
||||
deptName = "%" + deptName + "%";
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("deptName", deptName);
|
||||
map.put("page", page);
|
||||
return departmentDao.searchByName(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeptTotal() {
|
||||
return departmentDao.getDeptTotal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Department> listDept(Page page) {
|
||||
return departmentDao.listDept(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Department findDeptById(int id) {
|
||||
return departmentDao.findDeptById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void modifyDept(Department department) {
|
||||
departmentDao.modifyDept(department);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteDept(int id) {
|
||||
departmentDao.deleteDept(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.service.impl;
|
||||
|
||||
import com.dao.IEmployeeDao;
|
||||
import com.entity.Employee;
|
||||
import com.service.IEmpService;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Service
|
||||
public class EmpServiceImpl implements IEmpService {
|
||||
@Autowired
|
||||
private IEmployeeDao employeeDao;
|
||||
@Override
|
||||
public List<Employee> listEmp(Page page) {
|
||||
return employeeDao.listEmp(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEmpTotal() {
|
||||
return employeeDao.getEmpTotal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Employee> searchEmp(Map<String, Object> map) {
|
||||
return employeeDao.searchEmp(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addEmp(Employee employee) {
|
||||
employeeDao.addEmp(employee);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Employee selectEmpById(int id) {
|
||||
return employeeDao.selectEmpById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void modifyEmp(Employee employee) {
|
||||
employeeDao.modifyEmp(employee);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteEmp(int id) {
|
||||
employeeDao.deleteEmp(id);
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
package com.service.impl;
|
||||
|
||||
import com.service.IUserService;
|
||||
|
||||
public class IUserServiceImpl implements IUserService {
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.service.impl;
|
||||
|
||||
import com.dao.IUserDao;
|
||||
import com.entity.User;
|
||||
import com.service.IUserService;
|
||||
import com.utils.MD5Utils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName UserServiceImpl
|
||||
* @Description TODO
|
||||
* @Author YHT
|
||||
* @Date 2021/5/28 17:41
|
||||
*/
|
||||
@Service
|
||||
public class UserServiceImpl implements IUserService {
|
||||
@Autowired
|
||||
private IUserDao userDao;
|
||||
|
||||
public User findById(Integer id) {
|
||||
return userDao.findById(id);
|
||||
}
|
||||
|
||||
public User findByNameAndPwd(String name, String password) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
map.put("name", name);
|
||||
map.put("password", password);
|
||||
return userDao.findByNameAndPwd(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertUser(User user) {
|
||||
return userDao.insertUser(user);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void modifyUser(User user) {
|
||||
userDao.modifyUser(user);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void modifyPwd(String password, Integer id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
password = MD5Utils.stringToMD5(password);
|
||||
map.put("id", id);
|
||||
map.put("password", password);
|
||||
userDao.modifyPwd(map);
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.service.impl;
|
||||
|
||||
import com.dao.IVisitorDao;
|
||||
import com.entity.Visitor;
|
||||
import com.service.IVisitorService;
|
||||
import com.utils.Page;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @ClassName VisitorServiceImpl
|
||||
* @Description TODO
|
||||
* @Author YHT
|
||||
* @Date 2021/7/9 21:47
|
||||
*/
|
||||
@Service
|
||||
public class VisitorServiceImpl implements IVisitorService {
|
||||
@Autowired
|
||||
private IVisitorDao visitorDao;
|
||||
@Override
|
||||
public List<Visitor> listVisitor(Page page) {
|
||||
return visitorDao.listVisitor(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getVisitorTotal() {
|
||||
return visitorDao.getVisitorTotal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addVisitor(Visitor visitor) {
|
||||
visitorDao.addVisitor(visitor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Visitor> searchByName(String name, Page page) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("name", name);
|
||||
map.put("page", page);
|
||||
return visitorDao.searchByName(map);
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
driver=com.mysql.cj.jdbc.Driver
|
||||
url=jdbc:mysql://127.0.0.1:3306/sp_emp
|
||||
username=root
|
||||
password=123456
|
||||
|
||||
initialSize=0
|
||||
|
||||
maxActive=20
|
||||
|
||||
maxIdle=20
|
||||
|
||||
minIdle=1
|
||||
|
||||
maxWait=60000
|
@ -0,0 +1,18 @@
|
||||
|
||||
log4j.rootLogger=INFO,Console,File
|
||||
|
||||
log4j.appender.Console=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.Console.Target=System.out
|
||||
|
||||
log4j.appender.Console.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.Console.layout.ConversionPattern=[%c] - %m%n
|
||||
|
||||
|
||||
log4j.appender.File = org.apache.log4j.RollingFileAppender
|
||||
|
||||
log4j.appender.File.File = logs/ssm.log
|
||||
|
||||
log4j.appender.File.MaxFileSize = 10MB
|
||||
log4j.appender.File.Threshold = ALL
|
||||
log4j.appender.File.layout = org.apache.log4j.PatternLayout
|
||||
log4j.appender.File.layout.ConversionPattern =[%p] [%d{yyyy-MM-dd HH\:mm\:ss}][%c]%m%n
|
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
|
||||
<mapper namespace="com.dao.IDepartmentDao">
|
||||
<!--查询所有部门信息-->
|
||||
<select id="findAllDepartment" resultType="com.entity.Department">
|
||||
select * from t_dept;
|
||||
</select>
|
||||
<!--根据id查找部门-->
|
||||
<select id="findDeptById" resultType="com.entity.Department" parameterType="int">
|
||||
select * from t_dept where id = #{id};
|
||||
</select>
|
||||
<!--按页数查找部门信息-->
|
||||
<select id="listDept" resultType="com.entity.Department">
|
||||
select * from t_dept
|
||||
<if test="start!=null and count!=null">
|
||||
limit #{start},#{count}
|
||||
</if>
|
||||
</select>
|
||||
<!--添加部门-->
|
||||
<insert id="insertDept" parameterType="com.entity.Department">
|
||||
insert into t_dept(deptId, deptName) values(#{deptId}, #{deptName});
|
||||
</insert>
|
||||
<!--修改部门信息-->
|
||||
<update id="modifyDept" parameterType="com.entity.Department">
|
||||
update t_dept set deptId = #{deptId}, deptName = #{deptName} where id = #{id}
|
||||
</update>
|
||||
<!--根据名称查找部门-->
|
||||
<select id="searchByName" parameterType="Map" resultType="com.entity.Department">
|
||||
select * from t_dept where deptName like #{deptName}
|
||||
<if test="page.start!=null and page.count!=null">
|
||||
limit #{page.start},#{page.count}
|
||||
</if>
|
||||
</select>
|
||||
<!--获取记录总数-->
|
||||
<select id="getDeptTotal" resultType="int">
|
||||
select count(*) from t_dept;
|
||||
</select>
|
||||
<!--根据id查找部门信息-->
|
||||
<delete id="deleteDept" parameterType="int">
|
||||
delete from t_dept where id = #{id}
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
|
||||
<mapper namespace="com.dao.IEmployeeDao">
|
||||
<!--查询所有员工信息-->
|
||||
<select id="findAllEmp" resultType="com.entity.Employee">
|
||||
select * from t_emp;
|
||||
</select>
|
||||
<!--按页数查找员工信息-->
|
||||
<select id="listEmp" resultType="com.entity.Employee">
|
||||
select * from t_emp
|
||||
<if test="start!=null and count!=null">
|
||||
limit #{start},#{count}
|
||||
</if>
|
||||
</select>
|
||||
<!--根据条件查找员工信息-->
|
||||
<select id="searchEmp" parameterType="Map" resultType="com.entity.Employee">
|
||||
select * from t_emp where 1=1
|
||||
<if test="name!=null">
|
||||
and name like #{name}
|
||||
</if>
|
||||
<if test="email!=null">
|
||||
and email = #{email}
|
||||
</if>
|
||||
<if test="empId!=null">
|
||||
and empId = #{empId}
|
||||
</if>
|
||||
<if test="page.start!=null and page.count!=null">
|
||||
limit #{page.start},#{page.count}
|
||||
</if>
|
||||
</select>
|
||||
<!--添加员工-->
|
||||
<insert id="addEmp" parameterType="com.entity.Employee">
|
||||
insert into t_emp(empId, name, gender, email, birth, deptId) values(#{empId}, #{name}, #{gender}, #{email}, #{birth}, #{deptId});
|
||||
</insert>
|
||||
<!--修改员工信息-->
|
||||
<update id="modifyEmp" parameterType="com.entity.Employee">
|
||||
update t_emp set empId = #{empId}, name = #{name}, gender = #{gender}, email = #{email}, birth = #{birth}, deptId = #{deptId} where id = #{id}
|
||||
</update>
|
||||
<!--获取记录总数-->
|
||||
<select id="getEmpTotal" resultType="int">
|
||||
select count(*) from t_emp;
|
||||
</select>
|
||||
<!--根据id查找员工-->
|
||||
<select id="selectEmpById" resultType="com.entity.Employee">
|
||||
select * from t_emp where id = #{id};
|
||||
</select>
|
||||
<!--删除员工-->
|
||||
<delete id="deleteEmp" parameterType="int">
|
||||
delete from t_emp where id = #{id}
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
|
||||
<!-- 设置为IUserDao接口方法提供sql语句配置 -->
|
||||
<mapper namespace="com.dao.ITestDao">
|
||||
|
||||
<select id="findAll" resultType="com.entity.TestEntity">
|
||||
select * from t_test;
|
||||
</select>
|
||||
<select id="list" resultType="com.entity.TestEntity">
|
||||
select * from t_test
|
||||
<if test="start!=null and count!=null">
|
||||
limit #{start},#{count}
|
||||
</if>
|
||||
</select>
|
||||
<select id="total" resultType="int">
|
||||
select count(*) from t_test;
|
||||
</select>
|
||||
</mapper>
|
@ -1,6 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
</beans>
|
||||
|
||||
<!-- 设置为IUserDao接口方法提供sql语句配置 -->
|
||||
<mapper namespace="com.dao.IUserDao">
|
||||
<!--根据id查找用户-->
|
||||
<select id="findById" resultType="com.entity.User" parameterType="Integer">
|
||||
select * from t_user where id = #{id};
|
||||
</select>
|
||||
<!--根据用户名和密码查找用户-->
|
||||
<select id="findByNameAndPwd" resultType="com.entity.User" parameterType="Map">
|
||||
select * from t_user where name = #{name} and password = #{password};
|
||||
</select>
|
||||
<!--添加用户-->
|
||||
<insert id="insertUser" parameterType="com.entity.User">
|
||||
insert into t_user(name, password, identity, telNumber, idCard, email) values(#{name}, #{password}, #{identity}, #{telNumber}, #{idCard}, #{email});
|
||||
</insert>
|
||||
<!--修改用户-->
|
||||
<update id="modifyUser" parameterType="com.entity.User">
|
||||
update t_user set name = #{name}, identity = #{identity}, telNumber = #{telNumber}, idCard = #{idCard}, email = #{email} where id = #{id}
|
||||
</update>
|
||||
<!--修改用户密码-->
|
||||
<update id="modifyPwd" parameterType="Map">
|
||||
update t_user set password = #{password} where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
|
||||
<mapper namespace="com.dao.IVisitorDao">
|
||||
<!--按页数查找访客信息-->
|
||||
<select id="listVisitor" resultType="com.entity.Visitor">
|
||||
select * from t_visitor
|
||||
<if test="start!=null and count!=null">
|
||||
limit #{start},#{count}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!--获取记录总数-->
|
||||
<select id="getVisitorTotal" resultType="int">
|
||||
select count(*) from t_visitor;
|
||||
</select>
|
||||
<insert id="addVisitor" parameterType="com.entity.Visitor">
|
||||
insert into t_visitor(name, identity, telPhone, email, visitTime) values(#{name}, #{identity}, #{telPhone}, #{email}, #{visitTime});
|
||||
</insert>
|
||||
<!--根据名称查找访客信息-->
|
||||
<select id="searchByName" parameterType="Map" resultType="com.entity.Visitor">
|
||||
select * from t_visitor where name like #{name}
|
||||
<if test="page.start!=null and page.count!=null">
|
||||
limit #{page.start},#{page.count}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,94 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>员工管理</li>
|
||||
<li>员工信息</li>
|
||||
</ol>
|
||||
<form action="${pageContext.request.contextPath}/addEmp" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">员工号</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="empId">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">姓名</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="name">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">性别</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="gender" value="1" checked> 男
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="gender" value="0"> 女
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">邮箱</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">生日</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="birth">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">所属部门</label>
|
||||
<div class="col-sm-7">
|
||||
<select name="deptId" class="selectpicker" style="display:block;height: 40px;font-size: 16px">
|
||||
<c:forEach items="${deptList}" var="dept" >
|
||||
<div class="col-sm-4" >
|
||||
<option value="${dept.id}">
|
||||
${dept.deptName}
|
||||
</option>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">确认</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,129 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<%-- <script src="js/index.js"></script>--%>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>部门管理</li>
|
||||
<li>部门信息</li>
|
||||
</ol>
|
||||
<form class="form-inline" action="${pageContext.request.contextPath}/searchDept">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="请输入部门名称" name="deptName">
|
||||
</div>
|
||||
<button class="btn btn-info" type="submit"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</form>
|
||||
<hr>
|
||||
<div class="text-center" style="display:block">
|
||||
<button class="btn btn-primary col-sm-1" style="margin-right:10px" data-toggle="modal" data-target="#studentAddModal"><span class="glyphicon glyphicon-plus" style="margin-right: 10px;"></span>添加</button>
|
||||
<button class="btn btn-warning col-sm-1"><span class="glyphicon glyphicon-upload" style="margin-right: 10px;"></span>导出</button>
|
||||
<label class="pull-right" style="margin-right:20px">共有数据${total}条</label>
|
||||
<div class="modal fade" id="studentAddModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel2">添加部门</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="${pageContext.request.contextPath}/addDept" class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门号</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="deptId">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="deptName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
||||
<button type="submit" class="btn btn-primary">确定</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-striped table-bordered text-center" style="margin-top:80px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">部门号</th>
|
||||
<th class="text-center">部门名称</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="dept" items="${deptList}" >
|
||||
<tr>
|
||||
<td>${dept.deptId}</td>
|
||||
<td>${dept.deptName}</td>
|
||||
<td>
|
||||
<a href="${pageContext.request.contextPath}/toModifyDept?id=${dept.id}" ><span class="glyphicon glyphicon-pencil" style="margin-right:10px"></span></a>
|
||||
<a href="${pageContext.request.contextPath}/deleteDept?id=${dept.id}"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row text-center">
|
||||
<div class="form-group">
|
||||
<label class="pull-right" style="margin-right:20px">当前第${page.currentIndex}页,共${page.totalIndex}页</label>
|
||||
</div>
|
||||
<form class="form-inline" style="padding:20px" action="">
|
||||
|
||||
<div class="col-sm-6 col-sm-offset-2">
|
||||
<ul class="pagination">
|
||||
<li><a href="${pageContext.request.contextPath}/toDepartment?start=0" aria-label="Previous"><span aria-hidden="true">首页</span></a></li>
|
||||
<c:if test="${page.currentIndex != 1}">
|
||||
<li><a href="${pageContext.request.contextPath}/toDepartment?start=${page.start - page.count}¤tIndex=${page.currentIndex-1}" aria-label="Previous"><span aria-hidden="true">上一页</span></a></li>
|
||||
</c:if>
|
||||
<c:if test="${page.currentIndex != page.totalIndex}">
|
||||
<li><a href="${pageContext.request.contextPath}/toDepartment?start=${page.start + page.count}¤tIndex=${page.currentIndex+1}" aria-label="Next"><span aria-hidden="true">下一页</span></a></li>
|
||||
</c:if>
|
||||
<li><a href="${pageContext.request.contextPath}/toDepartment?start=${page.last}" aria-label="Previous"><span aria-hidden="true">末页</span></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
<script>
|
||||
$(function () {
|
||||
$(".modifyOperate").click(function () {
|
||||
var td = $(".modifyOperate").parent().parent().find('td');
|
||||
console.log(td.eq(1).text());
|
||||
console.log(td.eq(0).text());
|
||||
// $("#update_id_input").val(tr.eq(1).text())
|
||||
// $("#update_name_input").val(tr.eq(2).text());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,104 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>员工管理</li>
|
||||
<li>员工信息</li>
|
||||
</ol>
|
||||
<form class="form-inline" action="${pageContext.request.contextPath}/searchEmp">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="请输入姓名" name="name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="请输入邮箱" name="email">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="请输入员工号" name="empId">
|
||||
</div>
|
||||
<button class="btn btn-info"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</form>
|
||||
<hr>
|
||||
<div class="text-center" style="display:block">
|
||||
<a href="${pageContext.request.contextPath}/toAddEmp" class="btn btn-primary col-sm-1" style="margin-right:10px" ><span class="glyphicon glyphicon-plus" style="margin-right: 10px;"></span>添加</a>
|
||||
<button class="btn btn-warning col-sm-1"><span class="glyphicon glyphicon-upload" style="margin-right: 10px;"></span>导出</button>
|
||||
</div>
|
||||
<label class="pull-right" style="margin-right:20px">共有数据${total}条</label>
|
||||
<table class="table table-striped table-bordered text-center" style="margin-top:80px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">员工号</th>
|
||||
<th class="text-center">姓名</th>
|
||||
<th class="text-center">性别</th>
|
||||
<th class="text-center">邮箱</th>
|
||||
<th class="text-center">生日</th>
|
||||
<th class="text-center">所属部门</th>
|
||||
<th class="text-center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="emp" items="${empList}" >
|
||||
<tr>
|
||||
<td>${emp.empId}</td>
|
||||
<td>${emp.name}</td>
|
||||
<td>${emp.gender == 1 ? "男" : "女"}</td>
|
||||
<td>${emp.email}</td>
|
||||
<td><fmt:formatDate value="${emp.birth}" pattern="yyyy-MM-dd hh:mm" />
|
||||
</td>
|
||||
<td>${emp.deptName}</td>
|
||||
<td>
|
||||
<a href="${pageContext.request.contextPath}/toModifyEmp?id=${emp.id}" ><span class="glyphicon glyphicon-pencil" style="margin-right:10px"></span></a>
|
||||
<a href="${pageContext.request.contextPath}/deleteEmp?id=${emp.id}"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row text-center">
|
||||
<div class="form-group">
|
||||
<label class="pull-right" style="margin-right:20px">当前第${page.currentIndex}页,共${page.totalIndex}页</label>
|
||||
</div>
|
||||
<form class="form-inline" style="padding:20px" action="">
|
||||
|
||||
<div class="col-sm-6 col-sm-offset-2">
|
||||
<ul class="pagination">
|
||||
<li><a href="${pageContext.request.contextPath}/toEmployee?start=0" aria-label="Previous"><span aria-hidden="true">首页</span></a></li>
|
||||
<c:if test="${page.currentIndex != 1}">
|
||||
<li><a href="${pageContext.request.contextPath}/toEmployee?start=${page.start - page.count}¤tIndex=${page.currentIndex-1}" aria-label="Previous"><span aria-hidden="true">上一页</span></a></li>
|
||||
</c:if>
|
||||
<c:if test="${page.currentIndex != page.totalIndex}">
|
||||
<li><a href="${pageContext.request.contextPath}/toEmployee?start=${page.start + page.count}¤tIndex=${page.currentIndex+1}" aria-label="Next"><span aria-hidden="true">下一页</span></a></li>
|
||||
</c:if>
|
||||
<li><a href="${pageContext.request.contextPath}/toEmployee?start=${page.last}" aria-label="Previous"><span aria-hidden="true">末页</span></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,38 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<!-- 侧边栏 -->
|
||||
<div class="navbar-default navbar-collapse col-sm-2" id="slide-left">
|
||||
<ul class="nav col-sm-12 slide-group">
|
||||
<li>
|
||||
<a href="#sub1" class="collapse" data-toggle="collapse">员工管理<span class="glyphicon glyphicon-chevron-right pull-right"></span></a>
|
||||
<ul id="sub1" class="nav collapse">
|
||||
<li class="text-center"><a href="${pageContext.request.contextPath}/toEmployee"><span class="glyphicon glyphicon-list-alt"></span> 员工信息</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#sub2" class="collapse" data-toggle="collapse">部门管理<span class="glyphicon glyphicon-chevron-right pull-right"></span></a>
|
||||
<ul id="sub2" class="nav collapse">
|
||||
<li class="text-center"><a href="${pageContext.request.contextPath}/toDepartment"><span class="glyphicon glyphicon-book"></span> 部门信息</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#sub3" class="collapse" data-toggle="collapse">访客信息<span class="glyphicon glyphicon-chevron-right pull-right"></span></a>
|
||||
<ul id="sub3" class="nav collapse">
|
||||
<li class="text-center"><a href="${pageContext.request.contextPath}/toVisitor"><span class="glyphicon glyphicon-eye-open"></span> 访客列表</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#sub4" class="collapse" data-toggle="collapse">个人资料<span class="glyphicon glyphicon-chevron-right pull-right"></span></a>
|
||||
<ul id="sub4" class="nav collapse">
|
||||
<li class="text-center"><a href="${pageContext.request.contextPath}/toUserMsg?id=${userId}"><span class="glyphicon glyphicon-dashboard"></span> 个人信息</a></li>
|
||||
<li class="text-center"><a href="${pageContext.request.contextPath}/toModifyPwd?id=${userId}"><span class="glyphicon glyphicon-eye-open"></span> 修改密码</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<%-- <li>--%>
|
||||
<%-- <a href="#sub5" class="collapse" data-toggle="collapse">测试<span class="glyphicon glyphicon-chevron-right pull-right"></span></a>--%>
|
||||
<%-- <ul id="sub5" class="nav collapse">--%>
|
||||
<%-- <li class="text-center"><a href="${pageContext.request.contextPath}/getTest"><span class="glyphicon glyphicon-eye-open"></span> 测试列表</a></li>--%>
|
||||
<%-- </ul>--%>
|
||||
<%-- </li>--%>
|
||||
</ul>
|
||||
</div>
|
@ -0,0 +1,53 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>个人资料</li>
|
||||
<li>修改密码</li>
|
||||
</ol>
|
||||
<form action="${pageContext.request.contextPath}/modifyPwd" class="form-horizontal" id="registerForms">
|
||||
<input type="hidden" value="${loginUser.id}" name="id">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">新密码</label>
|
||||
<div class="col-sm-4 register-username-area">
|
||||
<input type="password" name="password" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">确认密码</label>
|
||||
<div class="col-sm-4 register-email-area">
|
||||
<input type="password" name="rePassword" class="form-control" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-default" data-dismiss="modal">取消</button>
|
||||
<button class="btn btn-primary" type="submit">修改</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,111 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<%-- <script src="js/index.js"></script>--%>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<div class="text-center" style="display:block">
|
||||
<label class="pull-right" style="margin-right:20px">共有数据${total}条</label>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered text-center" style="margin-top:80px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">部门号</th>
|
||||
<th class="text-center">名称</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="test" items="${testList}" >
|
||||
<tr>
|
||||
<td>${test.id}</td>
|
||||
<td>${test.num}</td>
|
||||
<td>
|
||||
<a href="" data-toggle="modal" data-target="#deptModifyModal" data-orderId="${test.id}"><span class="glyphicon glyphicon-pencil" style="margin-right:10px"></span></a>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="deptModifyModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel3">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="myModalLabel3">信息修改</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form action="${pageContext.request.contextPath}/modifyDept" class="form-horizontal" id="updateform">
|
||||
<input value="${dept.id}" name="id" hidden>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门号</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" value="${test.id}" name="id">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" value="${test.num}" name="num">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
||||
<button type="submit" class="btn btn-primary">确认</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href=""><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row text-center">
|
||||
<div class="form-group">
|
||||
<label class="pull-right" style="margin-right:20px">当前第${page.currentIndex}页,共${page.totalIndex}页</label>
|
||||
</div>
|
||||
<form class="form-inline" style="padding:20px" action="">
|
||||
|
||||
<div class="col-sm-6 col-sm-offset-2">
|
||||
<ul class="pagination">
|
||||
<li><a href="${pageContext.request.contextPath}/getTest?start=0" aria-label="Previous"><span aria-hidden="true">首页</span></a></li>
|
||||
<c:if test="${page.currentIndex != 1}">
|
||||
<li><a href="${pageContext.request.contextPath}/getTest?start=${page.start - page.count}¤tIndex=${page.currentIndex-1}" aria-label="Previous"><span aria-hidden="true">上一页</span></a></li>
|
||||
</c:if>
|
||||
<c:if test="${page.currentIndex != page.totalIndex}">
|
||||
<li><a href="${pageContext.request.contextPath}/getTest?start=${page.start + page.count}¤tIndex=${page.currentIndex+1}" aria-label="Next"><span aria-hidden="true">下一页</span></a></li>
|
||||
</c:if>
|
||||
<li><a href="${pageContext.request.contextPath}/getTest?start=${page.last}" aria-label="Previous"><span aria-hidden="true">末页</span></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
<script>
|
||||
$("#deptModifyModal").on('show.bs.modal', function (e) {
|
||||
let deleteBookId = $(e.relatedTarget).data("orderid");
|
||||
console.log(deleteBookId)
|
||||
});
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,40 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<!-- 导航 -->
|
||||
<nav class="navbar navbar-default navbar-static-top navbar-inverse">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#slide-left">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<label class="navbar-brand">员工信息管理</label>
|
||||
</div>
|
||||
<ul class="nav navbar-nav nav-menu" style="margin-right: 25px;" >
|
||||
<li ><a href="${pageContext.request.contextPath}/main">首页</a></li>
|
||||
<li><a href="">使用指南</a></li>
|
||||
<li><a href="${pageContext.request.contextPath}/about">关于</a></li>
|
||||
</ul>
|
||||
<!-- 搜索框 -->
|
||||
<form class="navbar-form navbar-left">
|
||||
<div class="input-group">
|
||||
<input type="" class="form-control" />
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<ul class="nav navbar-nav navbar-right pull-right" style="margin-right: 40px;">
|
||||
<li><a href="">欢迎 ${userName} 登录</a></li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">我的
|
||||
<span class="caret"></span></a>
|
||||
<ul class="dropdown-menu text-center">
|
||||
<li role="separator" class="divider"></li>
|
||||
<li class="text-center"><a href="index.jsp">退出</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -0,0 +1,62 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<%-- <script src="js/index.js"></script>--%>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>部门管理</li>
|
||||
<li>部门信息</li>
|
||||
</ol>
|
||||
<form action="${pageContext.request.contextPath}/modifyDept" class="form-horizontal" id="updateform">
|
||||
<input value="${dept.id}" name="id" hidden>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门号</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" value="${dept.deptId}" name="deptId">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" value="${dept.deptName}" name="deptName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">确认</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
<script>
|
||||
$(function () {
|
||||
$(".modifyOperate").click(function () {
|
||||
var td = $(".modifyOperate").parent().parent().find('td');
|
||||
console.log(td.eq(1).text());
|
||||
console.log(td.eq(0).text());
|
||||
// $("#update_id_input").val(tr.eq(1).text())
|
||||
// $("#update_name_input").val(tr.eq(2).text());
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
@ -0,0 +1,96 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>员工管理</li>
|
||||
<li>员工信息</li>
|
||||
</ol>
|
||||
<form action="${pageContext.request.contextPath}/modifyEmp" class="form-horizontal">
|
||||
<input type="hidden" class="form-control" name="id" value="${emp.id}">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">员工号</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="empId" value="${emp.empId}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">姓名</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="name" value="${emp.name}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">性别</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="gender" value="1" <c:if test="${emp.gender==1}"> checked='checked'</c:if> > 男
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="gender" value="0" <c:if test="${emp.gender==0}"> checked='checked'</c:if>> 女
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">邮箱</label>
|
||||
<div class="col-sm-7">
|
||||
<input type="text" class="form-control" name="email" value="${emp.email}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">生日</label>
|
||||
<div class="col-sm-7">
|
||||
|
||||
<input type="text" class="form-control" name="birth" value="<fmt:formatDate value='${emp.birth}' pattern='yyyy-MM-dd hh:mm' />" >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">所属部门</label>
|
||||
<div class="col-sm-7">
|
||||
<select name="deptId" class="selectpicker" style="display:block;height: 40px;font-size: 16px">
|
||||
<c:forEach items="${deptList}" var="dept" >
|
||||
<div class="col-sm-4" >
|
||||
<option value="${dept.id}">
|
||||
${dept.deptName}
|
||||
</option>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary">确认</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,82 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>个人资料</li>
|
||||
<li>个人信息</li>
|
||||
</ol>
|
||||
<form action="${pageContext.request.contextPath}/modifyUserMsg" class="form-horizontal" id="registerForms">
|
||||
<input type="hidden" value="${loginUser.id}" name="id">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户名</label>
|
||||
<div class="col-sm-4 register-username-area">
|
||||
<input type="text" name="name" class="form-control" value="${loginUser.name}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">身份</label>
|
||||
<div class="col-sm-3">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="identity" value="0" <c:if test="${loginUser.identity==0}"> checked='checked'</c:if> > 员工
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="radio">
|
||||
<label>
|
||||
<input type="radio" name="identity" value="1" <c:if test="${loginUser.identity==1}"> checked='checked'</c:if>> 管理员
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">手机号</label>
|
||||
<div class="col-sm-4 register-photo-area">
|
||||
<input type="text" name="telNumber" class="form-control" value="${loginUser.telNumber}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">身份证号</label>
|
||||
<div class="col-sm-4 register-idNumber-area">
|
||||
<input type="text" name="idCard" class="form-control" value="${loginUser.idCard}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">邮箱</label>
|
||||
<div class="col-sm-4 register-email-area">
|
||||
<input type="text" name="email" class="form-control" value="${loginUser.email}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-default" data-dismiss="modal">取消</button>
|
||||
<button class="btn btn-primary" type="submit">修改</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,89 @@
|
||||
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
|
||||
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
||||
<script src="js/jquery-3.5.1.js"></script>
|
||||
<script src="bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="js/index.js"></script>
|
||||
<link rel="stylesheet" href="css/index.css"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<jsp:include page="topbar.jsp"></jsp:include>
|
||||
|
||||
<!-- 主题内容 -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<jsp:include page="leftMenu.jsp"></jsp:include>
|
||||
<div class="col-sm-10 page-main">
|
||||
<ol class="breadcrumb">
|
||||
<li>访客管理</li>
|
||||
<li>访客列表</li>
|
||||
</ol>
|
||||
<form class="form-inline" action="${pageContext.request.contextPath}/searchVisitor">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" placeholder="请输入姓名" name="name">
|
||||
</div>
|
||||
<button class="btn btn-info" type="submit"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</form>
|
||||
<hr>
|
||||
<div class="text-center" style="display:block">
|
||||
<button class="btn btn-warning col-sm-1"><span class="glyphicon glyphicon-upload" style="margin-right: 10px;"></span>导出</button>
|
||||
<label class="pull-right" style="margin-right:20px">共有数据${total}条</label>
|
||||
</div>
|
||||
<table class="table table-striped table-bordered text-center" style="margin-top:80px">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">姓名</th>
|
||||
<th class="text-center">是否管理员</th>
|
||||
<th class="text-center">邮箱</th>
|
||||
<th class="text-center">手机号</th>
|
||||
<th class="text-center">访问时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach var="visitor" items="${visitorList}" >
|
||||
<tr>
|
||||
<td>${visitor.name}</td>
|
||||
<td>${visitor.identity == 1 ? "是" : "否"}</td>
|
||||
<td>${visitor.email}</td>
|
||||
<td>${visitor.telPhone}</td>
|
||||
<td><fmt:formatDate value="${visitor.visitTime}" pattern="yyyy-MM-dd hh:mm" /></td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row text-center">
|
||||
<div class="form-group">
|
||||
<label class="pull-right" style="margin-right:20px">当前第${page.currentIndex}页,共${page.totalIndex}页</label>
|
||||
</div>
|
||||
<form class="form-inline" style="padding:20px" action="">
|
||||
|
||||
<div class="col-sm-6 col-sm-offset-2">
|
||||
<ul class="pagination">
|
||||
<li><a href="${pageContext.request.contextPath}/toVisitor?start=0" aria-label="Previous"><span aria-hidden="true">首页</span></a></li>
|
||||
<c:if test="${page.currentIndex != 1}">
|
||||
<li><a href="${pageContext.request.contextPath}/toVisitor?start=${page.start - page.count}¤tIndex=${page.currentIndex-1}" aria-label="Previous"><span aria-hidden="true">上一页</span></a></li>
|
||||
</c:if>
|
||||
<c:if test="${page.currentIndex != page.totalIndex}">
|
||||
<li><a href="${pageContext.request.contextPath}/toVisitor?start=${page.start + page.count}¤tIndex=${page.currentIndex+1}" aria-label="Next"><span aria-hidden="true">下一页</span></a></li>
|
||||
</c:if>
|
||||
<li><a href="${pageContext.request.contextPath}/toVisitor?start=${page.last}" aria-label="Previous"><span aria-hidden="true">末页</span></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<jsp:include page="footer.jsp"></jsp:include>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,587 @@
|
||||
/*!
|
||||
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
||||
* Copyright 2011-2016 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
.btn-default,
|
||||
.btn-primary,
|
||||
.btn-success,
|
||||
.btn-info,
|
||||
.btn-warning,
|
||||
.btn-danger {
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.btn-default:active,
|
||||
.btn-primary:active,
|
||||
.btn-success:active,
|
||||
.btn-info:active,
|
||||
.btn-warning:active,
|
||||
.btn-danger:active,
|
||||
.btn-default.active,
|
||||
.btn-primary.active,
|
||||
.btn-success.active,
|
||||
.btn-info.active,
|
||||
.btn-warning.active,
|
||||
.btn-danger.active {
|
||||
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||
box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
|
||||
}
|
||||
.btn-default.disabled,
|
||||
.btn-primary.disabled,
|
||||
.btn-success.disabled,
|
||||
.btn-info.disabled,
|
||||
.btn-warning.disabled,
|
||||
.btn-danger.disabled,
|
||||
.btn-default[disabled],
|
||||
.btn-primary[disabled],
|
||||
.btn-success[disabled],
|
||||
.btn-info[disabled],
|
||||
.btn-warning[disabled],
|
||||
.btn-danger[disabled],
|
||||
fieldset[disabled] .btn-default,
|
||||
fieldset[disabled] .btn-primary,
|
||||
fieldset[disabled] .btn-success,
|
||||
fieldset[disabled] .btn-info,
|
||||
fieldset[disabled] .btn-warning,
|
||||
fieldset[disabled] .btn-danger {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
.btn-default .badge,
|
||||
.btn-primary .badge,
|
||||
.btn-success .badge,
|
||||
.btn-info .badge,
|
||||
.btn-warning .badge,
|
||||
.btn-danger .badge {
|
||||
text-shadow: none;
|
||||
}
|
||||
.btn:active,
|
||||
.btn.active {
|
||||
background-image: none;
|
||||
}
|
||||
.btn-default {
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
background-image: -webkit-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||
background-image: -o-linear-gradient(top, #fff 0%, #e0e0e0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#e0e0e0));
|
||||
background-image: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dbdbdb;
|
||||
border-color: #ccc;
|
||||
}
|
||||
.btn-default:hover,
|
||||
.btn-default:focus {
|
||||
background-color: #e0e0e0;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-default:active,
|
||||
.btn-default.active {
|
||||
background-color: #e0e0e0;
|
||||
border-color: #dbdbdb;
|
||||
}
|
||||
.btn-default.disabled,
|
||||
.btn-default[disabled],
|
||||
fieldset[disabled] .btn-default,
|
||||
.btn-default.disabled:hover,
|
||||
.btn-default[disabled]:hover,
|
||||
fieldset[disabled] .btn-default:hover,
|
||||
.btn-default.disabled:focus,
|
||||
.btn-default[disabled]:focus,
|
||||
fieldset[disabled] .btn-default:focus,
|
||||
.btn-default.disabled.focus,
|
||||
.btn-default[disabled].focus,
|
||||
fieldset[disabled] .btn-default.focus,
|
||||
.btn-default.disabled:active,
|
||||
.btn-default[disabled]:active,
|
||||
fieldset[disabled] .btn-default:active,
|
||||
.btn-default.disabled.active,
|
||||
.btn-default[disabled].active,
|
||||
fieldset[disabled] .btn-default.active {
|
||||
background-color: #e0e0e0;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #265a88 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#265a88));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff265a88', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #245580;
|
||||
}
|
||||
.btn-primary:hover,
|
||||
.btn-primary:focus {
|
||||
background-color: #265a88;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-primary:active,
|
||||
.btn-primary.active {
|
||||
background-color: #265a88;
|
||||
border-color: #245580;
|
||||
}
|
||||
.btn-primary.disabled,
|
||||
.btn-primary[disabled],
|
||||
fieldset[disabled] .btn-primary,
|
||||
.btn-primary.disabled:hover,
|
||||
.btn-primary[disabled]:hover,
|
||||
fieldset[disabled] .btn-primary:hover,
|
||||
.btn-primary.disabled:focus,
|
||||
.btn-primary[disabled]:focus,
|
||||
fieldset[disabled] .btn-primary:focus,
|
||||
.btn-primary.disabled.focus,
|
||||
.btn-primary[disabled].focus,
|
||||
fieldset[disabled] .btn-primary.focus,
|
||||
.btn-primary.disabled:active,
|
||||
.btn-primary[disabled]:active,
|
||||
fieldset[disabled] .btn-primary:active,
|
||||
.btn-primary.disabled.active,
|
||||
.btn-primary[disabled].active,
|
||||
fieldset[disabled] .btn-primary.active {
|
||||
background-color: #265a88;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-success {
|
||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #419641 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#419641));
|
||||
background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #3e8f3e;
|
||||
}
|
||||
.btn-success:hover,
|
||||
.btn-success:focus {
|
||||
background-color: #419641;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-success:active,
|
||||
.btn-success.active {
|
||||
background-color: #419641;
|
||||
border-color: #3e8f3e;
|
||||
}
|
||||
.btn-success.disabled,
|
||||
.btn-success[disabled],
|
||||
fieldset[disabled] .btn-success,
|
||||
.btn-success.disabled:hover,
|
||||
.btn-success[disabled]:hover,
|
||||
fieldset[disabled] .btn-success:hover,
|
||||
.btn-success.disabled:focus,
|
||||
.btn-success[disabled]:focus,
|
||||
fieldset[disabled] .btn-success:focus,
|
||||
.btn-success.disabled.focus,
|
||||
.btn-success[disabled].focus,
|
||||
fieldset[disabled] .btn-success.focus,
|
||||
.btn-success.disabled:active,
|
||||
.btn-success[disabled]:active,
|
||||
fieldset[disabled] .btn-success:active,
|
||||
.btn-success.disabled.active,
|
||||
.btn-success[disabled].active,
|
||||
fieldset[disabled] .btn-success.active {
|
||||
background-color: #419641;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-info {
|
||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #2aabd2 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#2aabd2));
|
||||
background-image: linear-gradient(to bottom, #5bc0de 0%, #2aabd2 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #28a4c9;
|
||||
}
|
||||
.btn-info:hover,
|
||||
.btn-info:focus {
|
||||
background-color: #2aabd2;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-info:active,
|
||||
.btn-info.active {
|
||||
background-color: #2aabd2;
|
||||
border-color: #28a4c9;
|
||||
}
|
||||
.btn-info.disabled,
|
||||
.btn-info[disabled],
|
||||
fieldset[disabled] .btn-info,
|
||||
.btn-info.disabled:hover,
|
||||
.btn-info[disabled]:hover,
|
||||
fieldset[disabled] .btn-info:hover,
|
||||
.btn-info.disabled:focus,
|
||||
.btn-info[disabled]:focus,
|
||||
fieldset[disabled] .btn-info:focus,
|
||||
.btn-info.disabled.focus,
|
||||
.btn-info[disabled].focus,
|
||||
fieldset[disabled] .btn-info.focus,
|
||||
.btn-info.disabled:active,
|
||||
.btn-info[disabled]:active,
|
||||
fieldset[disabled] .btn-info:active,
|
||||
.btn-info.disabled.active,
|
||||
.btn-info[disabled].active,
|
||||
fieldset[disabled] .btn-info.active {
|
||||
background-color: #2aabd2;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-warning {
|
||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#eb9316));
|
||||
background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #e38d13;
|
||||
}
|
||||
.btn-warning:hover,
|
||||
.btn-warning:focus {
|
||||
background-color: #eb9316;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-warning:active,
|
||||
.btn-warning.active {
|
||||
background-color: #eb9316;
|
||||
border-color: #e38d13;
|
||||
}
|
||||
.btn-warning.disabled,
|
||||
.btn-warning[disabled],
|
||||
fieldset[disabled] .btn-warning,
|
||||
.btn-warning.disabled:hover,
|
||||
.btn-warning[disabled]:hover,
|
||||
fieldset[disabled] .btn-warning:hover,
|
||||
.btn-warning.disabled:focus,
|
||||
.btn-warning[disabled]:focus,
|
||||
fieldset[disabled] .btn-warning:focus,
|
||||
.btn-warning.disabled.focus,
|
||||
.btn-warning[disabled].focus,
|
||||
fieldset[disabled] .btn-warning.focus,
|
||||
.btn-warning.disabled:active,
|
||||
.btn-warning[disabled]:active,
|
||||
fieldset[disabled] .btn-warning:active,
|
||||
.btn-warning.disabled.active,
|
||||
.btn-warning[disabled].active,
|
||||
fieldset[disabled] .btn-warning.active {
|
||||
background-color: #eb9316;
|
||||
background-image: none;
|
||||
}
|
||||
.btn-danger {
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c12e2a));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.btn-danger:hover,
|
||||
.btn-danger:focus {
|
||||
background-color: #c12e2a;
|
||||
background-position: 0 -15px;
|
||||
}
|
||||
.btn-danger:active,
|
||||
.btn-danger.active {
|
||||
background-color: #c12e2a;
|
||||
border-color: #b92c28;
|
||||
}
|
||||
.btn-danger.disabled,
|
||||
.btn-danger[disabled],
|
||||
fieldset[disabled] .btn-danger,
|
||||
.btn-danger.disabled:hover,
|
||||
.btn-danger[disabled]:hover,
|
||||
fieldset[disabled] .btn-danger:hover,
|
||||
.btn-danger.disabled:focus,
|
||||
.btn-danger[disabled]:focus,
|
||||
fieldset[disabled] .btn-danger:focus,
|
||||
.btn-danger.disabled.focus,
|
||||
.btn-danger[disabled].focus,
|
||||
fieldset[disabled] .btn-danger.focus,
|
||||
.btn-danger.disabled:active,
|
||||
.btn-danger[disabled]:active,
|
||||
fieldset[disabled] .btn-danger:active,
|
||||
.btn-danger.disabled.active,
|
||||
.btn-danger[disabled].active,
|
||||
fieldset[disabled] .btn-danger.active {
|
||||
background-color: #c12e2a;
|
||||
background-image: none;
|
||||
}
|
||||
.thumbnail,
|
||||
.img-thumbnail {
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.dropdown-menu > li > a:hover,
|
||||
.dropdown-menu > li > a:focus {
|
||||
background-color: #e8e8e8;
|
||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.dropdown-menu > .active > a,
|
||||
.dropdown-menu > .active > a:hover,
|
||||
.dropdown-menu > .active > a:focus {
|
||||
background-color: #2e6da4;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.navbar-default {
|
||||
background-image: -webkit-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||
background-image: -o-linear-gradient(top, #fff 0%, #f8f8f8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f8f8f8));
|
||||
background-image: linear-gradient(to bottom, #fff 0%, #f8f8f8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 5px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.navbar-default .navbar-nav > .open > a,
|
||||
.navbar-default .navbar-nav > .active > a {
|
||||
background-image: -webkit-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||
background-image: -o-linear-gradient(top, #dbdbdb 0%, #e2e2e2 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dbdbdb), to(#e2e2e2));
|
||||
background-image: linear-gradient(to bottom, #dbdbdb 0%, #e2e2e2 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdbdbdb', endColorstr='#ffe2e2e2', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.navbar-brand,
|
||||
.navbar-nav > li > a {
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
|
||||
}
|
||||
.navbar-inverse {
|
||||
background-image: -webkit-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||
background-image: -o-linear-gradient(top, #3c3c3c 0%, #222 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#3c3c3c), to(#222));
|
||||
background-image: linear-gradient(to bottom, #3c3c3c 0%, #222 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
||||
background-repeat: repeat-x;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.navbar-inverse .navbar-nav > .open > a,
|
||||
.navbar-inverse .navbar-nav > .active > a {
|
||||
background-image: -webkit-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||
background-image: -o-linear-gradient(top, #080808 0%, #0f0f0f 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#080808), to(#0f0f0f));
|
||||
background-image: linear-gradient(to bottom, #080808 0%, #0f0f0f 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff080808', endColorstr='#ff0f0f0f', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
-webkit-box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||
box-shadow: inset 0 3px 9px rgba(0, 0, 0, .25);
|
||||
}
|
||||
.navbar-inverse .navbar-brand,
|
||||
.navbar-inverse .navbar-nav > li > a {
|
||||
text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
|
||||
}
|
||||
.navbar-static-top,
|
||||
.navbar-fixed-top,
|
||||
.navbar-fixed-bottom {
|
||||
border-radius: 0;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a,
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a:hover,
|
||||
.navbar .navbar-nav .open .dropdown-menu > .active > a:focus {
|
||||
color: #fff;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
}
|
||||
.alert {
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, .2);
|
||||
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(0, 0, 0, .05);
|
||||
}
|
||||
.alert-success {
|
||||
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||
background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#c8e5bc));
|
||||
background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #b2dba1;
|
||||
}
|
||||
.alert-info {
|
||||
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||
background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#b9def0));
|
||||
background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #9acfea;
|
||||
}
|
||||
.alert-warning {
|
||||
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||
background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#f8efc0));
|
||||
background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #f5e79e;
|
||||
}
|
||||
.alert-danger {
|
||||
background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||
background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#e7c3c3));
|
||||
background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dca7a7;
|
||||
}
|
||||
.progress {
|
||||
background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||
background-image: -o-linear-gradient(top, #ebebeb 0%, #f5f5f5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#f5f5f5));
|
||||
background-image: linear-gradient(to bottom, #ebebeb 0%, #f5f5f5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #286090 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#286090));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #286090 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff286090', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-success {
|
||||
background-image: -webkit-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||
background-image: -o-linear-gradient(top, #5cb85c 0%, #449d44 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5cb85c), to(#449d44));
|
||||
background-image: linear-gradient(to bottom, #5cb85c 0%, #449d44 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-info {
|
||||
background-image: -webkit-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||
background-image: -o-linear-gradient(top, #5bc0de 0%, #31b0d5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#5bc0de), to(#31b0d5));
|
||||
background-image: linear-gradient(to bottom, #5bc0de 0%, #31b0d5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-warning {
|
||||
background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||
background-image: -o-linear-gradient(top, #f0ad4e 0%, #ec971f 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f0ad4e), to(#ec971f));
|
||||
background-image: linear-gradient(to bottom, #f0ad4e 0%, #ec971f 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-danger {
|
||||
background-image: -webkit-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||
background-image: -o-linear-gradient(top, #d9534f 0%, #c9302c 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9534f), to(#c9302c));
|
||||
background-image: linear-gradient(to bottom, #d9534f 0%, #c9302c 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.progress-bar-striped {
|
||||
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
|
||||
}
|
||||
.list-group {
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
|
||||
}
|
||||
.list-group-item.active,
|
||||
.list-group-item.active:hover,
|
||||
.list-group-item.active:focus {
|
||||
text-shadow: 0 -1px 0 #286090;
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2b669a 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2b669a));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2b669a 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2b669a', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #2b669a;
|
||||
}
|
||||
.list-group-item.active .badge,
|
||||
.list-group-item.active:hover .badge,
|
||||
.list-group-item.active:focus .badge {
|
||||
text-shadow: none;
|
||||
}
|
||||
.panel {
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
|
||||
}
|
||||
.panel-default > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -o-linear-gradient(top, #f5f5f5 0%, #e8e8e8 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#e8e8e8));
|
||||
background-image: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-primary > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -o-linear-gradient(top, #337ab7 0%, #2e6da4 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#2e6da4));
|
||||
background-image: linear-gradient(to bottom, #337ab7 0%, #2e6da4 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff2e6da4', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-success > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||
background-image: -o-linear-gradient(top, #dff0d8 0%, #d0e9c6 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#dff0d8), to(#d0e9c6));
|
||||
background-image: linear-gradient(to bottom, #dff0d8 0%, #d0e9c6 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-info > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||
background-image: -o-linear-gradient(top, #d9edf7 0%, #c4e3f3 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#d9edf7), to(#c4e3f3));
|
||||
background-image: linear-gradient(to bottom, #d9edf7 0%, #c4e3f3 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-warning > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||
background-image: -o-linear-gradient(top, #fcf8e3 0%, #faf2cc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#fcf8e3), to(#faf2cc));
|
||||
background-image: linear-gradient(to bottom, #fcf8e3 0%, #faf2cc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.panel-danger > .panel-heading {
|
||||
background-image: -webkit-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||
background-image: -o-linear-gradient(top, #f2dede 0%, #ebcccc 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2dede), to(#ebcccc));
|
||||
background-image: linear-gradient(to bottom, #f2dede 0%, #ebcccc 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
.well {
|
||||
background-image: -webkit-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||
background-image: -o-linear-gradient(top, #e8e8e8 0%, #f5f5f5 100%);
|
||||
background-image: -webkit-gradient(linear, left top, left bottom, from(#e8e8e8), to(#f5f5f5));
|
||||
background-image: linear-gradient(to bottom, #e8e8e8 0%, #f5f5f5 100%);
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #dcdcdc;
|
||||
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||
box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-theme.css.map */
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,16 +0,0 @@
|
||||
<%--
|
||||
Created by IntelliJ IDEA.
|
||||
User: 耿春莹
|
||||
Date: 2023/4/8
|
||||
Time: 16:43
|
||||
To change this template use File | Settings | File Templates.
|
||||
--%>
|
||||
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
|
||||
<html>
|
||||
<head>
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
||||
|
||||
require('../../js/transition.js')
|
||||
require('../../js/alert.js')
|
||||
require('../../js/button.js')
|
||||
require('../../js/carousel.js')
|
||||
require('../../js/collapse.js')
|
||||
require('../../js/dropdown.js')
|
||||
require('../../js/modal.js')
|
||||
require('../../js/tooltip.js')
|
||||
require('../../js/popover.js')
|
||||
require('../../js/scrollspy.js')
|
||||
require('../../js/tab.js')
|
||||
require('../../js/affix.js')
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,4 +0,0 @@
|
||||
package com.dao;
|
||||
|
||||
public class UserTest {
|
||||
}
|
Binary file not shown.
@ -1,14 +1,9 @@
|
||||
driver=com.mysql.jdbc.Driver
|
||||
driver=com.mysql.cj.jdbc.Driver
|
||||
url=jdbc:mysql://127.0.0.1:3306/sp_emp
|
||||
username=root
|
||||
password=root
|
||||
#定义初始连接数
|
||||
password=123456
|
||||
initialSize=0
|
||||
#定义最大连接数
|
||||
maxActive=20
|
||||
#定义最大空闲
|
||||
maxIdle=20
|
||||
#定义最小空闲
|
||||
minIdle=1
|
||||
#定义最长等待时间
|
||||
maxWait=60000
|
Loading…
Reference in new issue