文件位于 component\dm-include\file_formpost \formpost_datatest.php
数组变量的值:arr_jthomev_menu      编辑的值:jthomev_menu
使用方法:
在jthome页面加载: require INCLUDE_ROOT.'file_formpost/formpost_datainc.php';
------------
有了这些数组后,只要在前端代码里,写上foreach就能输出,从而嵌套在html里。
foreach(数组变量 as $k=>$v ){
	...代码...
	if($k>5) break;
}
------------
前台编辑链接: edit_node_inblock($var,__FILE__);  (父级再加class,值为block)
------------
测试图片:  $img = jthomerepimg($img,'jthome_page12/images/pro'.($k+1).'.jpg');
------------
具体请看首页内容模板的视频教程> 
产品最新  - 因为 sta_new 为y
产品推荐  - 因为 sta_tj 为y
产品热门  - 因为 hit 值最高
Array
(
    [datares] => yes
    [data] => Array
        (
            [0] => Array
                (
                    [id] => 242
                    [name] => 网站首页
                    [linkurl] => http://blockapi.demo.demososo.com/
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20180508_1455556398
                    [type] => page20160307_1115284044
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                )

            [1] => Array
                (
                    [id] => 178
                    [name] => 关于我们
                    [linkurl] => http://blockapi.demo.demososo.com/about.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20170510_1715538289
                    [type] => cusm20170510_1715538289
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                    [son] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 153
                                    [name] => 公司介绍
                                    [linkurl] => http://blockapi.demo.demososo.com/about.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20170510_1715538289
                                    [pidname] => smenu20150805_1138522811
                                    [type] => page20150805_1138522811
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [1] => Array
                                (
                                    [id] => 173
                                    [name] => 企业文化
                                    [linkurl] => http://blockapi.demo.demososo.com/page-65.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20170510_1715538289
                                    [pidname] => smenu20161207_1036569778
                                    [type] => page20161207_1036569778
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [2] => Array
                                (
                                    [id] => 151
                                    [name] => 团队建设
                                    [linkurl] => http://blockapi.demo.demososo.com/team.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20170510_1715538289
                                    [pidname] => smenu20150805_1143268522
                                    [type] => page20150805_1143268522
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [3] => Array
                                (
                                    [id] => 152
                                    [name] => 企业资质
                                    [linkurl] => http://blockapi.demo.demososo.com/page-22.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20170510_1715538289
                                    [pidname] => smenu20151015_0911225612
                                    [type] => page20151015_0911225612
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                        )

                )

            [2] => Array
                (
                    [id] => 155
                    [name] => 新闻中心
                    [linkurl] => http://blockapi.demo.demososo.com/news.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20150805_1133251007
                    [type] => cate20150805_1133251007
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                    [son] => Array
                        (
                            [catename] => 新闻中心
                            [catelink] => http://blockapi.demo.demososo.com/news.html
                            [catename_cur] => 新闻中心
                            [catename_curlink] => http://blockapi.demo.demososo.com/news.html
                            [datares] => yes
                            [data] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 9
                                            [name] => 公司新闻1
                                            [pidname] => csub20150805_1133441588
                                            [pid] => cate20150805_1133251007
                                            [ppid] => cate20150805_1133251007
                                            [link] => http://blockapi.demo.demososo.com/category-9.html
                                        )

                                    [1] => Array
                                        (
                                            [id] => 10
                                            [name] => 公司新闻2
                                            [pidname] => csub20150805_1133512388
                                            [pid] => cate20150805_1133251007
                                            [ppid] => cate20150805_1133251007
                                            [link] => http://blockapi.demo.demososo.com/category-10.html
                                        )

                                    [2] => Array
                                        (
                                            [id] => 11
                                            [name] => 公司新闻3
                                            [pidname] => csub20150805_1133597884
                                            [pid] => cate20150805_1133251007
                                            [ppid] => cate20150805_1133251007
                                            [link] => http://blockapi.demo.demososo.com/category-11.html
                                        )

                                    [3] => Array
                                        (
                                            [id] => 40
                                            [name] => 公司新闻4
                                            [pidname] => csub20160603_1044113807
                                            [pid] => cate20150805_1133251007
                                            [ppid] => cate20150805_1133251007
                                            [link] => http://blockapi.demo.demososo.com/category-40.html
                                        )

                                )

                        )

                )

            [3] => Array
                (
                    [id] => 154
                    [name] => 产品中心
                    [linkurl] => http://blockapi.demo.demososo.com/products.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20150805_1125344029
                    [type] => cate20150805_1125344029
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                    [son] => Array
                        (
                            [catename] => 产品中心
                            [catelink] => http://blockapi.demo.demososo.com/products.html
                            [catename_cur] => 产品中心
                            [catename_curlink] => http://blockapi.demo.demososo.com/products.html
                            [datares] => yes
                            [data] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 2
                                            [name] => 平板电视
                                            [pidname] => csub20150805_1127279495
                                            [pid] => cate20150805_1125344029
                                            [ppid] => cate20150805_1125344029
                                            [link] => http://blockapi.demo.demososo.com/category-2.html
                                        )

                                    [1] => Array
                                        (
                                            [id] => 3
                                            [name] => 手机
                                            [pidname] => csub20150805_1127356368
                                            [pid] => cate20150805_1125344029
                                            [ppid] => cate20150805_1125344029
                                            [link] => http://blockapi.demo.demososo.com/huawei.html
                                            [son] => Array
                                                (
                                                    [0] => Array
                                                        (
                                                            [id] => 5
                                                            [name] => 华为
                                                            [pidname] => csub20150805_1128542682
                                                            [pid] => csub20150805_1127356368
                                                            [ppid] => cate20150805_1125344029
                                                            [link] => http://blockapi.demo.demososo.com/category-5.html
                                                        )

                                                    [1] => Array
                                                        (
                                                            [id] => 6
                                                            [name] => 小米
                                                            [pidname] => csub20150805_1129022677
                                                            [pid] => csub20150805_1127356368
                                                            [ppid] => cate20150805_1125344029
                                                            [link] => http://blockapi.demo.demososo.com/category-6.html
                                                        )

                                                    [2] => Array
                                                        (
                                                            [id] => 7
                                                            [name] => 其他
                                                            [pidname] => csub20150805_1129113039
                                                            [pid] => csub20150805_1127356368
                                                            [ppid] => cate20150805_1125344029
                                                            [link] => http://blockapi.demo.demososo.com/category-7.html
                                                        )

                                                )

                                        )

                                    [2] => Array
                                        (
                                            [id] => 4
                                            [name] => 笔记本
                                            [pidname] => csub20150805_1127429915
                                            [pid] => cate20150805_1125344029
                                            [ppid] => cate20150805_1125344029
                                            [link] => http://blockapi.demo.demososo.com/category-4.html
                                        )

                                )

                        )

                )

            [4] => Array
                (
                    [id] => 157
                    [name] => 人才招聘
                    [linkurl] => http://blockapi.demo.demososo.com/jobs.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20150806_0435579851
                    [type] => page20150806_0435579851
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                )

            [5] => Array
                (
                    [id] => 283
                    [name] => 视频中心
                    [linkurl] => http://blockapi.demo.demososo.com/sp.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20180801_1832569361
                    [type] => cate20160410_0658287350
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                    [son] => Array
                        (
                            [catename] => 视频中心
                            [catelink] => http://blockapi.demo.demososo.com/sp.html
                            [catename_cur] => 视频中心
                            [catename_curlink] => http://blockapi.demo.demososo.com/sp.html
                            [datares] => yes
                            [data] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 38
                                            [name] => 视频分类1
                                            [pidname] => csub20160410_0658592970
                                            [pid] => cate20160410_0658287350
                                            [ppid] => cate20160410_0658287350
                                            [link] => http://blockapi.demo.demososo.com/category-38.html
                                        )

                                    [1] => Array
                                        (
                                            [id] => 39
                                            [name] => 视频分类2
                                            [pidname] => csub20160410_0659073489
                                            [pid] => cate20160410_0658287350
                                            [ppid] => cate20160410_0658287350
                                            [link] => http://blockapi.demo.demososo.com/category-39.html
                                        )

                                )

                        )

                )

            [6] => Array
                (
                    [id] => 370
                    [name] => 特色页面
                    [linkurl] => http://blockapi.demo.demososo.com/page-177.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20190411_1100302257
                    [type] => cusm20190411_1100302257
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                    [son] => Array
                        (
                            [0] => Array
                                (
                                    [id] => 371
                                    [name] => 滚动页面-scroll fix
                                    [linkurl] => http://blockapi.demo.demososo.com/page-177.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20190411_1100302257
                                    [pidname] => smenu20190411_1101052975
                                    [type] => page20190401_1835494002
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [1] => Array
                                (
                                    [id] => 372
                                    [name] => 滚动页面-scroll sidebar
                                    [linkurl] => http://blockapi.demo.demososo.com/page-178.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20190411_1100302257
                                    [pidname] => smenu20190411_1101097858
                                    [type] => page20190401_1835598959
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [2] => Array
                                (
                                    [id] => 425
                                    [name] => 我们的团队
                                    [linkurl] => http://blockapi.demo.demososo.com/detail-1051.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20190411_1100302257
                                    [pidname] => smenu20191114_1533361201
                                    [type] => cusm20191114_1533361201
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [3] => Array
                                (
                                    [id] => 396
                                    [name] => 区块效果演示
                                    [linkurl] => https://www.demososo.com/blockdemo.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20190411_1100302257
                                    [pidname] => smenu20190820_1202426487
                                    [type] => cusm20190820_1202426487
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                            [4] => Array
                                (
                                    [id] => 405
                                    [name] => 特色侧边栏
                                    [linkurl] => http://blockapi.demo.demososo.com/page-201.html
                                    [menu_xiala] => 
                                    [ppid] => menu20161129_1804453928
                                    [pid] => smenu20190411_1100302257
                                    [pidname] => smenu20190912_1821304786
                                    [type] => page20190912_1820513319
                                    [sta_cusmenu] => n
                                    [cusmenudesp] => 
                                )

                        )

                )

            [7] => Array
                (
                    [id] => 245
                    [name] => 联系我们
                    [linkurl] => http://blockapi.demo.demososo.com/contact.html
                    [menu_xiala] => 
                    [ppid] => menu20161129_1804453928
                    [pid] => 0
                    [pidname] => smenu20180525_2101414003
                    [type] => page20150806_0436437668
                    [sta_cusmenu] => n
                    [cusmenudesp] => 
                )

        )

)