Showmsg("退出成功!\treload"); } } elseif ($job == 'delmember') { define('AJAX', 1); S::gp(array('id', 'uid'), 'GP', '2'); !$ifadmin && Showmsg('undefined_action'); require_once A_P . 'groups/lib/active.class.php'; $newActive = new PW_Active(); if (!($active = $newActive->getActiveById($id)) || $active['cid'] != $cyid) { Showmsg('data_error'); } if (empty($_POST['step'])) { require_once PrintEot('m_ajax'); ajax_footer(); } else { $newActive->quitActive($id, $uid); Showmsg("删除成功!\treload"); } } elseif ($job == 'exportmember') { S::gp(array('id'), 'GP', '2'); !$ifadmin && Showmsg('undefined_action'); require_once A_P . 'groups/lib/active.class.php'; $newActive = new PW_Active(); if (!($active = $newActive->getActiveById($id)) || $active['cid'] != $cyid) { Showmsg('data_error'); } header("Content-type:application/vnd.ms-excel"); header("Content-Disposition:attachment;filename={$active['title']}.xls"); header("Pragma: no-cache"); header("Expires: 0"); $actMembers = $newActive->getActMembers($id);
} } elseif ($job == 'quit') { define('AJAX', 1); ob_end_clean(); ObStart(); S::gp(array('id')); require_once A_P . 'groups/lib/active.class.php'; $newActive = new PW_Active(); if (!($active = $newActive->getActiveById($id))) { Showmsg('data_error'); } if (empty($_POST['step'])) { require_once PrintEot('thread_active_ajax'); ajax_footer(); } else { $newActive->quitActive($id, $winduid); Showmsg("退出成功!\treload"); } } elseif ($job == 'del') { if (empty($_POST)) { define('AJAX', 1); ob_end_clean(); ObStart(); } S::gp(array('id')); require_once A_P . 'groups/lib/active.class.php'; $newActive = new PW_Active(); if (!($active = $newActive->getActiveById($id))) { Showmsg('data_error'); } if (empty($_POST['step'])) {