public function index()
 {
     $user = D("User");
     $res = $user->relation(true)->select();
     if ($res == "") {
         $res = "没有任何数据";
         $this->assign("res", $res);
     } else {
         $this->assign("res", $res);
         //var_dump($res);
         parent::relationPage("User");
     }
     $this->display();
 }
 public function index()
 {
     $shop_id = $_GET['shopid'];
     if ($shop_id == "") {
         $shop_id = $_SESSION["shop_id"];
     }
     if ($shop_id == "") {
         $this->error("请先点击具体的店铺,再回来点此!");
     }
     $shopName = $_SESSION["shop_name"];
     $this->assign("shopName", $shopName);
     $this->assign("shopid", $shop_id);
     $where['belong'] = $_SESSION['auth'];
     $where['shop_id'] = $shop_id;
     parent::relationPage("User", "10", $where);
     $user = D('User');
     $id = $user->where($where)->count("id");
     $this->assign("id", $id);
     $this->display();
 }