Пример #1
0
#########################################
#  Author  : D3W4 & SAHAT               #
#  Created : May 8, 2012 8:46:25 PM    #
#########################################
use_class('notifications');
$notifications = new notifications();
if (isset($_GET['sender']) && $_GET['sender'] != '') {
    $sender = tep_db_prepare_input($_GET['sender']);
    $filter = "AND posted_by = '{$sender}'";
}
if (isset($_POST['me_action'])) {
    if ($_POST['me_action'] == 'DELETENOTIFICATIONS') {
        $ids = $_POST['ids'];
        list($notifications_id, $not_class) = split('-', $ids);
        $notifications->delete($notifications_id);
        $result = array();
        $result['notifications_id'] = $notifications_id;
        $result['not_class'] = $not_class;
        ajaxReturn($result);
        exit;
    } elseif ($_POST['me_action'] == 'CLOSEFEEDBACK') {
        $ids = $_POST['ids'];
        list($notifications_id, $not_class) = split('-', $ids);
        $notifications->closeOpenFeedback($notifications_id);
        $result = array();
        $result['ids'] = $ids;
        $result['notifications_id'] = $notifications_id;
        ajaxReturn($result);
        exit;
    } elseif ($_POST['me_action'] == 'REFRESHFILTERS') {