/var/www/hkosl.com/alliancealliance/webadmin/popup_status.php


1
2
3
4
5
6
7
8
9
10
11
12
<?php
    
require_once ("check_login.php");

    
$popup_id  = (int)$_GET["popup_id"];

    
$sql "update popup set status=case when status = 1 then 0 else 1 end, lastupdate=?, lastupby=? where popup_id=?";
    
$parameters = array($nowdate$_SESSION['cmsloginid'], $popup_id);
    
bind_pdo($sql$parameters);

    
$dbh null;

    
header("Location: popup_index.php?msg=修改成功");