<%--
  Created by IntelliJ IDEA.
  User: kangkang
  Date: 2022/8/12
  Time: 22:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加品牌</title>
</head>
<body>
<h3>添加品牌</h3>
<form action="updateServlet" method="post">
    <input type="hidden" name="id" value="${brand.id}">
    品牌名称：<label>
    <input name="brandName" value="${brand.brandName}">
</label><br>
    企业名称：<label>
    <input name="companyName" value="${brand.companyName}">
</label><br>
    排序：<label>
    <input name="ordered" value="${brand.ordered}">
</label><br>
    描述信息：<label>
    <textarea rows="5" cols="20" name="description" >${brand.description}</textarea>
</label><br>
    状态：
    <c:if test="${brand.status == 0}">
        <label>
            <input type="radio" name="status" value="0" checked>
        </label>禁用
        <label>
            <input type="radio" name="status" value="1">
        </label>启用<br>
    </c:if>

    <c:if test="${brand.status == 1}">
        <label>
            <input type="radio" name="status" value="0" >
        </label>禁用
        <label>
            <input type="radio" name="status" value="1" checked>
        </label>启用<br>
    </c:if>

    <input type="submit" value="提交">
</form>
</body>
</html>
