Commit dac14b6d by wangkai

添加修改状态代码

parent bcaa09a9
<?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
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment