diff --git a/app/portal/controller/AdminCommentController.php b/app/portal/controller/AdminCommentController.php index dbbeb0b..0816717 100644 --- a/app/portal/controller/AdminCommentController.php +++ b/app/portal/controller/AdminCommentController.php @@ -66,6 +66,7 @@ class AdminCommentController extends AdminBaseController ->join('active a','c.cid=a.id') ->join('users u','c.users_id=u.id') ->where('c.status',2) + ->field('u.*,b.name,c.*') ->paginate('15'); $this->assign('list', $data); $this->assign('page',$data->render()); @@ -78,6 +79,7 @@ class AdminCommentController extends AdminBaseController ->join('prize p','c.cid=p.id') ->join('users u','c.users_id=u.id') ->where('c.status',3) + ->field('u.*,b.name,c.*') ->paginate('15'); $this->assign('list', $data); $this->assign('page',$data->render()); diff --git a/public/themes/admin_simpleboot3/portal/admin_comment/index.html b/public/themes/admin_simpleboot3/portal/admin_comment/index.html index 1a91a7d..5fe3910 100644 --- a/public/themes/admin_simpleboot3/portal/admin_comment/index.html +++ b/public/themes/admin_simpleboot3/portal/admin_comment/index.html @@ -29,7 +29,7 @@ <td>{$vo.name}</td> <td>{$vo.nickname}</td> <td>{$vo.mobile}</td> - <td>{:cmf_get_image_preview_url($vo.avatar)}</td> + <td><img width="25" height="25" src="{:cmf_get_image_preview_url($vo.avatar)}" onclick="parent.imagePreviewDialog(this.src);"/></td> <td>{$vo.content}</td> <td>{:date('Y-m-d H:i',$vo['create_time'])}</td> <td> diff --git a/public/themes/admin_simpleboot3/portal/admin_comment/index2.html b/public/themes/admin_simpleboot3/portal/admin_comment/index2.html index 7dcec4f..a62d658 100644 --- a/public/themes/admin_simpleboot3/portal/admin_comment/index2.html +++ b/public/themes/admin_simpleboot3/portal/admin_comment/index2.html @@ -29,7 +29,7 @@ <td>{$vo.name}</td> <td>{$vo.nickname}</td> <td>{$vo.mobile}</td> - <td>{:cmf_get_image_preview_url($vo.avatar)}</td> + <td><img width="25" height="25" src="{:cmf_get_image_preview_url($vo.avatar)}" onclick="parent.imagePreviewDialog(this.src);"/></td> <td>{$vo.content}</td> <td>{:date('Y-m-d H:i',$vo['create_time'])}</td> <td> diff --git a/public/themes/admin_simpleboot3/portal/admin_comment/index3.html b/public/themes/admin_simpleboot3/portal/admin_comment/index3.html index aa8467a..575995e 100644 --- a/public/themes/admin_simpleboot3/portal/admin_comment/index3.html +++ b/public/themes/admin_simpleboot3/portal/admin_comment/index3.html @@ -29,7 +29,7 @@ <td>{$vo.name}</td> <td>{$vo.nickname}</td> <td>{$vo.mobile}</td> - <td>{:cmf_get_image_preview_url($vo.avatar)}</td> + <td><img width="25" height="25" src="{:cmf_get_image_preview_url($vo.avatar)}" onclick="parent.imagePreviewDialog(this.src);"/></td> <td>{$vo.content}</td> <td>{:date('Y-m-d H:i',$vo['create_time'])}</td> <td>