{layout name="layout" /}
<nav class="breadcrumb">
<span><a href="/" class="maincolor">首页</a></span>
<span>></span>
<span><a href="/seller">销售员管理</a></span>
<span>></span>
<span><a href="javascript:void(0);">{empty name="data.id"}新增{else/}修改{/empty}</a></span>
</nav>
<div class="content">
<div class="row">
<div class="blank">
</div>
</div>
<form role="form" id="form-seller" action="" method="POST">
<input type="hidden" name="id" id="id" value="{$data.id}">
<div class="row">
<div class="col-md-2">
<div class="form-group" style="text-align:right;line-height:40px;">
<label form-label for="name">姓名:</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<input type="text" class="form-control" name="name" id="name" value="{$data.name}" placeholder="销售员">
</div>
</div>
<span style='color:red;' id="error_msg"></span>
</div>
<div class="row">
<div class="col-md-2">
<div class="form-group" style="text-align:right;line-height:40px;">
<label form-label for="department">部门:</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select name="department_id" id="department_id" class="form-control">
{foreach $departments as $key=>$val}
<option value="{$key}" {eq name="data.department_id" value="$key"}selected{/eq}>{$val}</option>
{/foreach}
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
<input class="btn btn-success radius" type="submit" value=" 提交 ">
<input class="btn btn-default radius" type="button" value=" 取消 " onClick="window.history.back();">
</div>
</div>
</form>
</div>
|