public function createIndexAction($network_domain) { $da = $this->get('we_data_access'); $da_im = $this->get('we_data_access_im'); $user = $this->get('security.context')->getToken()->getUser(); $this->circleId = $user->get_circle_id($network_domain); $this->groups = $this->getGroupByCircle($this->circleId, $user->getUserName()); $this->isCreate = "1"; $sql = "select count(1) as cnt from we_circle_staff where circle_id=? and login_account!=?"; $ds = $da->GetData('we_staff', $sql, array((string) $this->circleId, (string) $user->getUserName())); $pages = $ds['we_staff']['rows'][0]['cnt'] / 8; //$members = $this->getCircleMembers($this->circleId, $user->getUserName(), 0); //获取im grouptype $sql = "select typeid, typename from im_grouptype"; $ds = $da_im->GetData('im_grouptype', $sql); $grouptype = $ds && $ds['im_grouptype']['recordcount'] > 0 ? json_encode($ds['im_grouptype']['rows']) : array(); $IsBeyondCreateGroup; $CountCreateGroup = 0; $ec = new \Justsy\BaseBundle\Management\EnoParamManager($da, $this->get('logger')); if ($ec->IsBeyondCreateGroup($user->getUserName())) { $IsBeyondCreateGroup = true; $CountCreateGroup = $ec->getCountCreateGroup($user->getUserName()); } else { $IsBeyondCreateGroup = false; } return $this->render('JustsyBaseBundle:Group:group_create_new.html.twig', array('curr_network_domain' => $network_domain, 'this' => $this, 'pages' => $pages, 'group_c' => $user->IsFunctionCreateGroup($network_domain), 'group_s' => $user->IsExistsFunction("GROUP_S"), 'fileurl' => $this->container->getParameter('FILE_WEBSERVER_URL'), 'circleId' => $this->circleId, 'grouptype' => $grouptype, 'pagecount' => $pages, 'IsBeyondCreateGroup' => $IsBeyondCreateGroup, 'CountCreateGroup' => $CountCreateGroup)); }