DpsbListNavAction.class.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. class DpsbListNavAction extends Action {
  3. /*
  4. */
  5. function sys_list_nav(){
  6. //菜单组
  7. $menus = array(
  8. array('id'=>'device','text'=>'设备管理','expand'=>true),
  9. array('pid'=>'device','text' => '新添设备','url' => 'dpsb_device/sys_add_list','active'=>true),
  10. array('pid'=>'device','text' => '设备列表','url' => 'dpsb_device/sys_list'),
  11. array('pid'=>'device','text' => '设备组列表','url' => 'dpsb_group/sys_list'),
  12. //array('pid'=>'device','text' => '决策列表','url' => 'dpsb_decision/sys_list'),
  13. );
  14. //导航树配置数据
  15. $data = array(
  16. 'page' => '设备管理',
  17. 'title' => '设备管理',
  18. 'menus' => $menus
  19. );
  20. //生成导航树
  21. $nav = new \Jiaruan\ClNavTree;
  22. $nav->setData($data);
  23. $nav->display($this);
  24. }
  25. /*
  26. */
  27. function sys_list_nav_clone(){
  28. //菜单组
  29. $menus = array(
  30. array('id'=>'device','text'=>'设备管理','expand'=>true),
  31. array('pid'=>'device','text' => '新添设备','url' => 'dpsb_device/sys_add_list','active'=>true),
  32. array('pid'=>'device','text' => '设备列表','url' => 'dpsb_device/sys_list'),
  33. array('pid'=>'device','text' => '设备组列表','url' => 'dpsb_group/sys_list'),
  34. //array('pid'=>'device','text' => '决策列表','url' => 'dpsb_decision/sys_list'),
  35. );
  36. //导航树配置数据
  37. $data = array(
  38. 'page' => '设备管理',
  39. 'title' => '设备管理',
  40. 'menus' => $menus
  41. );
  42. //生成导航树
  43. $nav = new \Jiaruan\ClNavTree;
  44. $nav->setData($data);
  45. $nav->display($this);
  46. }
  47. }