123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- namespace app\index\controller;
- use think\Controller;
- class Actor extends Base
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function index()
- {
- $info = $this->label_actor();
- return $this->label_fetch('actor/index');
- }
- public function type()
- {
- $info = $this->label_type();
- return $this->label_fetch( mac_tpl_fetch('actor',$info['type_tpl'],'type') );
- }
- public function show()
- {
- $this->check_show();
- $param = mac_param_url();
- $type_id_specified = 0;
- if (empty($param['id'])) {
- $default_actor_type = model('Type')->where(['type_mid' => 8, 'type_status' => 1])->find();
- $type_id_specified = isset($default_actor_type->type_id) ? $default_actor_type->type_id : 0;
- }
- $info = $this->label_type(0, $type_id_specified);
- return $this->label_fetch( mac_tpl_fetch('actor',$info['type_tpl_list'],'show') );
- }
- public function ajax_show()
- {
- $this->check_ajax();
- $this->check_show(1);
- $info = $this->label_type();
- return $this->label_fetch('actor/ajax_show');
- }
- public function search()
- {
- $param = mac_param_url();
- $this->check_search($param);
- $this->label_search($param);
- return $this->label_fetch('actor/search');
- }
- public function ajax_search()
- {
- $param = mac_param_url();
- $this->check_ajax();
- $this->check_search($param,1);
- $this->label_search($param);
- return $this->label_fetch('actor/ajax_search');
- }
- public function detail()
- {
- $info = $this->label_actor_detail();
- return $this->label_fetch( mac_tpl_fetch('actor',$info['actor_tpl'],'detail') );
- }
- public function ajax_detail()
- {
- $this->check_ajax();
- $info = $this->label_actor_detail();
- return $this->label_fetch('actor/ajax_detail');
- }
- public function rss()
- {
- $info = $this->label_actor_detail();
- return $this->label_fetch('actor/rss');
- }
- }
|