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

📄 cp_add.asp

📁 自己做的鞋业网站代码
💻 ASP
字号:
<!--#include file="conn.asp"--> 
<%
brand = request("brand")
%>
<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=add" 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" class="inputro"></td> 
	</tr>
	<tr>
       <td width="25%" align="right">Size:</td>
      <td width="75%" align="left"><input type="text" name="size" class="inputro"  ></td> 
	</tr>
	<tr>
	 <td width="25%" align="right">Price:</td>
      <td width="75%" align="left">$<input type="text" name="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"></textarea></td>
  </tr>
   <tr>
      <td  width="25%" align="right">State:</td>
      <td width="75%" align="left">
      <select name="state" ID="Select1"> 
      <option value='4'>PutInStorage</option>  
      <option value='3'>NewArrivals</option>
      <option value='2'>WeeklyBest</option>
     <option value='1'>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="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 + -