// строка для урла с отбором $filterString = '&order_id=' . $_GET['order_id']; } else { $strWhereOrderId = ''; // строка для урла с отбором $filterString = ''; } /** * Действия * Множественное удаление записей */ if (!empty($_POST['action'])) { // множественное удаление if ('del' === $_POST['action'] && !empty($_POST['payment'])) { $arrIds = array_keys($_POST['payment']); $hand->deleteRecordsById($arrIds) ? messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=mods&s=payments&action=payments&id=hand' . $filterString) : ($arrErrors[] = db::$message_error); } elseif ('delete' === $_POST['action'] && !empty($_POST['paymentData']['id']) && !empty($_POST['paymentData']['user_id']) && !empty($_POST['message'])) { $user = new user(); $strWhere = "id IN (" . secure::escQuoteData($_POST['paymentData']['user_id']) . ")"; if ($userData = $user->getUser($strWhere)) { $_POST['message'] = nl2br($_POST['message']); $hand->deletePayment($_POST['paymentData']['id'], $userData['email'], $_POST['message']) ? messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=mods&s=payments&action=payments&id=hand' . $filterString) : ($arrErrors[] = db::$message_error); } } elseif ('processing' === $_POST['action'] && !empty($_POST['paymentData']['id']) && !empty($_POST['paymentData']['user_id']) && !empty($_POST['message'])) { $user = new user(); $strWhere = "id IN (" . secure::escQuoteData($_POST['paymentData']['user_id']) . ")"; if ($userData = $user->getUser($strWhere)) { $_POST['message'] = nl2br($_POST['message']); $hand->processingPayment($_POST['paymentData']['id'], $userData['email'], $_POST['message'], $_POST['arrFiles']) ? messages::messageChangeSaved(MESSAGE_CHANGE_SAVED, false, CONF_ADMIN_FILE . '?m=mods&s=payments&action=payments&id=hand' . $filterString) : ($arrErrors[] = db::$message_error); } } elseif ('close' === $_POST['action'] && !empty($_POST['paymentData']['id']) && !empty($_POST['paymentData']['user_id']) && !empty($_POST['message']) && !empty($_POST['paymentData']['action'])) {