function indexAction() { // товары $this->catalog_status = mysql::query_findpole('select status from menu where id=59', 'status'); $this->catalog_inctive = dbh::get_count_status_off('catalog'); // заказы $this->order_inctive = dbh::get_count_status_off('order_number'); // отзывы $this->gb_status = mysql::query_findpole('select status from menu where id=8', 'status'); $this->gb_inctive = dbh::get_count_status_off('guestbook'); // новости $this->news_status = mysql::query_findpole('select status from menu where id=1', 'status'); $this->news_inctive = dbh::get_count_status_off('news'); // комментарии к новостям $this->news_gb_status = mysql::query_findpole('select status from menu where id=232', 'status'); $this->news_gb_inctive = dbh::get_count_status_off('news_gb'); // пользователи $this->users_status = mysql::query_findpole('select status from menu where id=26', 'status'); $this->users_inctive = dbh::get_count_status_off('users'); // контентовые разделы $this->content_status = mysql::query_findpole('select status from menu where id=89', 'status'); // галерея $this->gallery_status = mysql::query_findpole('select status from menu where id=3', 'status'); // голосование $this->voting_status = mysql::query_findpole('select status from menu where id=102', 'status'); // настройки $this->config_status = mysql::query_findpole('select status from menu where id=80', 'status'); // CEO $this->ceo_status = mysql::query_findpole('select status from menu where id=11', 'status'); return system::show_tpl((array) $this, 'mainmenu/mainpage.php'); }