 返回上一页  首页  {$category['title']}编辑

{$group}
  if(!empty($category['fields'])){ $category_fields=preg_split("/[\r\n]+/s",$category['fields'] ,-1,PREG_SPLIT_NO_EMPTY); $arr=array(); foreach($category_fields as $k=>$v){ $arr1=preg_split("/[,]+/s",$v ,-1,PREG_SPLIT_NO_EMPTY); foreach($arr1 as $k1=>$v1){ $arr2=preg_split("/[\:]+/s",$v1 ,-1,PREG_SPLIT_NO_EMPTY); $arr[$k][$arr2[0]]=$arr2[1]; } } foreach($arr as $k=>$v){ foreach($fields[$key] as $k1=>$v1){ if($v['field']==$v1['name']){ $fields_new[$k]=$fields[$key][$k1]; $fields_new[$k]['title']=isset($v['title'])?$v['title']:$fields[$key][$k1]['title']; $fields_new[$k]['remark']=isset($v['remark'])?$v['remark']:$fields[$key][$k1]['remark']; } } } }else{ $fields_new=$fields[$key]; }
  {$field['title']}
    {$data[$field['name']]}
    不限 checked="checked" >{$vo} checked="checked"
  >{$vo} $data[$field['name']]=preg_split('/[,]+/s', $data[$field['name']],-1,PREG_SPLIT_NO_EMPTY); $data[$field['name']]=empty($data[$field['name']])?'0':implode(',',$data[$field['name']]);
  $where="id in(".$data[$field['name']].")";

  - 删除

  
  
  $ids=empty($data[$field['name']])?false:$data[$field['name']]; $where="id in($ids)";
  [+]
  [-]
  [+]
  [-]
  {$data[$field['name']]} {:hook('adminArticleEdit', array('name'=>$field['name'],'value'=>$data[$field['name']]))} $where=array( 'model_id'=>$model['id'], 'name'=>$field['name'] ); $extra=M('attribute')->where($where)->getField('extra'); $extra=preg_split("/[,]+/s",$extra ,-1,PREG_SPLIT_NO_EMPTY); foreach($extra as $k=>$v){ $re=preg_split("/[:]+/s",$v ,-1,PREG_SPLIT_NO_EMPTY); $extra[$re[0]]=$re[1]; } $extra['sid']=isset($extra['sid'])?$extra['sid']:0; {$field['remark']}

//产品价格属性 $where=array( 'a.goods_id'=>I('id') ); $m_goods_attrvalue_view=D('Home/GoodsAttrvalueView'); $m_goods_attrvalue_view->viewFields = array( 'goods_attrvalue'=>array('_as'=>'a',"id"=>'attrvalue_id','value','price'), 'goods_attr'=>array('_as'=>'b','_on'=>'a.attr_id=b.id','id','name','input_type','attr_type','attr_values'), ); $list_goods_attr_price=$m_goods_attrvalue_view->where($where)->group('attr_id')->select(); foreach ($list_goods_attr_price as $k => &$v) { $where=array( 'goods_id'=>I('id'), 'attr_id'=>$v['id'] ); $v['list']=D('Home/GoodsAttrvalue')->where($where)->select(); foreach ($v['list'] as $k1 => &$v1) { $v1['attr_values']=preg_split("/[,\r\n]+/s", $v['attr_values'],-1,PREG_SPLIT_NO_EMPTY); } }

{$goods_attr.name}
  - 
  - 
>{$v2} 属性价格

{{v.name}}
  - ๠ 
    属性价格

返回上一页