商品类目管理 - 添加、修改、删除类目
<div>
<form class='form-inline' method='post' action='/admin/type_add'>
<input type='text' class='form-control' id='input_name' name='name' placeholder='输入类目名称' required='required' style='width: 500px'>
<input type='submit' class='btn btn-warning' value='添加类目'/>
</form>
</div>
<br/>
<c:if test='${!empty msg }'>
<div class='alert alert-success'>${msg }</div>
</c:if>
<c:if test='${!empty failMsg }'>
<div class='alert alert-danger'>${failMsg }</div>
</c:if>
<br>
<table class='table table-bordered table-hover'>
<tr>
<th width='5%'>ID</th>
<th width='10%'>名称</th>
<th width='10%'>操作</th>
</tr>
<c:forEach items='${list }' var='t'>
<tr>
<td><p>${t.id }</p></td>
<td><p>${t.name }</p></td>
<td>
<a class='btn btn-primary' href='/admin/type_edit.jsp?id=${t.id }&name=${t.encodeName }'>修改</a>
<a class='btn btn-danger' href='/admin/type_delete?id=${t.id }'>删除</a>
</td>
</tr>
</c:forEach>
</table>
原文地址: https://www.cveoy.top/t/topic/oM4A 著作权归作者所有。请勿转载和采集!