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
dac14b6d
Commit
dac14b6d
authored
Nov 27, 2019
by
wangkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加修改状态代码
parent
bcaa09a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
changestatus.php
leankcanary/changestatus.php
+24
-0
index.php
leankcanary/index.php
+4
-4
No files found.
leankcanary/changestatus.php
0 → 100644
View file @
dac14b6d
<?php
header
(
"content-type:text/html;charset=utf8"
);
// 处理增加操作的页面
require
"dbconfig.php"
;
// 连接mysql
$link
=
@
mysqli_connect
(
HOST
,
USER
,
PASS
,
DBNAME
)
or
die
(
"提示:数据库连接失败!"
);
// 选择数据库
mysqli_select_db
(
$link
,
DBNAME
);
// 编码设置
mysqli_set_charset
(
$link
,
'utf8'
);
$id
=
(
int
)
$_GET
[
'id'
];
$sql
=
"update leakCanary set id = '
$id
'"
;
//echo $sql;
$re
=
mysql_query
(
$sql
);
if
(
$re
){
echo
"修改成功"
;
echo
"<a href='index.php'>返回上级界面</a>"
;
}
else
{
echo
"修改失败"
;
echo
"<a href='index.php'>返回上街界面</a>"
;
}
\ No newline at end of file
leankcanary/index.php
View file @
dac14b6d
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<span>
<span>
</small>
</small>
<a style='color:#999999' href='
javascript:changestatus(
{
$row
[
'id'
]
}
)
'>
<a style='color:#999999' href='
changestatus.php?id=<?php echo
$row['id']
?
'>
修改状态
修改状态
</a>
</a>
</small>
</small>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<small>
<small>
<i class=
\"
icon-comment
\"
></i>
<i class=
\"
icon-comment
\"
></i>
上报时间
{
$row
[
'addtime'
]
}
上报时间
{
$row
[
'addtime'
]
}
</small>
</small>
</span>
</span>
<p>git 提交当前分支 [
{
$row
[
'gitCurrentBranch'
]
}
]</p>
<p>git 提交当前分支 [
{
$row
[
'gitCurrentBranch'
]
}
]</p>
<p>git 最后一次提交记录 [
{
$row
[
'gitCommitHash'
]
}
] </p>
<p>git 最后一次提交记录 [
{
$row
[
'gitCommitHash'
]
}
] </p>
...
@@ -154,8 +154,8 @@
...
@@ -154,8 +154,8 @@
<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
)
{
function
enterpage
(
id
)
{
...
...
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