console.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. # 后续添加:自定义的待办、快捷方式、数据概览、推荐列表等
  3. $view
  4. ->fetch('.dever-notice@style', 'manage/auth.notice', 'none')
  5. ->loop
  6. (
  7. '#dever-notice div',
  8. 'manage/auth.notice',
  9. array
  10. (
  11. 'a' => array
  12. (
  13. 'hrefs' => '<{Dever::url("notice?where_id=".$v.id."&where_config=".$v.config)}>',
  14. 'href' => '#',
  15. 'target' => '_self',
  16. 'title' => '<{$v.name}>',
  17. 'html' => '<{$v.name}>',
  18. 'class' => 'layui-bg-red',
  19. 'style' => 'background-color: #FF5722!important;',
  20. ),
  21. )
  22. )
  23. ->fetch('#console_data@style', 'manage/console.data', 'none')
  24. ->loop
  25. (
  26. '#console_data li',
  27. 'manage/console.data',
  28. array
  29. (
  30. 'h3' => '<{$v.name}>',
  31. 'cite' => '<{$v.num}>',
  32. //'lay-href' => '<{$v.href}>',
  33. )
  34. )
  35. ->loop
  36. (
  37. '#console_system_data li',
  38. 'manage/console.system',
  39. array
  40. (
  41. 'h3' => '<{$v.name}>',
  42. 'cite' => '<{$v.num}>',
  43. //'lay-href' => '<{$v.href}>',
  44. )
  45. )
  46. ->fetch('#system_info', 'manage/auth.config#content')
  47. ->fetch('#system_title@lay-tips', 'manage/auth.config#title')
  48. ->fetch('#system_name', '<{Dever::config("base")->name}>V<{Dever::config("base")->version}>')
  49. ->fetch('#framework_name', 'Dever::config("base")->framework_name')
  50. ->fetch('#desc', 'Dever::config("base")->desc')
  51. ->fetch(array('#contact a@href', 0), 'Dever::config("base")->web')
  52. ->fetch(array('#contact a@href', 1), 'Dever::config("base")->github')
  53. # display
  54. ->display();