ueditor的更多API请看API 文档

时间:2015-05-16 16:13:01          访问次数:0

$model_r = $models[$category['modelid']];
$master_table = $model_r['master_table'];
$data = $this->db->get_one($master_table,array('id'=>$id));
if(!$data || $data['status']!=9) MSG('信息不存在或者未通过审核!');
if($model_r['attr_table']) {
    $attr_table = $model_r['attr_table'];
    if($data['modelid']) {
        $modelid = $data['modelid'];
        $attr_table = $models[$modelid]['attr_table'];
    }
    $attrdata = $this->db->get_one($attr_table,array('id'=>$id));
    $data = array_merge($data,$attrdata);
}

require get_cache_path('content_format','model');
$form_format = new form_format($model_r['modelid']);
$data = $form_format->execute($data);

foreach($data as $_key=>$_value) {
    $$_key = $_value['data'];
}

 


图片新闻

视频新闻