1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | 头部
- |--------------------------------------------------------------------------
- */
- $view
- ->fetch('#load_style', 'manage/database.res#css')
- ->fetch('#nav@style', '<{Dever::load("manage/auth.loading") ? "display:none;" : ""}>')
- # 定义名称
- ->fetch('#dever-name', 'manage/auth.config#title')
- ->fetch('#manage-name', 'manage/auth.info#username')
- ->fetch('#logout-url@href', 'manage/menu.link#logout')
-
- //->fetch('#edit@href', 'edit')
- /*
- ->fetch('.auth-top@style', 'display:none')
- # 项目列表
- ->loop
- (
- '.auth-top',
- 'manage/top.get',
- array
- (
-
- 'span|0' => '<{$v.name}>',
- 'ul' => array
- (
- 'li|$v.child' => array
- (
- 'a' => array
- (
- 'html' => '$v1.name',
- 'data-id' => '$v1.id',
- 'onclick' => 'topMenu($(this))',
- )
- ),
- ),
- )
- )*/
- # 项目列表
- ->loop
- (
- '.auth-top',
- 'manage/company.get',
- array
- (
-
- 'span|0' => '<{$v.name}>',
- 'ul' => array
- (
- 'li|$v.child' => array
- (
- 'a' => array
- (
- 'html' => '$v1.name',
- 'data-id' => '$v1.id',
- 'onclick' => 'topMenu($(this))',
- )
- ),
- ),
- )
- )
- # display
- ->display();
|