where("company=".$company)->select(); $this->assign('device',$device); $this->display('Face/index'); } public function dev_list() { $face_id=$_GET['id']; $device=M("video")->where("face_id=".$face_id)->select(); $this->assign('device',$device); $this->display('Face/list'); } public function video() { $id=$_GET['id']; $video=M("video")->where("id=".$id)->find(); switch ($video['maliu']) { case 01: $video['malius']="主码流"; break; case 02: $video['malius']="子码流"; break; case 03: $video['malius']="第三码流"; break; } $this->assign('video',$video); $this->display('Face/video'); } }