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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
137 additions
and
133 deletions
+137
-133
cartonList.php
leankcanary/cartonList.php
+137
-133
No files found.
leankcanary/cartonList.php
View file @
21696bda
<!DOCTYPE html>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if lt IE 7]>
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if IE 7]>
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
>
<!--<![endif]-->
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<head>
<!--[if IE 8]>
<meta
charset=
"utf-8"
>
<html class="no-js lt-ie9"> <![endif]-->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!--[if gt IE 8]><!-->
<title></title>
<html
class=
"no-js"
>
<!--<![endif]-->
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<head>
<meta
name=
"description"
content=
""
/>
<meta
charset=
"utf-8"
>
<meta
name=
"keywords"
content=
""
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Facebook and Twitter integration -->
<title></title>
<meta
property=
"og:title"
content=
""
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
property=
"og:image"
content=
""
/>
<meta
name=
"description"
content=
""
/>
<meta
property=
"og:url"
content=
""
/>
<meta
name=
"keywords"
content=
""
/>
<meta
property=
"og:site_name"
content=
""
/>
<!-- Facebook and Twitter integration -->
<meta
property=
"og:description"
content=
""
/>
<meta
property=
"og:title"
content=
""
/>
<meta
name=
"twitter:title"
content=
""
/>
<meta
property=
"og:image"
content=
""
/>
<meta
name=
"twitter:image"
content=
""
/>
<meta
property=
"og:url"
content=
""
/>
<meta
name=
"twitter:url"
content=
""
/>
<meta
property=
"og:site_name"
content=
""
/>
<meta
name=
"twitter:card"
content=
""
/>
<meta
property=
"og:description"
content=
""
/>
<meta
name=
"twitter:title"
content=
""
/>
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<meta
name=
"twitter:image"
content=
""
/>
<link
rel=
"shortcut icon"
href=
"favicon.ico"
>
<meta
name=
"twitter:url"
content=
""
/>
<meta
name=
"twitter:card"
content=
""
/>
<link
href=
"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700"
rel=
"stylesheet"
>
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- Animate.css -->
<link
rel=
"shortcut icon"
href=
"favicon.ico"
>
<link
rel=
"stylesheet"
href=
"css/animate.css"
>
<!-- Icomoon Icon Fonts-->
<link
href=
"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"css/icomoon.css"
>
<!-- Bootstrap -->
<!-- Animate.css -->
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<link
rel=
"stylesheet"
href=
"css/animate.css"
>
<!-- Flexslider -->
<!-- Icomoon Icon Fonts-->
<link
rel=
"stylesheet"
href=
"css/flexslider.css"
>
<link
rel=
"stylesheet"
href=
"css/icomoon.css"
>
<!-- Theme style -->
<!-- Bootstrap -->
<link
rel=
"stylesheet"
href=
"css/style.css"
>
<link
rel=
"stylesheet"
href=
"css/bootstrap.css"
>
<!-- Flexslider -->
<!-- Modernizr JS -->
<link
rel=
"stylesheet"
href=
"css/flexslider.css"
>
<script
src=
"js/modernizr-2.6.2.min.js"
></script>
<!-- Theme style -->
<!-- FOR IE9 below -->
<link
rel=
"stylesheet"
href=
"css/style.css"
>
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<!-- Modernizr JS -->
<![endif]-->
<script
src=
"js/modernizr-2.6.2.min.js"
></script>
<!-- FOR IE9 below -->
</head>
<!--[if lt IE 9]>
<body>
<script src="js/respond.min.js"></script>
<div
id=
"fh5co-page"
>
<![endif]-->
<a
href=
"#"
class=
"js-fh5co-nav-toggle fh5co-nav-toggle"
><i></i></a>
<aside
id=
"fh5co-aside"
role=
"complementary"
class=
"border js-fullheight"
>
</head>
<body>
<h1
id=
"fh5co-logo"
><a
href=
"index.php"
>
canary
</a></h1>
<div
id=
"fh5co-page"
>
<nav
id=
"fh5co-main-menu"
role=
"navigation"
>
<a
href=
"#"
class=
"js-fh5co-nav-toggle fh5co-nav-toggle"
><i></i></a>
<ul>
<aside
id=
"fh5co-aside"
role=
"complementary"
class=
"border js-fullheight"
>
<li><a
href=
"index.php"
>
内存泄露监测
</a></li>
<li
class=
"fh5co-active"
><a
href=
"cartonList.php"
>
应用卡顿监测
</a></li>
<h1
id=
"fh5co-logo"
><a
href=
"index.php"
>
canary
</a></h1>
<!-- <li><a href="portfolio.html">Portfolio</a></li>
<nav
id=
"fh5co-main-menu"
role=
"navigation"
>
<li><a href="about.html">About</a></li>
<ul>
<li><a href="contact.html">Contact</a></li>-->
<li><a
href=
"index.php"
>
内存泄露监测
</a></li>
</ul>
<li
class=
"fh5co-active"
><a
href=
"cartonList.php"
>
应用卡顿监测
</a></li>
</nav>
<!-- <li><a href="portfolio.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<div
class=
"fh5co-footer"
>
<li><a href="contact.html">Contact</a></li>-->
<p>
Copyright
©
2019.Company name All rights reserved
</p>
</ul>
</div>
</nav>
</aside>
<div
class=
"fh5co-footer"
>
<p>
Copyright
©
2019.Company name All rights reserved
</p>
<div
id=
"fh5co-main"
>
</div>
<div
class=
"fh5co-narrow-content"
>
<h1
class=
"fh5co-heading animate-box"
data-animate-effect=
"fadeInLeft"
>
卡顿日志输出
</h1>
</aside>
<div
class=
"row row-bottom-padded-md"
>
<div
id=
"fh5co-main"
>
<div
class=
"fh5co-narrow-content"
>
<?php
<h1
class=
"fh5co-heading animate-box"
data-animate-effect=
"fadeInLeft"
>
卡顿日志输出
</h1>
<div
class=
"row row-bottom-padded-md"
>
// 处理增加操作的页面
require
"dbconfig.php"
;
// 连接mysql
<?php
$link
=
@
mysqli_connect
(
HOST
,
USER
,
PASS
,
DBNAME
)
or
die
(
"提示:数据库连接失败!111111"
);
// 选择数据库
// 处理增加操作的页面
mysqli_select_db
(
$link
,
DBNAME
);
require
"dbconfig.php"
;
// 编码设置
// 连接mysql
mysqli_set_charset
(
$link
,
'utf8'
);
$link
=
@
mysqli_connect
(
HOST
,
USER
,
PASS
,
DBNAME
)
or
die
(
"提示:数据库连接失败!111111"
);
// 选择数据库
// 3. 从DBNAME中查询到news数据库,返回数据库结果集,并按照addtime降序排列
mysqli_select_db
(
$link
,
DBNAME
);
$sql
=
'select * from carton order by id desc;'
;
// 编码设置
mysqli_set_charset
(
$link
,
'utf8'
);
// 结果集
$result
=
mysqli_query
(
$link
,
$sql
)
or
die
(
'添加数据出错:'
.
mysqli_error
());
// 3. 从DBNAME中查询到news数据库,返回数据库结果集,并按照addtime降序排列
// var_dump($result);
$sql
=
'select * from carton order by id desc;'
;
// 解析结果集,$row为新闻所有数据,$newsNum为新闻数目
// 结果集
$newsNum
=
mysqli_num_rows
(
$result
);
$result
=
mysqli_query
(
$link
,
$sql
)
or
die
(
'添加数据出错:'
.
mysqli_error
());
// var_dump($result);
for
(
$i
=
0
;
$i
<
$newsNum
;
$i
++
){
$row
=
mysqli_fetch_assoc
(
$result
);
// 解析结果集,$row为新闻所有数据,$newsNum为新闻数目
echo
"<tr>"
;
$newsNum
=
mysqli_num_rows
(
$result
);
for
(
$i
=
0
;
$i
<
$newsNum
;
$i
++
)
{
$row
=
mysqli_fetch_assoc
(
$result
);
echo
"<tr>"
;
// echo "<div>编号:{$row['id']}</div>";
// echo "<div>编号:{$row['id']}</div>";
echo
echo
"
"
<div class=
\"
col-padding animate-box
\"
data-animate-effect=
\"
fadeInLeft
\"
>
<div class=
\"
col-padding animate-box
\"
data-animate-effect=
\"
fadeInLeft
\"
>
<div class=
\"
blog-entry
\"
>
<div class=
\"
blog-entry
\"
>
<div class=
\"
desc
\"
>
<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>
<span>
</small>
</small>
...
@@ -125,53 +128,54 @@
...
@@ -125,53 +128,54 @@
</div>
</div>
</div>
</div>
"
;
"
;
}
}
// 5. 释放结果集
// 5. 释放结果集
mysqli_free_result
(
$result
);
mysqli_free_result
(
$result
);
mysqli_close
(
$link
);
mysqli_close
(
$link
);
?>
?>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<!-- jQuery -->
<script
src=
"js/jquery.min.js"
></script>
<script
src=
"js/jquery.min.js"
></script>
<!-- jQuery Easing -->
<!-- jQuery Easing -->
<script
src=
"js/jquery.easing.1.3.js"
></script>
<script
src=
"js/jquery.easing.1.3.js"
></script>
<!-- Bootstrap -->
<!-- Bootstrap -->
<script
src=
"js/bootstrap.min.js"
></script>
<script
src=
"js/bootstrap.min.js"
></script>
<!-- Waypoints -->
<!-- Waypoints -->
<script
src=
"js/jquery.waypoints.min.js"
></script>
<script
src=
"js/jquery.waypoints.min.js"
></script>
<!-- Flexslider -->
<!-- Flexslider -->
<script
src=
"js/jquery.flexslider-min.js"
></script>
<script
src=
"js/jquery.flexslider-min.js"
></script>
<!-- MAIN JS -->
<script
src=
"js/main.js"
></script>
<!-- MAIN JS -->
<script
src=
"js/main.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
function
changestatus
(
id
)
{
function
changestatus
(
id
)
{
if
(
confirm
(
"确定要修改该日志吗?"
)){
if
(
confirm
(
"确定要修改该日志吗?"
))
{
//window.location = "action-del.php?id="+id;
//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>
</script>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.commitHash
{
.commitHash
{
margin-top
:
20px
;
margin-top
:
20px
;
text-decoration
:
none
;
text-decoration
:
none
;
}
}
.currentBranch
{
.currentBranch
{
text-decoration
:
none
;
text-decoration
:
none
;
}
}
</style>
</style>
</body>
</body>
</html>
</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