flash(); } } if (isset($_POST['cancel_urgent_batch'])) { $ids = implode(",", $_POST['id']); $result = $pdb->Execute("update " . $trade->getTable() . " set if_urgent='0' where if_urgent='1' AND id in (" . $ids . ")"); 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(); }