|
本帖最后由 iOK 于 2009-4-30 12:03 编辑
数据表字段: did cid letter title tag summary content author authorid time lastedit lasteditor lasteditorid views edits editions comments visible locked votes
表字段说明: 词条ID 分类ID 词条首字母 词条标题 词条标签 词条摘要 词条内容 创建者 创建者ID 创建时间 最后编辑时间 最后编辑人 最后编辑人ID 浏览次数 编辑次数 版本个数 评论次数 是否被审核通过 是否被锁定 投票次数
备份后的样式:E_D("replace into `wiki_doc` values('80','6','b','八','bā;ㄅㄚ;八','一、bā ㄅㄚ 数目字。','<A title=点击查看原图 href=\"/uploads/200902/1234503200jJH6FcoZ.jpg\" target=_blank><IMG title=八 hspace=0 src=\"/uploads/200902/s_1234503200jJH6FcoZ.jpg\" align=left border=0></A>一、<FONT face=SimHei>bā </FONT>ㄅㄚ 数目字。','qingshengguo','3','1234503226','1234506520','qingshengguo','3','36','1','2','0','0','0','0');");
数据格式说明:E_D("replace into `wiki_doc` values('1','1','词条首字母','词条标题','词条标签','词条摘要','词条内容','qingshengguo','3','1233992333','1234147428','admin','1','127','21','22','0','1','0','0');");
------------源数据--------------------转换后------
<CK>
<DC><![CDATA[blue]]></DC>-------------blue(注:标题)
<JS>-------------(内容)(注:JS之前全部分内容,加相应的html代码)
<CY>
<CX>
<YX><![CDATA[blue]]></YX>-------------<span class=word>blue</span>
<YB>
<CB><![CDATA[D.J.:blu:]]></CB>-------------<span class=yinbiao lang=EN-US>D.J.[blu:]</span>
</YB>
<YB>
<CB><![CDATA[K.K.:blu]]></CB>-------------<span class=yinbiao lang=EN-US>K.K.[blu]</span>
</YB>
<DX><![CDATA[n.]]></DX>-------------<span class=cixing>n.</span>
<JX><![CDATA[蓝色, 蔚蓝; 青色]]></JX>-------------<span class=trans>蓝色, 蔚蓝; 青色</span>
<LJ>
<LY><![CDATA[A clear atmosphere intensifies the blue of the sky.]]></LY>-------------<span class=lijuyuanxing>A clear atmosphere intensifies the blue of the sky.</span>
<LS><![CDATA[纯净的空气使天空变得更蓝。]]></LS>--------------------------<span class=lijujieshi>纯净的空气使天空变得更蓝。</span>
</LJ>
<DX><![CDATA[adj.]]></DX>-------------<span class=cixing>adj.</span>
<JX><![CDATA[蓝色的, 蓝的]]></JX>-------------<span class=trans>蓝色的, 蓝的</span>
<LJ>
<LY><![CDATA[White clouds swam in the blue sky.]]></LY>-------------<span class=lijuyuanxing>White clouds swam in the blue sky.</span>
<LS><![CDATA[白云在蓝天上飘浮。]]></LS>--------------<span class=lijujieshi>白云在蓝天上飘浮。</span>
</LJ>
<LJ>
<LY><![CDATA[The blue car overtook ours.]]></LY>--------------<span class=lijuyuanxing>The blue car overtook ours.</span>
<LS><![CDATA[那辆蓝色的汽车超过我们的车子。]]></LS>-------------<span class=lijujieshi>那辆蓝色的汽车超过我们的车子。</span>
</LJ>
<JX><![CDATA[沮丧的, 忧郁的]]></JX>-------------<span class=trans>沮丧的, 忧郁的</span>
<LJ>
<LY><![CDATA[He was blue over his dismissal.]]></LY>-------------<span class=lijuyuanxing>He was blue over his dismissal.</span>
<LS><![CDATA[他因被解雇而情绪低落。]]></LS>-------------<span class=lijujieshi>他因被解雇而情绪低落。</span>
</LJ>
<LJ>
<LY><![CDATA[You're looking blue.What's the matter?]]></LY>-------------<span class=lijuyuanxing>You're looking blue.What's the matter?</span>
<LS><![CDATA[你看起来挺忧愁, 怎么回事?]]></LS>-------------<span class=lijujieshi>你看起来挺忧愁, 怎么回事?</span>
</LJ>
</CX>
</CY>
</JS>-------------(内容)
</CK>
注:
词条首字母(读取<DC><![CDATA[*****]]></DC>中间内容第一个字母)
词条标题(读取<DC><![CDATA[*****]]></DC>中间内容)
词条标签(能在<JS>*****</JS>中间提取那就牛了,两个词中间用“;”分开)
词条摘要(从<JS>*****</JS>中间提取过滤掉html标签代码)
词条内容(按上面的源数据和转换后样式来转换,帮我看看,中间用什么标签换行最爽,见意一下~~~~)
附件是测试数据 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|