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

正文內(nèi)容

php網(wǎng)站設(shè)計項目教學(xué)實訓(xùn)指導(dǎo)書-閱讀頁

2025-05-01 12:17本頁面
  

【正文】 GET[39。])){ //判斷id信息是否存在 $id=$_GET[39。]。$id39。//執(zhí)行查詢語句 $array1=mysql_fetch_array($select1)。 //查詢所有圖書信息,供搜索使用$array=mysql_fetch_array($select)。nbsp。books39。?/td /tr //省略部分代碼 tr td height=19 align=rightdiv align=right文稿存儲位置:/div/td td align=leftamp。a target=_blank href=?php echo $array1 [39。]。bookpath39。?/a/td /tr //省略部分代碼 tr td height=51 align=rightdiv align=right簡介:/div/td td align=center valign=middleamp。 textarea name=textarea2 cols=65 rows=3?php echo $array1 [39。]。nbsp。catalog39。? /textarea/td /tr3.修改圖書信息在圖書分頁瀏覽頁面中,當(dāng)用戶單擊“修改”超鏈接時,將進入圖書信息修改頁面。id39。id39。.$_GET[39。].39。 //查詢指定的圖書信息 $array3=mysql_fetch_array($select3)。books39。? size=50 / /div/td /tr tr tddiv align=left類別:/div/td tddiv align=left select name=sort id=sort ?php while($array1=mysql_fetch_array($select1)){ //循環(huán)輸出類別 ? option value=?php echo $array1[39。]。sort39。? /option ?php } ? /select /div/td /tr tr tddiv align=left語言:/div/td tddiv align=left select name=talk id=talk ?php while($array2=mysql_fetch_array($select2)){ //循環(huán)輸出語言 ? option value=?php echo $array2[39。]。talk39。? /option ?php } ? /select /div/td /tr tr tddiv align=left簡介:/div/td tddiv align=left input name=synopsis type=text value=?php echo $array3[39。]。catalog39。?/textarea /div/td /tr tr tddiv align=left文稿路徑:/div/td tddiv align=left input name=bookpath type=text value=?php echo $array3 [39。]。programpath39。? size=50 / /div/td /tr tr tddiv align=left錄像路徑:/div/td tddiv align=left input name=videopath type=text value=?php echo $array3 [39。]。id39。?/!隱藏域 /div/td /tr /table(2)當(dāng)用戶修改完信息后,單擊“提交”按鈕,在數(shù)據(jù)處理頁中將對數(shù)據(jù)庫中的數(shù)據(jù)進行修改,其關(guān)鍵代碼如下: ?php header(Contenttype:text/html。 //設(shè)置文件編碼 include(conn/)。Submit39。Submit39。.$_POST[39。]. 39。.$_POST [39。].39。.$_POST[39。].39。.$_POST[39。].39。.$_POST[39。].39。.$_POST[39。].39。.$_POST[39。].39。.$_POST[39。].39。.$_POST[39。].39。 //執(zhí)行修改語句 if($update){echo scriptalert(39。)。39。 }else{echo scriptalert(39。)。39。 } } ?4.刪除圖書信息在圖書分頁瀏覽頁面中,單擊“刪除”超鏈接后,根據(jù)超鏈接傳遞的ID值,應(yīng)用delete語句完成指定圖書信息的刪除操作。charset=utf8)。 //包含數(shù)據(jù)庫連接文件 if(isset($_GET[39。])){ //判斷id是否存在 $delete=mysql_query(delete from tb_book where id=39。id39。,$conn)。刪除成功!39。=39。/script。刪除失?。?9。=39。/script。 圖書搜索模塊運行效果 通過JavaScript腳本創(chuàng)建級聯(lián)下拉列表框本模塊通過JavaScript技術(shù)判斷搜索條件是否為空及根據(jù)用戶選擇的數(shù)據(jù)更改相應(yīng)列表中的數(shù)據(jù)。 ()。 } return true。}/scriptscript language=javascriptfunction up(opt){ //定義up()方法控制select2的值//opt表示現(xiàn)有可選項的數(shù)目 if([opt]){ if(==8){ var str=[opt].innerText。 [opt].innerText=(0,len1)。 } if(==32){ [opt].innerText+= 。 圖書搜索模塊設(shè)計效果具體實現(xiàn)過程如下:(1)創(chuàng)建form表單,添加下拉列表框、“搜索”按鈕,將查詢的關(guān)鍵字提交到本頁,其關(guān)鍵代碼如下: table width=758 height=23 border=0 cellpadding=0 cellspacing=0 tr td width=206div align=right class=STYLE2圖書搜索:/div/td td width=159table form id=list name=list method=post tr td width=125 align=left valign=middle select name=select onchange=javascript:() option value= selected=selected請選擇/option option value=Famous_Id類別/option option value=Famous_Ids語言/option option value=boo_name書名/option option value=jianjie簡介/option option value=mulu目錄/option /select/td /tr /form /table/td td width=295table width=254 height=29 border=0 cellspacing=0 cellpadding=0 form id=form1 name=form1 method=post action= onkeypress= press(3) onkeyup=up(3) tr td width=110select name=select2 option selected=selected請選擇/option ?php if(isset($_POST[39。])){ $select=$_POST[39。]。//查詢圖書類別 while($arr=mysql_fetch_array($sel)){ ? option value=?php echo $arr[39。]。sort39。? /option ?php } }else if($select==Famous_Ids){ $sel1=mysql_query(select * from tb_program,$conn)。talk39。? selected=selected ?php echo $arr1[39。]。talk39。? selected=selected ?php echo $arr1[39。]。 //td /tr /form /table/td /tr /table頁面設(shè)計完成后,開始編寫JavaScript腳本,判斷搜索條件下拉列表的相關(guān)代碼(,此處不再贅述)。select239。select239。 $sel1=mysql_query(select * from tb_book where sort=39。select239。 or talk=39。select239。 or catalog like 39。 or synopsis like 39。 or books like 39。,$conn)。 //獲取查詢結(jié)果 if($count0){ while($arr=mysql_fetch_array($sel1)){ //循環(huán)輸出查詢結(jié)果 ? tr td height=27 a href=?id=?php echo $arr[39。]。books39。? /a/td td?php echo $arr[39。]。對不起,沒有您要查找的內(nèi)容!39。= 39。/script。page39。page39。 //定義分頁變量,并且賦值 }else{ $page=1。 //每頁顯示記錄數(shù) $page_count=ceil($count/$page_size)。 //計算每頁的起始行數(shù) //定義SQL語句,查詢當(dāng)前頁顯示的記錄 $query=select * from tb_books where id order by id desc limit $offset, $page_size。 //執(zhí)行查詢操作 } ? tr td height=30 colspan=2div align=right div align=right共?php echo $count。?頁 當(dāng)前第?php echo $page。 echo a href=?page=.($page1).上一頁/a。 echo a href=?page=$page_count尾
點擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1