<?php if (!check_auth() || $CURRENT_USER['level'] < 7) { die("Access denied!"); } require_once dirname(__FILE__) . "/SMPHPToolkit/SMAjax.php"; CADBiSNew::instance()->script_src('js/ajax/buffer.js'); CADBiSNew::instance()->script_src('js/ajax/manager.js'); CADBiSNew::instance()->link_href('skins/smadbis/css/grid.css'); $BILL = new CBilling($GV["dbhost"], $GV["dbname"], $GV["dblogin"], $GV["dbpassword"]); if (isset($_REQUEST['renderkwdsfor'])) { $cid = $_REQUEST['renderkwdsfor']; die(implode(", ", $BILL->GetUrlCategoryKeywordsWithWeights($cid))); } $ajaxbuf_cats = new ajax_buffer("update_buffer_cats"); $ajaxbuf_cats->show_progress(true); $emanager = new ajax_entities_manager('entities_manager', $ajaxbuf_cats); class cats_formatter extends grid_formatter { protected $_field = ''; /** * Entities manager * @var ajax_entities_manager */ protected $_entities_manager = null; /** * @param string $field * @param ajax_entities_manager $entities_manager */ public function __construct($field, $entities_manager) {