📄 cp_edit.asp
字号:
<!--#include file="conn.asp"-->
<%
hw_id = request("hw_id")
set rs = server.CreateObject("adodb.recordset")
sql="select * from hw where hw_id="&hw_id
rs.open sql,conn,3,3
brand=rs("sort_name")
style=rs("nsort_name")
price=rs("hw_cash")
filename=rs("hw_pic")
filename1=rs("hw_pic2")
mycontent=rs("hw_content")
state=rs("tuijian")
size=rs("hw_name")
rs.close
set rs = nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; ">
<title>NewRecord</title>
<link href="css/css.css" type="text/css" rel="stylesheet">
<script language="javascript" src="js/pub.js"></script>
<script language="javascript">
function f_check(obj){
if (obj.Styles.value.Trim().length ==0){
window.alert("Please input the style");
obj.Styles.focus();
return false;
}
if (obj.size.value.Trim().length ==0){
window.alert("Please input the size");
obj.size.focus();
return false;
}
if (obj.Price.value.Trim().length ==0){
window.alert("Please input the price");
obj.Price.focus();
return false;
}
if (obj.mycontent.value.Trim().length ==0){
window.alert("Please input the shoes descripton");
obj.mycontent.focus();
return false;
}
return true;
}
</script>
</head>
<body topmargin="0" leftmargin="0" onLoad="form1.style.focus()">
<form name="form1" onsubmit="return(f_check(this))" action="cp_action.asp?action=edit" method="post">
<table border="0" width="100%"><tr><td align="center" class="font11b">Input New Shoes Info</td></tr></table>
<table border="1" cellpadding="2" cellspacing="0" width="460" align="center" class="table_main" >
<tr>
<td width="25%" align="right">Brand:</td>
<td width="75%" align="left"><input type="text" name="Brand" value="<%=brand%>" readonly class="inputro"></td>
</tr>
<tr>
<td width="25%" align="right">Style:</td>
<td width="75%" align="left"><input type="text" name="Styles" value="<%=style%>" class="inputro" ></td>
</tr>
<tr>
<td width="25%" align="right">Size:</td>
<td width="75%" align="left"><input type="text" name="size" value="<%=size%>" class="inputro" ></td>
</tr>
<tr>
<td width="25%" align="right">Price:</td>
<td width="75%" align="left">$<input type="text" name="Price" value="<%=price%>" class="inputro" onkeyup="value=value.replace(/[^\d]/g,'.')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,'.'))"></td>
</tr>
<tr>
<td width="25%" align="right">Photo(largesize):</td>
<td width="75%" align="left" valign=middle>
<iframe frameborder="0" scrolling="no" height="30" width="260" name="smallphoto" marginheight="0" marginwidth="0" src="upload.asp"></iframe>
Size:<font color=red>350*350</font></td>
</tr>
<tr>
<td width="25%" align="right">Photo(smallsize):</td>
<td width="75%" align="left" valign=middle>
<iframe frameborder="0" scrolling="no" height="30" width="260" name="largephoto" marginheight="0" marginwidth="0" src="upload1.asp"></iframe>
Size:<font color=red>130*130</font></td>
</tr>
<tr align="left" >
<td colspan=2 align="left"> Shoes Description:
<br><textarea name="mycontent" cols="60" rows="10" ID="Textarea1"><%=mycontent%></textarea></td>
</tr>
<tr>
<td width="25%" align="right">State:</td>
<td width="75%" align="left">
<select name="state" ID="Select1" >
<option value='4' <%if state=4 then%>selected<%end if%>>PutInStorage</option>
<option value='3' <%if state=3 then%>selected<%end if%>>NewArrivals</option>
<option value='2'<%if state=2 then%>selected<%end if%>>WeeklyBest</option>
<option value='1'<%if state=1 then%>selected<%end if%>>Best</option>
</select>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td align="center">
<input type="hidden" name="filename" value="" ID="Hidden1">
<input type="hidden" name="filename1" value="" ID="Hidden2">
<input type="hidden" name="hw_id" value=<%=hw_id%> ID="Hidden3">
<input type="submit" value="Submit" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
<input type="reset" value="Reset" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
<input type="button" value="Cancel" onclick="javascript:window.close()" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -