?? goods_modify.jsp
字號(hào):
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ taglib prefix="c" uri="/WEB-INF/tags/c.tld"%>
<%@ taglib prefix="tiles" uri="http://jakarta.apache.org/struts/tags-tiles"%>
<tiles:importAttribute/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function mycheck(){
if (form1.goodsName.value==""){
alert("請(qǐng)輸入商品名稱!");form1.goodsName.focus();return;
}
if (form1.picture.value==""){
alert("請(qǐng)輸入圖片文件的路徑!");form1.picture.focus();return;
}
if (form1.price.value==""){
alert("請(qǐng)輸入商品的定價(jià)!");form1.price.focus();return;
}
if (isNaN(form1.price.value)){
alert("您輸入的定價(jià)錯(cuò)誤,請(qǐng)重新輸入!");form1.price.value="";form1.price.focus();return;
}
if (form1.introduce.value==""){
alert("請(qǐng)輸入商品簡(jiǎn)介!");form1.introduce.focus();return;
}
form1.submit();
}
</script>
<table width="622" height="288" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="15"></td></tr>
<tr>
<td height="29" align="center" background="images/back_center.jpg">修改商品信息</td>
</tr>
<tr>
<td align="center" valign="top"><table width="92%" height="192" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<form action="goodsModify.lzw" method="post" name="form1">
<table width="100%" border="0" align="center" cellpadding="-2" cellspacing="-2" bordercolordark="#FFFFFF">
<tr>
<td height="27"> 所屬大類:</td>
<td width="31%" height="27">
<script language="javascript">
function F_super(val,val2){
window.location.href="goodsModify.lzw?superSelect="+val+"&id="+val2; //實(shí)現(xiàn)級(jí)聯(lián)菜單
}
</script>
<input id="id" type="hidden" value="${goods.id }" />
<input id="intime" type="hidden" value="${goods.intime }" />
<select name="supertype" class="textarea" id="supertype" onChange="F_super(this.value,${goods.id })">
<c:forEach varStatus="n" var="name" items="${typeNameList }">
<option value="${n.index }" ${n.index == superSelect?'selected':name == superTypeName?'selected':'' }>${name }</option>
</c:forEach>
</select></td>
<td width="13%" height="27"> 所屬小類:</td>
<td width="42%" height="27">
<select name="typeId" class="textarea" id="typeId">
<c:forEach var="type" items="${superTypeName!=null?typeList[superTypeName]:superSelect != null?typeList[typeNameList[superSelect]]:null }">
<option value="${type.id.subId }" ${type.id.subId==goods.typeId?'selected':'' } >${type.id.subType }</option>
</c:forEach>
</select> </td>
</tr>
<tr>
<td width="14%" height="27"> 商品名稱:
<input name="id" type="hidden" id="ID" value="${goods.id }"></td>
<td height="27" colspan="3">
<input name="goodsName" type="text" class="Sytle_text" value="${goods.goodsName }" size="50">
</td>
</tr>
<tr>
<td height="16"> 圖片文件:</td>
<td height="27" colspan="3">
<input name="picture" type="text" class="Style_upload" id="picture" value="${goods.picture }" size="30">
(此處只填寫圖片文件路徑即可) </td>
</tr>
<tr>
<td height="27" align="center">定 價(jià):</td>
<td height="27">
<input name="price" type="text" class="Sytle_text" id="price3" value="${goods.price }" size="14">
(元)</td>
<td height="27" align="center">現(xiàn) 價(jià): </td>
<td height="27">
<input name="nowPrice" type="text" class="Sytle_text" id="price4" value="${goods.nowPrice }" size="14">
(元)</td>
</tr>
<tr>
<td height="45"> 是否新品:</td>
<td>
<input name="newGoods" type="radio" class="noborder" value="1" ${goods.newGoods==1?'checked':'' }>
是
<input name="newGoods" type="radio" class="noborder" value="0" ${goods.newGoods==0?'checked':'' }>
否</td>
<td> 是否特價(jià):</td>
<td><input name="sale" type="radio" class="noborder" value="1" ${goods.sale==1?'checked':'' }>
是
<input name="sale" type="radio" class="noborder" value="0" ${goods.sale==0?'checked':'' }>
否</td>
</tr>
<tr>
<td height="103"> 商品簡(jiǎn)介:</td>
<td colspan="3"><span class="style5"> </span>
<textarea name="introduce" cols="60" rows="5" class="textarea" id="introduce">${goods.introduce }</textarea></td>
</tr>
<tr>
<td height="38" colspan="4" align="center">
<input name="Button" type="button" class="btn_grey" value="保存" onClick="mycheck()">
<input name="Submit3" type="button" class="btn_grey" value="返回" onClick="window.location.href='indexM.lzw';"> </td>
</tr>
</table>
</form></td>
</tr>
</table> </td>
</tr>
</table>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -