文件位于 component\dm-include\file_formpost \formpost_datatest.php
数组变量的值:arr_jthomev_video      编辑的值:jthomev_video
使用方法:
在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
(
    [catename] => 视频中心
    [catename_cur] => 视频中心
    [datares] => yes
    [data] => Array
        (
            [0] => Array
                (
                    [id] => 73
                    [pid] => csub20160410_0658592970
                    [ppid] => cate20160410_0658287350
                    [title] => 神探夏洛克
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-73.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 91
                    [kv] => 
                    [kvsm] => 20160410_071354_6503.jpg
                    [kvsm2] => 
                    [desp] => 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷·斯科特和玛姬·...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [1] => Array
                (
                    [id] => 74
                    [pid] => csub20160410_0658592970
                    [ppid] => cate20160410_0658287350
                    [title] => 陪安东尼度过漫长岁月
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-74.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 82
                    [kv] => 
                    [kvsm] => 20160410_071341_8687.jpg
                    [kvsm2] => 
                    [desp] => 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷·斯科特和玛姬·...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [2] => Array
                (
                    [id] => 75
                    [pid] => csub20160410_0658592970
                    [ppid] => cate20160410_0658287350
                    [title] => 十月初五的月光
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-75.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 84
                    [kv] => 
                    [kvsm] => 20160410_071347_1842.jpg
                    [kvsm2] => 
                    [desp] => 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷·斯科特和玛姬·...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [3] => Array
                (
                    [id] => 76
                    [pid] => csub20160410_0658592970
                    [ppid] => cate20160410_0658287350
                    [title] => 风口青春
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-76.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 72
                    [kv] => 
                    [kvsm] => 20160410_071320_1468.jpg
                    [kvsm2] => 
                    [desp] => 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷·斯科特和玛姬·...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [4] => Array
                (
                    [id] => 77
                    [pid] => csub20160410_0658592970
                    [ppid] => cate20160410_0658287350
                    [title] => 猛龙特囧
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-77.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 84
                    [kv] => 
                    [kvsm] => 20160410_071312_4780.jpg
                    [kvsm2] => 
                    [desp] => 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [5] => Array
                (
                    [id] => 78
                    [pid] => csub20160410_0659073489
                    [ppid] => cate20160410_0658287350
                    [title] => 捉妖记
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-78.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 86
                    [kv] => 
                    [kvsm] => 20160410_072101_5445.jpg
                    [kvsm2] => 
                    [desp] => 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [6] => Array
                (
                    [id] => 79
                    [pid] => csub20160410_0659073489
                    [ppid] => cate20160410_0658287350
                    [title] => 窃听风云
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-79.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 73
                    [kv] => 
                    [kvsm] => 20160410_072055_6922.jpg
                    [kvsm2] => 
                    [desp] => 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [7] => Array
                (
                    [id] => 80
                    [pid] => csub20160410_0659073489
                    [ppid] => cate20160410_0658287350
                    [title] => 飓风营救3
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-80.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 75
                    [kv] => 
                    [kvsm] => 20160410_072048_8084.jpg
                    [kvsm2] => 
                    [desp] => 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷·斯科特和玛姬·...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [8] => Array
                (
                    [id] => 81
                    [pid] => csub20160410_0659073489
                    [ppid] => cate20160410_0658287350
                    [title] => 丑女也有春天
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-81.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 71
                    [kv] => 
                    [kvsm] => 20160410_072041_4779.jpg
                    [kvsm2] => 
                    [desp] => 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [9] => Array
                (
                    [id] => 82
                    [pid] => csub20160410_0659073489
                    [ppid] => cate20160410_0658287350
                    [title] => 巨人捕手杰克
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-82.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 73
                    [kv] => 
                    [kvsm] => 20160410_072034_1962.jpg
                    [kvsm2] => 
                    [desp] => 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [10] => Array
                (
                    [id] => 83
                    [pid] => csub20160410_0658592970
                    [ppid] => cate20160410_0658287350
                    [title] => 请你闭嘴
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-83.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 84
                    [kv] => 
                    [kvsm] => 20160410_072624_8716.jpg
                    [kvsm2] => 
                    [desp] => 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片 讲述...
                    [arrcan] => Array
                        (
                            [titlecss] => 
                            [author] => 
                            [authorcompany] => 
                            [sta_noaccess] => n
                            [sta_tj] => y
                            [sta_new] => y
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [videourl] => 
                            [videotitle] => 
                            [linkmore] => 
                            [seocus1] => 
                            [seocus2] => 
                            [seocus3] => 
                        )

                )

            [11] => Array
                (
                    [id] => 84
                    [pid] => csub20160410_0659073489
                    [ppid] => cate20160410_0658287350
                    [title] => 私奔B计划
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-84.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 81
                    [kv] => 
                    [kvsm] => 20160410_072340_7170.jpg
                    [kvsm2] => 
                    [desp] => 电影《私奔B计划》是由帕斯卡尔·舒梅执导的爱情喜剧片,黛安·克鲁格,丹尼·伯恩,伊什尼·齐科特,劳尔&m...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [detail_albumid] => 
                            [detail_videoid] => video20180524_1839345521
                            [detail_musicid] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                        )

                )

        )

)