文件位于 component\dm-include\file_formpost \formpost_datatest.php
数组变量的值:arr_jthomev_knowledge      编辑的值:jthomev_knowledge
使用方法:
在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] => 1035
                    [pid] => csub20190417_1811326303
                    [ppid] => cate20190417_1811131418
                    [title] => 成吉思汗只会弯弓射大雕吗
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1035.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:13:37
                    [hit] => 80
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 成吉思汗只会弯弓射大雕吗成吉思汗只会弯弓射大雕吗成吉思汗只会弯弓射大雕吗

 

成吉思汗只会弯弓射大雕吗成吉思汗只会弯弓射大雕吗

&n...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

            [1] => Array
                (
                    [id] => 1034
                    [pid] => csub20190417_1811326303
                    [ppid] => cate20190417_1811131418
                    [title] => 你喜欢用哪个cms建站?
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1034.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:13:07
                    [hit] => 73
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 你喜欢用哪个cms建站?你喜欢用哪个cms建站?你喜欢用哪个cms建站?

你喜欢用哪个cms建站?你喜欢用哪个cms建站?

你喜欢用哪个cms建站?...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

            [2] => Array
                (
                    [id] => 1033
                    [pid] => csub20190417_1811326303
                    [ppid] => cate20190417_1811131418
                    [title] => 杨家将和岳家将是在哪个朝代?
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1033.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:12:56
                    [hit] => 76
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 杨家将和岳家将是在哪个朝代?杨家将和岳家将是在哪个朝代?

 

杨家将和岳家将是在哪个朝代?杨家将和岳家将是在哪个朝代?

 ...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

            [3] => Array
                (
                    [id] => 1032
                    [pid] => csub20190417_1811326303
                    [ppid] => cate20190417_1811131418
                    [title] => 长征的起点在哪里?
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1032.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:12:27
                    [hit] => 75
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 长征的起点在哪里?长征的起点在哪里?

 

长征的起点在哪里?长征的起点在哪里?长征的起点在哪里?

 

长征的起点在哪...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

            [4] => Array
                (
                    [id] => 1031
                    [pid] => csub20190417_1811272085
                    [ppid] => cate20190417_1811131418
                    [title] => 红酒的产地是哪里
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1031.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:12:13
                    [hit] => 73
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???

 

红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

            [5] => Array
                (
                    [id] => 1030
                    [pid] => csub20190417_1811272085
                    [ppid] => cate20190417_1811131418
                    [title] => 为什么要学英语?
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1030.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:11:57
                    [hit] => 79
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 为什么要学英语?为什么要学英语?为什么要学英语?

为什么要学英语?为什么要学英语?

 

为什么要学英语?为什么要学英语?为什么要学英...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

            [6] => Array
                (
                    [id] => 1029
                    [pid] => csub20190417_1811272085
                    [ppid] => cate20190417_1811131418
                    [title] => 为什么会有黑洞?
                    [titlestyle] => 
                    [alias_jump] => 
                    [sta_tj] => n
                    [sta_new] => n
                    [link] => http://blockapi.demo.demososo.com/detail-1029.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:11:51
                    [hit] => 58
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 为什么会有黑洞?为什么会有黑洞?为什么会有黑洞?

为什么会有黑洞?为什么会有黑洞?为什么会有黑洞?

 

为什么会有黑洞?为什么会有黑...
                    [arrcan] => Array
                        (
                            [author] => 
                            [authorcompany] => 
                            [stock] => 
                            [detpriceold] => 0
                            [detprice] => 0
                            [detlinktitle] => 
                            [detlinkurl] => 
                            [downloadurl] => 
                            [linkmore] => 
                            [titlebz1] => 
                            [titlebz2] => 
                            [titlebz3] => 
                            [nodekvshow] => y
                        )

                )

        )

)