表格
<div class="col-xs-2">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">操作</h3>
</div>
<div id="user-collapseTwo" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="user-headingTwo">
<div class="panel-body">
<form id="uform">
<input type="hidden" id="id" value="">
<div class="input-group">
<span class="input-group-addon">用户:</span>
<input type="text" class="form-control" placeholder="用户名" aria-describedby="u-name" name="name" id="name"></div>
<br>
<div class="input-group">
<span class="input-group-addon">手机:</span>
<input type="phone" class="form-control" placeholder="手机号码" aria-describedby="u-phone" name="phone" id="phone"></div>
<br>
<div class="input-group">
<span class="input-group-addon">分成:</span>
<input type="text" class="form-control" placeholder="用户分成" aria-describedby="u-point" name="point" id="point"></div>
<br>
<div class="input-group">
<span class="input-group-addon">门店:</span>
<select id="storeList" class="form-control">
<option value="">选择门店</option>
<option value="-1">所有门店</option>
<foreach name="stores" item="store" >
<option value="{$store['s_id']}">{$store['s_name']}</option>
</foreach>
</select>
</div>
<br>
<div class="input-group">
<span class="input-group-addon">角色:</span>
<select id="roleList" class="form-control">
<option value="">选择角色</option>
<foreach name="roles" item="role" >
<option value="{$role['r_id']}">{$role['r_name']}</option>
</foreach>
</select>
</div>
</form>
<br>
<button type="button" class="btn btn-default" οnclick="addUser();">添加</button>
<button type="button" class="btn btn-default" οnclick="saveUser();">保存</button>
<button type="button" class="btn btn-default" οnclick="deleteUser();">删除</button>
</div>
</div>
</div>
</div>