freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計(jì)論文-基于php的新聞管理系統(tǒng)-在線新聞網(wǎng)站(編輯修改稿)

2024-10-17 21:03 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 (2) 留言表( faq) 留言表包含如下字段:編號(hào)( id)、標(biāo)題( titles)、發(fā)布者( who) ,性別( sex) ,籍貫( froms) ,郵箱( ) ,時(shí)間( date)、內(nèi)容( content)、回復(fù)( reply)。如表 24所示: 表 24 faq留言 表 Field Type null key Default Extra id Int not null pri null auto_increment titles Varchar(20) not null null 評(píng)論表 發(fā)布時(shí)間 評(píng)論內(nèi)容 評(píng)論者 編號(hào) 回復(fù) 標(biāo)題 who Varchar(20) not null null sex Int(2) not null null froms Varchar(20) not null null Varchar(20) not null null content Varchar(20) not null null date Varchar(20) not null null reply Varchar(20) not null null (3)調(diào)查表( inquiry) 調(diào)查表包含如下字段:選項(xiàng) ID( id)、內(nèi)容( name)、點(diǎn)擊數(shù) (number)。如表 21所示: 表 21 inquiry 調(diào)查 表 Field Type null key Default Extra id Int not null pri null auto_increment name Varchar(20) not null null number Int(20) not null null (4) 商品種類表( product_sort) 新聞?lì)愋捅戆缦伦侄危壕幪?hào)( id)、名稱( name)如表 22 所示: 表 22 product_sort 新聞?lì)愋捅? Field Type null key Default Extra id Int not null pri null auto_increment name Varchar(20) not null null (5)商品信息表( product) 表情評(píng)論表包含如下字段:編號(hào)( id)、種類號(hào)( sort_id)、作者( product_editor)、商品名稱( product_name)、圖片地址( picture)、出版社( product_publish)、舊價(jià)( oldprice)、現(xiàn)價(jià)( newprice)、產(chǎn)品介紹( product_introduce)。如表 25 所 示: 表 25 product 評(píng)論表 Field Type null key Default Extra Id Int not null pri null auto_increment sort_id Int not null null Product_name text not null null Product_editor Int not null null picture Int not null null Product_publish Int not null null oldprice Int not null null newprice Int not null null Product_introduce Varchar(200) not null null (6)網(wǎng)站配置表( p_config) 配置表包含如下字段:屬性( name)、屬性值( values)、備注( remark)、如表25 所示: 表 25 product 評(píng)論表 Field Type null key Default Extra name Varchar(20) not null null values Varchar(200) not null null remark text not null null 運(yùn)行環(huán)境 本系統(tǒng)是在 Windows XP 操作平臺(tái)上運(yùn)行,利用了 Eclipse for PHP 工具和Wampserver 集成環(huán)境開(kāi)發(fā)設(shè)計(jì)。 3 系統(tǒng)實(shí)現(xiàn) 新聞發(fā)布展示平臺(tái) 站點(diǎn)首頁(yè) ( 1)功能介紹 作為新聞發(fā)布系統(tǒng),頁(yè)面應(yīng)該大方、清新,能突出重點(diǎn)新聞,使人們?cè)诘谝粫r(shí)間了解時(shí)事新聞。首頁(yè)除了新聞顯示外還包括時(shí)間顯示, 推薦新聞、后臺(tái)入口,信息公告欄,行業(yè)動(dòng)態(tài),公司簡(jiǎn)介友情鏈接等相關(guān)功能。 ( 2)界面實(shí)現(xiàn) 如 31圖所示。 圖 31 首頁(yè)界面 ( 3) 關(guān)鍵代碼 ?php include_once(39。39。)。 $sql=SELECT * FROM `p_newsclass` where f_id=0 order by id DESC。 $query=$dbquery($sql)。 while($row_class=$dbfetch_array($query)){ $sm_class[]=array(name=$row_class[name],id=$row_class[id])。 } $smartyassign(sm_class,$sm_class)。//導(dǎo)航引入 //============== sql=SELECT * FROM p_config。 $query=$dbquery($sql)。 while($row_config=$dbfetch_array($query)){ $sm_config[]=$row_config[values]。 } $smartyassign(sm_config,$sm_config)。//配置引入 //============== $sql=SELECT * FROM `p_newsbase` order by id DESC limit 5。 $query=$dbquery($sql)。 while($row_news=$dbfetch_array($query)){ $sm_news[]=array(title=$row_news[title],id=$row_news[id])。 } $smartyassign(sm_news,$sm_news)。//最新新聞 //產(chǎn)品分類 $sql = select * from `product_sort` where 1。 $query = mysql_query($sql)。 while($rs=mysql_fetch_array($query)) { $product_sort[]=array( 39。id39。 = $rs[39。id39。], 39。name39。 = $rs[39。name39。], 39。oldprice39。 = $rs[39。oldprice39。], 39。newprice39。 = $rs[39。newprice39。] )。 } //行列顯示 6 個(gè)商品信息 $sql_x = select * from `product` where 1。 $query_x = mysql_query($sql_x)。 $num = mysql_num_rows($query_x)。 pageft($num,8)。 if($firstcount0) $firstcount = 0。 $sql2 = select * from `product` limit .$firstcount.,8。 $query2 = mysql_query($sql2)。 $i = 1 。 while($rs2=mysql_fetch_array($query2)){ if(strlen($rs2[39。product_name39。])12){ $books = $rs2[product_name]。 $bookname = substr($books, 0, 8)....。 }else{ $bookname = $rs2[39。product_name39。]。 } $product[] = array( product_name = $bookname, product_hao = $rs2[39。product_hao39。], id = $rs2[39。id39。], picture = $rs2[39。picture39。] )。 if($i%2==0){ $sorts[] = array( layer = $product )。 unset($product)。 } $i++。 } if(!empty($product)) $sorts[] = array( layer = $product )。 $smarty assign(39。sort39。,$sorts)。 $smarty assign(39。product_sort39。, $product_sort)。 $smartydisplay()。 ? 子頁(yè)面介紹 ( 1)功能介紹 本新聞發(fā)布系統(tǒng)分為新聞首頁(yè)、網(wǎng)站調(diào)查、產(chǎn)品展示等多個(gè)個(gè)種類,每個(gè)種類都有其獨(dú)立的頁(yè)面,用戶可以自主設(shè)置。即在可以設(shè)置多重父子類的新聞關(guān)系,建立兩層的導(dǎo)航:即主新聞列表和新聞瀏覽 ( 2)界面實(shí)現(xiàn) 如 32圖所示(以新聞列表為例)。 圖 32 新聞子界面 ( 3)關(guān)鍵代碼: ?PHP include_once (39。39。)。 include_once(39。configs/39。)。//引用分頁(yè)類代碼 include ../。 //右側(cè)菜單顯示 $sql = select * from `product_sort` where 1。 $query = mysql_query($sql)。 while($rs=mysql_fetch_array($query)) { $product_sort[]=array( 39。id39。 = $rs[39。id39。], 39。name39。 = $rs[39。name39。], 39。oldprice39。 = $rs[39。oldprice39。], 39。newprice39。 = $rs[39。newprice39。] )。 } // //顯示商品信息 /*判斷是否接受值,有表示點(diǎn)擊首頁(yè)或者本頁(yè)左側(cè)的書(shū)的分類 沒(méi)有則默認(rèn)顯示經(jīng)濟(jì)類圖書(shū) */ if($_GET[39。id39。]) $id=$_GET[39。id39。]。 else $id=1。 if($id) { $sql2 = select * from `product` where `sort_id`=.$id。 $query2 = mysql_query($sql2)。 $num = mysql_num_rows($query2)。 $a = new Page($_GET[39。page39。])。 $apageft($num,2)。 if($agetfristcount()0){ $asetfristcount(0)。 } $sql = select * from `product` where `sort_id`=39。.$id.39。limit .$agetfristcount().,6。 $query = mysql_query($sql)。 while($rs=mysql_fetch_array($query)) { $product[] = array( product_name = $rs[39。product_name39。], product_hao = $rs[39。product_
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1