⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brand_add.asp

📁 自己做的鞋业网站代码
💻 ASP
字号:
<!--#include file="conn.asp"--> 
<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.brand.value.Trim().length ==0){
		window.alert("Please input the brand name");
		obj.brand.focus();
		return false;
	}
	return true;
}
  
</script>
</head>

<%
action = request("action")
brand = request("brand")
   
if action="add" then
  set rs = server.CreateObject("adodb.recordset")
  sql = "select max(number) from sort"
  rs.open sql,conn,1,1
  brandid= cstr(rs(0)+1) 
  while len(brandid)<4  
    brandid="0"+brandid
  wend 
elseif action="edit" then
brandid=request("brandid")
end if 
 %>

<body topmargin="0" leftmargin="0" onLoad="form1.style.focus()">

<form name="form1" onsubmit="return(f_check(this))" action="brand_action.asp" method="post">
 
  <table border="0" width="100%"><tr><td align="center" class="font11b">Input New Brand</td></tr></table>
  <table border="1" cellpadding="2" cellspacing="0" width="460" align="center" class="table_main" >
    <tr>
  <td width="25%" align="right">ID:</td>
      <td width="75%" align="left"><input type="text" name="brandid" readonly value=<%=brandid%> class="inputro"></td> 
	</tr>
  <tr>
  <td width="25%" align="right">Brand:</td>
      <td width="75%" align="left"><input type="text" name="brand" class="inputro" value=<%=brand%>></td> 
	</tr>	 
  </table>
  <br>
  <table width="100%" border="0"  cellpadding="0" cellspacing="0" >
    <tr>
      <td align="center">  
      <input type="hidden" name="action" value=<%=action%> ID="Hidden1">
	<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 + -