device.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. $view
  3. # 设置head里的数据
  4. ->fetch('head', '<{Maze::view("inc/head")}>')
  5. ->fetch('.back@href', '<{Maze::url("index?farm=" . Maze::input("farm"))}>')
  6. ->fetch('.active a', '<{Maze::load("company/info.park_info#name")}>')
  7. ->fetch
  8. (
  9. '.footer a',
  10. 'company/info.park_menu',
  11. array
  12. (
  13. 'self' => array
  14. (
  15. 'html' => '<{$v.name}>',
  16. 'href' => '<{$v.link}><{Maze::input("header") ? "&header=false" : ""}>',
  17. 'class' => 'item <{$v.class}>',
  18. ),
  19. )
  20. )
  21. ->fetch('.footer@style', '<{Maze::input("header") ? "display:none;" : ""}>')
  22. ->fetch('.header@style', '<{Maze::input("header") ? "display:none;" : ""}>')
  23. ->fetch('#device_data@style', '<{Maze::input("header") ? "margin-top:20px" : ""}>')
  24. ->fetch(array('.title@style', 0), '<{Maze::input("header") ? (Maze::input("title") ? "" : "display:none;") : ""}>')
  25. ->fetch('.container@style', '<{Maze::input("header") ? (Maze::input("top") ? Maze::input("top") : "top:0;bottom:0") : Maze::input("top")}>')
  26. ->display();