文件位于 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://free.demo.demososo.com/detail-73.html
                    [dateday] => 2016-04-10
                    [dateedit] => 2016-04-10 00:00:00
                    [hit] => 52
                    [kv] => 
                    [kvsm] => 20160410_071354_6503.jpg
                    [kvsm2] => 
                    [kvsm_cus] => 
                    [desp] => 如何在这里添加一个视频?

《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷&midd...
                    [despjj] =>  - no despjj when type is node in list(excerpt), use desp
                    [despall] => 

如何在这里添加一个视频?

《飓风营救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://free.demo.demososo.com/detail-74.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 38 [kv] => [kvsm] => 20160410_071341_8687.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《飓风营救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://free.demo.demososo.com/detail-75.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 42 [kv] => [kvsm] => 20160410_071347_1842.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《飓风营救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://free.demo.demososo.com/detail-76.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 29 [kv] => [kvsm] => 20160410_071320_1468.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《飓风营救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://free.demo.demososo.com/detail-77.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 32 [kv] => [kvsm] => 20160410_071312_4780.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。...

[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://free.demo.demososo.com/detail-78.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 34 [kv] => [kvsm] => 20160410_072101_5445.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。...

[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://free.demo.demososo.com/detail-79.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 30 [kv] => [kvsm] => 20160410_072055_6922.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。...

[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://free.demo.demososo.com/detail-80.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 23 [kv] => [kvsm] => 20160410_072048_8084.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《飓风营救3》是由奥利维尔·米加顿执导,连姆·尼森、福里斯特·惠特克、多格雷&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《飓风营救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://free.demo.demososo.com/detail-81.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 29 [kv] => [kvsm] => 20160410_072041_4779.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。...

[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://free.demo.demososo.com/detail-82.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 32 [kv] => [kvsm] => 20160410_072034_1962.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。...

[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://free.demo.demososo.com/detail-83.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 47 [kv] => [kvsm] => 20160410_072624_8716.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺&midd... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片 讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。

《你丫闭嘴》是弗朗西斯·维贝执导的喜剧片,由让·雷诺、杰拉尔·德帕迪约、蕾诺·瓦莱拉联袂主演。该片 讲述的是让·雷诺扮演的杀手Ruby为了被仇人杀害的情人,而走上了复仇之路。期间他遇见了有着善良的热心肠并且还有点愚蠢的Quentin,二人发生了让人啼笑皆非的一段段法式喜剧。

[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://free.demo.demososo.com/detail-84.html [dateday] => 2016-04-10 [dateedit] => 2016-04-10 00:00:00 [hit] => 45 [kv] => [kvsm] => 20160410_072340_7170.jpg [kvsm2] => [kvsm_cus] => [desp] => 如何在这里添加一个视频? 电影《私奔B计划》是由帕斯卡尔·舒梅执导的爱情喜剧片,黛安·克鲁格,丹尼·伯恩,伊什尼... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

如何在这里添加一个视频?

电影《私奔B计划》是由帕斯卡尔·舒梅执导的爱情喜剧片,黛安·克鲁格,丹尼·伯恩,伊什尼·齐科特,劳尔·卡拉米领衔主演。影片于2013年10月25日在中国大陆上映。影片讲述了女主人公伊萨贝拉为绕过她家所有人第一次婚姻都会破裂的厄运,想出了能嫁给她爱的人的策略:找个好骗的,诱惑他、嫁给他然后再离婚。

[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] => ) ) ) )