예제 #1
0
<?php

define("NO_KEEP_STATISTIC", true);
define("NO_AGENT_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", true);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
if ($USER->IsAdmin() && isset($_POST["ID"]) && check_bitrix_sessid()) {
    CAdminNotify::Delete(intval($_POST["ID"]));
}
echo "OK";
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin_after.php";
예제 #2
0
<?php 
    $tabControl->End();
    ?>
</form>
<h2><?php 
    echo GetMessage("SALE_SYSTEM_PROCEDURES");
    ?>
</h2>
	<?php 
    $showbasketDiscountConvert = (string) Main\Config\Option::get('sale', 'basket_discount_converted') != 'Y' && Main\ModuleManager::isModuleInstalled('catalog');
    if ($showbasketDiscountConvert) {
        if (CSaleBasketDiscountConvert::getAllCounter() == 0) {
            $adminNotifyIterator = CAdminNotify::GetList(array(), array('MODULE_ID' => 'sale', 'TAG' => 'BASKET_DISCOUNT_CONVERTED'));
            if ($adminNotifyIterator) {
                if ($adminNotify = $adminNotifyIterator->Fetch()) {
                    CAdminNotify::Delete($adminNotify['ID']);
                }
                unset($adminNotify);
            }
            unset($adminNotifyIterator);
            $showbasketDiscountConvert = false;
        }
    }
    $systemTabs[] = array('DIV' => 'saleSysTabReindex', 'TAB' => GetMessage('SALE_SYSTEM_TAB_REINDEX'), 'ICON' => 'sale_settings', 'TITLE' => GetMessage('SALE_SYSTEM_TAB_REINDEX_TITLE'));
    if ($showbasketDiscountConvert) {
        $systemTabs[] = array('DIV' => 'saleSysTabConvert', 'TAB' => GetMessage('SALE_SYSTEM_TAB_CONVERT'), 'ICON' => 'sale_settings', 'TITLE' => GetMessage('SALE_SYSTEM_TAB_CONVERT_TITLE'));
    }
    $systemTabControl = new CAdminTabControl('saleSysTabControl', $systemTabs, true, true);
    $systemTabControl->Begin();
    $systemTabControl->BeginNextTab();
    ?>