文件位于 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://free.demo.demososo.com/detail-1035.html
                    [dateday] => 2019-04-17
                    [dateedit] => 2019-04-17 18:13:37
                    [hit] => 36
                    [kv] => 
                    [kvsm] => 
                    [kvsm2] => 
                    [kvsm_cus] => 
                    [desp] => 成吉思汗只会弯弓射大雕吗成吉思汗只会弯弓射大雕吗成吉思汗只会弯弓射大雕吗

 

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

&n...
                    [despjj] =>  - no despjj when type is node in list(excerpt), use desp
                    [despall] => 

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

 

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

 

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

 

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

[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://free.demo.demososo.com/detail-1034.html [dateday] => 2019-04-17 [dateedit] => 2019-04-17 18:13:07 [hit] => 36 [kv] => [kvsm] => [kvsm2] => [kvsm_cus] => [desp] => 你喜欢用哪个cms建站?你喜欢用哪个cms建站?你喜欢用哪个cms建站? 你喜欢用哪个cms建站?你喜欢用哪个cms建站? 你喜欢用哪个cms建站?... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

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

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

你喜欢用哪个cms建站?你喜欢用哪个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://free.demo.demososo.com/detail-1033.html [dateday] => 2019-04-17 [dateedit] => 2019-04-17 18:12:56 [hit] => 27 [kv] => [kvsm] => [kvsm2] => [kvsm_cus] => [desp] => 杨家将和岳家将是在哪个朝代?杨家将和岳家将是在哪个朝代?   杨家将和岳家将是在哪个朝代?杨家将和岳家将是在哪个朝代?  ... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

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

 

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

 

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

 

 

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

 

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

[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://free.demo.demososo.com/detail-1032.html [dateday] => 2019-04-17 [dateedit] => 2019-04-17 18:12:27 [hit] => 35 [kv] => [kvsm] => [kvsm2] => [kvsm_cus] => [desp] => 长征的起点在哪里?长征的起点在哪里?   长征的起点在哪里?长征的起点在哪里?长征的起点在哪里?   长征的起点在哪... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

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

 

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

 

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

 

 

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

 

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

[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://free.demo.demososo.com/detail-1031.html [dateday] => 2019-04-17 [dateedit] => 2019-04-17 18:12:13 [hit] => 32 [kv] => [kvsm] => [kvsm2] => [kvsm_cus] => [desp] => 红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???   红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???

 

红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???

 

红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???

 

红酒的产地是哪里???红酒的产地是哪里???红酒的产地是哪里???

 

[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://free.demo.demososo.com/detail-1030.html [dateday] => 2019-04-17 [dateedit] => 2019-04-17 18:11:57 [hit] => 30 [kv] => [kvsm] => [kvsm2] => [kvsm_cus] => [desp] => 为什么要学英语?为什么要学英语?为什么要学英语? 为什么要学英语?为什么要学英语?   为什么要学英语?为什么要学英语?为什么要学英... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

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

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

 

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

 

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

[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://free.demo.demososo.com/detail-1029.html [dateday] => 2019-04-17 [dateedit] => 2019-04-17 18:11:51 [hit] => 25 [kv] => [kvsm] => [kvsm2] => [kvsm_cus] => [desp] => 为什么会有黑洞?为什么会有黑洞?为什么会有黑洞? 为什么会有黑洞?为什么会有黑洞?为什么会有黑洞?   为什么会有黑洞?为什么会有黑... [despjj] => - no despjj when type is node in list(excerpt), use desp [despall] =>

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

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

 

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

 

 

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

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