-
Notifications
You must be signed in to change notification settings - Fork 27
/
sh.php
37 lines (36 loc) · 857 Bytes
/
sh.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
<?php
//验证登陆信息
include_once 'conn.php';
?>
<link rel="stylesheet" href="css/style.css" />
<script src="js/jquery-2.1.3.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/sweetalert.min.js" type="text/javascript" charset="utf-8"></script>
<?php
$id=$_GET["id"];
$yuan=$_GET["yuan"];
$tablename=$_GET["tablename"];
if($yuan == '是')
{
$comewhere=$_SERVER['HTTP_REFERER'];
echo
"<script>
$(function(){
swal('警告!','已审核,无需再次审核','warning').then(() => {
location.href='$comewhere';
})});
</script>";
}
else
{
$sql="update $tablename set issh='是' where id=$id";
mysql_query($sql);
$comewhere=$_SERVER['HTTP_REFERER'];
echo
"<script>
$(function(){
swal('完成!','审核通过','success').then(() => {
location.href='$comewhere';
})});
</script>";
}
?>