JobExpert v1.0 powered by Script Developers Group (SD-Group) email: info@sd-group.org.ua url: http://sd-group.org.ua/ Copyright 2010-2015 (c) SD-Group All rights reserved ========================================================= Главная страница модуля Jur (Юр. лица) ********************************************************/ /** * @package * @todo */ !defined('SDG') ? die('Triple protection!') : null; // создаем объект $jur = new jur(); // ответ пользователю if (isset($_GET['result']) && !empty($_POST)) { } elseif (isset($_GET['print']) && !empty($_SESSION['jur']['print'])) { // передаем TITLE страницы в Smarty $smarty->assign('page_title', !empty($arrTitle) ? strings::formTitle($arrTitle) : strings::formTitle($arrNamePage)); $smarty->assign('printVar', $_SESSION['jur']['print']); $smarty->display('main.print.tpl'); exit; } else { // проверяем наличие в сессии необходимых параметров и установлена ли цена в тарифной сетке для выбранной услуги if (!empty($_SESSION['payment']) && is_array($_SESSION['payment']) && !empty($_SESSION['payment']['service']) && $payments->checkPriceInTariff($_SESSION['payment']['service'], $arrTariffs) && !empty($_SESSION['payment']['id'])) { // Сохраняем запрос оплаты if (isset($_POST['pay']) && (!empty($_POST['arrBindFields']) || !empty($_POST['arrNoBindFields']))) { if (!empty($_POST['arrBindFields']) && !validate::arrDataNotEmpty($_POST['arrBindFields'])) { $arrErrors[] = ERROR_EMPTY_BIND_FIELDS;
/** * @package * @todo */ !defined('SDG') ? die('Triple protection!') : null; require_once 'core/mods/payments/jur/lang/' . CONF_LANGUAGE . '/adm.jur.lang.php'; require_once 'core/mods/payments/jur/lang/' . CONF_LANGUAGE . '/jur.lang.php'; require_once 'core/mods/payments/jur/lang/' . CONF_LANGUAGE . '/lang._custom.php'; require_once 'core/mods/payments/jur/classes/jur.class.php'; $modMenu[] = array('id' => 'jur', 'action' => 'config', 'icon' => 'config.png', 'text' => MENU_CONFIG); $modMenu[] = array('id' => 'jur', 'action' => 'lt', 'icon' => 'langManager.png', 'text' => MENU_LANGUAGE_MANAGER); $modMenu[] = array('id' => 'jur', 'action' => 'mt', 'icon' => 'managerTemplates.png', 'text' => MENU_MANAGER_TEMPLATES); $modMenu[] = array('id' => 'jur', 'action' => 'payments', 'icon' => 'wait_payment.png', 'text' => MENU_ACTION_PAYMENTS); if ($arrActions['payments']) { // создаем объект $jur = new jur(); $retFields = array('order_id' => false); // Filter if (isset($_GET['do']) && $_GET['do'] === 'filter' && !empty($_GET['order_id'])) { $_GET['order_id'] = urldecode($_GET['order_id']); if (is_int($_GET['order_id'])) { $strWhereOrderId = " AND order_id IN (" . secure::escQuoteData($_GET['order_id']) . ")"; } else { $orderId = str_replace(array('*', '?'), array('%', '_'), $_GET['order_id']); $strWhereOrderId = " AND order_id LIKE " . secure::escQuoteData($orderId); } $retFields['order_id'] = $_GET['order_id']; // строка для урла с отбором $filterString = '&order_id=' . $_GET['order_id']; } else { $strWhereOrderId = '';