-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,403 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
$qblsl=$_GET['qblsl']; | ||
|
||
if($_GET['qbllx'] =="sj"){ | ||
//服务器地址 | ||
$severname="10.3.143.81"; | ||
//登陆用户名 | ||
$username="mgj_com"; | ||
//登陆密码 | ||
$password="63PWznc6a5pi7NFD"; | ||
//数据库名字 | ||
$dbname="mgj_com"; | ||
|
||
//创建链接 | ||
$con=new mysqli($severname,$username,$password,$dbname); | ||
//检擦是否链接成功 | ||
if($con->connect_error){ | ||
exit("链接失败:".$con->connect_error); | ||
} | ||
//数据库查询语句 | ||
$sql = "select * from sp limit ".($qblsl*10-10).",10"; | ||
$result = $con->query($sql); | ||
|
||
|
||
//创建一个数组接受转存数据库的值 | ||
$fhsz = array(); | ||
//逐条取出集中的值,并加入数组 | ||
while($row = $result->fetch_assoc()) { | ||
$fhsz[] = $row; | ||
// echo json_encode($row,JSON_UNESCAPED_UNICODE); | ||
} | ||
// echo $result; | ||
// echo json_encode($results,JSON_UNESCAPED_UNICODE); | ||
|
||
//关闭数据库链接 | ||
$con->close(); | ||
//返回数据 | ||
echo json_encode($fhsz,JSON_UNESCAPED_UNICODE); | ||
}; | ||
|
||
?> |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
.splb_body{ | ||
width: 100%; | ||
min-height: 300px; | ||
margin-top: 153px; | ||
} | ||
.splb_body_n{ | ||
width: 1200px; | ||
min-height: 300px; | ||
margin: auto; | ||
/* background-color: aliceblue; */ | ||
} | ||
.splb_body_n_bt{ | ||
font-size: 26px; | ||
margin-bottom: 10px; | ||
font-weight: 500; | ||
} | ||
.splb_body_n_jgkz{ | ||
width: 1200px; | ||
height: 40px; | ||
border: 1px solid #d4d4d4; | ||
line-height: 40px; | ||
padding-left: 10px; | ||
box-sizing: border-box; | ||
margin-bottom: 14px; | ||
} | ||
.splb_body_n_jgkz input{ | ||
width: 50px; | ||
height: 19px; | ||
position: relative; | ||
top: -1px; | ||
} | ||
.splb_body_n_jgkz input:nth-child(3){ | ||
background: none; | ||
border: 1px solid #a9a9a9; | ||
cursor: pointer; | ||
height: 23px; | ||
margin-left: 5px | ||
} | ||
.splb_body_n_splb{ | ||
width: 1200px; | ||
min-height: 100px; | ||
/* background-color: aliceblue; */ | ||
margin-bottom: 14px; | ||
} | ||
.splb_body_n_splb_g{ | ||
width: 220px; | ||
height: 374px; | ||
/* background-color: #d4d4d4; */ | ||
border: 1px solid #f2f2f2; | ||
box-sizing: border-box; | ||
display: inline-block; | ||
margin: 0 17px 17px 0; | ||
} | ||
.splb_body_n_splb_g:hover{ | ||
border: 1px solid #f46; | ||
} | ||
.splb_body_n_splb_g_img{ | ||
width: 100%; | ||
height: 293px; | ||
background-color: aliceblue; | ||
overflow: hidden; | ||
} | ||
.splb_body_n_splb_g_img img{ | ||
width: 100%; | ||
} | ||
.splb_body_n_splb_g_bt{ | ||
height: 39px; | ||
overflow: hidden; | ||
padding: 0 10px 0 10px; | ||
box-sizing: border-box | ||
} | ||
.splb_body_n_splb_g_bt p{ | ||
font-size: 14px; | ||
color: #757575; | ||
line-height: 18px | ||
} | ||
.splb_body_n_splb_g_xx{ | ||
height: 36px; | ||
width: 100%; | ||
padding: 0 10px 0 10px; | ||
box-sizing: border-box; | ||
/* background-color: aliceblue; */ | ||
line-height: 36px; | ||
} | ||
.splb_body_n_splb_g_xx>span{ | ||
|
||
} | ||
.splb_body_n_splb_g_jg{ | ||
float: left; | ||
font-size: 16px; | ||
font-weight: 600; | ||
} | ||
.splb_body_n_splb_g_yj{ | ||
float: left; | ||
margin-left: 10px; | ||
color: #757575; | ||
text-decoration:line-through; | ||
} | ||
.splb_body_n_splb_g_sc{ | ||
float: right; | ||
} | ||
.splb_body_n_splb_g_sc img{ | ||
width: 15px; | ||
position: relative;; | ||
top: 2px; | ||
} |
Oops, something went wrong.