-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalterReport.php
46 lines (42 loc) · 1.08 KB
/
alterReport.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<?php session_start(); include("conn.php");?>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/amazeui.min.css">
<link rel="stylesheet" href="css/admin.css">
<link rel="stylesheet" href="css/app.css">
<style>
.admin-main{
padding-top: 0px;
}
</style>
</head>
<body>
<div class="am-cf admin-main">
<!-- content start -->
<div class="admin-content">
<div class="admin-content-body">
<div class="am-g">
<form class="am-form am-form-horizontal" action="addProject_ok.php" method="post" >
<?php
if (!($_POST['date']and $_POST['content'] and $_POST['id'])){
echo "输入不允许为空。";
}else{
$sqlstr1 = "update 业绩报告 set 提交时间='$_POST[date]', 内容='$_POST[content]' where id=$_POST[id]";
$result = mysqli_query($conn,$sqlstr1);
if ($result){
echo "修改成功!";
}else{
echo "<script>alert('修改失败');history.go(-1);</script>";
}
}
?>
</form>
</div>
</div>
</div>
</div>
</body>
</html>