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

📄 newproduct.asp

📁 online sales system of texttile mill was a project within which there was great opportunity for Lear
💻 ASP
字号:
<html>
<head>
<script language="javascript">
	function performCheck()
	{
		var cat = document.form.category.value;
		var name = document.form.name.value;
		var composition = document.form.composition.value;
		var mainphg = document.form.mainphg.value;
		var advantage = document.form.advantage.value;
		var cost = document.form.cost.value;
		
		// product category
		if ( cat == "" )
		{
			alert ( "Please enter the product category." );
			return false;
		}
		
		// Name of the product
		if ( name == "" )
		{
			alert ( "Please enter the name of the product." );
			return false;
		}
		
		// Composition of the product
		if ( composition == "" )
		{
			alert ( "Please enter the composition of the product." );
			return false;
		}
		
		// Main Pharma Cological Group of the product
		if ( mainphg == "" )
		{
			alert ( "Please enter the Main Pharma Cological Group of the product." );
			return false;
		}
		
		// Advantages of the product
		if ( advantage == "" )
		{
			alert ( "Please enter the advantages of the product." );
			return false;
		}
		
		// Pack size of the product
		
		
		// Cost of the product
		if ( cost == "" )
		{
			alert ( "Please enter the cost of the product." );
			return false;
		}
		for ( var i=0; i<cost.length; i++ )
		{
			switch ( cost.charAt(i) )
			{
				case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7':
				case '8': case '9': case '.':
					break;
				default:
					alert ( "Invalid cost." );
					return false;
			}
		}
		
		return true;
	}
</script>
</head>

<body bgcolor="">
<%
if session("admin") = "" then
	response.redirect "administrator.asp"
end if
%>
<center>
<br>
&nbsp;<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="35%">&nbsp;</td>
    <td width="42%"><b>
<FONT face=Georgia color=#cc0033 size=3>New Product addition</font></b></td>
    <td width="23%">
<b>::</b> <a href="admin_options.asp" target=detail>Back to Option</a>
    </td>
  </tr>
</table>
<p>

<font face="Tahoma" size="2">Enter the following details and click add product</Font>
</p>

<form method="post" name="form" action="addproduct.asp" onsubmit="return performCheck()">

<center>
<div align="center">
  <center><table Border=2 bordercolor=#C0C0C0 width=500 height="235">

<tr>
	<td bgcolor="#0000FF" bordercolor="#D7D7D7" height="22">
    <font face="Tahoma" size="2" color="#FFFFA4">
    <span style="font-weight: 700; background-color: #0000FF">Product Category</span></Font></td>
	<td height="22"><input type="Text" name="category" size="50"></td>
</tr>

<tr>
	<td height="19" bgcolor="#0000FF"><b>
    <font face="Tahoma" size="2" color="#FFFFA4">Product name</Font></b></td>
	<td height="19"><input type="Text" name="name" size="50"></td>
</tr>
<tr>
	<td height="22" bgcolor="#0000FF"><b>
    <font face="Tahoma" size="2" color="#FFFFA4">Quality</Font></b></td>
	<td height="22"><input type="Text" name="composition" size="50"></td>
</tr>
<tr>
	<td height="32" bgcolor="#0000FF"><b>
    <font face="Tahoma" size="2" color="#FFFFA4">Main TextTile Group</Font></b></td>
	<td height="32"><input type="Text" name="mainphg" size="50"></td>
</tr>
<tr>
	<td height="22" bgcolor="#0000FF"><b>
    <font face="Tahoma" size="2" color="#FFFFA4">Tech id</Font></b></td>
	<td height="22"><input type="Text" name="advantage" size="50"></td>
</tr>
<tr>
	<td height="22" bgcolor="#0000FF"><b>
    <font face="Tahoma" size="2" color="#FFFFA4">Price/Cost</Font></b></td>
	<td height="22"><input type="Text" name="cost" size="50"></td>
</tr>
<tr>
	<td height="26" bgcolor="#0000FF"><font color="#FFFFA4"><b><input type="reset" value="Reset Data"></b></font></td>
	<td height="26"><input type="submit" value="Add Product"></td>
</tr>
</center>
</table>

  </center>
</div>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -