📄 add_ware.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加商品</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #6666CC;
}
-->
</style></head>
<script language="javascript">
<!--
function check(){
if(AddWares.Sort.value==""){
alert("请添加商品类型");
AddWares.Sort.focus();
return false;
}
if(AddWares.WaresName.value==""){
alert("请添加商品名称");
AddWares.WaresName.focus();
return false;
}
if(AddWares.MarketPrice.value==""){
alert("请输入商品市场价格");
AddWares.MarketPrice.focus();
return false;
}
if(isNaN(AddWares.MarketPrice.value)){
alert("商品价格输入不正确");
AddWares.MarketPrice.focus();
return false;
}
if(AddWares.Price.value==""){
alert("请输入商品目前价格");
AddWares.Price.focus();
return false;
}
if(isNaN(AddWares.Price..value)){
alert("商品价格输入不正确");
AddWares.Price.focus();
return false;
}
if(AddWares.SmallImg.value==""){
alert("请输入缩略图片的路径");
AddWares.SmallImg.focus();
return false;
}
if(AddWares.SmallImg.value.indexOf(".jpg")==-1){
alert("请输入格式为gif的缩略图片");
AddWares.SmallImg.focus();
return false;
}
if(AddWares.BiglImg..value==""){
alert("请输入展示图片的路径");
AddWares.BiglImg.focus();
return false;
}
if(AddWares.BiglImg.value.indexOf(".jpg")==-1){
alert("请输入格式为gif的图片");
AddWares.BiglImg.focus();
return false;
}
if(AddWares.Description.value==""){
alert("请输入商品的内容介绍");
AddWares.Description.focus();
return false;
}
}
-->
</script>
<body>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th height="27" background="image/admin_bg_1.gif" scope="col"><img src="image/Untitled-1.gif" width="100" height="25"></th>
</tr>
<tr>
<th height="245" align="left" valign="top" background="image/admin_bg.gif" scope="row">
<form name="AddWares" method="post" action="add_check.jsp">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2" scope="col"> </th>
</tr>
<tr>
<th width="95" scope="row"><div align="left"> 商品类型</div></th>
<th width="305" scope="row"> <div align="left">
<select name="Sort" id="Sort" >
<option>家居装饰</option>
<option>数码电脑</option>
<option>潮流服饰</option>
<option>报刊杂志</option>
<option>养生保健</option>
</select>
</div></th>
</tr>
<tr>
<th height="25" scope="row"><div align="left"> 商品名称</div></th>
<th scope="row"><div align="left">
<input name="WaresName" type="text" id="WaresName">
</div></th>
</tr>
<tr>
<th height="26" scope="row"><div align="left"> 市场价格</div></th>
<th scope="row"><div align="left">
<input name="MarketPrice" type="text" id="MarketPrice">
</div></th>
</tr>
<tr>
<th height="26" scope="row"><div align="left"> 商品现价</div></th>
<th scope="row"><div align="left">
<input name="Price" type="text" id="Price">
</div></th>
</tr>
<tr>
<th height="24" scope="row"><div align="left"> 缩略图</div></th>
<th scope="row"><div align="left">
<input name="SmallImg" type="text" id="SmallImg">
</div></th>
</tr>
<tr>
<th height="27" scope="row"><div align="left"> 商品图片</div></th>
<th scope="row"><div align="left">
<input name="BigImg" type="text" id="BigImg">
</div></th>
</tr>
<tr>
<th scope="row"><div align="left"> 商品介绍</div></th>
<th scope="row"><div align="left">
<textarea name="Description" id="Description"></textarea>
</div></th>
</tr>
<tr>
<th colspan="2" scope="row">
<input type="submit" name="Submit" value="添加" onClick="return check()">
<input name="reset" type="reset" id="reset" value="重设"></th>
</tr>
</table>
</form></th>
</tr>
<tr>
<th height="10" background="image/admin_bg_1.gif" scope="row"> </th>
</tr>
</table>
<div align="center"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -