<?php
/*
|--------------------------------------------------------------------------
| home
|--------------------------------------------------------------------------
*/


$view

->fetch('body@class', 'theme-<{Dever::load("/auth.config#template")}>')

# 小标题
->fetch('#list-name', '项目管理')
->fetch('#list-project', '快捷管理')
->fetch('#list-desc', '对项目进行线上管理')  

# 新增的链接 @代表属性
->fetch('#list-add@style', 'display:none')

# 隐藏搜索
->fetch('#search@style', 'display:none')

# 隐藏分页
->fetch('#page@style', 'display:none')


# config
->fetch(array('#list-thead th', 0), '项目名(双击修改)') 
->fetch(array('#list-thead th', 1), '排序')

->fetch(array('#list-thead th', 2), '项目KEY(唯一)')
->fetch(array('#list-thead th', 3), '项目根目录')
//->fetch(array('#list-thead th@style', 2), 'display:none')
//->fetch(array('#list-thead th@style', 3), 'display:none')

->fetch
( 
    '#list-tbody tr',
    'manage/project.get',
    array  
    (
        'td|0' => array
        (
            'href' => '#',
            'class' => 'edit',
            'data-url' => '<{Dever::url("project.set?key=$k")}>', 
            'data-content' => '<{$v["lang"]}>', 
            'html' => '<{$v["lang"]}>',
        ),

        'td|1' => array
        (
            'href' => '#',
            'class' => 'edit',
            'data-url' => '<{Dever::url("project.set?key=$k&index=order")}>', 
            'data-content' => '<{$v.order}>', 
            'html' => '<{$v.order}>',
        ),
        
        'td|2' => '<{$k}>',
        'td|3' => '<{$v.path}>',
        /*
        'td|2' => array
        (
            'style' => 'display:none',
            'a|0' => array
            (
                'href' => '<{Dever::url("project/config?key=$k")}>',
                'title' => '<{$v["lang"]}>-基本配置',
                'html' => '基本配置<br />',
            ), 

            'a|1' => array
            (
                'href' => '<{Dever::url("project/config?key=$k&type=database")}>',     
                'title' => '<{$v["lang"]}>-数据库管理',
                'html' => '数据库管理<br />',
            ),

            'a|2' => array
            (
                'href' => '<{Dever::url("project/config?key=$k&type=view")}>',
                'title' => '<{$v["lang"]}>-模板列表',
                'html' => '模板列表<br />',
            ),
           
            'a|3' => array
            (
                'href' => '<{Dever::url("project/config?key=$k&type=api")}>',
                'title' => '<{$v["lang"]}>-接口管理',
                'html' => '接口管理',   
            ),

        ),
        */
		/*
         'td|3' => array
        (
			'style' => 'display:none',
			
            'a|0' => array
            (
                'href' => '<{Dever::url("template.index?key=$k")}>',
                'title' => '移除<{$v["lang"]}>',
                'html' => '移除项目<br />',
            ),
            
            'a|1' => array
            (
                'href' => '<{Dever::url("project/database/manage?key=$k")}>',     
                'title' => '<{$v["lang"]}>-数据库管理',
                'html' => '数据库管理<br />',
            ),
            
            'a|2' => array
            (
                'href' => '<{Dever::url("project/database/manage?key=$k")}>',     
                'title' => '<{$v["lang"]}>-清理模板缓存',
                'html' => '清理模板缓存<br />',
            ),
           
        ),
        */
     
    )
)

# display
->display();
