文件位于 component\dm-include\file_formpost \formpost_datatest.php
数组变量的值:arr_jthomev_products      编辑的值:jthomev_products
使用方法:
在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] => 13
                    [pid] => csub20150805_1127429915
                    [ppid] => cate20150805_1125344029
                    [title] => 笔记本电脑笔记本电脑笔记本电脑
                    [titlestyle] => red
                    [alias_jump] => 
                    [sta_tj] => y
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/teweww.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 1716
                    [kv] => 20150806_093046_2423.jpg
                    [kvsm] => 20160820_065945_9561.jpg
                    [kvsm2] => 20200419_164424_6407.jpg
                    [desp] => 这是描述说明文字。。。7.3英寸游戏本17.3英寸游戏。。。。。。这是描述说明文字。。。7.3英寸游戏本17.3英寸游戏。。。。。。这是描述说明文字。。。7.3...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [detlinktitle] => 京东
                            [detlinkurl] => https://item.jd.com/7435156.html
                            [downloadurl] => 
                            [linkmore] => 
                            [nodekvshow] => y
                            [nodebz1] => 
                            [nodebz2] => 
                            [nodebz3] => 
                        )

                )

            [1] => Array
                (
                    [id] => 252
                    [pid] => csub20150805_1129113039
                    [ppid] => cate20150805_1125344029
                    [title] => 手机 双卡双待手机 双卡双待手机 双卡双待
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => y
                    [link] => http://blockapi.demo.demososo.com/detail-252.html
                    [dateday] => 2016-08-20
                    [dateedit] => 2016-08-20 00:00:00
                    [hit] => 328079
                    [kv] => 
                    [kvsm] => 20160820_065655_3605.jpg
                    [kvsm2] => 20200419_164434_6306.jpg
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [detlinktitle] => 苏宁天猫
                            [detlinkurl] => https://detail.tmall.com/item.htm?id=579794586729
                            [downloadurl] => 
                            [linkmore] => 
                            [nodekvshow] => y
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                        )

                )

            [2] => Array
                (
                    [id] => 5
                    [pid] => csub20150805_1128542682
                    [ppid] => cate20150805_1125344029
                    [title] => 手机 双卡双待22222手机 双卡双待22222
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/GSM-hua2.html
                    [dateday] => 2015-08-16
                    [dateedit] => 2015-08-16 00:00:00
                    [hit] => 272
                    [kv] => 20190819_123714_2878.jpg
                    [kvsm] => 20160820_064151_2910.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [nodekvshow] => y
                            [nodebz1] => 
                            [nodebz2] => 
                            [nodebz3] => 
                        )

                )

            [3] => Array
                (
                    [id] => 1
                    [pid] => csub20150805_1127279495
                    [ppid] => cate20150805_1125344029
                    [title] => 智能LED电视22222智能LED电视22222
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 108
                    [kv] => 20150806_090145_7218.jpg
                    [kvsm] => 20160820_063033_9478.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 2
                    [pid] => csub20150805_1129113039
                    [ppid] => cate20150805_1125344029
                    [title] => 手机双卡双待22222 手机双卡双待22222
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => y
                    [link] => http://blockapi.demo.demososo.com/detail-2.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 146
                    [kv] => 20160820_065418_4988.jpg
                    [kvsm] => 20160820_065425_3224.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 3
                    [pid] => csub20150805_1128542682
                    [ppid] => cate20150805_1125344029
                    [title] => 移动联通电信手机移动联通电信手机
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => y
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-3.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 139
                    [kv] => 20160820_065158_9420.jpg
                    [kvsm] => 20160820_065151_8351.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 4
                    [pid] => csub20150805_1129022677
                    [ppid] => cate20150805_1125344029
                    [title] => 手机双卡双待香槟金手机双卡双待香槟金
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => y
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-4.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 106
                    [kv] => 20160820_064911_2203.jpg
                    [kvsm] => 20160820_064917_6826.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 6
                    [pid] => csub20150805_1129022677
                    [ppid] => cate20150805_1125344029
                    [title] => 手机双卡双待香槟金222手机双卡双待香槟金222
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => y
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-6.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 161
                    [kv] => 20150806_091923_3218.jpg
                    [kvsm] => 20160820_064047_5245.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => asfas
                            [stock] => 10000
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                        )

                )

            [8] => Array
                (
                    [id] => 7
                    [pid] => csub20150805_1129113039
                    [ppid] => cate20150805_1125344029
                    [title] => 手机16G版3G手机手机16G版3G手机
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => y
                    [link] => http://blockapi.demo.demososo.com/detail-7.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 120
                    [kv] => 20150806_092048_7826.jpg
                    [kvsm] => 20160820_064001_4739.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 8
                    [pid] => csub20150805_1129113039
                    [ppid] => cate20150805_1125344029
                    [title] => 手机 32G版手机 32G版手机 32G版手机 32G版
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-8.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 139
                    [kv] => 20150806_092204_7023.jpg
                    [kvsm] => 20160820_063852_9745.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 9
                    [pid] => csub20150805_1127279495
                    [ppid] => cate20150805_1125344029
                    [title] => LED电视窄边超薄LED电视窄边超薄LED电视窄边超薄
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-9.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 103
                    [kv] => 20150806_092545_1198.jpg
                    [kvsm] => 20160820_063746_5055.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [nodekvshow] => y
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                        )

                )

            [11] => Array
                (
                    [id] => 10
                    [pid] => csub20150805_1127279495
                    [ppid] => cate20150805_1125344029
                    [title] => 39EU3000 39英寸 窄边框流媒体全高清LED电视
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-10.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 117
                    [kv] => 20150806_092643_9470.jpg
                    [kvsm] => 20160820_063313_9504.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [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] => 
                        )

                )

            [12] => Array
                (
                    [id] => 11
                    [pid] => csub20150805_1127279495
                    [ppid] => cate20150805_1125344029
                    [title] => LE50D59 50英寸 超窄边内置WIFI安卓智能液晶电视
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-11.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 166
                    [kv] => 20150806_092746_9245.jpg
                    [kvsm] => 20160820_063146_7484.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [nodekvshow] => y
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                        )

                )

            [13] => Array
                (
                    [id] => 12
                    [pid] => csub20150805_1127429915
                    [ppid] => cate20150805_1125344029
                    [title] => 14.0英寸笔记本电脑14.0英寸笔记本电脑
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => y
                    [link] => http://blockapi.demo.demososo.com/detail-12.html
                    [dateday] => 2015-08-06
                    [dateedit] => 2015-08-06 00:00:00
                    [hit] => 158
                    [kv] => 20150806_092914_1276.jpg
                    [kvsm] => 20160820_062914_8463.jpg
                    [kvsm2] => 
                    [desp] => DM企业建站系统是由php+mysql开发的一套专门用于中小企业网站建设的开源cms。
可以用来快速建设一个响应式的企业网站( PC,手机,微信都可以访问)。...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [nodekvshow] => y
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                        )

                )

        )

)