Foe selecting control valve if i have the min,normal & max
data of flow rate,inlet pressure& outlet pressure,inlet
tem.&density than how can i assure that these data are
correct,pl. let me know if therew there is any method to
check it.& also how we assure that the Cv we get from this
data is suitable for valve for controlling require flow.
Answers were Sorted based on User's Feedback
Calculate the cv of a LIQUID ONLY control valve for a given
flow, dp and sg
Cv = 11.7 q (SG / dp)1/2
where
q = Expected flow rate (m3/h)
Sg = Specific gravity of the liquid (1 for water in this
example)
dp = Pressure drop across the valve at expected flow rate (kPa)
Example 1.
So if q = 5m3/h
Sg for water = 1
Dp over valve during 5m3/h flow = 10kpa
Do manual calculation:
Cv = 11.7 q (SG / dp)1/2
1) 11,7 x 5 = 58,5
2) 1/10 = 0,1
3) ½ = 1/2 = 0.5
4) 0,1 to the power of 0,5 = 0.31622776
5) So 0.31622776 x 58,5 = 18,49
So a valve with a cv of 18,5 is needed to do a flow of
water(sg=1) at 5m3/h and a dp over the valve of 10kpa
Look at manufacturer valve manual for available valves and
select a valve with a next bigger Cv.
----------------------------------------
Example 2.
So if q = 30m3/h
Sg for liquid = 0,97
Dp over valve during 30m3/h flow = 110kpa
Do manual calculation:
Cv = 11.7 q (SG / dp)1/2
1) 11,7 x 30 = 351
2) 0,97/110 = 0,008818
3) ½ = 1/2 = 0.5
4) 0,008818 to the power of 0,5 = 0.0939042
5) So 0.0939042 x 351 = 32,96
So a valve with a cv of 32,96 is needed to do a flow of
liquid (sg=0,97) at 30m3/h and a dp over the valve of 110kpa
Look at manufacturer valve manual for available valves and
select a valve with a next bigger Cv
---------------------------------------
Example 3.
So if q will be 64m3/h
Sg for liquid is 0,87
Dp over valve during 64m3/h flow is 210kpa
Do manual calculation:
Cv = 11.7 q (SG / dp)1/2
1) 11,7 x 64 = 748,8
2) 0,87/210 = 0,00414285
3) ½ = 1/2 = 0.5
4) 0,00414285 to the power of 0,5 = 0.06436497
5) So 0.06436497 x 748,8 = 48,196
So a valve with a cv of 48,196 is needed to do a flow of
liquid (sg=0,87) at 64m3/h and a dp over the valve of 210kpa
Look at manufacturer valve manual for available valves and
select a valve with a next bigger Cv
------------------------------------------
To do the power off calculation on your windows calculator:
Example:
5 to the power of 4 ------- press 5 then x^y then 4 then =
--------------------------------------------
Control Valve selection Flow Coefficient - Cv - for Air and
other Gases
For critical pressure drop the outlet pressure - po - from
the control valve is less than 53% of the inlet pressure -
pi. The flow coefficient can be expressed as:
Cv = q [SG (T + 460)]1/2/ 660 pi
where
q = free gas per hour, standard cubic feet per hour (Cu.ft/h)
SG = Specific gravity of the gas relative to air at 14.7
psia and 60oF
T = flowing air or gas temperature (oF)
pi = inlet gas absolute pressure (psia)
Example:
5000 = Gas flow (Cu. ft./h) (f.a.d)
100 = Inlet Gas Absolute Pressure (psia)
1 = Specific gravity of the
60 = Gas Temperature (oF
Do manual calculation:
Cv = q [SG (T + 460)]1/2/ 660 pi
1) 60 + 460 = 520
2) 520 x 1 = 520
3) ½ = 1/2 = 0.5
4) 520 to the power of 0,5 = 22,8035
5) 22,8035 x 5000 = 114017,5425
6) 660 x 100 = 66000
7) 114017,5425 / 66000 = 1,727
So a valve with a cv of 1,73 is needed to do a air flow
(sg=1) at 5000Cu.f/h, at a air flow temp of 60F and a inlet
gas absolute press of 100PSIA
Look at manufacturer valve manual for available valves and
select a valve with a next bigger Cv
-----------------------------------------------
For non critical pressure drop the outlet pressure - po -
from the control valve is greater than 53% of the inlet
pressure - pi. The flow coefficient can be expressed as:
Cv = q [SG (T + 460)]1/2/ [1360 (dp po)1/2]
where
dp = (pi - po)
po = outlet gas absolute pressure (psia)
Example:
6000 = Gas flow (Cu. ft./h) (f.a.d)
140 = Inlet Gas Pressure (psia
110 = Outlet Gas Pressure (psia
1 = Specific gravity of the gas
60 = Gas Temperature (oF)
Do manual calculation:
Cv = q [SG (T + 460)]1/2/ [1360 (dp po)1/2]
1) 60 + 460 = 520
2) 520 x 1 = 520
3) ½ = 1/2 = 0.5
4) 520 to the power of 0,5 = 22,8035
5) 22,8035 x 6000 = 136821,051
6) 140 – 110 = 30
7) 30 x 110 = 3300
8) ½ = 1/2 = 0.5
9) 3300 to the power of 0,5 = 57,445
10) 57,445 x 1360 = 78126,05199
11) 136821,051 / 78126,05199 = 1,75
So a valve with a cv of 1,75 is needed to do a air flow
(sg=1) at 6000Cu.f/h, at a air flow temp of 60F and a DP of
30PSIA absolute press
Look at manufacturer valve manual for available valves and
select a valve with a next bigger Cv
--------------------------------------------------
To do the power off calculation on your windows calculator:
Example:
5 to the power of 4 ------- press 5 then x^y then 4 then =
--------------------------------------------------
Please note the "1/2" in the formulas is not as it seems, it
is surpose to be a small "1/2" on the top right hand corner
of the bracket, in other words a "to the power of 1/2" and
not " bracket times 1/2 as it is displayed"
Cannot seem to get it displayed like that on this page -
sorry if it is confusing but look at he calculation to see
where the "power of" is used and you will understand what I
mean.
Good Luck
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / guest
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="addbank.js">
</script>
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<h1>NSEP</h1>
<ul>
<li><a href="simple.html" accesskey="1"
title="">Homepage</a></li>
<li><a href="nsep_login.html" accesskey="2"
title="">MEMBER ARENA</a></li>
<li><a href="nsep_login1.html" accesskey="3"
title="">EMPLOYEE ARENA</a></li>
<li><a href="about.html" accesskey="4"
title="">AboutUS</a></li>
<li><a href="contact.html" accesskey="5"
title="">Contact</a></li>
</ul>
</div>
<div id="content">
<%if ("900002".equals(session.getAttribute("role")))
{%>
<div id="colOne">
<h3>FUNCTIONS</h3>
<div class="bg1">
<ul>
<li><a href="nsep_admin.html">Home</a></li>
<li><a href="ADDBANK1.jsp">Add Bank</a></li>
<li><a href="search.jsp" accesskey="1"
title="">Search</a></li>
<li><a href="addemp.jsp" accesskey="1" title="">Role
creation</a></li>
<li><form action="Nsepdetail" method="post"><input
type="image" src="images/nsepview.JPG" ></input></form></li>
<li> <form method=post action=Viewcollege><input
type="image" src="images/viewcollege.JPG"></input></form></li>
<li> <form method=post action=Viewbank><input
type="image" src="images/viewbank.JPG"></input></form></li>
<li> <form method=post action=viewstudent><input
type="image" src="images/viewstudent.JPG"></input></form></li>
</ul>
</div>
<h3>Account</h3>
<div class="bg1">
<ul>
<li><a href="viewdetailserv" >view account details</a> </li>
<li><a href="transaction.jsp" >upload csv file</a> </li>
<li><a href="CollegewiseServ" >Collegewise Defaulters</a></li>
<li><a href="Newnsepvalidate" >NSEP Information</a></li>
<li><a href="Newmonthwisedefaulters.jsp" >Monthwise
Defaulters</a></li>
<li><a href="DeactiveServlet" >Deactivate account</a></li>
<li><a href="newupdate.jsp" >Update Topup</a></li>
<li><a href="NsepCreateAccount.jsp" >Create Account</a></li>
</ul>
</div>
<h3>Loan</h3>
<div class="bg1">
<ul>
<li><a href="viewstudent.jsp">StudentDetails</a></li>
<li><a href="viewLoan.jsp">Loan Details</a></li>
<li><a href="firstpage.jsp" accesskey="3">update</a></li>
<li><form action="serv_viewStudent" method="post">
<input type="image" src="images/overallstudent.JPG"
value="student details" />
</form></li>
<li><form action="serv_viewLoan" method="post">
<input type="image" src="images/overallloan.JPG"
value="loan details" />
</form></li>
</ul>
</div>
</div>
<%}
else
{%>
<div id="colOne">
<h3>FUNCTIONS</h3>
<div class="bg1">
<ul>
<li><a href="nsep_emp.html">Home</a></li>
<li><a href="ADDBANK1.jsp" accesskey="1" title="">Add
Bank</a></li>
<li><a href="search.jsp" accesskey="2"
title="">Search</a></li>
<br>
<li><form action="employeensep" method="post"><input
type="image" src="images/nsepview.JPG" ></input></form></li>
<li><form method=post action=Viewcollege><input
type="image" src="images/viewcollege.JPG"></input></form></li>
<li><form method=post action=Viewbank><input
type="image" src="images/viewbank.JPG"></input></form></li>
<li><form method=post action=viewstudent><input
type="image" src="images/viewstudent.JPG"></input></form></li>
</ul>
</div>
</div>
<div>
</div>
<% }%>
<div id="colTwo">
<div class="bg2">
<center><h2>ADD BANK</h2></center>
<form action="BankServlet" method="post" name="Formaddbank"
onsubmit="return addbankvalid()">
<center>
<table>
<tr><td>BANK NAME</td><td><input type="text" maxlength="30"
name="bnkname" onkeypress=validate1(event)></td></tr>
<tr><td>BANK ID </td><td> <input type="text"
maxlength="8" name="bnkid"onkeypress=validate(event)></td></tr>
<tr><td>ADDRESS </td><td> <input type="text"
maxlength="100"name="bnkaddress" ></td></tr>
<tr><td>CONTACT NO </td><td> <input type="text"
maxlength="10"name="bnkphone" ></td></tr>
<tr><td>BRANCH </td><td> <input type="text"
maxlength="30" name="branch"onkeypress=validate1(event)
></td></tr>
<tr><td></td><td> <input type="submit" value="add"></td></tr>
</table>
</center>
</form>
</div>
<div id="footer">
<p>NSEP Educate yourself!</p>
</div>
</div>
</div>
</body>
</html>
related jsp:
function validate1(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode( key );
var regex = /^[a-z A-Z \b]*$/;
if( !regex.test(key) ) {
theEvent.returnValue = false;
alert("Invalid character!!Only alphabets and white
spaces are allowed..");
if(theEvent.preventDefault) theEvent.preventDefault();
}
}
function validate(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode( key );
var regex = /[0-9 \b]/;
if( !regex.test(key) ) {
theEvent.returnValue = false;
alert("Invalid character!!Only numbers are allowed..");
if(theEvent.preventDefault) theEvent.preventDefault();
}
}
function addbankvalid(){
var bknm=document.forms["Formaddbank"]["bnkname"].value;
var bkid=document.forms["Formaddbank"]["bnkid"].value;
var addr= document.forms["Formaddbank"]["bnkaddress"].value;
var bkpn=document.forms["Formaddbank"]["bnkphone"].value;
var brnch=document.forms["Formaddbank"]["branch"].value;
var regexNum = /\d/;
var regexLetter = /[a-zA-z]/;
var phonechck = /^[0-9]{10}$/;
if (bknm==null || bknm=="")
{
alert("BankName must be filled ");
return false;
}
if(regexNum.test(bknm) && !(regexLetter.test(bknm))){
alert('Only Alphabets are allowed..!!');
return false;
}
if (bkid==null || bkid=="")
{
alert("Bank-id must be filled ");
return false;
}
if(!regexNum.test(bkid) && regexLetter.test(bkid)){
alert('Alphabets are not allowed..!!');
return false;
}
if (addr==null || addr=="")
{
alert("Bank-Address must be filled ");
return false;
}
if (bkpn==null || bkpn=="")
{
alert("Bank phone must be filled ");
return false;
}
if(!(bkpn.match(phonechck)))
{
alert("please enter a valid Contact number!!");
bkpn.value="";
return false;
}
if(bkpn==0){alert("Invalid Phone Number!!");return false;}
if (brnch==null || brnch=="")
{
alert("Branch must be filled ");
return false;
}
if(regexNum.test(brnch) && !(regexLetter.test(brnch))){
alert('Only Alphabets are allowed..!!');
return false;
}
}
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title></title>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="add employee.js">
</script>
</head>
<body>
<div id="header">
<h1>NSEP</h1>
<ul>
<li><a href="simple.html" accesskey="1"
title="">Homepage</a></li>
<li><a href="nsep_login.html" accesskey="2"
title="">MEMBER ARENA</a></li>
<li><a href="nsep_login1.html" accesskey="3"
title="">EMPLOYEE ARENA</a></li>
<li><a href="about.html" accesskey="4"
title="">AboutUS</a></li>
<li><a href="contact.html" accesskey="5"
title="">Contact</a></li>
</ul>
</div>
<div id="content">
<%if ("900002".equals(session.getAttribute("role")))
{%>
<div id="colOne">
<h3>FUNCTIONS</h3>
<div class="bg1">
<ul>
<li><a href="nsep_admin.html">Home</a></li>
<li><a href="ADDBANK1.jsp">Add Bank</a></li>
<li><a href="search.jsp" accesskey="1"
title="">Search</a></li>
<li><a href="addemp.jsp" accesskey="1" title="">Role
creation</a></li>
<li><form action="Nsepdetail" method="post"><input
type="image" src="images/nsepview.JPG" ></input></form></li>
<li> <form method=post action=Viewcollege><input
type="image" src="images/viewcollege.JPG"></input></form></li>
<li> <form method=post action=Viewbank><input
type="image" src="images/viewbank.JPG"></input></form></li>
<li> <form method=post action=viewstudent><input
type="image" src="images/viewstudent.JPG"></input></form></li>
</ul>
</div>
<h3>Account</h3>
<div class="bg1">
<ul>
<li><a href="viewdetailserv" >view account details</a> </li>
<li><a href="transaction.jsp" >upload csv file</a> </li>
<li><a href="CollegewiseServ" >Collegewise Defaulters</a></li>
<li><a href="Newnsepvalidate" >NSEP Information</a></li>
<li><a href="Newmonthwisedefaulters.jsp" >Monthwise
Defaulters</a></li>
<li><a href="DeactiveServlet" >Deactivate account</a></li>
<li><a href="newupdate.jsp" >Update Topup</a></li>
<li><a href="NsepCreateAccount.jsp" >Create Account</a></li>
</ul>
</div>
<h3>Loan</h3>
<div class="bg1">
<ul>
<li><a href="viewstudent.jsp">StudentDetails</a></li>
<li><a href="viewLoan.jsp">Loan Details</a></li>
<li><a href="firstpage.jsp" accesskey="3">update</a></li>
<li><form action="serv_viewStudent" method="post">
<input type="image" src="images/overallstudent.JPG"
value="student details" />
</form></li>
<li><form action="serv_viewLoan" method="post">
<input type="image" src="images/overallloan.JPG"
value="loan details" />
</form></li>
</ul>
</div>
</div>
<%}
else
{%>
<div id="colOne">
<h3>FUNCTIONS</h3>
<div class="bg1">
<ul>
<li><a href="nsep_emp.html">Home</a></li>
<li><a href="ADDBANK1.jsp" accesskey="1" title="">Add
Bank</a></li>
<li><a href="search.jsp" accesskey="2"
title="">Search</a></li>
<br>
<li><form action="employeensep" method="post"><input
type="image" src="images/nsepview.JPG" ></input></form></li>
<li><form method=post action=Viewcollege><input
type="image" src="images/viewcollege.JPG"></input></form></li>
<li><form method=post action=Viewbank><input
type="image" src="images/viewbank.JPG"></input></form></li>
<li><form method=post action=viewstudent><input
type="image" src="images/viewstudent.JPG"></input></form></li>
</ul>
</div>
</div>
<div>
</div>
<% }%>
<div id="colTwo">
<div class="bg2">
<CENTER><h2>ADD EMPLOYEE</h2>
<form method="post" action="Employeeservlet"
name="Formaddemp" onsubmit="return addempvalid()">
<table>
<tr><td>EMPLOYEE NAME</td><td><input type="text"
name="empname" onkeypress=validate1(event)
maxlength="30"></td></tr>
<tr><td>EMPLOYEE ID </td><td><input type="text"
name="empid"onkeypress=validate(event) maxlength="8"></td></tr>
<tr><td>ROLE </td><td> <select
name="role"><option>---Select---</option><option value="
600002"> Loan Officer</option><option value=" 600003">
Program Manager</option><option value=" 600004 ">Loan Module
Administrator</option><option value="600005"> NSEP
Employee</option></select></td></tr>
<tr><td>PHONE NO </td><td><input type="text" name="phone"
maxlength="10" ></td></tr>
<tr><td></td><td><input type="submit" value="add"></td></tr>
<% if(request.getAttribute("msgemp")!=null)
out.println("Role has been created successfully!!");%>
</table>
</form>
</div>
</div>
<div id="footer">
<p>NSEP Educate yourself!</p>
</div>
</body>
</html>
related js:
function validate1(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode( key );
var regex = /^[a-z A-Z \b]*$/;
if( !regex.test(key) ) {
theEvent.returnValue = false;
alert("Invalid character!!Only alphabets and white
spaces are allowed..");
if(theEvent.preventDefault) theEvent.preventDefault();
}
}
function validate(evt) {
var theEvent = evt || window.event;
var key = theEvent.keyCode || theEvent.which;
key = String.fromCharCode( key );
var regex = /[0-9 \b]/;
if( !regex.test(key) ) {
theEvent.returnValue = false;
alert("Invalid character!!Only numbers are allowed..");
if(theEvent.preventDefault) theEvent.preventDefault();
}
}
function addempvalid(){
var ename=document.forms["Formaddemp"]["empname"].value;
var eid=document.forms["Formaddemp"]["empid"].value;
var role=document.forms["Formaddemp"]["role"].value;
var pn=document.forms["Formaddemp"]["phone"].value;
var regexNum = /\d/;
var regexLetter = /[a-zA-z]/;
var phonechck = /^[0-9]{10}$/;
if (ename==null || ename=="")
{
alert("Employee-name must be filled ");
return false;
}
if(regexNum.test(ename) && !(regexLetter.test(ename))){
alert('Only Alphabets are allowed..!!');
return false;
}
if (eid==null || eid=="")
{
alert("Employee-id must be filled ");
return false;
}
if(!regexNum.test(eid) && regexLetter.test(eid)){
alert('Only Alphabets are allowed..!!');
return false;
}
if(role==0){
alert("Please select any one option from the listed Roles!!");
return false;
}
if (pn==null || pn=="")
{
alert("Phone number must be filled ");
return false;
}
if(!(pn.match(phonechck)))
{
alert("please enter a valid Contact number!!");
pn.value="";
return false;
}
if (pn==0){alert("please enter a valid Contact
number!!");return false;}
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Book Details Login</title>
<script type="text/javascript">
function validateForm()
{
var uname=document.forms["myForm"]["userName"].value;
var pwd=document.forms["myForm"]["pwd"].value;
if(uname==null || uname=="")
{
alert("Please enter username");
return false;
}
if(pwd==null || pwd=="")
{
alert("Please enter password");
return false;
}
}
</script>
</head>
<body>
<center>
<br/><br/><br/><br/><br/>
<h2>Login</h2>
<form name="myForm" action="LibraryServlet?login"
method="post" onsubmit="return validateForm()">
User name
<input
type="text" name="userName"/><br/><br/>
Password
<input
type="password" name="pwd"/><br/><br/>
<input type="submit" name="signin" value=" Login
"/> <input
type="reset" name="resetfields" value=" Clear "/><br/><br/>"
<a href="register.jsp">New User?</a>
</form>
</center>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
Copyright: Daemon Pty Limited 2006, http://www.daemon.com.au
Community: Mollio http://www.mollio.org $
License: Released Under the "Common Public License 1.0",
http://www.opensource.org/licenses/cpl.php
License: Released Under the "Creative Commons License",
http://creativecommons.org/licenses/by/2.5/
License: Released Under the "GNU Creative Commons License",
http://creativecommons.org/licenses/GPL/2.0/
-->
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>NSEP</title>
<link rel="stylesheet" type="text/css" href="css/main.css"
media="screen" />
<link rel="stylesheet" type="text/css" href="css/print.css"
media="print" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css"
href="css/ie6_or_less.css" />
<![endif]-->
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">
/*if(tempNum.length!=15)
{
if(isNaN(tempNum))
{
alert("PLease enter the correct student ID ");
return false;
}
alert("Please enter the correct student ID ");
return false;
}*/
function validateForm()
{
var x=document.forms["Login_page"]["Username"].value;
if(x.length>8)
{
alert("Please enter valid Username");
return false;
}
if (x==null || x=="")
{
alert(" Username must be filled out");
return false;
}
var y=document.forms["Login_page"]["Password"].value;
if (y==null || y=="")
{
alert(" Password must be filled out");
return false;
}
}
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && ((charCode < 48 )|| (charCode > 57)) )
{
alert("Enter number alone");
return false;
}
}
</script>
</head>
<body id="type-c">
<div id="wrap">
<div id="header">
<div id="site-name">Loan Module</div>
</div>
<ul id="nav">
</div>
</form>
</div>
<fieldset>
<center>
<blockquote>  </blockquote>
<blockquote>  </blockquote>
<blockquote>  </blockquote>
<blockquote>  </blockquote>
<blockquote>  </blockquote>
<blockquote>  </blockquote>
<div id="content">
<hr />
<div class="featurebox"><h3>Login details</h3>
<form name="Login_page" action="loginValid" onsubmit="return
validateForm()" method="get">
<table>
<tr><td>
UserName </td> <td><input type="text" name="Username"
onkeypress="return isNumberKey(event)"/></td></tr>
<tr><td>Password </td><td><input type="password"
name="Password"/></td></tr>
</table>
<input name="btntest" type="submit" value="submit"
class="f-submit"></input>
<div class="f-submit-wrap">
</div>
</fieldset>
</form>
<hr />
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>File Upload</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script type="text/javascript">
function Checkfiles(f) {
f = f.elements;
if (/.*\.(csv)$/.test(f['file'].value.toLowerCase()))
return true;
else if (f['file'].value == "") {
document.getElementById("error").innerHTML = "<b>Choose a
file to upload</b>";
return false;
} else {
document.getElementById("error").innerHTML = "<b>Invalid
File Format</br>Please Choose .CSV files Only</b> ";
f['file'].focus();
return false;
}
};
</script>
<link rel=stylesheet href="style.css"></link>
</head>
<body>
<h2>Upload Your CSV File</h2>
<form method=post action="UpdateTransaction.jsp"
onsubmit="return Checkfiles(this);">
<input type="text" accept="Text/csv" name="file">
<input type="submit" value="Upload">
<h4 id="error" style="color: red;">
<font size="5" face="arial"> </font>
</h4>
</form>
</body>
</html>
email n more:
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css"
href="../css/main.css" media="screen" />
<link rel="stylesheet" type="text/css"
href="../css/print.css" media="print" />
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>College Registration</title>
<script type="text/javascript">
function validateForm()
{
var x=document.forms["collreg"]["collname"].value;
var splChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?0123456789";
if (x==null || x=="")
{
alert("College name must be filled out");
return false;
}
if(!isNaN(x))
{
alert("Enter valid College name");
document.forms["collreg"]["collname"].value="";
return false;
}
for (var i = 0; i <
document.forms["collreg"]["collname"].value.length; i++)
{
if
(splChars.indexOf(document.forms["collreg"]["collname"].value.charAt(i))
!= -1)
{
alert ("College name must be characters");
document.forms["collreg"]["collname"].value="";
return false;
}
}
var x=document.forms["collreg"]["collId"].value;
if (x==null || x=="")
{
alert("College Id must be filled out");
document.forms["collreg"]["collId"].value="";
return false;
}
if(isNaN(x))
{
alert("Enter valid College Id");
document.forms["collreg"]["collId"].value="";
return false;
}
var x=document.forms["collreg"]["email"].value;
if (x==null || x=="")
{
alert("Email must be filled out");
document.forms["collreg"]["email"].value="";
return false;
}
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
dotpos=dotpos+2;
if (atpos<1 || dotpos<(atpos=atpos+2) || dotpos>=x.length)
{
alert("Enter a valid e-mail address");
document.forms["collreg"]["email"].value="";
return false;
}
var x=document.forms["collreg"]["addr"].value;
if (x==null || x=="")
{
alert("Address must be filled out");
document.forms["collreg"]["addr"].value="";
return false;
}
if(!isNaN(x))
{
alert("Enter valid Address");
document.forms["collreg"]["addr"].value="";
return false;
}
var x=document.forms["collreg"]["collauthority"].value;
if (x==null || x=="")
{
alert("College Authority must be filled out");
document.forms["collreg"]["collauthority"].value="";
return false;
}
if(!isNaN(x))
{
alert("Enter valid Name");
document.forms["collreg"]["collauthority"].value="";
return false;
}
var x=document.forms["collreg"]["eligstud"].value;
if (x==null || x=="")
{
alert("Eligible Student must be filled out");
document.forms["collreg"]["eligstud"].value="";
return false;
}
if(isNaN(x))
{
alert("Enter valid Number");
document.forms["collreg"]["eligstud"].value="";
return false;
}
}
</script>
</head>
<body id="type-c">
<div id="wrap">
<div id="header">
<div id="site-name">NATIONAL SELF EMPLOYMENT PROGRAM</div>
<ul id="nav">
<li class="active"><a href="HomePage.jsp">Home</a></li>
</ul>
</div>
<center>
<h2>COLLEGE REGISTRATION</h2>
<form name="collreg" action="CollegeServlet" method="get">
<table id="table1" cellspacing="20">
<tr>
<th>College name</th>
<td><input type="text" name="collname"/></td>
</tr>
<tr>
<th>College ID</th>
<td><input type="text" name="collId"/></td>
</tr>
<tr>
<th>Email ID</th>
<td><input type="text" name="email"/></td>
</tr>
<tr>
<th>Location</th>
<td><textarea name="addr" rows="4" cols="16"></textarea></td>
</tr>
<tr>
<th>College Authority</th>
<td><input type="text" name="collauthority"/></td>
</tr>
<tr>
<th>No. of eligible students for NSEP</th>
<td><input type="text" name="eligstud"/></td>
</tr>
</table>
<table id="table2">
<tr>
<td><input type="submit" name="submit" value="SUBMIT"
onclick="return validateForm()"/></td>
</tr>
</table>
</form>
</center>
</div>
</body>
</html>
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kunal007hyd
Welcome to the gold standard of HyderabadWelcome to the gold standard of HyderabadWelcome to the gold standard of HyderabadWelcome to the gold standard of Hyderabad
<a href="http://escortsserviceinhyderabad.com/>Hyderabad Escorts Models Escorts </a>
| Is This Answer Correct ? | 0 Yes | 0 No |
can you give some devices that measure directly the mass flow rate.
EXPLAIN SOME IMP QUESTIONS AND ANSWERS ON TOPIC ELECTRONICS,INSTRUMENTATION.........
explain how magnetic flowmeter works
why we are giving negative supply for vibration sensors?
How to decrease opening & closing time of on/off valve?
what is meant by nuclear collector?
we are having yokogawa centum cs3000 dcs in our power plant. i need some of the operator guides NOT to appear in HIS0163 AND HIS 0162 but it shoul appear in HIS0164 HOW TO DO IT?
what step is taken for ESD ( emergency shut down) in DCS REPLY to hashimka20009@gmail.com
0 Answers Bosch, Eskom, Sabic,
Why do we use triad cable for RTD to Temp.transmitter connection? Why we don't use 3 core cable?
1 Answers Process Control Technologies,
Can anyone send most commonley asked Instrumentation questions and answers in cement industry please?
what is difference b/w tube and pipe ?
6 Answers BSL, Descon, Kirloskar,
1)how can calibrate temperature transmitter? 2)how can calibrate flow transmitter? 3)how can calibrate level transmitter?
3 Answers ccic, Emerson, JK Pharma, NIGC, Rockwell, UltraTech,
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)