Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app-stable-website
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Android
app-stable-website
Commits
21696bda
Commit
21696bda
authored
Nov 21, 2019
by
jackzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化代码
parent
18f247eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
29 deletions
+33
-29
cartonList.php
leankcanary/cartonList.php
+33
-29
No files found.
leankcanary/cartonList.php
View file @
21696bda
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
>
<!--<![endif]-->
<head>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
>
<!--<![endif]-->
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title></title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"description"
content=
""
/>
<meta
name=
"keywords"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
name=
"keywords"
content=
""
/>
<!-- Facebook and Twitter integration -->
<meta
property=
"og:title"
content=
""
/>
<meta
property=
"og:image"
content=
""
/>
<meta
property=
"og:url"
content=
""
/>
<meta
property=
"og:site_name"
content=
""
/>
<meta
property=
"og:description"
content=
""
/>
<meta
name=
"twitter:title"
content=
""
/>
<meta
name=
"twitter:image"
content=
""
/>
<meta
name=
"twitter:url"
content=
""
/>
<meta
name=
"twitter:card"
content=
""
/>
<meta
name=
"twitter:title"
content=
""
/>
<meta
name=
"twitter:image"
content=
""
/>
<meta
name=
"twitter:url"
content=
""
/>
<meta
name=
"twitter:card"
content=
""
/>
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<link
rel=
"shortcut icon"
href=
"favicon.ico"
>
...
...
@@ -45,9 +48,9 @@
<script src="js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div
id=
"fh5co-page"
>
</head>
<body>
<div
id=
"fh5co-page"
>
<a
href=
"#"
class=
"js-fh5co-nav-toggle fh5co-nav-toggle"
><i></i></a>
<aside
id=
"fh5co-aside"
role=
"complementary"
class=
"border js-fullheight"
>
...
...
@@ -79,23 +82,23 @@
// 处理增加操作的页面
require
"dbconfig.php"
;
// 连接mysql
$link
=
@
mysqli_connect
(
HOST
,
USER
,
PASS
,
DBNAME
)
or
die
(
"提示:数据库连接失败!111111"
);
$link
=
@
mysqli_connect
(
HOST
,
USER
,
PASS
,
DBNAME
)
or
die
(
"提示:数据库连接失败!111111"
);
// 选择数据库
mysqli_select_db
(
$link
,
DBNAME
);
// 编码设置
mysqli_set_charset
(
$link
,
'utf8'
);
mysqli_set_charset
(
$link
,
'utf8'
);
// 3. 从DBNAME中查询到news数据库,返回数据库结果集,并按照addtime降序排列
$sql
=
'select * from carton order by id desc;'
;
// 结果集
$result
=
mysqli_query
(
$link
,
$sql
)
or
die
(
'添加数据出错:'
.
mysqli_error
());
$result
=
mysqli_query
(
$link
,
$sql
)
or
die
(
'添加数据出错:'
.
mysqli_error
());
// var_dump($result);
// 解析结果集,$row为新闻所有数据,$newsNum为新闻数目
$newsNum
=
mysqli_num_rows
(
$result
);
$newsNum
=
mysqli_num_rows
(
$result
);
for
(
$i
=
0
;
$i
<
$newsNum
;
$i
++
)
{
for
(
$i
=
0
;
$i
<
$newsNum
;
$i
++
)
{
$row
=
mysqli_fetch_assoc
(
$result
);
echo
"<tr>"
;
// echo "<div>编号:{$row['id']}</div>";
...
...
@@ -104,7 +107,7 @@
<div class=
\"
col-padding animate-box
\"
data-animate-effect=
\"
fadeInLeft
\"
>
<div class=
\"
blog-entry
\"
>
<div class=
\"
desc
\"
>
<h
4><a href='javascript:enterpage(
{
$row
[
'id'
]
}
)' >
{
$row
[
'className'
]
}
</a></h4
>
<h
3><a href='javascript:enterpage(
{
$row
[
'id'
]
}
)' >
{
$row
[
'className'
]
}
</a></h3
>
<span>
</small>
...
...
@@ -151,27 +154,28 @@
<script
src=
"js/main.js"
></script>
<script
type=
"text/javascript"
>
function
changestatus
(
id
)
{
if
(
confirm
(
"确定要修改该日志吗?"
)){
function
changestatus
(
id
)
{
if
(
confirm
(
"确定要修改该日志吗?"
))
{
//window.location = "action-del.php?id="+id;
}
}
function
enterpage
(
id
)
{
window
.
location
=
"cartonDetail.php?id="
+
id
;
function
enterpage
(
id
)
{
window
.
location
=
"cartonDetail.php?id="
+
id
;
}
</script>
<style
type=
"text/css"
>
.commitHash
{
.commitHash
{
margin-top
:
20px
;
text-decoration
:
none
;
text-decoration
:
none
;
}
.currentBranch
{
text-decoration
:
none
;
}
</style>
</body>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment