INSERT INTO `dede_addonarticle` VALUES('1','3','<span style=\"color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">在我们制作分类信息的</span><a href=\"http://www.mobanju.com/dedecms\" style=\"color: rgb(106, 106, 106); letter-spacing: 1px; text-decoration: none; font-family: 微软雅黑, arial; line-height: 18px; \" target=\"_blank\">dedecms模板</a><span style=\"color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">时候，经常会碰到需要对附加表中的字段进行搜索，然而织梦官方也没有给出什么好的方法</span>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	以下是模板居研究的方法：</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	&nbsp;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	首先 是新建模型：商标信息 模型；附加表为dede_shangbiao ，附加字段先添加了2个，sbID(商标ID)和chuangyi(创意说明)</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	然后 打开需要搜索的模板，我用的是通用的模板，head.htm 稍后有图说明，&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	&lt;form action=&quot;{dede:global.cfg_cmsurl /}/plus/advancedsearch.php&quot; method=&quot;post&quot;&gt;<br />\r\n	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type=&quot;hidden&quot; name=&quot;mid&quot; value=&quot;100&quot; /&gt; //100是模型的ID号<br />\r\n	&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input type=&quot;hidden&quot; name=&quot;dopost&quot; value=&quot;search&quot; /&gt;<br />\r\n	&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;input name=&quot;keyword&quot; type=&quot;text&quot; class=&quot;search-keyword&quot; id=&quot;search-keyword&quot; /&gt;<br />\r\n	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{dede:php}<br />\r\n	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tl = new TypeLink(100);<br />\r\n	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $typeOptions = $tl-&gt;GetOptionArray(0,0,100);<br />\r\n	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;&lt;select name=&#39;typeid&#39; style=&#39;width:200&#39;&gt;\\r\\n&quot;;<br />\r\n	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;&lt;option value=&#39;0&#39; selected&gt;--不限栏目--&lt;/option&gt;\\r\\n&quot;;<br />\r\n	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo $typeOptions;<br />\r\n	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;&lt;/select&gt;&quot;;<br />\r\n	&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/dede:php}<br />\r\n	&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &lt;select name=&quot;serachvalue&quot; class=&quot;search-option&quot;&gt;<br />\r\n	&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;option value=&quot;q&quot; selected=&#39;1&#39;&gt;商标名称&lt;/option&gt;<br />\r\n	&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;option value=&quot;sbid&quot;&gt;商标ID&lt;/option&gt;<br />\r\n	&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;option value=&quot;chuangyi&quot;&gt;创意说明&lt;/option&gt;<br />\r\n	&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/select&gt;&nbsp;&nbsp; &nbsp;<br />\r\n	&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;button type=&quot;submit&quot; class=&quot;search-submit&quot;&gt;Search Now&lt;/button&gt;<br />\r\n	&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&lt;/form&gt;<br />\r\n	&nbsp;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	最后是修改plus/advancedsearch.php 文件</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	找到$q = stripslashes($q); 大概在43行左右在其上面添加&nbsp;&nbsp;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	&nbsp;&nbsp;&nbsp;&nbsp; if($_POST[&quot;serachvalue&quot;] == &quot;q&quot;){$q=$keyword;}<br />\r\n	&nbsp;&nbsp;&nbsp; &nbsp;elseif($_POST[&quot;serachvalue&quot;] == &quot;sbid&quot;){$sbid=$keyword;}<br />\r\n	&nbsp; &nbsp; &nbsp;elseif($_POST[&quot;serachvalue&quot;] == &quot;chuangyi&quot;){$chuangyi=$keyword;}</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	判断是根据什么搜索的，</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	找到if($q != &#39;&#39;){$where .= &quot; and main.title like &#39;%$q%&#39; &quot;;}修改为&nbsp;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	&nbsp; &nbsp; if($q != &#39;&#39;){$where .= &quot; and main.title like &#39;%$q%&#39; &quot;;}<br />\r\n	&nbsp;&nbsp;&nbsp; elseif($sbid != &#39;&#39;){$where.=&quot; and addon.sbID=&#39;$sbid&#39;&quot;;}<br />\r\n	&nbsp;&nbsp; &nbsp;elseif($chuangyi != &#39;&#39;){$where .=&quot;and addon.chuangyi like &#39;%$chuangyi%&#39;&quot;;}</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	如果是搜索标题的话查询的是主表，如是搜索商标ID和创意说明的 则是搜索的附加表</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	就这样就完成了。</p>\r\n','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('2','3','<h2 style=\"margin: 0px; padding: 0px; font-size: 12px; font-weight: normal; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	dedecms模板文件不支持html的解决方法</h2>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	<br />\r\n	模板居小编今日就DEDECMS模板不支持HTML提供的解决办法分享给大家<br />\r\n	<br />\r\n	其实很简单，首先我们找到include文件夹下的arc.archives.class.php这个文件<br />\r\n	<br />\r\n	搜索if (!preg_match(&quot;#.htm$#&quot;, $tmpfile)) return FALSE;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	这是一个判断，只有当模板的后缀或者叫扩展名为.HTM的时候它才有效。<br />\r\n	<br />\r\n	把它改下，改成<span style=\"color: rgb(255, 0, 0); \">if (!preg_match(&quot;#.htm#&quot;, $tmpfile)) return FALSE;</span></p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	OK 完成！</p>\r\n','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('3','3','<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	<strong>Dedecms的二级静态网址（根目录二级静态）的修改方法</strong><br />\r\n	<br />\r\n	要实现dedecms的二级静态网址（根目录二级静态）<br />\r\n	<br />\r\n	首先新建目录的时候默认如下：</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	文章命名规则：{typedir}/{Y}/{M}{D}/{aid}.html<br />\r\n	列表命名规则：{typedir}/list_{tid}_{page}.html<br />\r\n	<br />\r\n	改成如下：<br />\r\n	<br />\r\n	文章命名规则：/{aid}.html，生成对搜索引擎喜欢的二级静态网址 ，管理起来不是很方便，收录和优化方面还是不错的。现在的ecshop的内页都是用这种。<br />\r\n	列表命名规则：{typedir}/list_{page}.html<br />\r\n	栏目管理&gt;&gt;修改栏目&mdash; 常规选项&mdash;文件保存目录&ndash;{cmspath}/a/xxx&nbsp;&nbsp;&nbsp;<br />\r\n	(去掉那个 a 就可以了，我这个是建好栏目修改才有的）<br />\r\n	<br />\r\n	如果你新建的目录比较多，一个一个目录改又很麻烦，你可以直接更改顶级目录，选&ldquo;继承选项&rdquo;就可以了</p>\r\n','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('4','3','<p sizcache039869234944593923=\"2\" sizset=\"33\" style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	<strong>织梦DedeCms模板标签代码参考 memberlist 标签的应用</strong></p>\r\n<blockquote data-find=\"_8\" sizcache039869234944593923=\"2\" sizset=\"33\" style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	<p data-find=\"_7\" sizcache039869234944593923=\"2\" sizset=\"33\" style=\"margin: 0px; padding: 0px; \">\r\n		<br />\r\n		标签名称：memberlist<br />\r\n		<br />\r\n		功能说明：会员信息调用标签<br />\r\n		<br />\r\n		使用实例：<br />\r\n		<br />\r\n		{dede:memberlist orderby=&rsquo;scores&rsquo; row=&rsquo;20&prime;}<br />\r\n		<br />\r\n		&lt;a href=&rdquo;../member/index.php?uid={dede:field.userid /}&rdquo;&gt;{dede:field.userid /}&lt;/a&gt;<br />\r\n		<br />\r\n		&lt;span&gt;{dede:field.scores /}&lt;/span&gt;<br />\r\n		<br />\r\n		{/dede:memberlist}</p>\r\n</blockquote>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	参数说明：<br />\r\n	<br />\r\n	orderby = &lsquo;scores&rsquo; 按积分排序<br />\r\n	<br />\r\n	row = &rsquo;6&prime; 调用数目</p>\r\n','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('5','3','<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	我相信有些朋友在用DEDECMS搭架网站的时候，会碰到这种情况：</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	在生成的列表模板时，列表文章标题全都加粗加黑了，这样看的特别扭。一开始，你以为是css样式出了问题，这样你可以检查一下代码，看有没有加粗标签。如果有&lt; b &gt;标签存在。</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	那就不是列表模板的问题，那就它一定是DEDECMS相关地方的问题。</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	<br />\r\n	下面模板居小编来告诉大家其中原因及方法:</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	既然是列表显示的问题，那我们来找到DEDECMS列表显示的类文件：include文件目录下的　arc.listview.class.php。</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	打开该文件，查找一下标签，代码如下：<br />\r\n	<br />\r\n	&nbsp;if(preg_match(&#39;/c/&#39;, $row[&#39;flag&#39;]))<br />\r\n	&nbsp; {<br />\r\n	&nbsp;&nbsp;$row[&#39;title&#39;] = &quot;&lt;b&gt;&quot;.$row[&#39;title&#39;].&quot;&lt;/b&gt;&quot;;<br />\r\n	&nbsp;}</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	　　这句代码的意思是，在DEDECMS后台发布文章时，如果选择了推荐(c)属性，那么生成的列表中，文章标题就加粗。我们把这几句代码删掉了，然后重新生成了一下栏目，刷新一下，列表文章标题的加粗标签都没了。<br />\r\n	&nbsp;</p>\r\n<p style=\"margin: 0px; padding: 0px; color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	这样就OK了。模板居小编：去除列表页文章标题加粗标签　</p>\r\n','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('6','2','','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('7','2','<img alt=\"\" src=\"/uploads/131121/1-131121114A2328.jpg\" style=\"width: 300px; height: 300px; \" /><br />\r\n<br />\r\n<span style=\"font-family: 微软雅黑, arial; line-height: 18px; color: rgb(255, 240, 245); \"><span style=\"font-size: 14px; \"><span style=\"background-color: rgb(31, 150, 82); \">&nbsp; &nbsp; &nbsp;模板简介： &nbsp;</span></span></span><br style=\"color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \" />\r\n<br style=\"color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \" />\r\n<div style=\"color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	DEDECMS蓝色大气环保企业模板，DEDECMS模板提供商模板居一款漂亮的织梦企业模板，蓝色大气环保企业模板，适合各个企业，蓝色大气模板。</div>\r\n<div style=\"color: rgb(106, 106, 106); font-family: 微软雅黑, arial; line-height: 18px; \">\r\n	<br />\r\n	适合SEO优化，网站页面书写工程，DIV+CSS ，页面完整，带测试数据。</div>\r\n','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('8','2','','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('9','2','','','','127.0.0.1');
INSERT INTO `dede_addonarticle` VALUES('10','2','','','','127.0.0.1');
