 返回上一页  首页  {$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']}
    {$field.value} checked
  > {$v}
  不限 checked name="{$field.name}"> {$vo} checked>{$vo}
  [+]
  [-]
  {$field.value} {:hook('adminArticleEdit', array('name'=>$field['name'],'value'=>$field['value']))} $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']}

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

返回上一页