Esempio n. 1
0
        $data['filter_category_id'] = $_POST['filter_category_columns'][0];
        $data['filter_subcategory_id'] = $_POST['filter_category_columns'][1];

        $data['filter_budget'] = $form->getElement('filter_budget')->getValue('budget');
        $data['filter_budget_currency'] = $form->getElement('filter_budget')->getValue('currency_db_id');
        $data['filter_budget_priceby'] = $form->getElement('filter_budget')->getValue('priceby_db_id');

        if ($ar = autoresponse::create($data)) {
            // Сохраняем проект и вызываем JavaScript метод для оплаты
            echo "<script>";
            echo "window.parent.autoresponseShowPayModal({$ar->data['id']});";
            echo "</script>";
            exit();
        }
    }
    exit();
}
else {
    $form->setDefaults(array('total' => autoresponse::$config['default_quantity']));
}
*/
// Получить список автоответов пользователя
$autoresponse_list = autoresponse::findForUser(get_uid());
// Инициализация попапа оплаты
//quickPaymentPopupAutoresponse::getInstance()->init();
// Добавляем скрипт для работы с автоответами
//$GLOBALS['js_file']['autoresponse'] = 'autoresponse.js';
$content = "content.php";
$header = "../header.php";
$footer = "../footer.html";
include "../template3.php";