团队开发day07
今日将测试的存储图片的代码植入了框架代码中,添加了各种商品的信息框
<form action="TagUserServlet?method=addGoods" method="post" enctype="multipart/form-data"> <div class="layui-form-item"> <label class="layui-form-label">商家名称</label> <div class="layui-input-block"> <input type="text" name="tagname" id="tagname" lay-verify="title" autocomplete="off" placeholder="请输入商家名称" class="layui-input" > </div> </div> <div class="layui-form-item"> <label class="layui-form-label">商品名称</label> <div class="layui-input-block"> <input type="text" name="name" lay-verify="title" autocomplete="off" placeholder="请输入商品名称" class="layui-input"> </div> </div> <div class="layui-form-item"> <label class="layui-form-label">商品照片</label> <div class="layui-input-block"> <input type="file" name="uploadFile" > </div> </div> <div class="layui-form-item"> <div class="layui-inline"> <label class="layui-form-label">定价:</label> <div class="layui-input-inline" style="width: 100px;"> <input type="text" name="price" placeholder="¥" autocomplete="off" class="layui-input"> </div> </div> </div> <div class="layui-form-item"> <label class="layui-form-label">库存数量</label> <div class="layui-input-block"> <input type="text" name="num" lay-verify="title" autocomplete="off" placeholder="请输入货物库存数量" class="layui-input"> </div> </div> <div class="layui-form-item"> <label class="layui-form-label">货物类别</label> <div class="layui-input-block"> <select name="category" lay-filter="aihao"> <option value="">#</option> <option value="0">0</option> <option value="1" selected="">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </div> </div> <div class="layui-form-item"> <div class="layui-inline"> <label class="layui-form-label">发布日期</label> <div class="layui-input-inline"> <input type="text" name="date" id="date" lay-verify="date" placeholder="2021-05-05" autocomplete="off" class="layui-input"> </div> </div> </div> <div class="layui-form-item layui-form-text"> <label class="layui-form-label">商品其他说明</label> <div class="layui-input-block"> <textarea name="context" placeholder="请输入内容" class="layui-textarea"></textarea> </div> </div> <!--<div class="layui-form-item layui-form-text"> <label class="layui-form-label">编辑器</label> <div class="layui-input-block"> <textarea class="layui-textarea layui-hide" name="content" lay-verify="content" id="LAY_demo_editor"></textarea> </div> </div>--> <div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn" lay-submit="formsub" >提交</button> <button type="reset" class="layui-btn layui-btn-primary">重置</button> </div> </div> </form>