function result_controller($params, &$smarty) { if (isset($params['table'])) { import('Dataface/ResultController.php'); $base_url = isset($params['base_url']) ? $params['base_url'] : ''; $query = isset($params['query']) ? $params['query'] : array('-table' => $params['table']); $query['-table'] = $params['table']; $controller = new Dataface_ResultController($params['table'], '', $base_url, $query); } else { $controller =& $this->getResultController(); } echo $controller->toHtml(); }
/** * Creates the controller. The controller consists of the forward and back buttons and * the jump menu. * */ function _controller() { $controller = new Dataface_ResultController($this->_tablename, $this->_db, $this->_baseUrl, $this->_query); return $controller->toHtml(); }