public function defAction() { if (!system::issetUrl(2)) { system::redirect('/subscription'); } if ($parent = ormObjects::get(system::url(2))) { ui::setNaviBar(lang::right('user')); ui::setHeader($parent->name); } ui::newButton(lang::get('SUBSCRIBE_BTN_ADD3'), '/subscription/user_add/' . system::url(2)); ui::newButton(lang::get('SUBSCRIBE_BTN_ADD4'), '/subscription/user_addlist/' . system::url(2)); ui::setBackButton('/subscription'); $sel = new ormSelect('subscribe_user'); $sel->where('parents', '=', system::url(2)); $table = new uiTable($sel); $table->showSearch(true); $table->moreParam(system::url(2)); $table->addColumn('name', lang::get('SUBSCRIBE_USER_TT1'), 300); $table->addColumn('second_name first_name', lang::get('SUBSCRIBE_USER_TT2'), 300); $table->defaultRight('user_upd'); $table->addRight('user_upd', 'edit', single); $table->addRight('user_del', 'drop', multi); return $table->getHTML(); }