コード例 #1
0
ファイル: offer.php プロジェクト: renduples/alibtob
    if (!$result) {
        flash();
    }
}
if (isset($_POST['del']) && !empty($_POST['id'])) {
    foreach ($_POST['id'] as $val) {
        $picture = $trade->field("picture", "id=" . $val);
        $attachment->deleteBySource($picture);
    }
    $result = $trade->Delete($_POST['id']);
    if (!$result) {
        flash();
    }
}
if (isset($_POST['up_batch'])) {
    $result = $trade->check($_POST['id'], 1);
    if (!$result) {
        flash("trade.php");
    }
}
if (isset($_POST['down_batch'])) {
    $result = $trade->check($_POST['id'], 0);
    if (!$result) {
        flash();
    }
}
if (isset($_POST['status_batch']) && $_POST['status_batch'] >= 0) {
    if (!empty($_POST['id'])) {
        $tmp_to = intval($_POST['status_batch']);
        $result = $trade->check($_POST['id'], $tmp_to);
    }