12345678910111213141516171819202122232425262728293031323334353637 |
- {layout name="layout2" /}
-
-
- <div class="layui-card layui-form" style="box-shadow:none;">
-
- <div class="layui-card-body">
- <div class="layui-form-item">
- <label for="cid" class="layui-form-label">上级分类:</label>
- <div class="layui-input-inline">
- <select name="cid" id="cid" lay-verType="tips" lay-verify="required|number">
- <option value="0">顶级分类</option>
- {foreach $categoryTree as $item => $val}
- <option value="{$item}" {if $detail.pid == $item}selected{/if}>{$val}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="layui-form-item">
- <label for="name" class="layui-form-label">分类名称:</label>
- <div class="layui-input-inline">
- <input type="text" name="name" id="name" value="{$detail.name}" lay-verType="tips" lay-verify="required" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label for="sort" class="layui-form-label">排序:</label>
- <div class="layui-input-inline">
- <input type="number" name="sort" id="sort" value="{$detail.sort}" lay-verType="tips" lay-verify="require|number"
- autocomplete="off" class="layui-input">
- </div>
- </div>
- </div>
-
-
- <div class="layui-form-item layui-hide">
- <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
- </div>
- </div>
|