📄 fkoempl.html
字号:
<html>
<head>
<title>Employee</title>
<SCRIPT LANGUAGE=javascript>
function msg3()
{
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.form3.fname.value)||!a.test(document.form3.mname.value)||!a.test(document.form3.lname.value)||!c.test(document.form3.cdate.value)||!a.test(document.form3.add.value)||!RE2.test(document.form3.mbno.value)||!f.test(document.form3.aemail.value)||!b.test(document.form3.eid.value))
{
alert("Please enter correct information.");
if(!a.test(document.form3.fname.value))
{
document.form3.fname.style.borderColor="red"
}
else
{
document.form3.fname.style.borderColor =""
}
if(!a.test(document.form3.mname.value))
{
document.form3.mname.style.borderColor ="red"
}
else
{
document.form3.mname.style.borderColor =""
}
if(!a.test(document.form3.lname.value))
{
document.form3.lname.style.borderColor="red"
}
else
{
document.form3.lname.style.borderColor =""
}
if(!c.test(document.form3.cdate.value))
{
document.form3.cdate.style.borderColor="red"
}
else
{
document.form3.cdate.style.borderColor =""
}
if(!a.test(document.form3.add.value))
{
document.form3.add.style.borderColor="red"
}
else
{
document.form3.add.style.borderColor =""
}
if(!RE2.test(document.form3.mbno.value))
{
document.form3.mbno.style.borderColor="red"
}
else
{
document.form3.mbno.style.borderColor =""
}
if(!f.test(document.form3.aemail.value))
{
document.form3.aemail.style.borderColor="red"
}
else
{
document.form3.aemail.style.borderColor =""
}
if(!b.test(document.form3.eid.value))
{
document.form3.eid.style.borderColor="red"
}
else
{
document.form3.eid.style.borderColor =""
}
return false;
}
else
{
return true;
}
}
</script>
</head>
<body background="c:\Inetpub\wwwroot\amey\kisanonline\12.gif">
<!--background="D:\T.E.SEM2\kisanonline\headcutnit.jpg"-->
<center>
<fieldset><legend><h2><font color="loblak">Add Employee Information here...........</legend></font></h2>
<p>
<form name="form3" action="http://localhost/amey/kisanonline/myasp2.asp" method="post" onsubmit="return msg3()">
<table cellspacing="20">
<tr>
<td>
<!-- Text box......--->
<p>
<label for="fname"><font color="blue" size="4">First Name</font></label> 
      <input type="text" name="fname" id="fname" size="20"><br>
</p>
<p>
<label for="mname"><font color="Orange" size="4">Middle Name</font></label> 
  <input type="text" name="mname" id="mname" size="20"><br>
</p>
<p>
<label for="lname"><font color="red" size="4">Last Name</font></label>
        <input type="text" name="lname" id="lname" size="20"><br>
</p>
<p>
<label for="cdate"><font color="green" size="4">Joining Date</font></label>
      <input type="text" name="cdate" id="cdate" size="20"><br>
</p>
<p>
<label for="add"><font color="red" size="4">Address</font></label><br>
<textarea name="add" id="add" cols="20" rows="5"></textarea>
</p>
<p>
<label for="mbno"><font color="green" 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>Shop Employee Info</legend>
<!-- Select List--->
<p>
<label for="finfo"><font color="green">Info about Emp<font color="red"> post</font><br>
work in the Shop...</font></label><br>
<select name="fsize" id="finfo">
<option id="Accountant">Accountant</option>
<option id="Salesman">Salesman</option>
<option id="Dilvery_boy">Dilvery_boy</option>
<option id="StKeeper">StKeeper</option>
<option id="Manager">Manager</option>
<option id="Temperary">Temperary</option>
</select>
</p>
<p>
<label for="firm"><font color="skylovender">Information about Employee<br>
Monthly<font color="red"> Salary...</font></font></label><br>
<select name="firr" id="firm"><!--multiple="multiple" size="4"-->
<option id="1000">1000</option>
<option id="2000">2000</option>
<option id="3000">3000</option>
<option id="3000">3000</option>
<option id="5000">5000</option>
<option id="15000">15000</option>
</select>
</p>
</fieldset>
</td>
</tr>
<tr>
<td>
<fieldset><legend>Employee_Id & Vech_no</legend>
<!-- Select List--->
<p>
<label for="eid"><font color="green">Emp_Id</font></label>
    <input type="text" name="eid" id="eid" size="20"><br>
</p>
<p>
<label for="vno"><font color="red">Vheical_no</font></label>
 <input type="variant" name="vno" id="vno" size="20"><br>
</p>
</fieldset>
</td>
</tr>
</table>
</p>
<input type="submit" name="submit" id="ADD" value="add">
    
<P><A href="http://localhost/amey/kisanonline/del2.html">DELETE A
RECORD</A></P>
<br><br>
<P><A href="http://localhost/amey/kisanonline/mod2.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 + -