Dedecms 文章列表動(dòng)態(tài)調(diào)用,織夢(mèng)文章
導(dǎo)讀:織夢(mèng)文章織夢(mèng)文章啥都不說(shuō)了,這個(gè)頁(yè)面就是用于ajax的,直接上代碼,哈哈,喜歡的人到時(shí)候送我?guī)讉€(gè)IP就行了復(fù)制代碼 1. ?php 2. require_once(dirnam織夢(mèng)文章模板。
啥都不說(shuō)了,這個(gè)頁(yè)面就是用于ajax的,直接上代碼,哈哈,喜歡的人到時(shí)候送我?guī)讉€(gè)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織夢(mèng)首頁(yè)模板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.&織夢(mèng)文章模板nbsp; } 66. ?>
聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-07-22 ,文章Dedecms 文章列表動(dòng)態(tài)調(diào)用,織夢(mèng)文章主要講述文章列表,標(biāo)簽,織夢(mèng)網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_33820.html
為你推薦與Dedecms 文章列表動(dòng)態(tài)調(diào)用,織夢(mèng)文章相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長(zhǎng)度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時(shí)期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12