protected function basicinfo(&$array)
 {
     $m = new ZcModel();
     $c = $m->wgetcount();
     $array['zccount'] = $c;
     $m = new FbModel();
     $c = $m->wgetcount();
     $array['fbcount'] = $c;
 }
 function fbadd()
 {
     if (IS_AJAX) {
         $token = I('addtoken');
         if (!empty($token)) {
             $m = new FbModel();
             $c = $m->where(array('nodename' => I('nodename'), 'status' => array('not in', '2')))->count();
             if ($c > 0) {
                 $this->ajaxError('机构名称已经存在!');
             }
             $result = $m->fbadd();
             if ($result) {
                 $this->ajaxSuccess('新增渠道信息成功!');
             } else {
                 $this->ajaxError('新增渠道信息失败!');
             }
         } else {
             $this->assign('namespace', 'fbadd');
             $this->assign('pnamespace', 'fbindex');
             $this->assign('step', I('step'));
             $this->display();
         }
     }
 }