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