示例#1
0
        $info = "fail";
    }
    rturnPage($page, $yeshu, $info, $cnt);
} else {
    if ($ty == "delall") {
        for ($i = 0; $i < count($idsalldel); $i++) {
            $sql = "delete from blog_richeng where ids='{$idsalldel[$i]}'";
            $delall_richeng = $public_function->getresult($sql);
        }
        $info = "";
        if ($delall_richeng > 0) {
            $info = "success";
        } else {
            $info = "fail";
        }
        returnPages($page, $yeshu, $info, $richeng_num, $idsalldel);
    }
}
//echo "<script>location.href='../richeng_gl.php?info=".$info."&page=".$page."'</script>";
function rturnPage($page, $yeshu, $info, $cnt)
{
    if ($page == 1) {
        echo "<script>location.href='../richeng_gl.php?info=" . $info . "&page=1'</script>";
    } else {
        if ($page != 1 && $page == $yeshu) {
            if (1 == $cnt) {
                $pagel = $page - 1;
                echo "<script>location.href='../richeng_gl.php?info=" . $info . "&page=" . $pagel . "'</script>";
            } else {
                if ($cnt > 1) {
                    echo "<script>location.href='../richeng_gl.php?info=" . $info . "&page=" . $page . "'</script>";
示例#2
0
                        $info = "ufail";
                    }
                    returnPages($page, $yeshu, $info, $cnt, $uids);
                } else {
                    if ($type == 'xiugaiyonghuzu') {
                        for ($i = 0; $i < count($uids); $i++) {
                            $sql = "update blog_user set user_type='{$user_type}' where user_id='{$uids[$i]}'";
                            $del_user = $public_function->getresult($sql);
                        }
                        $info = "";
                        if ($del_user > 0) {
                            $info = "usuccess";
                        } else {
                            $info = "ufail";
                        }
                        returnPages($page, $yeshu, $info, $cnt, $uids);
                    }
                }
            }
        }
    }
}
function rturnPage($page, $yeshu, $info, $cnt)
{
    if ($page == 1) {
        echo "<script>location.href='gl_user.php?info=" . $info . "&page=1&bloggltype=" . $_REQUEST['bloggltype'] . "'</script>";
    } else {
        if ($page != 1 && $page == $yeshu) {
            if (1 == $cnt) {
                $pagel = $_REQUEST['page'] - 1;
                echo "<script>location.href='gl_user.php?info=" . $info . "&page=" . $pagel . "&bloggltype=" . $_REQUEST['bloggltype'] . "'</script>";