欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

創(chuàng)造世界上最簡(jiǎn)單的 PHP 開發(fā)模式第3/5頁(yè)

 更新時(shí)間:2006年12月04日 00:00:00   投稿:mdxy-dxy  
這篇文章主要介紹了創(chuàng)造世界上最簡(jiǎn)單的 PHP 開發(fā)模式
, 5); 
$data[phphotlist] = getArticleList(1, "clicks DESC, id DESC", 1, 3); 
$data[aspnewlist] = getArticleList(2, "id DESC", 1, 3); 
dbDisconnect(); 

renderTpl(’list1.htm’, $data); 

?> 


運(yùn)行的效果怎么樣,是不是實(shí)現(xiàn)了要求的功能呢?,F(xiàn)在我們?cè)僮鲆幌赂膭?dòng),在里面加上“asp開發(fā)熱點(diǎn)文章列表”,實(shí)現(xiàn)代碼如下

--------------list1.htm----------------
<a href="new.php">添加新文章</a><hr>
<table>
<tr><th>php開發(fā)文章</th></tr>
<!-- BEGIN phplist -->
<tr><td>{id}--<a href="view.php?id={id}">{title}</a></td></tr>
<!-- END phplist -->
</table>
<!-- BEGIN phplist_page -->
<script src="page.js" language="javascript"></script>
<script language="javascript">
recordCount = {recordCount}; //總記錄數(shù)
show = {pageSize}; //每頁(yè)顯示的記錄數(shù)量
pageShow = 10; //每頁(yè)顯示的分頁(yè)連接數(shù)量
pageCount = {pageCount}; //總頁(yè)數(shù)
pageNow = {page}; //當(dāng)前頁(yè)數(shù)
pageStr = "?page=_page_"; //頁(yè)面連接
document.write(showListPage(recordCount, show, pageShow, pageCount, pageNow, pageStr));
</script>
<!-- END phplist_page -->
<hr>
<table ID="Table1">
<tr><th>php開發(fā)熱點(diǎn)文章</th></tr>
<!-- BEGIN phphotlist -->
<tr><td>{id}--<a href="view.php?id={id}">{title}</a></td></tr>
<!-- END phphotlist -->
</table><hr>
<table ID="Table2">
<tr><th>asp開發(fā)最新文章</th></tr>
<!-- BEGIN aspnewlist -->
<tr><td>{id}--<a href="view.php?id={id}">{title}</a></td></tr>
<!-- END aspnewlist -->
</table>
<table ID="Table3">
<tr><th>asp熱點(diǎn)文章</th></tr>
<!-- BEGIN asphotlist -->
<tr><td>{id}--<a href="view.php?id={id}">{title}</a></td></tr>
<!-- END asphotlist -->
</table>


--------------list1.php----------------
<?php 

require_once "config.inc.php"; 

dbConnect(); 
$data = array(); 
$data[phplist] = getArticleList(1, "id DESC", (int)$_GET

相關(guān)文章

最新評(píng)論