12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- # 项目列表中的管理选项:
- # 数据库基本配置与数据管理、模板列表与生成、项目基本配置与管理等
- # 这里面很多都是demo
- $view
- ->fetch('#dever-name', 'manage/auth.config#title')
- # 首页的链接
- ->fetch('#console-url@lay-href', 'manage/menu.link#console')
- # 项目列表
- ->fetch('#LAY-system-side-menu', 'manage/menu.getHtml')
- /*
- ->loop
- (
- '#LAY-system-side-menu li',
- 'manage/menu.all',
- array
- (
- 'a' => array
- (
- 'data-target' => '.<{$v.key}>-menu',
- 'class++' => '<{if(Dever::input("menu") == $v.key || !Dever::input("menu")):?>layui-nav-itemed<{endif;}>',
- 'lay-tips' => '<{$v.name}>',
- ),
- 'self' => array
- (
- 'class++' => '<{if(Dever::input("menu") == $v.key || (!Dever::input("menu_id") && $k == "console")):?> layui-nav-itemed<{endif;}>',
- ),
-
- 'cite' => array
- (
- 'html' => '<{$v.name}>',
- ),
-
- 'i' => array
- (
- 'class' => '<{$v.icon ? "layui-icon " . $v.icon : "layui-icon layui-icon-home"}>',
- ),
- 'dl' => array
- (
- 'id' => '<{$v.key}>-menu',
- 'dd|$v.child' => array
- (
- 'class--' => 'layui-this', //菜单关闭状态
- 'class++' => '<{if(Dever::input("menu_id") == $v1.id):?>layui-this<{elseif(!Dever::input("menu_id") && $k1 == "console.index"):}>layui-this<{endif;}>',
- 'a' => array
- (
- 'lay-href' => '<{$v1.link}>',
- 'html' => '<{$v1.name}>',
- )
- ),
- ),
- )
- )
- */
- # display
- ->display();
|