Example #1
0
    if ($_GET['ecmsdoc'] == 1) {
        InfoToDoc_class($_GET, $logininid, $loginin);
    } elseif ($_GET['ecmsdoc'] == 2) {
        InfoToDoc($_GET, $logininid, $loginin);
    } else {
        InfoToDoc_info($_POST, $logininid, $loginin);
    }
} elseif ($enews == "DoInfoAndSendNotice") {
    $doing = (int) $_POST['doing'];
    $adddatar = $_POST;
    if ($doing == 1) {
        $enews = 'DelNews';
        DelNews($adddatar['id'], $adddatar['classid'], $logininid, $loginin);
    } elseif ($doing == 2) {
        $enews = 'CheckNews_all';
        $doid[0] = $adddatar['id'];
        CheckNews_all($adddatar['classid'], $doid, $logininid, $loginin);
    } elseif ($doing == 3) {
        $enews = 'NoCheckNews_all';
        $doid[0] = $adddatar['id'];
        NoCheckNews_all($adddatar['classid'], $doid, $logininid, $loginin);
    } elseif ($doing == 4) {
        $enews = 'MoveNews_all';
        $doid[0] = $adddatar['id'];
        MoveNews_all($adddatar['classid'], $doid, $adddatar['to_classid'], $logininid, $loginin);
    }
} else {
    printerror("ErrorUrl", "history.go(-1)");
}
db_close();
$empire = null;
Example #2
0
} elseif ($enews == "CheckNews_all") {
    $bclassid = $_POST['bclassid'];
    $classid = $_POST['classid'];
    $id = $_POST['id'];
    CheckNews_all($classid, $id, $logininid, $loginin);
} elseif ($enews == "NoCheckNews_all") {
    $bclassid = $_POST['bclassid'];
    $classid = $_POST['classid'];
    $id = $_POST['id'];
    NoCheckNews_all($classid, $id, $logininid, $loginin);
} elseif ($enews == "MoveNews_all") {
    $bclassid = $_POST['bclassid'];
    $classid = $_POST['classid'];
    $id = $_POST['id'];
    $to_classid = $_POST['to_classid'];
    MoveNews_all($classid, $id, $to_classid, $logininid, $loginin);
} elseif ($enews == "CopyNews_all") {
    $bclassid = $_POST['bclassid'];
    $classid = $_POST['classid'];
    $id = $_POST['id'];
    $to_classid = $_POST['to_classid'];
    CopyNews_all($classid, $id, $to_classid, $logininid, $loginin);
} elseif ($enews == "MoveClassNews") {
    $add = $_POST['add'];
    MoveClassNews($add, $logininid, $loginin);
} elseif ($enews == "GoodInfo_all") {
    $classid = $_POST['classid'];
    $id = $_POST['id'];
    $doing = $_POST['doing'];
    $isgood = empty($doing) ? $_POST['isgood'] : $_POST['firsttitle'];
    GoodInfo_all($classid, $id, $isgood, $doing, $logininid, $loginin);