pull/1/head
you 5 years ago
parent 66d631097f
commit ffc082cc28

@ -43,7 +43,7 @@
icon: 6,
time: 1000
}, function(){
location.href = data.url;
//location.href = data.url;
})
}else{
layer.open({

Binary file not shown.

@ -1,10 +1,11 @@
package javabean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
public class Admin {
/**
@ -26,7 +27,7 @@ public class Admin {
Connection connection = null;
PreparedStatement pstmt = null;
ResultSet resultSet = null;
String sql = "select * from system_manager where username=? and password=? limit 1";
String sql = "select * from system_manager where username=? and password=? limit 1";
connection = Base.getConnection();
pstmt = (PreparedStatement) connection.prepareStatement(sql);
pstmt.setString(1, username);

@ -2,13 +2,14 @@ package javabean;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.PreparedStatement;
public class Base {

Loading…
Cancel
Save