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

正文內(nèi)容

estore商城系統(tǒng)設(shè)計(jì)與開發(fā)課程設(shè)計(jì)-資料下載頁(yè)

2025-06-05 10:18本頁(yè)面
  

【正文】 9。cart39。])){ foreach($_SESSION[39。cart39。] as $id=$num){ $sql=select * from es_good where id=39。{$id}39。 $result=mysql_query($sql)。 if(mysql_affected_rows()0){ $arr=mysql_fetch_assoc($result)。 $goodnumber=$arr[39。goodnumber39。]。 $goodname=$arr[39。goodname39。]。 $discount=$arr[39。discount39。]。 if($discount==1){ $sql1=select newprice from es_discount where gid=39。{$id}39。 $result1=mysql_query($sql1)。 if(mysql_affected_rows()0){ $arr1=mysql_fetch_assoc($result1)。 21 $price=$arr1[39。newprice39。]。 } } else{ if(isset($_SESSION[39。username39。])){ $price=$arr[39。mprice39。]。 } else{ $price=$arr[39。price39。]。 } } $all=$num*$price。 } ? tr class=tdtd?php echo $goodnumber?/tdtd?php echo $goodname?/tdtd ¥ ?php echo $price?元/tdtdinput type=text name=num[?php echo $id?] value=?php echo $num?//tdtd ¥ ?php echo $all? 元 /tdtda href=./?delete=deleteamp。id=?php echo $id?刪除 /a/td/tr ?php } } else{ ? trtd colspan=6 style=textalign:center。fontsize:14px。fontweight:bold。lineheight:100px。你的 購(gòu) 物 車 還 沒 有 物 品 哦 , a href=./ style=color:blue。textdecoration:underline??禳c(diǎn)去購(gòu)物吧! /a/td/tr ?php } ? 后臺(tái)功能 用戶登錄與后臺(tái)管理 管理員登錄頁(yè)面和后臺(tái)管理主菜單分別如圖 415和 416所示。 22 圖 415 管理員登錄頁(yè)面 圖 416 后臺(tái)管理主菜單 主要代碼如下: if(isset($_POST[39。submit39。])){ 23 $username=$_POST[39。username39。]。 $password=$_POST[39。password39。]。 $mycode=$_POST[39。mycode39。]。 $str1=39。/^[azAZ][azAZ09_]{3,}$/39。 $str2=39。/^[azAZ][azAZ09_]{3,}$/39。 //$str3=39。/^[\w]+(\.[\w]+)*@[\w]+(\.[\w]+)+$/39。 if(!preg_match($str1,$username)){ $error[]=用戶名不少于 4位字符! 。 } if(!preg_match($str2,$password)){ $error[]=密碼不少于 4個(gè)字符! 。 } if($mycode==){ $error[]=驗(yàn)證碼不能為空! 。 } if($mycode!=$_SESSION[39。code39。]){ $error[]=驗(yàn)證碼錯(cuò)誤! 。 } if(!empty($error)){ $_SESSION[39。error39。]=$error。 header(location:./)。 exit。 } else{ $password=md5($password)。 $sql=select * from es_admin where status=1 amp。amp。 username=39。{$username}39。 amp。amp。 password=39。{$password}39。 //echo $sql。 mysql_query($sql)。 if(mysql_affected_rows()0){ $_SESSION[39。admin39。]=$username。 header(location:./)。 } else{ echoscriptalert(39。 用 戶 名 或 密 碼 錯(cuò) 誤!39。)。=39。./39。/script。 商品管理 商品發(fā)布頁(yè)面如圖 417所示。 24 圖 417 商品發(fā)布頁(yè)面 商品編輯頁(yè)面如圖 418所示。 圖 418 商品編輯頁(yè)面 主要代碼如下: option value=所有分類 /option ?php $sql=select classname ,id from es_class where id not in (select pid from es_class)。 $result=mysql_query($sql)。 if(mysql_affected_rows()0){ while($arr=mysql_fetch_assoc($result)){ $id=$arr[39。id39。]。 $classname=$arr[39。classname39。]。 ? option value=?php echo $id??php echo $classname?/option ?php } } ? 25 /select select name=status option value=是否上架 /option option value=1上架 /option option value=0下架 /option /select 價(jià)格 select name=signal option value=大于或小于 /option option value=大于 /option option value=小于 /option /select input type=text name=price/ 關(guān)鍵詞 input type=text name=good/ input type=submit name=select value=檢索 style=width:50px。/ /div /form ?php $where=array()。 if(isset($_GET[39。w39。])){ $w=stripslashes(urldecode($_GET[39。w39。]))。 $w=str_replace(,%,$w)。 } else{ $w=。 } //echo $w。 if(isset($_POST[39。select39。])){ $w=。 $class=$_POST[39。class39。]。 $status=$_POST[39。status39。]。 $signal=$_POST[39。signal39。]。 $price=$_POST[39。price39。]。 $good=$_POST[39。good39。]。 if($class!=){ $where[]=pid=.$class。 } if($status!=){ $where[]=status=.$status。 } if($signal!=amp。amp。$price!=){ $where[]=price.$signal.$price。 } 26 if($good!=){ $where[]=goodname like 39。%.$good.%39。 } $w=where .implode( and ,$where)。 } ? form action= method= table border=1 bordercolor=EEF8F9 cellpadding=0 cellspacing=0 width=100% style=fontsize:14px。lineheight:25px。 tr align=center bgcolor=80BDCBtd width=11% height=40商品編號(hào) /tdtd width=20%商品名稱 /tdtd width=9%商品價(jià)格 /tdtd width=9%庫(kù)存數(shù)量 /tdtd width=9%售出數(shù)量 /tdtd width=9%瀏覽次數(shù) /tdtd width=9%商品狀態(tài) /tdtd width=9%加入促銷表 /tdtd width=15%操作/td/tr ?php 商品類別管理 商品類別管理頁(yè)面如圖 419所示。 圖 419 商品類別管理頁(yè)面 主要代碼如下: form action= method=post input type=hidden name=id value=?php echo $id?/ 修改 b style=color:red?php echo $classname?/b類為 :input type=text name=newname value=?php echo $classname?/input type=submit name=submit value=修改 / /form ?php } ? div id=top style=lineheight:30px。 background:url(../../img/)。margin:10px 0。fontsize:14px。分類表 /div 27 table border=1 bgcolor=white bordercolor=EEF8F9 cellpadding=0 cellspacing=0 width=95% style=fontsize:14px。lineheight:25px。 tr bgcolor=80BDCBtd width=69% height=40 分類名稱 /tdtd align=center是否推薦 /tdtd width=21%操作 /td/tr ?php $sql=select id,classname,ispush,concat(path,39。39。,id) as newpath from es_class order by newpath。 $result=mysql_query($sql)。 if(mysql_affected_rows()0){ $i=0。 while($arr=mysql_fetch_assoc($result)){ if($arr[39。classname39。]==根 ){ continue。 } $classname=$arr[39。classname39。]。 $id=$arr[39。id39。]。 $ispush=$arr[39
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1