
insert into phome_enewsclass (classid,bclassid,classname,myorder,classpath,intro,classpagekey) select id,reid,typename,sortrank,typedir,description,keywords from dede_arctype
二、导入文章
insert into phome_ecms_news (id,classid,truetime,onclick,title,titlepic,filename,newstime,lastdotime,smalltext,keyboard) select id,typeid,sortrank,click,title,litpic,filename,pubdate,senddate,description,keywords from dede_archives
三、导入文章来源作者
update `dede_archives` da,phome_ecms_news_data_1 men set da.source=men.befrom,da.writer=men.writer where da.id=men.id
四、导入文章body(内容)
insert into phome_ecms_news_data_1 (id,classid,newstext) select aid,typeid,body from dede_addonarticle men
如果你DEDE数据表中开头为其他的,代码中的dede_也要换成你dede数据库中的开头。
帝国的副表,是指不参与搜索,结合项,列表页显示的字段,从主表分离,存放到另一个表中。每一个省做一个数据表,可以做好一个主数据表后,比如“山东数据表”,复制该表即可。
如果你的数据量只有几万的话,一个表差不多了,方便管理。当然长远来看多表也好。
你的意思是:
做了一个数据模型(该数据模型简称为:A数据模型)
然后建立一个栏目(该栏目简述为:B栏目)使用A数据模型
然后在B栏目中存储上述你的图片所展示的信息
是这个意思吗?
如果是这个意思的话,请在A数据模型中定义:
证书编号字段 field1
姓名字段 field2
性别字段 field3
批准日期字段 field4
考级单位字段 field5
证书字段 field6
然后,在定义这个模型中的上述6个字段可以在列表页展示
然后自己在列表页模版中写相应的模版,如:
<table><tr>
<th>证件编号</th>
<th>姓名</th>
<th>性别</th>
<th>批准日期</th>
<th>考级单位</th>
<th>证书</th>
<th>查看</th>
</tr>
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
</table>
然后在list.var中写入如下模版信息:
<tr><td>[!--field1--]</td>
<td>[!--field2--]</td>
<td>[!--field3--]</td>
<td>[!--field4--]</td>
<td>[!--field5--]</td>
<td>[!--field6--]</td>
<td><a href="[!--titleurl--]">查看</a></td>
</tr>
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)