Commit 3e1ab9b5 authored by 章建武's avatar 章建武

dep

parent 00671e44
......@@ -55,13 +55,6 @@ class GroupCultureController extends Controller
} else {
return error($attachment_avatar->getError());
}
if($param['type'] == 1){
$param['title'] = '时尚与城市';
}elseif($param['type'] == 2){
$param['title'] = '时尚与安全';
}else{
$param['title'] = '时尚与公益';
}
$result = $model::create($param);
$url = URL_BACK;
......@@ -104,13 +97,6 @@ class GroupCultureController extends Controller
$param['pic_path'] = $file_avatar->url;
}
}
if($param['type'] == 1){
$param['title'] = '时尚与城市';
}elseif($param['type'] == 2){
$param['title'] = '时尚与安全';
}else{
$param['title'] = '时尚与公益';
}
$result = $data->save($param);
return $result ? success() : error();
}
......
......@@ -60,7 +60,7 @@
$('#user_level_id').select2();
</script>
<div class="form-group">
<label for="type" class="col-sm-2 control-label">标题</label>
<label for="type" class="col-sm-2 control-label">分类</label>
<div class="col-sm-10 col-md-4">
<select name="type" id="type" class="form-control select2">
{foreach name='type' item='item'}
......@@ -72,6 +72,13 @@
</select>
</div>
</div>
<div class="form-group">
<label for="title" class="col-sm-2 control-label">标题</label>
<div class="col-sm-10 col-md-4">
<input id="title" name="title" value="{$data.title|default=''}"
placeholder="请输入标题" required type="text" class="form-control field-text">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">内容:</label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment