 返回上一页  首页  {$category['title']}列表{$model['title']}列表

  - ๠ 添 加
  >{$field[1]} $where=array( 'model_id'=>$model['id'], 'name'=>$v['field'] ); $extra=M('attribute')->where($where)->getField('extra'); $extra=preg_split("/[,\n\r]+/s",$extra ,-1,PREG_SPLIT_NO_EMPTY); foreach($extra as $k1=>$v1){ $re=preg_split("/[:]+/s",$v1 ,-1,PREG_SPLIT_NO_EMPTY); $extra[$re[0]]=$re[1]; } $ids=I($v['field'].'s','0'); $list_reids_mod=M($extra['table'])->order("field(id,".$ids.")")->where(array('id',array('id'=>array('in',$ids))))->select();
  //总收入 if(!$where['status']){ $where['status']=array('gt',0); } $price=M('wangpan_log')->where($where)->getField('sum(price)'); if(I('status')=='0'){ echo "本次查询订单".$totalRs."个"; }else{ echo "本次查询订单".$totalRs."个，总金额： ".$price."元 "; }

| {$v.title} | 操作
--- | --- | ---
foreach($v1['fun_param'] as $k2=>&$v2){ if($v2=='###'){ $v2=$v[$v1['field']]; }else if(preg_match("/[\[]+([^\[\]]+)[\]]+/i", $v2, $matches)){ $v2=I($matches[1]); } } | {:call_user_func_array($v1['fun'],$v1['fun_param'])} | {$v[$v1['field']]} | 查看

{$page|default=''}