12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace Home\Controller;
- use Think\Controller;
- class FaceController extends ComController {
- public $owner_name;
- public function index()
- {
- $company=$_GET['companyid'];
- $device=M("face")->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');
- }
-
- }
|