發(fā)表日期:2019-09 文章編輯:小燈 瀏覽次數(shù):3001
代碼 放在要顯示的為 (一般放在詳情頁),注意本教程不入庫,直接利用瀏覽器的?cookie 緩存判斷
<!--歷史瀏覽記錄 S--><div class="column_box mt_10"><div class="column_title">歷史瀏覽記錄</div><div class="box_body_new"><?php$MOD_name = "$MOD[moduledir]";if (!empty($_cookie["$MOD_name"]['history'])){$history = explode(',', $_cookie["$MOD_name"]['history']);array_unshift($history, $itemid);$history = array_unique($history);while (count($history) > 8){array_pop($history);}setcookie("$MOD_name".'[history]', implode(',', $history), time() + 86400 * 7,'/'."$MOD_name","$DT_PATH");} else {setcookie("$MOD_name".'[history]', $itemid, time() + 86400 * 7,'/'."$MOD_name","$DT_PATH");} $history =isset ($_cookie["$MOD_name"]['history']) ? $_cookie["$MOD_name"]['history'] : 0;if($del=="del"){setcookie("$MOD_name".'[history]', "", time()-3600);echo header("Location: $linkurl"); };$query = mysql_query("SELECt * FROM $table WHERe itemid in ($history) ORDER BY FIELD(itemid,$history)");while($t = mysql_fetch_array($query)){?><li><a href="{$t[linkurl]}" title="{$t[alt]}" target="_blank">{$t[title]}</a></li> <?php } ?></div></div><!--歷史瀏覽記錄 END-->10
日期:2019-09 瀏覽次數(shù):3149
日期:2019-09 瀏覽次數(shù):3055
日期:2019-09 瀏覽次數(shù):3164
日期:2019-09 瀏覽次數(shù):3447
日期:2019-09 瀏覽次數(shù):3063
日期:2019-09 瀏覽次數(shù):2875
日期:2019-09 瀏覽次數(shù):3000
日期:2019-09 瀏覽次數(shù):2931
日期:2019-09 瀏覽次數(shù):3054
日期:2019-09 瀏覽次數(shù):2935
日期:2019-09 瀏覽次數(shù):3126
日期:2019-09 瀏覽次數(shù):3464
日期:2019-09 瀏覽次數(shù):3036
日期:2019-09 瀏覽次數(shù):2930
日期:2019-09 瀏覽次數(shù):2873
日期:2019-09 瀏覽次數(shù):2902
日期:2019-09 瀏覽次數(shù):3133
日期:2019-09 瀏覽次數(shù):3342
日期:2019-09 瀏覽次數(shù):3257
日期:2019-09 瀏覽次數(shù):2986
日期:2019-09 瀏覽次數(shù):2996
日期:2019-09 瀏覽次數(shù):3185
日期:2019-09 瀏覽次數(shù):2933
日期:2019-09 瀏覽次數(shù):3177
日期:2019-09 瀏覽次數(shù):3059
日期:2019-09 瀏覽次數(shù):3196
日期:2019-09 瀏覽次數(shù):3042
日期:2019-09 瀏覽次數(shù):3010
日期:2019-09 瀏覽次數(shù):2996
日期:2019-09 瀏覽次數(shù):3106
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.