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

📄 fkodeal.html

📁 Web based project,kisan online
💻 HTML
字号:
<html>
<head>
<title>Dealer</title>
<SCRIPT LANGUAGE=javascript>
function msg2()
{
	    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=/^([a-z]+[0-9]*[@][a-z]+[.][a-z]+)$/i
if(!a.test(document.form2.fname.value)||!a.test(document.form2.mname.value)||!a.test(document.form2.lname.value)||!a.test(document.form2.dcity.value)||!a.test(document.form2.add.value)||!RE2.test(document.form2.mbno.value)||!f.test(document.form2.aemail.value)||!b.test(document.form2.did.value))
  {
		alert("Please enter correct information.");
		if(!a.test(document.form2.fname.value))
		{
			document.form2.fname.style.borderColor="red"
		}
		else
		{
			document.form2.fname.style.borderColor =""
		}
		if(!a.test(document.form2.mname.value))
		{
			document.form2.mname.style.borderColor ="red"
		}
		else
		{
			document.form2.mname.style.borderColor =""
		}
		if(!a.test(document.form2.lname.value))
		{
			document.form2.lname.style.borderColor="red"
		}
		else
		{
			document.form2.lname.style.borderColor =""
		}
		if(!a.test(document.form2.dcity.value))
		{
			document.form2.dcity.style.borderColor="red"
		}
		else
		{
			document.form2.dcity.style.borderColor =""
		}
		if(!a.test(document.form2.add.value))
		{
			document.form2.add.style.borderColor="red"
		}
		else
		{
			document.form2.add.style.borderColor =""
		}
		if(!RE2.test(document.form2.mbno.value))
		{
			document.form2.mbno.style.borderColor="red"
		}
		else
		{
			document.form2.mbno.style.borderColor =""
		}
		if(!f.test(document.form2.aemail.value))
		{
			document.form2.aemail.style.borderColor="red"
		}
		else
		{
			document.form2.aemail.style.borderColor =""
		}
		if(!b.test(document.form2.did.value))
		{
			document.form2.did.style.borderColor="red"
		}
		else
		{
			document.form2.did.style.borderColor =""
		}
		
		return false;
	}
	else
	{
		return true;
	}
}
</script>
</head>

<body bgcolor="white"><!--background="D:\T.E.SEM2\kisanonline\headcutnit.jpg"-->
<center>
<fieldset><legend><h2><font color="purple">Add Dealer Information here...........</legend></font></h2>
<p>
<form name="form2" action="http://localhost/amey/kisanonline/myasp1.asp" method="post" onsubmit="return msg2()">
<table cellspacing="20">
<tr>
<td>
<!-- Text box......--->
<p>
<label for="fname"><font color="red" size="4">First Name</font></label>&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="fname" id="fname" size="20"><br>
</p>
<p>
<label for="mname"><font color="green" size="4">Middle Name</font></label>&nbsp
 &nbsp&nbsp<input type="text" name="mname" id="mname" size="20"><br>
</p>
<p>
<label for="lname"><font color="blue" size="4">Last Name</font></label>
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="lname" id="lname" size="20"><br>
</p>
<p>
<label for="dcity"><font color="orange" size="4">City</font></label>&nbsp
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="dcity" id="dcity" size="20"><br>
</p>
<p>
<label for="add"><font color="green" size="4">Address</font></label><br>
<textarea name="add" id="add" cols="20" rows="5"></textarea>
</p>
<p>
<label for="mbno"><font color="red" size="4">Mobile Number</font></label>
<input type="text" name="mbno" id="mbno" size="20"><br>
</p>
<p>
<label for="aemail"><font color="blue" size="4">Alternate Email</font></label><br>
<input type="text" name="aemail" id="aemail" size="40"><br>
</p>
</td>
<td>
<fieldset><legend>Dealer Information</legend>
<!-- Select List--->
<p>
<label for="finfo"><font color="green">Information about Dealer<br>
Supply.....</font></label><br>
<select name="fsize" id="finfo">
<option id="seeds">seeds</option>
<option id="pesticides">pesticides</option>
<option id="insecticides">insecticides</option>
<option id="Fertilizer">Fertilizer</option>
<option id="Pumps">Pumps</option>
<option id="FarmHandTool">FarmHandTool</option>
</select>
</p>
<p>
<label for="firm"><font color="skylovender">Amount of Quantity<br>
Supply<font color="red"> Quantity</font></font></label><br>
<select name="firr" id="firm"><!--multiple="multiple" size="4"-->
<option id="100">100</option>
<option id="200">200</option>
<option id="300">300</option>
<option id="400">400</option>
<option id="500">500</option>
<option id="600">600</option>
</select>
</p>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset><legend>Deal_Idinfo </legend>
<!-- Select List--->
<p>
<label for="did"><font color="green">Deal_Id</font></label>
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="did" id="did" size="20"><br>
</p>
<!---------------------------------------------------------------------
<p>
<label for="cpass"><font color="red">Password</font></label>
&nbsp<input type="password" name="cpass" id="cpass" size="20"><br>
</p>
----------------------------------------------------------------------->
</fieldset>
</td>
</tr>
</table>
</p>
<input type=submit name=submit value="add">
&nbsp&nbsp&nbsp&nbsp
<P><A href="http://localhost/amey/kisanonline/del1.html">DELETE A 
RECORD</A></P>

<br><br>
<P><A href="http://localhost/amey/kisanonline/mod1.html">MODIFY A 
RECORD</A></P>

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

⌨️ 快捷键说明

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