|
@@ -0,0 +1,76 @@
|
|
|
|
+<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label class="control-label col-xs-12 col-sm-2">配置:</label>
|
|
|
|
+ <div class="col-xs-12 col-sm-8">
|
|
|
|
+ 内存:<input data-rule="required" class="form-control" name="row[p_name]" type="text" >
|
|
|
|
+ <input data-rule="required" class="form-control" name="row[c_id]" type="hidden" value="{$c_id}">
|
|
|
|
+ <dl class="fieldlist" data-name="row[content]" data-template="fieldtpl">
|
|
|
|
+ <dd>
|
|
|
|
+ <ins>颜色名</ins>
|
|
|
|
+ <ins>库存</ins>
|
|
|
|
+ <ins>价格</ins>
|
|
|
|
+ </dd>
|
|
|
|
+ <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
|
|
|
|
+ <textarea name="row[content]" class="form-control hide" cols="30" rows="5"></textarea>
|
|
|
|
+ </dl>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+<!-- <a href="commodity/addparameter?c_id={$c_id}" class="btn btn-success btn-edit " title="添加" style="margin-left: 600px"><i class="fa fa-plus"></i> 添加</a>-->
|
|
|
|
+ <button type="submit" class="btn btn-success btn-embossed disabled" style="margin-left: 600px">{:__('OK')}</button>
|
|
|
|
+</form>
|
|
|
|
+<hr>
|
|
|
|
+<table id="table" class="table table-striped table-bordered table-hover table-nowrap" style="width: 650px;margin-left: 70px">
|
|
|
|
+ <tr style="height: 50px">
|
|
|
|
+ <td style="border: none">规格</td>
|
|
|
|
+ <td style="border: none">颜色</td>
|
|
|
|
+ <td style="border: none">库存</td>
|
|
|
|
+ <td style="border: none">价格</td>
|
|
|
|
+ <td style="border: none">图片</td>
|
|
|
|
+ <td style="border: none;margin-right: 50px">操作</td>
|
|
|
|
+ </tr>
|
|
|
|
+ {volist name="parameter" id="item"}
|
|
|
|
+ {volist name="$item.color" id="v"}
|
|
|
|
+ <tr style="height: 50px;border: 1px" bgcolor="#f0f8ff" >
|
|
|
|
+ <td style="border: 1px">{$item.p_name}</td>
|
|
|
|
+ <td style="border: 1px">{$v.name}</td>
|
|
|
|
+ <td style="border: 1px">{$v.kucun}</td>
|
|
|
|
+ <td style="border: 1px">{$v.money}</td>
|
|
|
|
+ <td style="border: 1px"><img src="{$v.color}" style="width: 40px;height: 40px"/></td>
|
|
|
|
+ <td style="border: 1px">
|
|
|
|
+ <a href="" class="btn btn-success btn-add {:$auth->check('student/student/add')?'':'hide'}"><i class="fa fa-plus"></i> </a>
|
|
|
|
+ <a href="javascript:;" class="btn-del" style="width: 10px;height: 5px;color: red" ><i class="fa fa-trash"></i></a>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ {/volist}
|
|
|
|
+ {/volist}
|
|
|
|
+</table>
|
|
|
|
+
|
|
|
|
+<!--以下是自定义模板的内容-->
|
|
|
|
+<script id="fieldtpl">
|
|
|
|
+ <dd class="form-inline">
|
|
|
|
+ <input type="text" name="<%=name%>[<%=index%>][name]" class="form-control" value="<%=row.id%>" size="10" />
|
|
|
|
+ <input type="text" name="<%=name%>[<%=index%>][kucun]" class="form-control" value="<%=row.name%>" size="10" />
|
|
|
|
+ <input type="text" name="<%=name%>[<%=index%>][money]" class="form-control" value="<%=row.name%>" size="10" />
|
|
|
|
+ <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
|
|
|
|
+ <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
|
|
|
|
+ </dd>
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<!--<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">-->
|
|
|
|
+<!-- {volist name="parameter" id="item"}-->
|
|
|
|
+<!-- <div class="form-group">-->
|
|
|
|
+<!-- <label class="control-label col-xs-12 col-sm-2">配置:</label>-->
|
|
|
|
+<!-- <div class="col-xs-12 col-sm-8">-->
|
|
|
|
+<!-- <input data-rule="required" class="form-control" name="row[c_name]" type="text" value="{$item.p_name}">-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!-- {/volist}-->
|
|
|
|
+<!-- <input data-rule="required" class="form-control" id="eeeee" name="c_id" type="hidden" value="{$c_id}">-->
|
|
|
|
+<!-- <div class="form-group layer-footer">-->
|
|
|
|
+<!-- <label class="control-label col-xs-12 col-sm-2"></label>-->
|
|
|
|
+<!-- <div class="col-xs-12 col-sm-8">-->
|
|
|
|
+<!--<!– <a href="commodity/addcolor?c_id={$c_id}" class="btn btn-success btn-edit " title="添加"><i class="fa fa-plus"></i> 添加</a>–>-->
|
|
|
|
+<!-- <a href="javascript:;" class="btn btn-success btn-aaaa " data-title="{$c_id}"><i class="fa fa-plus"></i> 添加</a>-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!-- </div>-->
|
|
|
|
+<!--</form>-->
|