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

📄 market.html

📁 Web based project,kisan online
💻 HTML
字号:
<html>
<head>
<title>customer</title>
<SCRIPT LANGUAGE=javascript>
function msg1()
{
	    var a=new RegExp();
	    var b=new RegExp();
        var c=new RegExp();
        var d=new RegExp();
        var f=new RegExp();
        var RE2=new RegExp();
  RE2=/(^\d{10}$)/
  a=/^([a-z]+)$/i
  b=/^([a-z]+)$/i
 
  c=/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/i
  d=/^([0-9]+)$/i
  f=/^([0-9]+[a-z]+)$/i
if(!d.test(document.form1.rate.value)||!a.test(document.form1.mname.value)||!d.test(document.form1.lname.value)||!a.test(document.form1.cname.value)||!d.test(document.form1.mbno.value)||!f.test(document.form1.aemail.value)||!b.test(document.form1.tfac.value)||!b.test(document.form1.rpay.value))
  {
		alert("Please enter correct information.");
		if(!d.test(document.form1.rate.value))
		{
			document.form1.rate.style.borderColor ="red"
		}
                             else
		{
			document.form1.rate.style.borderColor =""
		}
		if(!a.test(document.form1.mname.value))
		{
			document.form1.mname.style.borderColor ="red"
		}
		else
		{
			document.form1.mname.style.borderColor =""
		}
		if(!d.test(document.form1.lname.value))
		{
			document.form1.lname.style.borderColor="red"
		}
		else
		{
			document.form1.lname.style.borderColor =""
		}
		if(!a.test(document.form1.cname.value))
		{
			document.form1.cname.style.borderColor="red"
		}
		else
		{
			document.form1.cname.style.borderColor =""
		}
		if(!d.test(document.form1.mbno.value))
		{
			document.form1.mbno.style.borderColor="red"
		}
		else
		{
			document.form1.mbno.style.borderColor =""
		}
		if(!f.test(document.form1.aemail.value))
		{
			document.form1.aemail.style.borderColor="red"
		}
		else
		{
			document.form1.aemail.style.borderColor =""
		}
		if(!b.test(document.form1.tfac.value))
		{
			document.form1.tfac.style.borderColor="red"
		}
		else
		{
			document.form1.tfac.style.borderColor =""
		}
		if(!b.test(document.form1.rpay.value))
		{
			document.form1.rpay.style.borderColor="red"
		}
		else
		{
			document.form1.rpay.style.borderColor =""
		}
		return false;
	}
	else
	{
		return true;
	}
}
</script>
</head>

<body bgcolor="white">
<center>
<fieldset><legend><h2><font color="purple">Add Market Information here...........</legend></font></h2>
<p>
<form name="form7" action="http://localhost/virdir1/admin1_files/myasp6.asp" method="post" onsubmit="return msg1()">
<table cellspacing="20">
<tr>
<td>
<!-- Text box......--->
<p>
<label for="cname"><font color="green" size="4">Crop Name</font></label>&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="cname" id="cname" size="20"><br>
</p>
<p>
<label for="mname"><font color="Orange" size="4">Crop Type</font></label>&nbsp
 &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="mname" id="mname" size="20"><br>
</p>
<p>
<label for="lname"><font color="red" size="4">Avability in Market in quintals</font></label>
&nbsp<input type="text" name="lname" id="lname" size="20"><br>
</p>

<p>
<label for="rate"><font color="blue" size="4">Rate per Quintal</font></label>
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="rate" id="rate" size="20"><br>
</p>

<p>
<label for="mbno"><font color="red" size="4">Surcharge<br>(Rs./unit)</font></label>&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="mbno" id="mbno" size="20"><br>
</p>
<p>
<label for="aemail"><font color="blue" size="4">Market Starting</font></label>&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp<input type="text" name="aemail" id="aemail" size="20"><br>
</p>

<p>
<label for="tfac"><font color="orange" size="4">Transport<br>Facility</font></label>&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="tfac" id="tfac" size="20"><br>
</p>

<p>
<label for="rpay"><font color="maroon" size="4">Repayment by<br>Seeds</font></label>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="rpay" id="rpay" size="20"><br>
</p>
</td>




</table>
</p>
<input type=submit name=submit value="add">
&nbsp&nbsp&nbsp&nbsp
<P><A href="http://localhost/virdir1/admin1_files/del6.html">DELETE A 
RECORD</A></P>

<br><br>
<P><A href="http://localhost/virdir1/admin1_files/mod6.html">MODIFY A 
RECORD</A></P>

<br><br>
<P><A href="http://localhost/virdir1/admin1_files/sample1.asp">SHOW REPORT 
</A></P>
<br><br>

<b><a href="fkosadmin.html" target="f3">Back</A></b>
</fieldset>
</center>
</body>
</html>

⌨️ 快捷键说明

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