晨曦的阳光淌进窗户,给你送出我的祝福,打开手机查看,温馨,一点点爬上你的笑脸,你是快乐的,我就是幸福的,早安!
{dede:field.keywords runphp=yes} global $dsql,$aid; $keyword = ''; if(!empty(@me)) { $keywords = explode(',' , trim(@me)); $keyword = ''; $n = 1; foreach($keywords as $k) { if($n > 3) break; if(trim($k)=='') continue; else $k = addslashes($k); $keyword .= ($keyword=='' ? " CONCAT(arc.keywords,' ',arc.title) LIKE '%$k%' " : " OR CONCAT(arc.keywords,' ',arc.title) LIKE '%$k%' "); $n++; } } if($keyword != '') { $sql = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath FROM `dede_archives` arc LEFT JOIN `dede_arctype` tp ON arc.typeid=tp.id where arc.arcrank>-1 AND ($keyword) AND arc.id<>'$aid' ORDER BY arc.id desc limit 0, 10"; } $dsql->SetQuery($sql); $dsql->Execute('t'); $result = ''; while($row = $dsql->GetArray('t')) { $arcurl = GetOneArchive($row['id']); $result .= <<< TPL <ul class="d4"> <li><a rel="nofollow noopener noreferrer" href="{$arcurl['arcurl']}">{$row['title']}</a></li> </ul> TPL; } @me = $result; {/dede:field.keywords} |
到此这篇关于织梦调用相关文章,不包含当前这一篇文章如何解决方法就介绍到这了。自信,是走向成功的伴侣,是战胜困难的利剑,是达向理想彼岸的舟楫。有了它,就迈出了成功的第一步;有了它,就走上了义无反顾的追求路。更多相关织梦调用相关文章,不包含当前这一篇文章如何解决方法内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!