{layout name="layout" /}
<nav class="breadcrumb">
<span><a href="/" class="maincolor">首页</a></span>
<span>></span>
<span><a href="/goods">产品管理</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="category_id">产品类别:</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select name="category_id" id="category_id" class="form-control">
{foreach $categories as $key=>$val}
<option value="{$key}" {eq name="data.category_id" value="$key"}selected{/eq}>{$val}</option>
{/foreach}
</select>
</div>
</div>
</div>
<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="price">价格:</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<input type="number" class="form-control" name="price" id="price" value="{$data['price']|number_money}" 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="category_id">提成类型:</label>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<select name="type" id="type" class="form-control">
<option value="0" {eq name="data.type" value="0"}selected{/eq}>一般</option>
<option value="1" {eq name="data.type" value="1"}selected{/eq}>特批1</option>
<option value="2" {eq name="data.type" value="2"}selected{/eq}>特批2</option>
</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>
|