白名单修改

master
zhengyongxing 5 years ago
parent fa393d9c90
commit fd187aa04f

@ -38,20 +38,20 @@ class TestWhiteListController extends ThinkController
if ($page) {
$this->assign('_page', $page);
}
$this->m_title = '测试白名单';
$this->meta_title = '测试白名单';
$this->assign('data',$data);
$this->display();
}
public function add() {
$this->m_title = '测试白名单添加';
$this->meta_title = '测试白名单添加';
$this->assign('title','新增');
$this->display();
}
public function edit() {
$this->m_title = '测试白名单编辑';
$this->meta_title = '测试白名单编辑';
$this->assign('title','编辑');
$this->display("add");
}

@ -46,10 +46,10 @@
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="status" <if condition="$_REQUEST['show_status'] eq 1">checked="checked"</if>>开启
<input type="radio" value="1" name="status" <if condition="$_REQUEST['status'] eq 1">checked="checked"</if>>开启
</label >
<label >
<input type="radio" value="0" name="status" <if condition="$_REQUEST['show_status'] eq 0">checked="checked"</if>>{:L('Lock')}
<input type="radio" value="0" name="status" <if condition="$_REQUEST['status'] eq 0">checked="checked"</if>>{:L('Lock')}
</label>
</span>
<input type="hidden" name="status" id="status" value="{$data['status']}">

@ -47,7 +47,7 @@
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search"
url="{:U('TestWhiteList/lists','model='.$model['name'] . '&row='.I('row'),false)}">搜索</a>
<a class="sch-btn" style="background: #ffffff;border: #000000 solid 1px;color: #000000;width:120px" href="{:U('TestWhiteList/add')}" >添加测试账号</a>
<a class="sch-btn" style="background: #ffffff;border: #000000 solid 1px;color: #000000;width:120px" href="{:U('TestWhiteList/add',array('status'=>1))}" >添加测试账号</a>
</div>
</div>
@ -77,7 +77,7 @@
<volist name="data" id="data">
<tr>
<td>{$data['account']}</td>
<td><if condition="$data['show_status'] eq 0"> 锁定 <else /> 正常 </if></td>
<td><if condition="$data['show_status'] eq 0"> 锁定 <else /> 开启 </if></td>
<td>{$data.add_user}</td>
<td>{$data.create_ime}</td>
<td>

Loading…
Cancel
Save