Commit 902e79af by 冷斌

add

parent dcb06f0b
......@@ -38,6 +38,18 @@
</div>
</div>
<div class="control-group">
<label class="control-label">经验值</label>
<div class="controls">
<select name="type">
<option value="">请选择</option>
<volist name="labels" id="vo">
<option value="{$vo['id']}" <if condition="$userinfo['label_id'] eq $vo['id']">selected</if> >{$vo['name']}</option>
</volist>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">头像/封面</label>
<div class="controls">
<div >
......
......@@ -567,16 +567,6 @@ class IndexadminController extends AdminbaseController {
return $list;
}
public function getLabel()
{
$data = [];
$labels = $this->getImpressionLabel();
foreach ($labels as $label) {
$data[$label['id']] = $label['name'];
}
return $data;
}
function edit(){
$id=intval($_GET['id']);
if($id){
......@@ -585,7 +575,7 @@ class IndexadminController extends AdminbaseController {
}else{
$this->error('数据传入失败!');
}
$this->assign('labels', $this->getLabel());
$this->assign('labels', $this->getImpressionLabel());
$this->display(":edit");
}
......
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