-
婚纱摄影定制类网站织梦...
-
短视频直播带货类网站织...
-
汽车用品配件类网站织梦...
-
PPT素材下载类网站织梦模...
-
电子设备产品类网站织梦...
-
鲜花商城购物类网站织梦...
-
艺术家居设计类网站织梦...
-
服装时装设计类网站织梦...
-
网站建站优化推广类网站...
-
成人高考自考教育机构类...
-
搬家公司类网站织梦模板...
-
商标注册会计服务类网站...
-
茶叶茶道类网站织梦模板...
-
有机肥料化肥类网站织梦...
-
餐具类网站织梦模板(自...
-
教育机构资格证书类网站...
-
中英双语建材装饰类网站...
-
水上游乐园设备类网站织...
-
信息技术软件类网站织梦...
-
发电机设备出售租赁类网...
- 网站plus文件夹里建立个 form.php
<?phprequire_once(dirname(__FILE__)."/../include/common.inc.php");require_once(DEDEINC.'/datalistcp.class.php');$sql = "SELECT * FROM `dede_diyform1`";//【diyform1】是你的自定义表单里的【表名】$dlist = new DataListCP();$dlist->SetTemplate(DEDETEMPLATE."/plus/form.htm");//templets/plus/form.htm模板路径$dlist->SetSource($sql);$dlist->display();?>
对应的在,/templets/plus 目录下新建个 form.htm
{dede:config.pagesize value='5'/}<!--这里设置每页显示的条数--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>自定义表单</title></head><body><ul>{dede:datalist}<li>{dede:field.name /}-----{dede:field.sex /}<li>{/dede:datalist}</ul>{dede:pagelist listsize=5/}</body></html>
{dede:field.name /}和{dede:field.sex /} 根据你自己的自定义表单字段来填写
如果要引入你默认模板的头部和尾部或者其他,可以使用个自定义函数来解决
打开 /include/extend.func.php 加个函数
/*** 其他页面调用模板的头部尾部模板** @access public* @param string $path 模板路径* @return string*/if(!function_exists('pasterTempletDiy')){function pasterTempletDiy($path){require_once(DEDEINC."/arc.partview.class.php");global $cfg_basedir,$cfg_templets_dir,$cfg_df_style;$tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path;$dtp = new PartView();$dtp->SetTemplet($tmpfile);$dtp->Display();}}
自定义模板中调用
<?php pasterTempletDiy("head.htm"); ?>