$mailer->CharSet = 'UTF-8'; $mailer->From = '*****@*****.**'; $mailer->FromName = 'Wreck This Journal'; $mailer->addAddress($_POST['emailStatement'], 'Уничтожь меня'); $mailer->isHtml(true); $mailer->Subject = 'Отклик на Вашу заявку'; $mailer->Body = '<p>Ваш закаявка принята, мы скоро с вами свяжемся</p>'; if ($approveState && $mailer->send()) { echo "OK"; echo "<HTML><HEAD>\n <META HTTP-EQUIV='Refresh' CONTENT='0; URL=answerController.php'>\n </HEAD></HTML>"; exit; } exit; } if (isset($delState)) { require_once 'classes/Delete.php'; $table = "statements"; $deletTableStatements = new Delete(); $deletTableStatements->setId($numOfState); $deletTableStatements->setTable($table); $deletTableStatements->delete(); if ($delState) { echo "DELETE OK"; echo "<HTML><HEAD>\n <META HTTP-EQUIV='Refresh' CONTENT='0; URL=answerController.php'>\n </HEAD></HTML>"; exit; } exit; } else { echo "'status':'error'"; exit; }
$mailer->CharSet = 'UTF-8'; $mailer->From = '*****@*****.**'; $mailer->FromName = 'Milena Studio'; $mailer->addAddress($_POST['emailOrder'], 'Milena Studio'); $mailer->isHtml(true); $mailer->Subject = 'Отклик на заказ'; $mailer->Body = '<p>Ваш заказ принят, мы скоро с вами свяжемся</p>'; if ($approve && $mailer->send()) { echo "OK"; echo "<HTML><HEAD>\n <META HTTP-EQUIV='Refresh' CONTENT='0; URL=answerController.php'>\n </HEAD></HTML>"; exit; } exit; } if (isset($del)) { require_once 'classes/Delete.php'; $table = "orders"; $deleteOrders = new Delete(); $deleteOrders->setTable($table); $deleteOrders->setId($num); $deleteOrders->delete(); if ($del) { echo "DELETE OK"; echo "<HTML><HEAD>\n <META HTTP-EQUIV='Refresh' CONTENT='0; URL=answerController.php'>\n </HEAD></HTML>"; exit; } exit; } else { echo "'status':'error'"; exit; }