Public functionGetevaluategoodslistinfoforpage($condition, $page= NULL, $count= 0, $order= ' geval_id desc ', $field= ' * ') {
$list= $this -Field($field),where($condition),page($page, $count),Order($order),Select();
/* $model = Model ();
$field = ' member.member_avatar,evaluate_goods.* ';
$on = ' evaluate_goods.geval_frommemberid=member.member_id ';
$list = $model->table (' Evaluate_goods,member ')->field ($field)->join (' left ')->on ($on)->where ($ Condition)->page ()->order ($order)->select (); * *
foreach($list as$key=$_val) {
$list[$key][' Geval_frommemberid_avatar '] = Getmemberavatarforid ($_val[' Geval_frommemberid ']);
$list[$key][' Geval_image '] = Array();
//$list [$key] [' Geval_frommemberavatar ']= getmemberavatar ($_val[' Member_avatar ']);
if($_val[' Geval_image ']) {
$image _array= Explode (', ', $_val[' Geval_image ']);
foreach($image _array as$_key=$value) {
$list[$key][' Geval_image '][$_key] = Snsthumb ($value, -);
}
}
$list[$key][' Geval_remark '] = $list[$key][' Geval_remark ']?$list[$key][' Geval_remark ']:"";
$list[$key][' Geval_explain '] = $list[$key][' Geval_explain ']?$list[$key][' Geval_explain ']:"";
}
return$list;
}
Get comment-related field values for a section of PHP code