分类分类
更新时间:2026-05-10 23:08:22作者:fang

admin/template/goods_list.htm中找到
{if $add_handler}
|
{foreach from=$add_handler item=handler}
<a href="{$handler.url}&goods_id={$goods.goods_id}" title="{$handler.title}"><img src="images/{$handler.img}" width="16" height="16" border="0" /></a>
{/foreach}
{/if}
它的下面加入
<a href="comment_manage.php?act=list&goods_id={$goods.goods_id}" title="评论管理"><img src="images/icon_title.gif" width="14" height="13" border="0" alt="评论管理"></a><!-- by neo -->
修改admin/comment_manage.php
找到
$where = (!empty($filter['keywords'])) ? " AND content LIKE '%" . mysql_like_quote($filter['keywords']) . "%' " : '';
它的下面加入
/** by neo **/
$filter['goods_id'] = (is_numeric($_REQUEST['goods_id']) && $_REQUEST['goods_id'] > 0) ? intval($_REQUEST['goods_id']) : 0;
if($filter['goods_id'] > 0) {
$goods_id = intval($_REQUEST['goods_id']);
$where .= " AND id_value = '$goods_id' ";
}
/** by zuimoban **/
另外为了删除后跳转回当前商品的评论
修改模板 admin/templates/comment_list.htm
找到
<form method="POST" action="comment_manage.php?act=batch_drop" name="listForm" onsubmit="return confirm_bath()">
它的下面加入
<input name="goods_id" value="{$filter.goods_id}" type="hidden"><!-- by neo -->
修改admin/comment_manage.php 2处
$link[] = array('text' => $_LANG['back_list'], 'href' => 'comment_manage.php?act=list'
修改成
$link[] = array('text' => $_LANG['back_list'], 'href' => 'comment_manage.php?act=list'.'&goods_id='.$_REQUEST['goods_id']);//by neo
相关
修真情缘角色扮演303.33 MBv1.0.02026-05-10
下载我的小独角兽女孩休闲益智380.89 MBv1.0.232026-05-10
下载超级种田男孩手机版经营养成1.31Gv1.0.92026-05-10
下载不必要的实验冒险游戏64.9 MBv1.1.592026-05-10
下载军师联盟策略游戏163.2 MBv0.0.12026-05-10
下载翻天喜地凑大钱手机版休闲益智138.72 MBv1.0.92026-05-10
下载东离剑游纪手游动作射击1.6Gv1.4.22026-05-10
下载天猫养车商家版App学习办公74.95 MBv0.6.12026-05-10
下载掌上命运方舟App手游辅助137.48 MBv1.9.12026-05-10
下载退役军人服务APP生活服务67.16 MBv1.2.52026-05-10
下载屯漫漫画APP资讯阅读23.06 MBv2.0.32026-05-10
下载蛋仔派对蛋壳App手游辅助185.73 MBv0.0.22026-05-10
下载









