From 237091b0bc14576f78a050f1704576248b2597c6 Mon Sep 17 00:00:00 2001 From: Repellent Date: Sun, 18 Sep 2016 19:51:29 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20ema?= =?UTF-8?q?il=5Fdel=20(=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?e-mail)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contactsnew/class.contactsnew.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/contactsnew/class.contactsnew.php b/contactsnew/class.contactsnew.php index a92a1f9..ed91ecc 100644 --- a/contactsnew/class.contactsnew.php +++ b/contactsnew/class.contactsnew.php @@ -1266,6 +1266,19 @@ class ContactsNew $AVE_Template->assign('content', $AVE_Template->fetch($this->tpl_dir . 'history.tpl')); } + /** + * Удаление выбранного e-mail + */ + function email_del ($hid) + { + global $AVE_DB, $AVE_Template; + + $AVE_DB->Query(" + DELETE FROM " . PREFIX . "_module_contactsnew_history + WHERE id = '" . $hid . "' + "); + } + /** * Сохранение статуса диалога */