parent
5620a9e43d
commit
693bd985d3
@ -1,6 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<bytecodeTargetLevel target="8" />
|
<annotationProcessing>
|
||||||
|
<profile name="Maven default annotation processors profile" enabled="true">
|
||||||
|
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||||
|
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||||
|
<outputRelativeToContentRoot value="true" />
|
||||||
|
<module name="XianShuServer2" />
|
||||||
|
</profile>
|
||||||
|
</annotationProcessing>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
@ -1,19 +1,21 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||||
<data-source source="LOCAL" name="xianshu@localhost" uuid="f04c8927-a966-444e-85ca-60ef5b013a3e">
|
<data-source source="LOCAL" name="books" uuid="de9cc106-e395-49cd-8c89-b24234398d58">
|
||||||
<driver-ref>mysql.8</driver-ref>
|
<driver-ref>mysql.8</driver-ref>
|
||||||
<synchronize>true</synchronize>
|
<synchronize>true</synchronize>
|
||||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||||
<jdbc-url>jdbc:mysql://localhost:3306/xianshu</jdbc-url>
|
<jdbc-url>jdbc:mysql://localhost:3306/userinfo</jdbc-url>
|
||||||
<driver-properties>
|
</data-source>
|
||||||
<property name="autoReconnect" value="true" />
|
<data-source source="LOCAL" name="hibernate.cfg.xml/Hibernate" uuid="3b24039d-522b-4006-804e-1e90f02ed18e">
|
||||||
<property name="zeroDateTimeBehavior" value="CONVERT_TO_NULL" />
|
<driver-ref>mysql</driver-ref>
|
||||||
<property name="tinyInt1isBit" value="false" />
|
<synchronize>true</synchronize>
|
||||||
<property name="characterEncoding" value="utf8" />
|
<imported>true</imported>
|
||||||
<property name="characterSetResults" value="utf8" />
|
<remarks>Hibernate
|
||||||
<property name="yearIsDateType" value="false" />
|
|
||||||
</driver-properties>
|
D:/idea/XianShuServer2/src/main/resources/hibernate.cfg.xml</remarks>
|
||||||
|
<jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
|
||||||
|
<jdbc-url>jdbc:mysql://localhost:3306/userinfo</jdbc-url>
|
||||||
</data-source>
|
</data-source>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,2 @@
|
|||||||
|
#n:information_schema
|
||||||
|
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
@ -0,0 +1,2 @@
|
|||||||
|
#n:information_schema
|
||||||
|
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,2 @@
|
|||||||
|
#n:information_schema
|
||||||
|
!<md> [null, 0, null, null, -2147483648, -2147483648]
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8">
|
||||||
|
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
||||||
|
<file url="PROJECT" charset="UTF-8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -1,6 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
|
<component name="FrameworkDetectionExcludesConfiguration">
|
||||||
|
<file type="web" url="file://$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="MavenProjectsManager">
|
||||||
|
<option name="originalFiles">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/pom.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/out" />
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="FacetManager">
|
||||||
|
<facet type="hibernate" name="Hibernate">
|
||||||
|
<configuration>
|
||||||
|
<datasource-map>
|
||||||
|
<unit-entry name="hibernate.cfg.xml" value="de9cc106-e395-49cd-8c89-b24234398d58" />
|
||||||
|
</datasource-map>
|
||||||
|
<naming-strategy-map />
|
||||||
|
<deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/src/main/resources/hibernate.cfg.xml" />
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
|
<facet type="jpa" name="JPA">
|
||||||
|
<configuration>
|
||||||
|
<setting name="validation-enabled" value="true" />
|
||||||
|
<datasource-mapping>
|
||||||
|
<factory-entry name="Entities" />
|
||||||
|
</datasource-mapping>
|
||||||
|
<naming-strategy-map />
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
|
</component>
|
||||||
|
</module>
|
@ -0,0 +1,91 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<groupId>org.example</groupId>
|
||||||
|
<artifactId>XianShuServer2</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<packaging>war</packaging>
|
||||||
|
|
||||||
|
<name>XianShuServer2 Maven Webapp</name>
|
||||||
|
<!-- FIXME change it to the project's website -->
|
||||||
|
<url>http://www.example.com</url>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.11</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.servlet</groupId>
|
||||||
|
<artifactId>servlet-api</artifactId>
|
||||||
|
<version>2.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>mysql</groupId>
|
||||||
|
<artifactId>mysql-connector-java</artifactId>
|
||||||
|
<version>8.0.13</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>4.12</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>XianShuServer2</finalName>
|
||||||
|
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
|
<version>3.1.0</version>
|
||||||
|
</plugin>
|
||||||
|
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
|
<version>3.0.2</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.8.0</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>2.22.1</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
|
<version>3.2.2</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-install-plugin</artifactId>
|
||||||
|
<version>2.5.2</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<version>2.8.2</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>lib</directory>
|
||||||
|
<targetPath>/WEB-INF/lib/</targetPath>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.jar</include>
|
||||||
|
</includes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
</build>
|
||||||
|
</project>
|
@ -0,0 +1,20 @@
|
|||||||
|
package BookOperation;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServlet;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public class BookInfoServlet extends HttpServlet {
|
||||||
|
@Override
|
||||||
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
doPost(req,resp);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
System.out.println("程序成功的执行到这里");
|
||||||
|
System.out.println(req.getAttribute("BookId"));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,60 @@
|
|||||||
|
package BookOperation;
|
||||||
|
|
||||||
|
import Connect.Connect;
|
||||||
|
import JavaBean.Book;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServlet;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
public class UploadServlet extends HttpServlet {
|
||||||
|
private Connect con = Connect.getCon();
|
||||||
|
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
|
throws ServletException, IOException {
|
||||||
|
request.setCharacterEncoding("gb2312");
|
||||||
|
response.setContentType("text/html;charset=utf-8");
|
||||||
|
|
||||||
|
String bookname=request.getParameter("bookname");
|
||||||
|
String category=request.getParameter("category");
|
||||||
|
double price= Double.parseDouble(request.getParameter("price"));
|
||||||
|
System.out.println(bookname);
|
||||||
|
System.out.println(category);
|
||||||
|
System.out.println(price);
|
||||||
|
|
||||||
|
Session hSession=Connect.getHsession();
|
||||||
|
Transaction tx=hSession.beginTransaction();
|
||||||
|
//String hql = "FROM User WHERE username=:name";
|
||||||
|
//Query query = hSession.createQuery(hql);
|
||||||
|
//query.setParameter("name",name);
|
||||||
|
//List results = query.list();
|
||||||
|
|
||||||
|
shangchuan(bookname,hSession,category,price);
|
||||||
|
|
||||||
|
tx.commit();
|
||||||
|
// User user= (User) results.get(0);
|
||||||
|
|
||||||
|
System.out.println("上传成功");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void shangchuan(String bookname, Session session, String category, double price){
|
||||||
|
Book book = new Book();
|
||||||
|
//book.setBookid(7);
|
||||||
|
book.setBookname(bookname);
|
||||||
|
book.setPrice(price);
|
||||||
|
book.setCategory(category);
|
||||||
|
book.setImageurl("cbsdaka");
|
||||||
|
book.setSellerId(1);
|
||||||
|
session.save(book);//保存对象进入数据库
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,66 @@
|
|||||||
|
package Connect;
|
||||||
|
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.SessionFactory;
|
||||||
|
import org.hibernate.cfg.Configuration;
|
||||||
|
|
||||||
|
import java.sql.*;
|
||||||
|
public class Connect {
|
||||||
|
private Statement sql=null;
|
||||||
|
private ResultSet result;
|
||||||
|
private static Session session=null;
|
||||||
|
// private String url="jdbc:mysql://localhost:3306/userinfo?serverTimezone=GMT%2B8";
|
||||||
|
// private String user="root";
|
||||||
|
// private String passWord ="1996315211cjr";
|
||||||
|
private Connection con=null;
|
||||||
|
private static Connect connect=new Connect("jdbc:mysql://localhost:3306/userinfo?serverTimezone=GMT%2B8","root","1996315211cjr");
|
||||||
|
// private Connect con=new Connect(url,user,passWord);
|
||||||
|
public static Connect getCon(){
|
||||||
|
return connect;
|
||||||
|
}
|
||||||
|
private Connect(String url, String user, String passWord){
|
||||||
|
try{
|
||||||
|
Class.forName("com.mysql.jdbc.Driver");
|
||||||
|
}
|
||||||
|
catch(Exception e){
|
||||||
|
System.out.print(e);
|
||||||
|
}
|
||||||
|
try{
|
||||||
|
con = DriverManager.getConnection(url,user,passWord);
|
||||||
|
}
|
||||||
|
catch(SQLException e){
|
||||||
|
System.out.println(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public int getUpdate(String str){
|
||||||
|
int insert=0;
|
||||||
|
try{
|
||||||
|
sql=con.createStatement();
|
||||||
|
insert=sql.executeUpdate(str);
|
||||||
|
}catch(SQLException e){
|
||||||
|
System.out.println(e);
|
||||||
|
}
|
||||||
|
return insert;
|
||||||
|
}
|
||||||
|
public ResultSet getResult(String str){
|
||||||
|
try{
|
||||||
|
sql=con.createStatement();
|
||||||
|
result=sql.executeQuery(str);
|
||||||
|
}catch(SQLException e){
|
||||||
|
System.out.println(e);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
public static Session getConfig(){
|
||||||
|
Configuration configuration = new Configuration();//加载配置信息
|
||||||
|
configuration.configure();
|
||||||
|
SessionFactory sessionFactory=configuration.buildSessionFactory();
|
||||||
|
return sessionFactory.openSession();
|
||||||
|
}
|
||||||
|
public static Session getHsession(){
|
||||||
|
return session;
|
||||||
|
}
|
||||||
|
public static void saveSession(Session hsession){
|
||||||
|
session=hsession;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,86 @@
|
|||||||
|
package JavaBean;
|
||||||
|
|
||||||
|
public class Book {
|
||||||
|
private int bookId;
|
||||||
|
private String bookname;
|
||||||
|
private Double price;
|
||||||
|
private String category;
|
||||||
|
private String imageurl;
|
||||||
|
private Integer sellerId;
|
||||||
|
|
||||||
|
public int getBookId() {
|
||||||
|
return bookId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBookId(int bookId) {
|
||||||
|
this.bookId = bookId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBookname() {
|
||||||
|
return bookname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBookname(String bookname) {
|
||||||
|
this.bookname = bookname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getPrice() {
|
||||||
|
return price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrice(Double price) {
|
||||||
|
this.price = price;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getImageurl() {
|
||||||
|
return imageurl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setImageurl(String imageurl) {
|
||||||
|
this.imageurl = imageurl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSellerId() {
|
||||||
|
return sellerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSellerId(Integer sellerId) {
|
||||||
|
this.sellerId = sellerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
|
||||||
|
Book book = (Book) o;
|
||||||
|
|
||||||
|
if (bookId != book.bookId) return false;
|
||||||
|
if (bookname != null ? !bookname.equals(book.bookname) : book.bookname != null) return false;
|
||||||
|
if (price != null ? !price.equals(book.price) : book.price != null) return false;
|
||||||
|
if (category != null ? !category.equals(book.category) : book.category != null) return false;
|
||||||
|
if (imageurl != null ? !imageurl.equals(book.imageurl) : book.imageurl != null) return false;
|
||||||
|
if (sellerId != null ? !sellerId.equals(book.sellerId) : book.sellerId != null) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = bookId;
|
||||||
|
result = 31 * result + (bookname != null ? bookname.hashCode() : 0);
|
||||||
|
result = 31 * result + (price != null ? price.hashCode() : 0);
|
||||||
|
result = 31 * result + (category != null ? category.hashCode() : 0);
|
||||||
|
result = 31 * result + (imageurl != null ? imageurl.hashCode() : 0);
|
||||||
|
result = 31 * result + (sellerId != null ? sellerId.hashCode() : 0);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package JavaBean;
|
||||||
|
|
||||||
|
public class Order {
|
||||||
|
private int orderId;
|
||||||
|
private Integer buyerId;
|
||||||
|
private Integer sellerId;
|
||||||
|
private int bookId;
|
||||||
|
|
||||||
|
public int getOrderId() {
|
||||||
|
return orderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrderId(int orderId) {
|
||||||
|
this.orderId = orderId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBuyerId() {
|
||||||
|
return buyerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBuyerId(Integer buyerId) {
|
||||||
|
this.buyerId = buyerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSellerId() {
|
||||||
|
return sellerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSellerId(Integer sellerId) {
|
||||||
|
this.sellerId = sellerId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBookId() {
|
||||||
|
return bookId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBookId(int bookId) {
|
||||||
|
this.bookId = bookId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
|
||||||
|
Order order = (Order) o;
|
||||||
|
|
||||||
|
if (orderId != order.orderId) return false;
|
||||||
|
if (bookId != order.bookId) return false;
|
||||||
|
if (buyerId != null ? !buyerId.equals(order.buyerId) : order.buyerId != null) return false;
|
||||||
|
if (sellerId != null ? !sellerId.equals(order.sellerId) : order.sellerId != null) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = orderId;
|
||||||
|
result = 31 * result + (buyerId != null ? buyerId.hashCode() : 0);
|
||||||
|
result = 31 * result + (sellerId != null ? sellerId.hashCode() : 0);
|
||||||
|
result = 31 * result + bookId;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,62 @@
|
|||||||
|
package JavaBean;
|
||||||
|
|
||||||
|
public class Shopcar {
|
||||||
|
private int userId;
|
||||||
|
private Integer bookid;
|
||||||
|
private Integer number;
|
||||||
|
private int itemid;
|
||||||
|
|
||||||
|
public int getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(int userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getBookid() {
|
||||||
|
return bookid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBookid(Integer bookid) {
|
||||||
|
this.bookid = bookid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getNumber() {
|
||||||
|
return number;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNumber(Integer number) {
|
||||||
|
this.number = number;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
|
||||||
|
Shopcar shopcar = (Shopcar) o;
|
||||||
|
|
||||||
|
if (userId != shopcar.userId) return false;
|
||||||
|
if (bookid != null ? !bookid.equals(shopcar.bookid) : shopcar.bookid != null) return false;
|
||||||
|
if (number != null ? !number.equals(shopcar.number) : shopcar.number != null) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = userId;
|
||||||
|
result = 31 * result + (bookid != null ? bookid.hashCode() : 0);
|
||||||
|
result = 31 * result + (number != null ? number.hashCode() : 0);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getItemid() {
|
||||||
|
return itemid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setItemid(int itemid) {
|
||||||
|
this.itemid = itemid;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,75 @@
|
|||||||
|
package JavaBean;
|
||||||
|
|
||||||
|
public class User {
|
||||||
|
private String username;
|
||||||
|
private String password;
|
||||||
|
private String school;
|
||||||
|
private String sex;
|
||||||
|
private int userId;
|
||||||
|
|
||||||
|
public String getUsername() {
|
||||||
|
return username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUsername(String username) {
|
||||||
|
this.username = username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPassword() {
|
||||||
|
return password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPassword(String password) {
|
||||||
|
this.password = password;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSchool() {
|
||||||
|
return school;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchool(String school) {
|
||||||
|
this.school = school;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSex() {
|
||||||
|
return sex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSex(String sex) {
|
||||||
|
this.sex = sex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(int userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (o == null || getClass() != o.getClass()) return false;
|
||||||
|
|
||||||
|
User user = (User) o;
|
||||||
|
|
||||||
|
if (userId != user.userId) return false;
|
||||||
|
if (username != null ? !username.equals(user.username) : user.username != null) return false;
|
||||||
|
if (password != null ? !password.equals(user.password) : user.password != null) return false;
|
||||||
|
if (school != null ? !school.equals(user.school) : user.school != null) return false;
|
||||||
|
if (sex != null ? !sex.equals(user.sex) : user.sex != null) return false;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int result = username != null ? username.hashCode() : 0;
|
||||||
|
result = 31 * result + (password != null ? password.hashCode() : 0);
|
||||||
|
result = 31 * result + (school != null ? school.hashCode() : 0);
|
||||||
|
result = 31 * result + (sex != null ? sex.hashCode() : 0);
|
||||||
|
result = 31 * result + userId;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,69 @@
|
|||||||
|
package Register;
|
||||||
|
import Connect.Connect;
|
||||||
|
import JavaBean.User;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.query.Query;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServlet;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.servlet.http.HttpSession;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class LoginServlet extends HttpServlet {
|
||||||
|
private Connect con = Connect.getCon();
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
doPost(req, resp);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
|
throws ServletException, IOException {
|
||||||
|
request.setCharacterEncoding("utf-8");
|
||||||
|
response.setContentType("text/html; charset=utf-8");
|
||||||
|
String name = request.getParameter("username");
|
||||||
|
String password = request.getParameter("password");
|
||||||
|
Session hSession=Connect.getConfig();
|
||||||
|
Connect.saveSession(hSession);
|
||||||
|
Transaction tx=hSession.beginTransaction();
|
||||||
|
String hql = "FROM User WHERE username=:name";
|
||||||
|
Query query = hSession.createQuery(hql);
|
||||||
|
query.setParameter("name",name);
|
||||||
|
List results = query.list();
|
||||||
|
tx.commit();
|
||||||
|
User user = (User) results.get(0);
|
||||||
|
if (user.getPassword().equals(password)) {
|
||||||
|
System.out.println("登陆成功");
|
||||||
|
HttpSession session = request.getSession();
|
||||||
|
session.setAttribute("userID", user.getUserId());
|
||||||
|
System.out.println(user.getUserId());
|
||||||
|
request.getRequestDispatcher("index.html").forward(request, response);
|
||||||
|
}
|
||||||
|
// String sql = "select password from user where username=" + "\"" + name + "\"";
|
||||||
|
// System.out.println(sql);
|
||||||
|
// ResultSet rs = con.getResult(sql);
|
||||||
|
// try {
|
||||||
|
// if (rs.next()) {
|
||||||
|
// String word = rs.getString("password");
|
||||||
|
// if (word.equals(password)) {
|
||||||
|
// System.out.println(rs.getString("password"));
|
||||||
|
// System.out.println("登陆成功!!");
|
||||||
|
// request.getRequestDispatcher("qianduan/html/index.html").forward(request, response);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// } catch (SQLException e) {
|
||||||
|
// e.printStackTrace();
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,47 @@
|
|||||||
|
package Register;
|
||||||
|
|
||||||
|
import JavaBean.Book;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.query.Query;
|
||||||
|
import Connect.Connect;
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServlet;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class MainServlet extends HttpServlet {
|
||||||
|
@Override
|
||||||
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
System.out.println("this is");
|
||||||
|
doPost(req,resp);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
List<Book> books = new ArrayList<Book>();
|
||||||
|
Session hSession = Connect.getHsession();
|
||||||
|
Transaction tx = hSession.beginTransaction();
|
||||||
|
String hql = "FROM Book WHERE bookId<13";
|
||||||
|
Query query = hSession.createQuery(hql);
|
||||||
|
tx.commit();
|
||||||
|
books = query.list();
|
||||||
|
System.out.println(books.size());
|
||||||
|
for (int i = 0; i < books.size(); i++) {
|
||||||
|
System.out.println("id:" + books.get(i).getBookId() + " name:" + books.get(i).getBookname());
|
||||||
|
}
|
||||||
|
System.out.println(books);
|
||||||
|
ObjectMapper mapper = new ObjectMapper();
|
||||||
|
String bookList=mapper.writeValueAsString(books);
|
||||||
|
System.out.println(bookList);
|
||||||
|
resp.setContentType("text/html; charset=UTF-8");
|
||||||
|
mapper.writeValue(resp.getWriter(),bookList);
|
||||||
|
// System.out.println(" fefwfqfwrwrfw");
|
||||||
|
// String bookId=req.getParameter("bookId");
|
||||||
|
// System.out.println(bookId);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package Register;
|
||||||
|
import Connect.Connect;
|
||||||
|
import JavaBean.User;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServlet;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.PrintWriter;
|
||||||
|
public class RegisterServlet extends HttpServlet{
|
||||||
|
|
||||||
|
private Connect con=Connect.getCon();
|
||||||
|
protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException {
|
||||||
|
request.setCharacterEncoding("UTF-8");
|
||||||
|
String username=request.getParameter("username");
|
||||||
|
String password=request.getParameter("password");
|
||||||
|
String sex=request.getParameter("sex");
|
||||||
|
String school=request.getParameter("school");
|
||||||
|
System.out.println(username);
|
||||||
|
System.out.println(password);
|
||||||
|
System.out.println(sex);
|
||||||
|
System.out.println(school);
|
||||||
|
response.setContentType("text/html; UTF-8");
|
||||||
|
PrintWriter out=response.getWriter();
|
||||||
|
Session hSession=Connect.getConfig();
|
||||||
|
Transaction tx=hSession.beginTransaction();
|
||||||
|
User newUser=new User();
|
||||||
|
newUser.setPassword(password);
|
||||||
|
newUser.setSchool(school);
|
||||||
|
newUser.setSex(sex);
|
||||||
|
newUser.setUsername(username);
|
||||||
|
hSession.save(newUser);
|
||||||
|
tx.commit();
|
||||||
|
response.sendRedirect("login.html");
|
||||||
|
}
|
||||||
|
protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
|
||||||
|
doPost(request,response);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,110 @@
|
|||||||
|
package ShopCar;
|
||||||
|
|
||||||
|
import Connect.Connect;
|
||||||
|
import JavaBean.Shopcar;
|
||||||
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.query.Query;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServlet;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import javax.servlet.http.HttpSession;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Iterator;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class ShopCartServlet extends HttpServlet {
|
||||||
|
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
if(req.getServletPath().equals("/addBook.do")){
|
||||||
|
addBook(req, resp);
|
||||||
|
}else if(req.getServletPath().equals("/deleteBook.do")){
|
||||||
|
deleteBook(req, resp);
|
||||||
|
}else if(req.getServletPath().equals("/showCart.do")){
|
||||||
|
showShopcar(req,resp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void showShopcar(HttpServletRequest req, HttpServletResponse resp) {
|
||||||
|
HttpSession session=req.getSession();
|
||||||
|
Object obj=session.getAttribute("userID");
|
||||||
|
int userId = 0;
|
||||||
|
if(obj!=null) {
|
||||||
|
userId = (int) obj;
|
||||||
|
System.out.println("userID是"+userId);
|
||||||
|
}
|
||||||
|
Session hSession=Connect.getConfig();
|
||||||
|
Transaction tx=hSession.beginTransaction();
|
||||||
|
String hql = "FROM Shopcar WHERE userId=:userid";
|
||||||
|
Query query = hSession.createQuery(hql);
|
||||||
|
query.setParameter("userid",userId);
|
||||||
|
tx.commit();
|
||||||
|
List results = query.list();
|
||||||
|
System.out.println("购物车中一共有"+results.size());
|
||||||
|
Iterator it=results.iterator();
|
||||||
|
while(it.hasNext()){
|
||||||
|
Shopcar shopcar= (Shopcar) it.next();
|
||||||
|
System.out.println("Bookid"+shopcar.getBookid());
|
||||||
|
System.out.println("Itemid"+shopcar.getItemid());
|
||||||
|
System.out.println("useid"+shopcar.getUserId());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void addBook(HttpServletRequest req, HttpServletResponse resp){
|
||||||
|
HttpSession session=req.getSession();
|
||||||
|
Object obj=session.getAttribute("userID");
|
||||||
|
int bookID=10;
|
||||||
|
int userId = 0;
|
||||||
|
if(obj!=null) {
|
||||||
|
userId = (int) obj;
|
||||||
|
System.out.println("userID是"+userId);
|
||||||
|
}
|
||||||
|
Session hSession= Connect.getConfig();
|
||||||
|
if(userId!=0) {
|
||||||
|
System.out.println(" this is ");
|
||||||
|
Transaction tx=hSession.beginTransaction();
|
||||||
|
Shopcar shopCar=new Shopcar();
|
||||||
|
shopCar.setUserId(userId);
|
||||||
|
shopCar.setBookid(bookID);
|
||||||
|
shopCar.setNumber(10);
|
||||||
|
hSession.save(shopCar);
|
||||||
|
tx.commit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||||
|
System.out.println("程序执行到这里了");
|
||||||
|
String bookid=req.getParameter("bookid");
|
||||||
|
System.out.println(bookid);
|
||||||
|
doPost(req, resp);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void deleteBook(HttpServletRequest req,HttpServletResponse resp){
|
||||||
|
HttpSession session=req.getSession();
|
||||||
|
Object obj=session.getAttribute("userID");
|
||||||
|
int bookID=10;
|
||||||
|
int userId = 0;
|
||||||
|
if(obj!=null) {
|
||||||
|
userId = (int) obj;
|
||||||
|
System.out.println("userID是"+userId);
|
||||||
|
}
|
||||||
|
Session hSession= Connect.getConfig();
|
||||||
|
if(userId!=0) {
|
||||||
|
Transaction tx1=hSession.beginTransaction();
|
||||||
|
String hql = "FROM Shopcar WHERE bookid=:bookid AND userId=:userid";
|
||||||
|
Query query = hSession.createQuery(hql);
|
||||||
|
query.setParameter("bookid",bookID);
|
||||||
|
query.setParameter("userid",userId);
|
||||||
|
List results = query.list();
|
||||||
|
tx1.commit();
|
||||||
|
if(results.size()>0){
|
||||||
|
Transaction tx2=hSession.beginTransaction();
|
||||||
|
Shopcar deleteItem= (Shopcar) results.get(0);
|
||||||
|
hSession.delete(deleteItem);
|
||||||
|
tx2.commit();
|
||||||
|
}else{
|
||||||
|
System.out.println("无法删除");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<!DOCTYPE hibernate-mapping PUBLIC
|
||||||
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
<hibernate-mapping>
|
||||||
|
|
||||||
|
<class name="JavaBean.Book" table="book" schema="userinfo">
|
||||||
|
<id name="bookId">
|
||||||
|
<column name="bookId" sql-type="int(11)"/>
|
||||||
|
</id>
|
||||||
|
<property name="bookname">
|
||||||
|
<column name="bookname" sql-type="varchar(45)" length="45" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="price">
|
||||||
|
<column name="price" sql-type="float" precision="-1" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="category">
|
||||||
|
<column name="category" sql-type="varchar(45)" length="45" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="imageurl">
|
||||||
|
<column name="imageurl" sql-type="varchar(45)" length="45" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="sellerId">
|
||||||
|
<column name="sellerID" sql-type="int(11)" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
</hibernate-mapping>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<!DOCTYPE hibernate-mapping PUBLIC
|
||||||
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
<hibernate-mapping>
|
||||||
|
|
||||||
|
<class name="JavaBean.Order" table="order" schema="userinfo">
|
||||||
|
<id name="orderId">
|
||||||
|
<column name="orderId" sql-type="int(11)"/>
|
||||||
|
</id>
|
||||||
|
<property name="buyerId">
|
||||||
|
<column name="buyerID" sql-type="int(11)" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="sellerId">
|
||||||
|
<column name="sellerID" sql-type="int(11)" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="bookId">
|
||||||
|
<column name="bookID" sql-type="int(11)"/>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
</hibernate-mapping>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<!DOCTYPE hibernate-mapping PUBLIC
|
||||||
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
<hibernate-mapping>
|
||||||
|
|
||||||
|
<class name="JavaBean.Shopcar" table="shopcar" schema="userinfo">
|
||||||
|
<id name="itemid">
|
||||||
|
<column name="itemid" sql-type="int(11)"/>
|
||||||
|
</id>
|
||||||
|
<property name="userId">
|
||||||
|
<column name="userID" sql-type="int(11)"/>
|
||||||
|
</property>
|
||||||
|
<property name="bookid">
|
||||||
|
<column name="bookid" sql-type="int(11)" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="number">
|
||||||
|
<column name="number" sql-type="int(11)" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
</hibernate-mapping>
|
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<!DOCTYPE hibernate-mapping PUBLIC
|
||||||
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||||
|
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||||
|
<hibernate-mapping>
|
||||||
|
|
||||||
|
<class name="JavaBean.User" table="user" schema="userinfo">
|
||||||
|
<id name="userId">
|
||||||
|
<column name="userID" sql-type="int(11)"/>
|
||||||
|
</id>
|
||||||
|
<property name="username">
|
||||||
|
<column name="username" sql-type="varchar(45)" length="45"/>
|
||||||
|
</property>
|
||||||
|
<property name="password">
|
||||||
|
<column name="password" sql-type="varchar(20)" length="20"/>
|
||||||
|
</property>
|
||||||
|
<property name="school">
|
||||||
|
<column name="school" sql-type="varchar(20)" length="20" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
<property name="sex">
|
||||||
|
<column name="sex" sql-type="varchar(4)" length="4" not-null="true"/>
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
</hibernate-mapping>
|
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/css.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/dingdancss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/gamecss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/huiyuancss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/lenongshecss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/renzhongcss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/shangpingcss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/shequcss.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/shequs.css" charset="GBK" />
|
||||||
|
<file url="file://$PROJECT_DIR$/css文件/shopcss.css" charset="GBK" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="JavaScriptSettings">
|
||||||
|
<option name="languageLevel" value="ES6" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/Website.iml" filepath="$PROJECT_DIR$/.idea/Website.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,75 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="8c87bf82-f400-4ed4-92a3-e36a0f7e38b0" name="Default Changelist" comment="" />
|
||||||
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
|
<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="ProjectId" id="1SYkmEfVUDQvw8K7qsXXZC6lY5z" />
|
||||||
|
<component name="PropertiesComponent">
|
||||||
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="aspect.path.notification.shown" value="true" />
|
||||||
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/css文件" />
|
||||||
|
</component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="C:\Users\TANGNAN\Desktop\Website\css文件" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
|
<component name="RunDashboard">
|
||||||
|
<option name="ruleStates">
|
||||||
|
<list>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="StatusDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="RunManager" selected="JavaScript Debug.index.html">
|
||||||
|
<configuration name="dingdan.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/Website/dingdan.html" useBuiltInWebServerPort="true">
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<configuration name="huiyuan.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63343/Website/huiyuan.html" useBuiltInWebServerPort="true">
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<configuration name="index.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63343/Website/index.html" useBuiltInWebServerPort="true">
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<configuration name="shangping.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63343/Website/shangping.html" useBuiltInWebServerPort="true">
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
<recent_temporary>
|
||||||
|
<list>
|
||||||
|
<item itemvalue="JavaScript Debug.index.html" />
|
||||||
|
<item itemvalue="JavaScript Debug.huiyuan.html" />
|
||||||
|
<item itemvalue="JavaScript Debug.shangping.html" />
|
||||||
|
<item itemvalue="JavaScript Debug.dingdan.html" />
|
||||||
|
</list>
|
||||||
|
</recent_temporary>
|
||||||
|
</component>
|
||||||
|
<component name="SvnConfiguration">
|
||||||
|
<configuration />
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="8c87bf82-f400-4ed4-92a3-e36a0f7e38b0" name="Default Changelist" comment="" />
|
||||||
|
<created>1571748073094</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1571748073094</updated>
|
||||||
|
<workItem from="1571748074340" duration="2528000" />
|
||||||
|
<workItem from="1571792036851" duration="62000" />
|
||||||
|
<workItem from="1571794551033" duration="37700000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="1" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,31 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>jquery</title>
|
||||||
|
<script src="js/jquery-3.3.1.min.js"></script>
|
||||||
|
<script>
|
||||||
|
function sendAjaxPost(){
|
||||||
|
let json = {
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "loadBooks",
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
data: JSON.stringify(json), /*传给后端的数据格式json*/
|
||||||
|
dataType: "json", /*后端返回的数据格式json*/
|
||||||
|
success: function(data){
|
||||||
|
alert(data);
|
||||||
|
},
|
||||||
|
error: function (message) {
|
||||||
|
alert(message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body onload="sendAjaxPost()">
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,74 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||||
|
version="4.0">
|
||||||
|
<display-name></display-name>
|
||||||
|
<servlet>
|
||||||
|
<description>This is the description of my J2EE component</description>
|
||||||
|
<display-name>This is the display name of my J2EE component</display-name>
|
||||||
|
<servlet-name>RegisterServlet</servlet-name>
|
||||||
|
<servlet-class>Register.RegisterServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<description>This is the description of my J2EE component</description>
|
||||||
|
<display-name>This is the display name of my J2EE component</display-name>
|
||||||
|
<servlet-name>LoginServlet</servlet-name>
|
||||||
|
<servlet-class>Register.LoginServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<description>This is the description of my J2EE component</description>
|
||||||
|
<display-name>This is the display name of my J2EE component</display-name>
|
||||||
|
<servlet-name>UploadServlet</servlet-name>
|
||||||
|
<servlet-class>BookOperation.UploadServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<description>This is the description of my J2EE component</description>
|
||||||
|
<display-name>This is the display name of my J2EE component</display-name>
|
||||||
|
<servlet-name>ShopCartServlet</servlet-name>
|
||||||
|
<servlet-class>ShopCar.ShopCartServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<description>This is the description of my J2EE component</description>
|
||||||
|
<display-name>This is the display name of my J2EE component</display-name>
|
||||||
|
<servlet-name>MainServlet</servlet-name>
|
||||||
|
<servlet-class>Register.MainServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet>
|
||||||
|
<description>This is the description of my J2EE component</description>
|
||||||
|
<display-name>This is the display name of my J2EE component</display-name>
|
||||||
|
<servlet-name>BookInfoServlet</servlet-name>
|
||||||
|
<servlet-class>BookOperation.BookInfoServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>MainServlet</servlet-name>
|
||||||
|
<url-pattern>/loadBooks</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>RegisterServlet</servlet-name>
|
||||||
|
<url-pattern>/register.action</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>UploadServlet</servlet-name>
|
||||||
|
<url-pattern>/upload.action</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>LoginServlet</servlet-name>
|
||||||
|
<url-pattern>/login.action</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>ShopCartServlet</servlet-name>
|
||||||
|
<url-pattern>*.do</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>ShopCartServlet</servlet-name>
|
||||||
|
<url-pattern>/ShopCartServlet</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>BookInfoServlet</servlet-name>
|
||||||
|
<url-pattern>/bookIntro</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
<welcome-file-list>
|
||||||
|
<welcome-file>login.html</welcome-file>
|
||||||
|
</welcome-file-list>
|
||||||
|
</web-app>
|
@ -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 one or more lines are too long
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 one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,252 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>产品介绍</title>
|
||||||
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="qianduan/css/main.css">
|
||||||
|
<script src="js/bootstrap.min.js"></script>
|
||||||
|
<script src="js/jquery-3.3.1.min.js"></script>
|
||||||
|
<![endif]-->
|
||||||
|
<script>
|
||||||
|
function sendAjaxPost(){
|
||||||
|
let json = {
|
||||||
|
}
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "loadBooks",
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
data: JSON.stringify(json), /*传给后端的数据格式json*/
|
||||||
|
dataType: "json", /*后端返回的数据格式json*/
|
||||||
|
success: function(data){
|
||||||
|
json = eval(data);
|
||||||
|
for (var i = 0; i < json.length; i++) {
|
||||||
|
//alert(json[i].bookId + " " +json[i].imageurl);
|
||||||
|
document.getElementById(i).src = json[i].imageurl;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error: function (message) {
|
||||||
|
alert(message);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script>
|
||||||
|
function sendBook(bookid){
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "bookIntro"+"?BookId="+bookid,
|
||||||
|
contentType: "application/json; charset=utf-8",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body onload="sendAjaxPost()">
|
||||||
|
<div class="top-nav">
|
||||||
|
<div class="container clear-float">
|
||||||
|
<div class="fl">
|
||||||
|
<a class="item" href="#">首页</a>
|
||||||
|
</div>
|
||||||
|
<div class="fr">
|
||||||
|
<a class="item" href="#">购物车</a>
|
||||||
|
<a class="item" href="#">我的订单</a>
|
||||||
|
<a class="item" href="#">收藏夹</a>
|
||||||
|
<a class="item" href="#">登录</a>
|
||||||
|
<a class="item" href="#">注册</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="header clear-float">
|
||||||
|
<div class="container">
|
||||||
|
<div class="col-2 logo">
|
||||||
|
<!-- <img src="./.idea/img/未标题-1.jpg">-->
|
||||||
|
<div>
|
||||||
|
<div class="span-1" style="line-height: 32px;font-size: 40px;color:#dd182b ;font-weight: 800;margin-top: 5px;">闲书网</div>
|
||||||
|
<div class="span-2" style="font-size: 12px;color:black ;font-weight: 600;">买旧书,上闲书</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-5 search-bar">
|
||||||
|
<input type="text">
|
||||||
|
<button>搜索</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 cart">
|
||||||
|
<a href="#">我的购物车</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="main-promote clear-float">
|
||||||
|
<div class="container">
|
||||||
|
<div class="col-2 cat">
|
||||||
|
<div class="item"><a href="#" >小说</a> / <a href="#">文学</a> </div>
|
||||||
|
<div class="item"><a href="#" >期刊</a> / <a href="#">报纸</a> </div>
|
||||||
|
<div class="item"><a href="#" >历史</a> / <a href="#">地理</a> </div>
|
||||||
|
<div class="item"><a href="#" >政治</a> / <a href="#">法律</a> </div>
|
||||||
|
<div class="item"><a href="#" >哲学</a> / <a href="#">心理</a> </div>
|
||||||
|
<div class="item"><a href="#" >经济</a> / <a href="#">社科</a> </div>
|
||||||
|
<div class="item"><a href="#" >童书</a> / <a href="#">生活</a> </div>
|
||||||
|
<div class="item"><a href="#" >工程技术</a> / <a href="#">互联网</a> </div>
|
||||||
|
<div class="item"><a href="#" >自然科学</a> / <a href="#">医药卫生</a> </div>
|
||||||
|
<div class="item"><a href="#" >教材</a> / <a href="#">教辅</a> </div>
|
||||||
|
<div class="item"><a href="#" >考试</a> / <a href="#">计算机</a> </div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6">
|
||||||
|
<div class="slider">
|
||||||
|
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||||||
|
<!-- Indicators -->
|
||||||
|
<ol class="carousel-indicators">
|
||||||
|
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
||||||
|
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||||
|
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<!-- Wrapper for slides -->
|
||||||
|
<div class="carousel-inner" role="listbox">
|
||||||
|
<div class="item active">
|
||||||
|
<img src="qianduan/img/zhu.jpg" alt="...">
|
||||||
|
<p>pige </p>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<img src="qianduan/img/zhu_02.jpg" alt="...">
|
||||||
|
<div class="carousel-caption">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<img src="qianduan/img/zhu_03.jpg" alt="...">
|
||||||
|
<div class="carousel-caption">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Controls -->
|
||||||
|
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||||
|
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||||
|
<span class="sr-only">Previous</span>
|
||||||
|
</a>
|
||||||
|
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||||
|
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||||
|
<span class="sr-only">Next</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="sub-promote">
|
||||||
|
<div class="col-5">
|
||||||
|
<a href="pro-int.html"><img src="qianduan/img/zhucuxiao_01.jpg"></a>
|
||||||
|
</div>
|
||||||
|
<div class="col-5">
|
||||||
|
<img src="qianduan/img/zhucuxiao_02.jpg">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-2 info" >
|
||||||
|
<div class="auth clear-float">
|
||||||
|
<div class="avatar"></div>
|
||||||
|
你好,欢迎剁手~
|
||||||
|
</div>
|
||||||
|
<div class="anno">
|
||||||
|
<div class="title"> 公告</div>
|
||||||
|
<div class="content">
|
||||||
|
闲书网目前仅处于测试阶段,很多功能尚未完善,会在后续版本中逐步完善~
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
|
<div class="cat-promote clear-float">
|
||||||
|
<div class="title" >五折专区</div>
|
||||||
|
<div class="content">
|
||||||
|
<div class="col-2 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="0" onclick="sendBook(0)" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="1" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-2 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="2" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="3" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="cat-promote clear-float">
|
||||||
|
<div class="title" >必读经典</div>
|
||||||
|
<div class="content">
|
||||||
|
<div class="col-2 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="4" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="5" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-2 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="6" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="7" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="cat-promote clear-float">
|
||||||
|
<div class="title" >9.9元包邮</div>
|
||||||
|
<div class="content">
|
||||||
|
<div class="col-2 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="8" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="9" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-2 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="10" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 item">
|
||||||
|
<div class="card">
|
||||||
|
<img id="11" alt="...">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="footer clear-float">
|
||||||
|
<div class="container">
|
||||||
|
<div >
|
||||||
|
@闲书网
|
||||||
|
</div>
|
||||||
|
<a href="#">关于我们</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,73 @@
|
|||||||
|
class Book {
|
||||||
|
constructor(name, price) {
|
||||||
|
this.name = name
|
||||||
|
this.price = price
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function appendBooks() {
|
||||||
|
var bookList = [new Book("1", 1),new Book("2", 2)]
|
||||||
|
for (book in bookList) {
|
||||||
|
var ul = document.createElement("ul")
|
||||||
|
ul.classList.add("clearfix", "item-content")
|
||||||
|
ul.innerHTML = '<li class=\"td td-chk\"\>\
|
||||||
|
<div class=\"td-inner\"\>\
|
||||||
|
<div style=\"height: 82px;position: relative;\"\>\
|
||||||
|
<div class=\"cart-checkbox\"\>\
|
||||||
|
<input type=\"checkbox\" class=\"chk\"\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</li\>\
|
||||||
|
<li class=\"td td-item\"\>\
|
||||||
|
<div class=\"td-inner\"\>\
|
||||||
|
<div class=\"item-pic\"\>\
|
||||||
|
<a href=\"#\"\>\
|
||||||
|
<img src=\"../img/logo.png\" alt=\"物品图片\"\>\
|
||||||
|
</a\>\
|
||||||
|
</div\>\
|
||||||
|
<div class=\"item-info\"\>\
|
||||||
|
<div class=\"item-basic-info\"\>\
|
||||||
|
<div\><p\>Apple/苹果 iPhone 11 Pro</p\></div\>\
|
||||||
|
</div\>\
|
||||||
|
<div class=\"item-other-info\"\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</li\>\
|
||||||
|
<li class=\"td td-info\"\>\
|
||||||
|
\
|
||||||
|
</li\>\
|
||||||
|
<li class=\"td td-price\"\>\
|
||||||
|
<div class=\"td-inner\"\>\
|
||||||
|
<div class=\"item-price\"\>\
|
||||||
|
<div class=\"price-content\"\>\
|
||||||
|
<div class=\"price-line\"\>\
|
||||||
|
<p\>¥8699.00</p\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</li\>\
|
||||||
|
<li class=\"td td-amount\"\>\
|
||||||
|
<div class=\"td-inner\"\>\
|
||||||
|
<div class=\"amount-wrapper\"\>\
|
||||||
|
<div class=\"item-amount\"\>\
|
||||||
|
\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</div\>\
|
||||||
|
</li\>\
|
||||||
|
<li class=\"td td-sum\"\>\
|
||||||
|
<div class=\"td-inner\"\>\
|
||||||
|
<p class=\"number\"\>¥17398.00</p\>\
|
||||||
|
</div\>\
|
||||||
|
</li\>\
|
||||||
|
<li class=\"td td-op\"\>\
|
||||||
|
<div class=\"td-inner\"\>\
|
||||||
|
<a href=\"#\"\>移入收藏夹</a\>\
|
||||||
|
<a href=\"#\"\>删除</a\>\
|
||||||
|
</div\>\
|
||||||
|
</li\>'
|
||||||
|
document.body.appendChild(ul)
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
|||||||
|
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
|
||||||
|
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')
|
@ -0,0 +1,75 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
|
||||||
|
<title>注册</title>
|
||||||
|
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="qianduan/css/p-i.css">
|
||||||
|
<link rel="stylesheet" href="qianduan/css/login.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="top-nav">
|
||||||
|
<div class="container clear-float">
|
||||||
|
<div class="fl">
|
||||||
|
<a class="item" href="#">首页</a>
|
||||||
|
</div>
|
||||||
|
<div class="fr">
|
||||||
|
<a class="item" href="#">购物车</a>
|
||||||
|
<a class="item" href="#">我的订单</a>
|
||||||
|
<a class="item" href="#">收藏夹</a>
|
||||||
|
<a class="item" href="#">登录</a>
|
||||||
|
<a class="item" href="#">注册</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="header container" style="margin-top: 25px;margin-right: 20px">
|
||||||
|
<div class="span-1 " >闲书网<i></i></div>
|
||||||
|
<div class="span-2" >买旧书,上闲书<i></i></div>
|
||||||
|
</div>
|
||||||
|
<div class="container row">
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<img src="qianduan/img/zhuce.jpg" style="";>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<form action="login.action" method="post">
|
||||||
|
<div class="box-username">
|
||||||
|
<input type="text" name="username" id="" placeholder="请输入您的用户名">
|
||||||
|
</div>
|
||||||
|
<div class="box-password">
|
||||||
|
<label>
|
||||||
|
<img id="eye" src="qianduan/img/closeeye.jpg " style="width: 24px">
|
||||||
|
</label>
|
||||||
|
<input type="password" name="password" id="pwd" placeholder="请输入您的密码">
|
||||||
|
<button type="submit" class="btn btn-default">立即登录</button>
|
||||||
|
<a href="register.html">立即注册</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script>
|
||||||
|
var eye=document.getElementById("eye");
|
||||||
|
var pwd=document.getElementById("pwd");
|
||||||
|
var flag=0;
|
||||||
|
eye.onclick=function () {
|
||||||
|
if(flag==0){
|
||||||
|
eye.src="qianduan/img/openeye.jpg ";
|
||||||
|
pwd.type='text';
|
||||||
|
flag=1;
|
||||||
|
}else {
|
||||||
|
eye.src="qianduan/img/closeeye.jpg ";
|
||||||
|
pwd.type='password';
|
||||||
|
flag=0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</html>
|
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="JavaScriptSettings">
|
||||||
|
<option name="languageLevel" value="ES6" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/新版闲书网主页.iml" filepath="$PROJECT_DIR$/.idea/新版闲书网主页.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="masterDetails">
|
||||||
|
<states>
|
||||||
|
<state key="ProjectJDKs.UI">
|
||||||
|
<settings>
|
||||||
|
<last-edited>1.8</last-edited>
|
||||||
|
<splitter-proportions>
|
||||||
|
<option name="proportions">
|
||||||
|
<list>
|
||||||
|
<option value="0.2" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</splitter-proportions>
|
||||||
|
</settings>
|
||||||
|
</state>
|
||||||
|
</states>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -0,0 +1,36 @@
|
|||||||
|
.box-password,
|
||||||
|
.box-username{
|
||||||
|
width: 400px;
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
margin: 100px auto;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.box-password{
|
||||||
|
position: relative;
|
||||||
|
bottom: 50px;
|
||||||
|
}
|
||||||
|
.box-password input,
|
||||||
|
.box-username input{
|
||||||
|
height: 50px;
|
||||||
|
width: 370px;
|
||||||
|
border: 0;
|
||||||
|
background-color: #f9f9f9 ;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
.box-password button{
|
||||||
|
position: absolute;
|
||||||
|
left: 140px;
|
||||||
|
top:100px;
|
||||||
|
}
|
||||||
|
.box-password a{
|
||||||
|
position: absolute;
|
||||||
|
left: 330px;
|
||||||
|
top:50px
|
||||||
|
}
|
||||||
|
.box-password img{
|
||||||
|
position: absolute;
|
||||||
|
top:24px;
|
||||||
|
right: 0px;
|
||||||
|
width: 24px;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,221 @@
|
|||||||
|
*{
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/*background: rgba(0,0,0,.1);*/
|
||||||
|
-webkit-box-sizing: background 200ms ;
|
||||||
|
-o-transition: background 200ms ;
|
||||||
|
transition: background 200ms;/*改变页面中颜色变换时间*/
|
||||||
|
}
|
||||||
|
.container{
|
||||||
|
display: block;
|
||||||
|
max-width:1080px;
|
||||||
|
margin:0 auto;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
font-size: 14px;
|
||||||
|
color: #444;
|
||||||
|
background: #f9f9f9;
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
a{
|
||||||
|
text-decoration: none;/*下划线去掉*/
|
||||||
|
}
|
||||||
|
img{
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
.fl{
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fr{
|
||||||
|
float:right;
|
||||||
|
}
|
||||||
|
.clear-float:after,
|
||||||
|
.clear-float:before{
|
||||||
|
content:"";
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.col-1,
|
||||||
|
.col-2,
|
||||||
|
.col-3,
|
||||||
|
.col-4,
|
||||||
|
.col-5,
|
||||||
|
.col-6,
|
||||||
|
.col-7,
|
||||||
|
.col-8,
|
||||||
|
.col-9{
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.col-1{
|
||||||
|
width: 10%;
|
||||||
|
}
|
||||||
|
.col-2{
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
.col-3{
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
.col-4{
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
.col-5{
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
.col-6{
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
.col-7{
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
.col-8{
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.col-9{
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
.top-nav{
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
|
.top-nav .item{
|
||||||
|
display: inline-block;
|
||||||
|
padding: 6px 10px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.top-nav .item:hover{
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header{
|
||||||
|
padding: 20px 0px;
|
||||||
|
}
|
||||||
|
.header .logo .span-1 {
|
||||||
|
font-size: 40px;
|
||||||
|
color:#dd182b ;
|
||||||
|
font-weight: 800;
|
||||||
|
font-family: "Sitka Text";
|
||||||
|
}
|
||||||
|
|
||||||
|
.header .logo .span-2 {
|
||||||
|
font-size: 12px;
|
||||||
|
color:black ;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.header .logo{
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.header .search-bar{
|
||||||
|
border: 2px solid #dd128b;
|
||||||
|
background: #dd182b;
|
||||||
|
}
|
||||||
|
.header .search-bar input,
|
||||||
|
.header .search-bar button{
|
||||||
|
float: left;
|
||||||
|
border: 0;
|
||||||
|
padding: 10px;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
.header .search-bar input{
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.header .search-bar input:focus{ /*在输入时的一点点投影*/
|
||||||
|
-webkit-box-shadow: inset 0 0 2px 2px rgba(0,0,0,.3);
|
||||||
|
box-shadow: inset 0 0 2px 2px rgba(0,0,0,.3);
|
||||||
|
}
|
||||||
|
.header .search-bar button{
|
||||||
|
width: 20%;
|
||||||
|
background: #dd182b;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.header .search-bar button:hover{
|
||||||
|
background: #ce1829;
|
||||||
|
}
|
||||||
|
.header .cart{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.header .cart a{
|
||||||
|
float: right;
|
||||||
|
padding: 10px;
|
||||||
|
background: #fff;
|
||||||
|
border: 2px solid #eee;
|
||||||
|
width: 60%;
|
||||||
|
color: #dd182b;
|
||||||
|
}
|
||||||
|
.main-promote{
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-promote .cat{
|
||||||
|
background: #6e6568;
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
}
|
||||||
|
.main-promote .cat .item{
|
||||||
|
padding: 14px 20px;
|
||||||
|
}
|
||||||
|
.main-promote .cat .item:hover{
|
||||||
|
background: rgba(0,0,0,.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-promote .info{
|
||||||
|
padding: 10px;
|
||||||
|
background: #fff;
|
||||||
|
color: #888;
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
||||||
|
box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
||||||
|
|
||||||
|
}
|
||||||
|
.main-promote .info .avatar{
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
background: #aaa;
|
||||||
|
border-radius: 50%;
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.main-promote .info > *{
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cat-promote .title:before{
|
||||||
|
content: "";
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 5px;
|
||||||
|
height: 22px;
|
||||||
|
background: #dd182b;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.cat-promote .title{
|
||||||
|
font-size: 22px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cat-promote .item{
|
||||||
|
padding:5px;
|
||||||
|
}
|
||||||
|
.cat-promote .card{
|
||||||
|
height: 300px;
|
||||||
|
background: #ccc;
|
||||||
|
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
||||||
|
box-shadow: 0 1px 2px rgba(0,0,0,.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer{
|
||||||
|
text-align: center;
|
||||||
|
padding:30px 0;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.footer a{
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main-promote .cat a:link{
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
.main-promote .cat a:hover{
|
||||||
|
color: goldenrod;
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,180 @@
|
|||||||
|
*{
|
||||||
|
-webkit-box-sizing: border-box;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/*background: rgba(0,0,0,.1);*/
|
||||||
|
-webkit-box-sizing: background 200ms ;
|
||||||
|
-o-transition: background 200ms ;
|
||||||
|
transition: background 200ms;/*改变页面中颜色变换时间*/
|
||||||
|
}
|
||||||
|
.container{
|
||||||
|
display: block;
|
||||||
|
max-width:1080px;
|
||||||
|
margin:0 auto;
|
||||||
|
}
|
||||||
|
body{
|
||||||
|
font-size: 14px;
|
||||||
|
color: #444;
|
||||||
|
background: #f9f9f9;
|
||||||
|
line-height: 1.7;
|
||||||
|
}
|
||||||
|
a{
|
||||||
|
text-decoration: none;/*下划线去掉*/
|
||||||
|
}
|
||||||
|
img{
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
.fl{
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fr{
|
||||||
|
float:right;
|
||||||
|
}
|
||||||
|
.clear-float:after,
|
||||||
|
.clear-float:before{
|
||||||
|
content:"";
|
||||||
|
display: block;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
.col-1,
|
||||||
|
.col-2,
|
||||||
|
.col-3,
|
||||||
|
.col-4,
|
||||||
|
.col-5,
|
||||||
|
.col-6,
|
||||||
|
.col-7,
|
||||||
|
.col-8,
|
||||||
|
.col-9{
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
min-height: 1px;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.col-1{
|
||||||
|
width: 10%;
|
||||||
|
}
|
||||||
|
.col-2{
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
.col-3{
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
.col-4{
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
.col-5{
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
.col-6{
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
.col-7{
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
.col-8{
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.col-9{
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
.top-nav{
|
||||||
|
background: #eee;
|
||||||
|
}
|
||||||
|
.top-nav .item{
|
||||||
|
display: inline-block;
|
||||||
|
padding: 6px 10px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.top-nav .item:hover{
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header .span-1 {
|
||||||
|
line-height:5px ;
|
||||||
|
margin-top: 20px ;
|
||||||
|
font-size: 40px;
|
||||||
|
color:#dd182b ;
|
||||||
|
font-weight: 800;
|
||||||
|
font-family: "Sitka Text";
|
||||||
|
width: 200px;
|
||||||
|
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
.header .span-1 i{
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.header .span-2 {
|
||||||
|
font-size: 6px;
|
||||||
|
color:black ;
|
||||||
|
font-weight: 600;
|
||||||
|
width: 200px;
|
||||||
|
text-align: justify;
|
||||||
|
}
|
||||||
|
.header .span-2 i{
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.header .logo{
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
.header .search-bar{
|
||||||
|
border: 2px solid #dd128b;
|
||||||
|
background: #dd182b;
|
||||||
|
padding-top: 2px;
|
||||||
|
padding-left: 2px;
|
||||||
|
}
|
||||||
|
.header .search-bar input,
|
||||||
|
.header .search-bar button{
|
||||||
|
float: left;
|
||||||
|
border: 0;
|
||||||
|
padding: 10px;
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
.header .search-bar input{
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.header .search-bar input:focus{ /*在输入时的一点点投影*/
|
||||||
|
-webkit-box-shadow: inset 0 0 2px 2px rgba(0,0,0,.3);
|
||||||
|
box-shadow: inset 0 0 2px 2px rgba(0,0,0,.3);
|
||||||
|
}
|
||||||
|
.header .search-bar button{
|
||||||
|
width: 20%;
|
||||||
|
background: #dd182b;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.header .search-bar button:hover{
|
||||||
|
background: #ce1829;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.product .col-6 .product-info{
|
||||||
|
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
.product .price{
|
||||||
|
font-size: 40px;
|
||||||
|
color:red;
|
||||||
|
vertical-align: middle/*让促销价也居中显示*/
|
||||||
|
}
|
||||||
|
.product .note{
|
||||||
|
color: goldenrod;
|
||||||
|
}
|
||||||
|
.product .price-background{
|
||||||
|
background: gainsboro;
|
||||||
|
padding-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.product .table1{
|
||||||
|
border-style: dashed hidden dashed hidden;
|
||||||
|
}
|
||||||
|
.product .xiaoliang,
|
||||||
|
.product .leijipingjia,
|
||||||
|
.product .songxianshubi
|
||||||
|
{
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,77 @@
|
|||||||
|
|
||||||
|
.switch span{
|
||||||
|
color: #ccc;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.switch span.active{
|
||||||
|
color: #dd182b;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .input#code,
|
||||||
|
.login .input#repeat,
|
||||||
|
.login .checkbox#box,
|
||||||
|
.login .sub-btn#sub-1,
|
||||||
|
.login .row#refresh{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.signup .input#log-in{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.login .input#log-in{
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-left: 40px;
|
||||||
|
}
|
||||||
|
.password-field{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.col-sm-10 .message{
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #999;
|
||||||
|
background: url("../img/wenhao.jpg") no-repeat left center;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
.password-field1 .wrong{
|
||||||
|
color: red;
|
||||||
|
background-image: url("../img/wrong.jpg");
|
||||||
|
}
|
||||||
|
.password-field1 .right{
|
||||||
|
color: #00CC00;
|
||||||
|
background-image: url("../img/right.jpg");
|
||||||
|
}
|
||||||
|
.password-field2 .right1{
|
||||||
|
color: #00CC00;
|
||||||
|
background: url("../img/right.jpg") no-repeat left center;
|
||||||
|
}
|
||||||
|
.password-field2 .wrong1{
|
||||||
|
color: red;
|
||||||
|
background: url("../img/wrong.jpg") no-repeat left center;
|
||||||
|
}
|
||||||
|
.col-sm-10 .message2{
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #999;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.col-sm-10 .message3{
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 10px;
|
||||||
|
color: #999;
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-code-field .right2{
|
||||||
|
color: #00CC00;
|
||||||
|
background: url("../img/right.jpg") no-repeat left center;
|
||||||
|
}
|
||||||
|
.input-code-field .wrong2{
|
||||||
|
color: red;
|
||||||
|
background: url("../img/wrong.jpg") no-repeat left center;
|
||||||
|
}
|
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 24 KiB |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue