【JSP开源代码栏目提醒】:网学会员,鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“Demand_Index_Add.jsp”一文,供大家参考学习!
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*"%>
<%
String sess=(String)session.getAttribute("username");
if(sess==null||sess.equals("")){
response.sendRedirect("../main.jsp");
}else{
swing.Rous rou=new swing.Rous();
boolean maybe=rou.toInt(sess,"row125");
if(!maybe){
response.sendRedirect("../notrous.jsp");
}
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../css/style1.css" rel="stylesheet">
</head>
<script language="javascript">
<!--
function check(){
if(frm.demand.value==""){
alert("请输入需求项目");
frm.demand.focus();
return false;
}
if(frm.money.value==""){
alert("请输入项目金额");
frm.money.focus();
return false;
}else if(isNaN(frm.money.value)){
return false;
}
if(frm.explain.value==""){
alert("请输入该项目的简要说明");
frm.explain.focus();
return false;
}
}
-->
</script>
<body>
<%
String id=request.getParameter("id");
%>
<img src="../images/Manual11.gif" width="16" height="16">客户需求管理
<hr color="#006699" size="1">
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" bordercolordark="#EFF3FF" bordercolorlight="#FFFFFF">
<form action="Demand_Index_Update.jsp" name="frm" method="post" target="bottomFrame">
<tr>
<td width="14%" height="24" align="center">需求项目</td>
<td width="24%"><input name="demand" type="text" class="txt_grey" size="40"></td>
<td width="18%" align="center">大约金额</td>
<td width="44%"><input name="money" type="text" class="txt_grey" size="40"></td>
</tr>
<tr>
<td height="24" align="center">简要说明</td>
<td height="24" colspan="3"><textarea name="explain" cols="80" rows="2" class="txt_grey"></textarea></td>
</tr>
<tr align="center" bgcolor="#EFF3FF">
<td height="24" colspan="4"><input name="Submit" type="submit" class="btn_grey" value="保存" onClick="return check()">
<input name="Submit2" type="reset" class="btn_grey" value="重置">
<input name="id" type="hidden" value="<%=id%>">
<input name="file" type="hidden" value="Demand_Index.jsp">
<input name="create" type="hidden" value="create"> </td>
</tr>
</form>
</table>
</body>
</html>