后台jsp classNew.jsp

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<link rel="stylesheet" href="admin/css/basic.css" type="text/css" />
<link rel="stylesheet" href="admin/css/news.css" type="text/css" />
</head>

<body>
	<div class="fillIn">
		<table cellpadding="0" cellspacing="0">
			<tr class="explain">
				<td colspan="3">创建分类</td>
			</tr>
			<form action="classNew" method="get">
				<tr class="item">
					<td class="key">新增分类</td>
					<td class="value"><input type="text" name="productsClassify" />
					</td>
					<td class="prompt"><input type="submit" class="submit2" 	value="新增分类" />
					</td>
				</tr>
			</form>
			<form action="classNew" method="get">
				<tr class="item">
					<td class="key">新增品牌</td>
					<td class="value">
					<select name="productsClassifyId">
					<c:forEach var="item" items="${pcList }" varStatus="i">
							<option value="${item.products_classify_id }" <c:if test="${item.products_classify_id  eq '1' }">selected="selected"</c:if>>${item.products_classify_content }</option>
					</c:forEach>
					</select>
					&nbsp;&nbsp;<input type="text" style=" width:100px;" name="productsBrand" />
					</td>
					<td class="prompt"><input type="submit" class="submit2"
						value="新增品牌" />
					</td>
				</tr>
			</form>
		</table>
	</div>
</body>
</html>

 

/* CSS Document */

/*公共样式*/
*{ margin:0; padding:0; font-size: 12px;}
body{ font-family:"宋体"; color:#666; font-size:12px; background:#fff;}
a{ color:#484848; text-decoration:none;}
a:hover{ color:#f60; text-decoration:none;}
a img{ border:none;}
.f_l{ float:left;}
.f_r{ float:right;}
span{ display:block;}
i{ font-style:normal;}
em{ font-style:normal;}
ul li{ list-style-type:none;}
.c{ clear:both;}

 

/* CSS Document */

.submit{ background:#f7661f; color:#fff; text-align:center; width:108px; height:21px; line-height:21px; border:none; border-radius:3px; font-family:"Arial";}
.submit:hover{ background:#ff971c;}

.submit2{ background:#f7661f; color:#fff; text-align:center; width:76px; height:21px; line-height:21px; border:none; border-radius:3px; font-family:"Arial";}
.submit2:hover{ background:#ff971c;}

.fillIn{ width:800px; margin:80px auto 0 auto;}
.fillIn table{ width:100%; border-top:1px solid #ccc; border-left:1px solid #ccc;}
.fillIn table td{ height:21px; text-align:center; border-bottom:1px solid #ccc; border-right:1px solid #ccc;}
.fillIn table .explain td{ background:#f4f4f4; font-family:"微软雅黑"; color:#333; font-weight:bold;}
.fillIn table .item .key{ background:#436da8; color:#fff; font-family:"微软雅黑"; width:180px; text-align:right; padding-right:10px;}
.fillIn table .item .value{ color:#333; font-family:"微软雅黑";}
.fillIn table .item .value input{ color:#c00; border:none; width:280px; font-family:"微软雅黑";}
.fillIn table .item .value select{ color:#c00; border:none; font-family:"微软雅黑";}
.fillIn table .item .value select option{ color:#c00; border:none; font-family:"微软雅黑";}
.fillIn table .item .prompt{ width:300px; text-align:left; padding-left:10px; color:#333; font-family:"微软雅黑";}

.fillIn table .update td{ height:28px; padding-right:10px;}

 

效果图:
后台jsp classNew.jsp_第1张图片
 

 

 

 

 

 

 

 

 

 

 

 

 

你可能感兴趣的:(Class)