Dedecms 文章列表动态调用,织梦文章
导读:织梦文章织梦文章啥都不说了,这个页面就是用于ajax的,直接上代码,哈哈,喜欢的人到时候送我几个IP就行了复制代码 1. ?php 2. require_once(dirnam织梦文章模板。
啥都不说了,这个页面就是用于ajax的,直接上代码,哈哈,喜欢的人到时候送我几个IP就行了
1. <?php 2. require_once(dirname(__FILE__)."/../include/common.inc.php"); 3. require_once(dirname(__FILE__)."/../include/channelunit.func.php"); 4. 5. 6. foreach($_REQUEST as $k=>$v) 7. { 8. $$k=$v; 9. } 10. 11. 12. if (empty($order)) $order = "pubdate"; 13. &n织梦首页模板bsp; if (empty($orderway)) $orderway = "desc"; 14. if (empty($rs_start)) $rs_start = 0; 15. if (empty($rs_end)) $rs_end = 10; 16. 17. $wherejoin = array(); 18. 19. if (!empty($arcid)) $wherejoin[]= " arc.id in ($arcid) "; 20. if (!empty($tid)) $wherejoin[]=" arc.typeid=’$tid’ "; 21. 22. $wheresql = join(‘ and ‘,$wherejoin); 23. if (!empty($wheresql)) $wheresql="where " . $wdede5.7模板heresql; 24. 25. if (empty($mod)) $mod=’static’; 26. 27. 28. 29. $query = "Select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart, 30. tp.moresite,tp.sitepath,tp.siteurl 31. from `dede_archives` arc left join `dede_arctype` tp on arc.typeid=tp.id 32. $wheresql order by $order $orderway limit $rs_start,$rs_end 33. "; 34. 35. 36. 37. $dsql->SetQuery($query); 38. $dsql->Execute(); 39. 40. 41. while($row = $dsql->GetArray()) 42. { 43. 44. if ($mod==’static’) 45. { 46. 47. $row['filename'] = $row['arcurl'] = GetFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'], 48. $row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']); 49. 50. $arcurl="{$row['filename']}"; 51. 52. } 53. 54. else if ($mod==’dynamic’) 55. { 56. 57. $arcurl="/plus/view.php?aid={$row['id']}"; 58. 59. } 60. 61. 62. echo "<li><a href=’$arcurl’>{$row['title']}</a></li>"; 63. 64. 65.&织梦文章模板nbsp; } 66. ?>
声明: 本文由我的SEOUC技术文章主页发布于:2023-07-22 ,文章Dedecms 文章列表动态调用,织梦文章主要讲述文章列表,标签,织梦网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_33820.html