文件位于 component\dm-include\file_formpost \formpost_datatest.php
数组变量的值:arr_jthomev_dh_faq      编辑的值:jthomev_dh_faq
使用方法:
在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] => faq 常见问题
    [catename_cur] => faq 常见问题
    [datares] => yes
    [data] => Array
        (
            [0] => Array
                (
                    [id] => 420
                    [pid] => dsub20171207_1040184257
                    [ppid] => blockdh
                    [title] => 为什么使用DM企业建站系统?
                    [kv] => 20191022_143241_3070.png
                    [kvsm] => 
                    [kvsm2] => 
                    [desp] => 

为什么使用DM企业建站系统? 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。 夕阳依傍着西山慢慢地沉没, 滔滔黄河朝着东海汹涌奔流。若想把千里的风光景物看够, 那就要登上更高的一层城楼。

[despjj] => [arrcan] => Array ( [dhcssname] => [dhcssstyle] => [isfull] => y [dhlinktitle] => 进入官网 [dhlinkurl] => https://www.demososo.com [dhtitlebz1] => [dhtitlebz2] => [dhtitlebz3] => [textformat] => textright23 [dhblockid] => ) ) [1] => Array ( [id] => 421 [pid] => dsub20171207_1040184257 [ppid] => blockdh [title] => php是什么语言? [kv] => 20191022_143249_3314.png [kvsm] => [kvsm2] => [desp] =>

php是什么语言?  php是什么语言? 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。 夕阳依傍着西山慢慢地沉没, 滔滔黄河朝着东海汹涌奔流。若想把千里的风光景物看够, 那就要登上更高的一层城楼。

[despjj] => [arrcan] => Array ( [dhcssname] => [dhcssstyle] => [isfull] => y [dhlinktitle] => [dhlinkurl] => [dhtitlebz1] => [dhtitlebz2] => [dhtitlebz3] => [textformat] => textleft23 [dhblockid] => ) ) [2] => Array ( [id] => 422 [pid] => dsub20171207_1040184257 [ppid] => blockdh [title] => vuejs 是什么框架? [kv] => [kvsm] => [kvsm2] => [desp] =>

vuejs 是什么框架?vuejs 是什么框架? 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。 夕阳依傍着西山慢慢地沉没, 滔滔黄河朝着东海汹涌奔流。若想把千里的风光景物看够, 那就要登上更高的一层城楼。

[despjj] => [arrcan] => Array ( [dhcssname] => [dhcssstyle] => [isfull] => y [dhlinktitle] => [dhlinkurl] => [dhtitlebz1] => [dhtitlebz2] => [dhtitlebz3] => [textformat] => default [dhblockid] => ) ) [3] => Array ( [id] => 423 [pid] => dsub20171207_1040184257 [ppid] => blockdh [title] => 你喜欢什么样的电影? [kv] => [kvsm] => [kvsm2] => [desp] =>

你喜欢什么样的电影?你喜欢什么样的电影? 白日依山尽,黄河入海流。欲穷千里目,更上一层楼。 夕阳依傍着西山慢慢地沉没, 滔滔黄河朝着东海汹涌奔流。若想把千里的风光景物看够, 那就要登上更高的一层城楼。

[despjj] => [arrcan] => Array ( [dhcssname] => [dhcssstyle] => [isfull] => y [dhlinktitle] => [dhlinkurl] => [dhtitlebz1] => [dhtitlebz2] => [dhtitlebz3] => [textformat] => default [dhblockid] => ) ) [4] => Array ( [id] => 1112 [pid] => dsub20171207_1040184257 [ppid] => blockdh [title] => 觉得react好还是vuejs好? [kv] => [kvsm] => [kvsm2] => [desp] =>

已经会了 HTML、CSS、JavaScript?即刻阅读指南开始构建应用!已经会了 HTML、CSS、JavaScript?即刻阅读指南开始构建应用!已经会了 HTML、CSS、JavaScript?即刻阅读指南开始构建应用!

[despjj] => [arrcan] => Array ( [dhcssname] => [dhcssstyle] => [isfull] => n [dhlinktitle] => [dhlinkurl] => [dhtitlebz1] => [dhtitlebz2] => [dhtitlebz3] => [textformat] => default [dhblockid] => ) ) [5] => Array ( [id] => 1113 [pid] => dsub20171207_1040184257 [ppid] => blockdh [title] => 你会想学习angular吗 [kv] => [kvsm] => [kvsm2] => [desp] =>

Angular可不是 AngularJS, Angular 是一个 JavaScript 框架........Angular可不是 AngularJS, Angular 是一个 JavaScript 框架........Angular可不是 AngularJS, Angular 是一个 JavaScript 框架........

[despjj] => [arrcan] => Array ( [dhcssname] => [dhcssstyle] => [isfull] => n [dhlinktitle] => [dhlinkurl] => [dhtitlebz1] => [dhtitlebz2] => [dhtitlebz3] => [textformat] => default [dhblockid] => ) ) ) )