Website.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. namespace app\index\controller;
  3. use think\Controller;
  4. class Website extends Base
  5. {
  6. public function __construct()
  7. {
  8. parent::__construct();
  9. }
  10. public function index()
  11. {
  12. return $this->label_fetch('website/index');
  13. }
  14. public function type()
  15. {
  16. $info = $this->label_type();
  17. return $this->label_fetch( mac_tpl_fetch('website',$info['type_tpl'],'type') );
  18. }
  19. public function show()
  20. {
  21. $this->check_show();
  22. $info = $this->label_type();
  23. return $this->label_fetch( mac_tpl_fetch('website',$info['type_tpl_list'],'show') );
  24. }
  25. public function ajax_show()
  26. {
  27. $this->check_ajax();
  28. $this->check_show(1);
  29. $info = $this->label_type();
  30. return $this->label_fetch('website/ajax_show');
  31. }
  32. public function search()
  33. {
  34. $param = mac_param_url();
  35. $this->check_search($param);
  36. $this->label_search($param);
  37. return $this->label_fetch('website/search');
  38. }
  39. public function ajax_search()
  40. {
  41. $param = mac_param_url();
  42. $this->check_ajax();
  43. $this->check_search($param,1);
  44. $this->label_search($param);
  45. return $this->label_fetch('website/ajax_search');
  46. }
  47. public function detail()
  48. {
  49. $info = $this->label_website_detail();
  50. return $this->label_fetch( mac_tpl_fetch('website',$info['website_tpl'],'detail') );
  51. }
  52. public function ajax_detail()
  53. {
  54. $this->check_ajax();
  55. $info = $this->label_website_detail();
  56. return $this->label_fetch('website/ajax_detail');
  57. }
  58. public function rss()
  59. {
  60. $info = $this->label_website_detail();
  61. return $this->label_fetch('website/rss');
  62. }
  63. }